034e3b9c6994a9e93953134f5e17e3c2040ebd36
[gnulib.git] / ChangeLog
1 2012-04-15  Bruno Haible  <bruno@clisp.org>
2
3         lseek: Make configure test independent of environment.
4         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5         Windows, we know that lseek() on pipes is broken; skip the runtime
6         test.
7
8 2012-04-14  Bruno Haible  <bruno@clisp.org>
9
10         stat: Bypass buggy override in mingw64.
11         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
12         * lib/stat.c (stat) [mingw64]: Define to _stat.
13         * doc/posix-functions/stat.texi: Mention mingw64 bug.
14
15 2012-04-14  Bruno Haible  <bruno@clisp.org>
16
17         pathmax: Fix compilation error on MSVC 9.
18         * modules/pathmax (Depends-on): Add unistd.
19
20 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21
22         README: document pointer comparison assumption
23         * README (Portability guidelines): Document assumption about
24         pointer comparisons, in response to a recent bug-gnulib comment by
25         Jeffrey Kegler.
26
27 2012-04-12  Bruno Haible  <bruno@clisp.org>
28
29         Tests for module 'getrusage'.
30         * modules/getrusage-tests: New file.
31         * tests/test-getrusage.c: New file.
32
33         New module 'getrusage'.
34         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35         warn-on-use.h.
36         (getrusage): New declaration.
37         * lib/getrusage.c: New file.
38         * m4/getrusage.m4: New file.
39         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40         is declared.
41         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
42         HAVE_GETRUSAGE.
43         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
44         snippet/c++defs, snippet/warn-on-use.
45         (Makefile.am): Update generation of sys/resource.h. Substitute
46         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
47         * modules/getrusage: New file.
48         * doc/posix-functions/getrusage.texi: Mention the new module.
49
50 2012-04-12  Bruno Haible  <bruno@clisp.org>
51
52         Tests for module 'sys_resource'.
53         * modules/sys_resource-tests: New file.
54         * tests/test-sys_resource.c: New file.
55
56         New module 'sys_resource'.
57         * lib/sys_resource.in.h: New file.
58         * m4/sys_resource_h.m4: New file.
59         * modules/sys_resource: New file.
60         * doc/posix-headers/sys_resource.texi: Mention the new module.
61
62 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
63
64         ioctl: Fix compilation error on mingw.
65         * lib/ioctl.c: Include <windows.h>.
66         Also reported by Ray Satiro <raysatiro@yahoo.com>.
67
68 2012-04-04  Jim Meyering  <meyering@redhat.com>
69
70         regex: correct #pragma guard expression
71         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
72         not 4.3.  Correct its cpp guard expression.
73
74 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75
76         regex: remove unnecessary type punning
77         Problem reported by Vladimir Serbinenko in
78         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
79         * lib/regex.h (struct re_pattern_buffer): Change the type of
80         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
81         Fix comment to match code.
82         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
83         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
84         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
86         (set_regs):
87         Omit no-longer-necessary casts.
88
89 2012-04-03  Bruno Haible  <bruno@clisp.org>
90
91         Tests for module 'ilogbl'.
92         * modules/ilogbl-tests: New file.
93         * tests/test-ilogbl.c: New file.
94
95         New module 'ilogbl'.
96         * lib/math.in.h (ilogbl): New declaration.
97         * lib/ilogbl.c: New file.
98         * m4/ilogbl.m4: New file.
99         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
101         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
102         Split sed invocation, to avoid the limit of 100 substitutions of
103         HP-UX 'sed'.
104         * modules/ilogbl: New file.
105         * tests/test-math-c++.cc: Check the declaration of ilogbl.
106         * doc/posix-functions/ilogbl.texi: Mention the new module.
107
108 2012-04-03  Bruno Haible  <bruno@clisp.org>
109
110         Tests for module 'ilogbf'.
111         * modules/ilogbf-tests: New file.
112         * tests/test-ilogbf.c: New file.
113
114         New module 'ilogbf'.
115         * lib/math.in.h (ilogbf): New declaration.
116         * lib/ilogbf.c: New file.
117         * m4/ilogbf.m4: New file.
118         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
120         REPLACE_ILOGBF.
121         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
122         REPLACE_ILOGBF.
123         * modules/ilogbf: New file.
124         * tests/test-math-c++.cc: Check the declaration of ilogbf.
125         * doc/posix-functions/ilogbf.texi: Mention the new module.
126
127 2012-04-03  Bruno Haible  <bruno@clisp.org>
128
129         Tests for module 'ilogb'.
130         * modules/ilogb-tests: New file.
131         * tests/test-ilogb.c: New file.
132         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
133         tests/test-logb-ieee.h.
134
135         New module 'ilogb'.
136         * lib/math.in.h (ilogb): New declaration.
137         * lib/ilogb.c: New file.
138         * m4/ilogb.m4: New file.
139         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
141         REPLACE_ILOGB.
142         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
143         REPLACE_ILOGB.
144         * modules/ilogb: New file.
145         * tests/test-math-c++.cc: Check the declaration of ilogb.
146         * doc/posix-functions/ilogb.texi: Mention the new module.
147
148 2012-04-03  Bruno Haible  <bruno@clisp.org>
149
150         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
151         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
152         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
153         (main): Check their values.
154         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
155         problem.
156
157 2012-04-03  Bruno Haible  <bruno@clisp.org>
158
159         Tests for module 'logbl-ieee'.
160         * modules/logbl-ieee-tests: New file.
161         * tests/test-logbl-ieee.c: New file.
162
163         New module 'logbl-ieee'.
164         * modules/logbl-ieee: New file.
165
166         Tests for module 'logb-ieee'.
167         * modules/logb-ieee-tests: New file.
168         * tests/test-logb-ieee.c: New file.
169
170         New module 'logb-ieee'.
171         * modules/logb-ieee: New file.
172
173         Tests for module 'logbf-ieee'.
174         * modules/logbf-ieee-tests: New file.
175         * tests/test-logbf-ieee.c: New file.
176         * tests/test-logb-ieee.h: New file.
177
178         New module 'logbf-ieee'.
179         * modules/logbf-ieee: New file.
180
181 2012-04-03  Bruno Haible  <bruno@clisp.org>
182
183         Tests for module 'logbl'.
184         * modules/logbl-tests: New file.
185         * tests/test-logbl.c: New file.
186
187         New module 'logbl'.
188         * lib/math.in.h (logbl): New declaration.
189         * lib/logbl.c: New file.
190         * m4/logbl.m4: New file.
191         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
193         REPLACE_LOGBL.
194         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
195         REPLACE_LOGBL.
196         * modules/logbl: New file.
197         * tests/test-math-c++.cc: Check the declaration of logbl.
198         * doc/posix-functions/logbl.texi: Mention the new module.
199
200 2012-04-02  Bruno Haible  <bruno@clisp.org>
201
202         Tests for module 'logbf'.
203         * modules/logbf-tests: New file.
204         * tests/test-logbf.c: New file.
205
206         New module 'logbf'.
207         * lib/math.in.h (logbf): New declaration.
208         * lib/logbf.c: New file.
209         * m4/logbf.m4: New file.
210         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
212         REPLACE_LOGBF.
213         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
214         REPLACE_LOGBF.
215         * modules/logbf: New file.
216         * tests/test-math-c++.cc: Check the declaration of logbf.
217         * doc/posix-functions/logbf.texi: Mention the new module.
218
219 2012-04-02  Bruno Haible  <bruno@clisp.org>
220
221         logb tests: More tests.
222         * tests/test-logb.h: New file, based on tests/test-logb.c and
223         tests/test-frexp.h.
224         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
225         (main): Just invoke test_function.
226         * modules/logb-tests (Files): Add tests/test-logb.h,
227         tests/minus-zero.h, tests/randomd.c.
228         (Makefile.am): Add randomd.c to test_logb_SOURCES.
229
230         logb: Provide replacement and workarounds.
231         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
232         is 1.
233         * lib/logb.c: New file.
234         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
235         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
237         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
238         * modules/logb (Files): Add lib/logb.c.
239         (Depends-on): Add isfinite, frexp, isnand.
240         (configure.ac): Compile the replacement code logb.c if needed.
241         * tests/test-math-c++.cc: Check the declaration of logb.
242         * doc/posix-functions/logb.texi: Mention the replacement and the bug
243         with subnormal numbers.
244
245 2012-04-02  Bruno Haible  <bruno@clisp.org>
246
247         log10* tests: Speed up.
248         * tests/test-log10.h (test_function): Reduce amount of random numbers
249         to test.
250
251 2012-04-01  Bruno Haible  <bruno@clisp.org>
252
253         logf-ieee: Fix test whether logf works.
254         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
255
256 2012-04-01  Bruno Haible  <bruno@clisp.org>
257
258         log10l: Work around log10l-ieee test failure on IRIX 6.5.
259         * lib/log10l.c: Include <float.h>
260         (log10l): On IRIX, normalize the +Infinity value.
261         * modules/log10l (Depends-on): Add 'float'.
262         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
263         +Infinity.
264
265         log10f-ieee: Work around test failure on NetBSD 5.1.
266         * m4/log10f-ieee.m4: New file.
267         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
268         test whether log10f works with a negative argument. Replace it if not.
269         * lib/log10f.c (log10f): For negative arguments, return NaN.
270         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
271         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
272         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
273
274         log10f-ieee: Work around test failure on Solaris 9.
275         * modules/log10f-ieee (Depends-on): Add log10-ieee.
276         (configure.ac): Require gl_FUNC_LOG10F.
277
278         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
279         * m4/log10-ieee.m4: New file.
280         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
281         whether log10 works with a negative argument. Replace it if not.
282         * lib/log10.c (log10): For negative arguments, return NaN.
283         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
284         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
285         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
286
287         Tests for module 'log10l-ieee'.
288         * modules/log10l-ieee-tests: New file.
289         * tests/test-log10l-ieee.c: New file.
290
291         New module 'log10l-ieee'.
292         * modules/log10l-ieee: New file.
293
294         Tests for module 'log10-ieee'.
295         * modules/log10-ieee-tests: New file.
296         * tests/test-log10-ieee.c: New file.
297
298         New module 'log10-ieee'.
299         * modules/log10-ieee: New file.
300
301         Tests for module 'log10f-ieee'.
302         * modules/log10f-ieee-tests: New file.
303         * tests/test-log10f-ieee.c: New file.
304         * tests/test-log10-ieee.h: New file.
305
306         New module 'log10f-ieee'.
307         * modules/log10f-ieee: New file.
308
309 2012-04-01  Bruno Haible  <bruno@clisp.org>
310
311         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
312         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
313         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
314         workaround.
315         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
316         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
318         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
319         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
320         (Depends-on): Update conditions.
321         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
322         IRIX 6.5, OSF/1 5.1 problems.
323
324 2012-04-01  Bruno Haible  <bruno@clisp.org>
325
326         log10f: Work around OSF/1 5.1 bug.
327         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
328         * lib/log10f.c (log10f): If logf exists, use it and provide just the
329         workaround.
330         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
331         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
333         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
334         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
335         (Depends-on): Update conditions.
336         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
337
338 2012-04-01  Bruno Haible  <bruno@clisp.org>
339
340         log10: Work around OSF/1 5.1 bug.
341         * lib/math.in.h (log10): New declaration.
342         * lib/log10.c: New file.
343         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
344         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
345         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
347         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
348         * modules/log10 (Files): Add lib/log10.c.
349         (Depends-on): Add math.
350         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
351         * tests/test-math-c++.cc: Check the declaration of log10.
352         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
353
354 2012-03-31  Bruno Haible  <bruno@clisp.org>
355
356         log10l tests: More tests.
357         * modules/log10l-tests (Files): Add tests/test-log10l.h,
358         tests/minus-zero.h, tests/randoml.c.
359         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
360         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
361         (main): Invoke test_function.
362
363         log10f tests: More tests.
364         * modules/log10f-tests (Files): Add tests/test-log10.h,
365         tests/minus-zero.h, tests/randomf.c.
366         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
367         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
368         (main): Invoke test_function.
369
370         log10 tests: More tests.
371         * tests/test-log10.h: New file.
372         * modules/log10-tests (Files): Add tests/test-log10.h,
373         tests/minus-zero.h, tests/randomd.c.
374         (Makefile.am): Add randomd.c to test_log10_SOURCES.
375         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
376         (main): Invoke test_function.
377
378 2012-03-31  Simon Josefsson  <simon@josefsson.org>
379
380         fflush: Fix syntax error.
381         * lib/fflush.c: Include unused-parameter.h, needed for
382         _GL_UNUSED_PARAMETER.
383         * modules/fflush (Depends-on): Add snippet/unused-parameter.
384
385 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
386
387         regex: pacify GCC when compiling GRUB
388         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
389         a diagnostic.  Reported by Vladimir Serbinenko in
390         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
391
392 2012-03-29  Eric Blake  <eblake@redhat.com>
393
394         stdio: don't assume gets any more
395         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
396         support.
397         * modules/stdio (Makefile.am): Likewise.
398         * lib/stdio-read.c (gets): Likewise.
399         * tests/test-stdio-c++.cc: Likewise.
400         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
401         * lib/stdio.in.h (gets): Make warning occur in more places.
402         * doc/posix-functions/gets.texi (gets): Update documentation.
403         Reported by Christer Solskogen.
404
405         maint.mk: fix syntax checks without exclusions
406         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
407         Reported by Daniel P. Berrange.
408
409         strerror_r: avoid compiler warning
410         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
411         level.
412
413         fflush: avoid compiler warning
414         * lib/fflush.c (update_fpos_cache): Mark variables that are
415         potentially unused.
416
417 2012-03-25  Bruno Haible  <bruno@clisp.org>
418
419         Tests for module 'localeconv'.
420         * modules/localeconv-tests: New file.
421         * tests/test-localeconv.c: New file.
422
423         New module 'localeconv'.
424         * lib/locale.in.h (localeconv): New declaration.
425         * lib/localeconv.c: New file.
426         * m4/localeconv.m4: New file.
427         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
428         REPLACE_LOCALECONV.
429         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
430         REPLACE_LOCALECONV.
431         * modules/localeconv: New file.
432         * modules/nl_langinfo (Depends-on): Add localeconv.
433         * modules/human (Depends-on): Likewise.
434         * doc/posix-functions/localeconv.texi: Mention the new module.
435
436 2012-03-25  Bruno Haible  <bruno@clisp.org>
437
438         locale: Provide a complete 'struct lconv'.
439         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
440         'struct lconv' does not contain int_p_cs_precedes.
441         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
442         * doc/posix-headers/locale.texi: Update.
443
444         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
445         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
446         * doc/posix-headers/locale.texi: Update.
447
448         locale: Provide a working 'struct lconv'.
449         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
450         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
451         'struct lconv' does not even contain decimal_point.
452         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
453         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
454         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
455         * doc/posix-headers/locale.texi: Mention the problems with
456         'struct lconv'.
457         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
458
459 2012-03-24  Bruno Haible  <bruno@clisp.org>
460
461         Enable common subexpression optimization in GCC.
462         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
463         macros.
464         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
465         GCC attribute 'const'.
466         (uc_locale_language): Declare with GCC attribute 'pure'.
467         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
468         with GCC attribute 'const'.
469         * lib/unictype.in.h (uc_is_general_category_withtable,
470         uc_combining_class, uc_combining_class_name,
471         uc_combining_class_long_name, uc_bidi_class_name,
472         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
473         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
474         uc_decimal_value, uc_digit_value, uc_numeric_value,
475         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
476         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
477         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
478         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
479         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
480         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
481         Declare with GCC attribute 'const'.
482         (uc_general_category_name, uc_general_category_long_name,
483         uc_general_category_byname, uc_general_category,
484         uc_is_general_category, uc_combining_class_byname,
485         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
486         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
487         Declare with GCC attribute 'pure'.
488         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
489         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
490         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
491         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
492         with GCC attribute 'pure'.
493         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
494         'const'.
495         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
496         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
497         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
498         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
499         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
500         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
501         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
502         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
503         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
504         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
505         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
506         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
507         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
508         GCC attribute 'pure'.
509         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
510         'const'.
511         * lib/uniwidth.in.h (uc_width): Simplify declaration.
512         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
513         u32_strwidth): Declare with GCC attribute 'pure'.
514
515         Enable common subexpression optimization in GCC.
516         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
517         (alphasort): Declare with GCC attribute 'pure'.
518         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
519         (atoll): Declare with GCC attribute 'pure'.
520         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
521         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
522         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
523         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
524         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
525         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
526         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
527
528 2012-03-24  Bruno Haible  <bruno@clisp.org>
529
530         gnulib-tool: Avoid unintended error output from 'cmp'.
531         * gnulib-tool (func_add_file, func_update_file, func_import): Use
532         "cmp -s", not "cmp > /dev/null".
533
534 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
535
536         gnulib-tool: fix imprecise comments w.r.t. an automake bug
537
538         It's not just Automake versions < 1.9b that creates an empty
539         pkgdatadir at installation time if pkgdata_DATA is specified
540         to empty; modern automake versions do this as well, at least
541         until automake 1.11.4 (not yet released at the moment of writing,
542         but soon to appear).  That behaviour was generally considered a
543         feature rather than a bug, at least until this discussion:
544         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
545
546         See also automake bugs #10997 and #11030.
547
548         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
549         reference to relevant automake bug numbers.
550         (func_emit_tests_Makefile_am): Likewise.
551
552 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
553
554         announce-gen: use Digest::SHA when possible
555         * build-aux/announce-gen: Use Digest::SHA when possible, falling
556         back to Digest::SHA1 if necessary.
557
558 2012-03-20  Jim Meyering  <meyering@redhat.com>
559
560         tests: avoid gcc warnings about argv vs. const initializers
561         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
562         warnings about discarding 'const' qualifier from pointer target type.
563         * tests/test-posix_spawn2.c (main): Likewise.
564
565 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
566
567         README-release: simplify slightly
568         * top/README-release: Run "git checkout master" only once.
569
570 2012-03-15  Mark Wielaard  <mark@klomp.org>
571
572         git-merge-changelog: add specific example on how to use with hg.
573         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
574
575 2012-03-18  Mark Wielaard  <mark@klomp.org>
576
577         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
578
579 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
580
581         git-version-gen: don't let "prefix" envvar cause trouble
582         * build-aux/git-version-gen (prefix): Initialize properly,
583         so as not to use a value specified via the environment.
584         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
585
586 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
587
588         regex: diagnose too-large repeat counts in EREs
589         Previously, the code did not diagnose the too-large repeat count
590         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
591         as if it were 'b\{1000000000}', which is unexpected.
592         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
593         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
594         is a reasonable one for this problem.  Another option would be to
595         create a new REG_OVERFLOW error for repeat counts that are too large.
596         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
597         count is too large, so that the caller can distinguish the two cases.
598         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
599         "Too large" return code, and that repeat counts are one example of this.
600
601 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
602
603         doc: some glibc x32 integer width issues
604         * doc/posix-headers/sys_types.texi (sys/types.h):
605         * doc/posix-headers/time.texi (time.h):
606         Mention that glibc x32 does not conform to POSIX in a couple of
607         areas related to integer widths.
608
609 2012-03-15  Bruno Haible  <bruno@clisp.org>
610
611         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
612         * lib/fma.c (VOLATILE): New macro.
613         (FUNC): Use it to work around a GCC compiler bug.
614
615 2012-03-13  Bruno Haible  <bruno@clisp.org>
616
617         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
618         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
619         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
620         REPLACE_HYPOTL to 1.
621         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
622
623 2012-03-13  Bruno Haible  <bruno@clisp.org>
624
625         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
626         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
627         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
628         REPLACE_REMAINDERL to 1.
629         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
630         bug.
631
632 2012-03-13  Bruno Haible  <bruno@clisp.org>
633
634         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
635         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
636         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
637         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
638         too big rounding errors.
639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
640         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
641         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
642         (Depends-on): Update conditions.
643         * tests/test-sqrtl.c (my_ldexpl): New function.
644         (main): Add test of a particular value.
645         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
646
647 2012-03-13  Pádraig Brady  <P@draigBrady.com>
648
649         doc: Update timer_* platform portability notes.
650         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
651         that always return ENOSYS.
652         * doc/posix-functions/timer_delete.texi: Likewise.
653         * doc/posix-functions/timer_gettime.texi: Likewise.
654         * doc/posix-functions/timer_settime.texi: Likewise.
655
656 2012-03-13  Bruno Haible  <bruno@clisp.org>
657
658         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
659         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
660         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
661         REPLACE_CBRTL to 1.
662         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
663
664 2012-03-13  Bruno Haible  <bruno@clisp.org>
665
666         remainderl: Avoid compilation error on AIX >= 5.2.
667         * lib/math.in.h (remainderl): Undefine macro from the system header.
668
669 2012-03-13  Bruno Haible  <bruno@clisp.org>
670
671         Avoid compilation errors with MSVC option -fp:strict.
672         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
673         * lib/cbrtf.c: Likewise.
674         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
675
676 2012-03-12  Bruno Haible  <bruno@clisp.org>
677
678         uninorm: Don't crash in out-of-memory conditions.
679         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
680         gracefully.
681         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
682         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
683
684 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
685
686         quote: fix syntax-check
687         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
688         also exports quote_quoting_options.
689
690 2012-03-12  Simon Josefsson  <simon@josefsson.org>
691
692         Collapse list of copyright years to ranges.  See
693         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
694         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
695         build-aux/csharpexec.sh.in, build-aux/gnupload,
696         build-aux/install-reloc, build-aux/javacomp.sh.in,
697         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
698         build-aux/move-if-change, build-aux/reloc-ldflags,
699         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
700
701 2012-03-11  Bruno Haible  <bruno@clisp.org>
702
703         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
704         * m4/log2f-ieee.m4: New file.
705         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
706         whether log2f works with a minus zero argument. Replace it if not.
707         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
708         (Depends-on): Add log2-ieee.
709         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
710         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
711
712         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
713         * m4/log2-ieee.m4: New file.
714         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
715         whether log2 works with a minus zero argument. Replace it if not.
716         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
717         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
718         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
719
720         Tests for module 'log2l-ieee'.
721         * modules/log2l-ieee-tests: New file.
722         * tests/test-log2l-ieee.c: New file.
723
724         New module 'log2l-ieee'.
725         * modules/log2l-ieee: New file.
726
727         Tests for module 'log2-ieee'.
728         * modules/log2-ieee-tests: New file.
729         * tests/test-log2-ieee.c: New file.
730
731         New module 'log2-ieee'.
732         * modules/log2-ieee: New file.
733
734         Tests for module 'log2f-ieee'.
735         * modules/log2f-ieee-tests: New file.
736         * tests/test-log2f-ieee.c: New file.
737         * tests/test-log2-ieee.h: New file.
738
739         New module 'log2f-ieee'.
740         * modules/log2f-ieee: New file.
741
742 2012-03-11  Bruno Haible  <bruno@clisp.org>
743
744         Tests for module 'log2l'.
745         * modules/log2l-tests: New file.
746         * tests/test-log2l.c: New file.
747
748         New module 'log2l'.
749         * lib/math.in.h (log2l): New declaration.
750         * lib/log2l.c: New file.
751         * m4/log2l.m4: New file.
752         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
754         REPLACE_LOG2L.
755         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
756         REPLACE_LOG2L.
757         * modules/log2l: New file.
758         * tests/test-math-c++.cc: Check the declaration of log2l.
759         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
760         and OSF/1 problems.
761
762 2012-03-11  Bruno Haible  <bruno@clisp.org>
763
764         Tests for module 'log2f'.
765         * modules/log2f-tests: New file.
766         * tests/test-log2f.c: New file.
767
768         New module 'log2f'.
769         * lib/math.in.h (log2f): New declaration.
770         * lib/log2f.c: New file.
771         * m4/log2f.m4: New file.
772         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
774         REPLACE_LOG2F.
775         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
776         REPLACE_LOG2F.
777         * modules/log2f: New file.
778         * tests/test-math-c++.cc: Check the declaration of log2f.
779         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
780         and OSF/1 and Cygwin problems.
781
782 2012-03-11  Bruno Haible  <bruno@clisp.org>
783
784         Tests for module 'log2'.
785         * modules/log2-tests: New file.
786         * tests/test-log2.c: New file.
787         * tests/test-log2.h: New file.
788
789         New module 'log2'.
790         * lib/math.in.h (log2): New declaration.
791         * lib/log2.c: New file.
792         * m4/log2.m4: New file.
793         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
795         REPLACE_LOG2.
796         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
797         REPLACE_LOG2.
798         * modules/log2: New file.
799         * tests/test-math-c++.cc: Check the declaration of log2.
800         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
801         and OSF/1 and Cygwin problems.
802
803 2012-03-11  Bruno Haible  <bruno@clisp.org>
804
805         exp2* tests: More tests.
806         * tests/test-exp2.h (test_function): Test all integral arguments that
807         don't need to overflow or denormalized numbers.
808         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
809         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
810         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
811
812 2012-03-10  Bruno Haible  <bruno@clisp.org>
813
814         log1pl-ieee: Work around test failure on AIX 7.1.
815         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
816
817         log1pl-ieee: Work around test failure on IRIX 6.5.
818         * m4/log1pl-ieee.m4: New file.
819         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
820         test whether log1pl works with a minus zero argument. Replace it if
821         not.
822         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
824         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
825         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
826         (Depends-on): Update conditions.
827         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
828         m4/signbit.m4.
829         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
830         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
831
832         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
833         * m4/log1pf-ieee.m4: New file.
834         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
835         test whether log1pf works with a minus zero argument. Replace it if
836         not.
837         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
838         m4/signbit.m4.
839         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
840         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
841
842         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
843         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
844         (configure.ac): Require gl_FUNC_LOG1PF.
845
846         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
847         * m4/log1p-ieee.m4: New file.
848         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
849         whether log1p works with a minus zero argument. Replace it if not.
850         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
852         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
853         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
854         (Depends-on): Update conditions.
855         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
856         m4/signbit.m4.
857         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
858         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
859
860         Tests for module 'log1pl-ieee'.
861         * modules/log1pl-ieee-tests: New file.
862         * tests/test-log1pl-ieee.c: New file.
863
864         New module 'log1pl-ieee'.
865         * modules/log1pl-ieee: New file.
866
867         Tests for module 'log1p-ieee'.
868         * modules/log1p-ieee-tests: New file.
869         * tests/test-log1p-ieee.c: New file.
870
871         New module 'log1p-ieee'.
872         * modules/log1p-ieee: New file.
873
874         Tests for module 'log1pf-ieee'.
875         * modules/log1pf-ieee-tests: New file.
876         * tests/test-log1pf-ieee.c: New file.
877         * tests/test-log1p-ieee.h: New file.
878
879         New module 'log1pf-ieee'.
880         * modules/log1pf-ieee: New file.
881
882 2012-03-10  Bruno Haible  <bruno@clisp.org>
883
884         Tests for module 'log1pl'.
885         * modules/log1pl-tests: New file.
886         * tests/test-log1pl.c: New file.
887
888         New module 'log1pl'.
889         * lib/math.in.h (log1pl): New declaration.
890         * lib/log1pl.c: New file.
891         * m4/log1pl.m4: New file.
892         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
894         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
895         * modules/log1pl: New file.
896         * tests/test-math-c++.cc: Check the declaration of log1pl.
897         * doc/posix-functions/log1pl.texi: Mention the new module.
898
899 2012-03-10  Bruno Haible  <bruno@clisp.org>
900
901         Tests for module 'log1pf'.
902         * modules/log1pf-tests: New file.
903         * tests/test-log1pf.c: New file.
904
905         New module 'log1pf'.
906         * lib/math.in.h (log1pf): New declaration.
907         * lib/log1pf.c: New file.
908         * m4/log1pf.m4: New file.
909         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
911         REPLACE_LOG1PF.
912         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
913         REPLACE_LOG1PF.
914         * modules/log1pf: New file.
915         * tests/test-math-c++.cc: Check the declaration of log1pf.
916         * doc/posix-functions/log1pf.texi: Mention the new module.
917
918 2012-03-10  Bruno Haible  <bruno@clisp.org>
919
920         log1p tests: More tests.
921         * tests/test-log1p.h: New file.
922         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
923         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
924         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
925         (main): Invoke test_function.
926
927         log1p: Provide replacement for Minix and MSVC.
928         * lib/math.in.h (log1p): New declaration.
929         * lib/log1p.c: New file.
930         * m4/log1p.m4: New file.
931         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
933         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
934         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
935         (Depends-on): Add math, isnand, log, round.
936         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
937         HAVE_LOG1P is 0.
938         * tests/test-math-c++.cc: Check the declaration of log1p.
939         * doc/posix-functions/log1p.texi: Mention the replacement.
940
941 2012-03-10  Bruno Haible  <bruno@clisp.org>
942
943         math tests: Small simplification.
944         * tests/test-exp.h (test_function): Use the same err_bound for
945         'double' on platforms with sizeof (long double) == sizeof (double)
946         than on platforms with sizeof (long double) > sizeof (double).
947         * tests/test-exp2.h (test_function): Likewise.
948         * tests/test-expm1.h (test_function): Likewise.
949         * tests/test-log.h (test_function): Likewise.
950
951 2012-03-10  Bruno Haible  <bruno@clisp.org>
952
953         Fix some comments.
954         * lib/expl.c: Fix an ambiguous comment.
955         * lib/expm1.c: Likewise.
956         * lib/expm1l.c: Likewise.
957         * lib/exp2.c: Likewise.
958         * lib/exp2l.c: Likewise.
959
960 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
961
962         regex: allow inclusion of <regex.h> before <limits.h>
963         Without this patch, portable programs had to include <limits.h> before
964         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
965         I ran into this problem with a test version of GNU grep on Solaris 8.
966         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
967         This is done conditionally so that this change can be merged
968         back to glibc.
969         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
970         using the included regex.
971
972         fts: depend on fdopendir
973         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
974         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
975         problem was introduced when fdopendir was split out.
976
977 2012-03-10  Bruno Haible  <bruno@clisp.org>
978
979         Remove unused variables.
980         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
981         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
982
983 2012-03-10  Bruno Haible  <bruno@clisp.org>
984
985         isnanf-nolibm: Fix last commit.
986         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
987
988         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
989         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
990
991 2012-03-10  Bruno Haible  <bruno@clisp.org>
992
993         logf-ieee: Work around test failure on NetBSD 5.1.
994         * m4/logf-ieee.m4: New file.
995         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
996         whether logf works with a negative argument. Replace it if not.
997         * lib/logf.c (logf): For negative arguments, return NaN.
998         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
999         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1000         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1001
1002         logf-ieee: Work around test failure on Solaris 9.
1003         * modules/logf-ieee (Depends-on): Add log-ieee.
1004         (configure.ac): Require gl_FUNC_LOGF.
1005
1006         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1007         * m4/log-ieee.m4: New file.
1008         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1009         log works with a negative argument. Replace it if not.
1010         * lib/log.c (log): For negative arguments, return NaN.
1011         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1012         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1013         * doc/posix-functions/log.texi: Mention the log-ieee module.
1014
1015         Tests for module 'logl-ieee'.
1016         * modules/logl-ieee-tests: New file.
1017         * tests/test-logl-ieee.c: New file.
1018
1019         New module 'logl-ieee'.
1020         * modules/logl-ieee: New file.
1021
1022         Tests for module 'log-ieee'.
1023         * modules/log-ieee-tests: New file.
1024         * tests/test-log-ieee.c: New file.
1025
1026         New module 'log-ieee'.
1027         * modules/log-ieee: New file.
1028
1029         Tests for module 'logf-ieee'.
1030         * modules/logf-ieee-tests: New file.
1031         * tests/test-logf-ieee.c: New file.
1032         * tests/test-log-ieee.h: New file.
1033
1034         New module 'logf-ieee'.
1035         * modules/logf-ieee: New file.
1036
1037 2012-03-10  Bruno Haible  <bruno@clisp.org>
1038
1039         log: Fix bug introduced on 2012-03-09.
1040         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1041
1042 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1043
1044         timer-time: link explicitly with pthreads on glibc
1045         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1046         to support static linking, when newer glibc is
1047         detected, as that contains pthread emulation of
1048         POSIX timer functions where required.
1049         * modules/timer-time: Depend on threadlib to
1050         pull in the appropriate library to link.
1051
1052 2012-03-10  Bruno Haible  <bruno@clisp.org>
1053
1054         log* tests: More tests.
1055         * tests/test-log.h: New file.
1056         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1057         (main): Invoke test_function.
1058         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1059         (main): Invoke test_function.
1060         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1061         (main): Invoke test_function.
1062         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1063         tests/randomd.c.
1064         (Makefile.am): Add randomd.c to test_log_SOURCES.
1065         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1066         tests/randomf.c.
1067         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1068         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1069         tests/randoml.c.
1070         (Depends-on): Add 'float'.
1071         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1072
1073 2012-03-09  Bruno Haible  <bruno@clisp.org>
1074
1075         logl: Work around OSF/1 5.1 bug.
1076         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1077         * lib/logl.c (logl): If logl exists, use it and provide just the
1078         workaround.
1079         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1080         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1082         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1083         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1084         (Depends-on): Update conditions.
1085         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1086
1087 2012-03-09  Bruno Haible  <bruno@clisp.org>
1088
1089         logf: Work around OSF/1 5.1 bug.
1090         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1091         * lib/logf.c (logf): If logf exists, use it and provide just the
1092         workaround.
1093         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1094         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1096         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1097         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1098         (Depends-on): Update conditions.
1099         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1100
1101 2012-03-09  Bruno Haible  <bruno@clisp.org>
1102
1103         log: Work around OSF/1 5.1 bug.
1104         * lib/math.in.h (log): New declaration.
1105         * lib/log.c: New file.
1106         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1107         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1108         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1110         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1111         * modules/log (Files): Add lib/log.c.
1112         (Depends-on): Add math.
1113         (configure.ac): If REPLACE_LOG is 1, compile an override.
1114         * tests/test-math-c++.cc: Check the declaration of log.
1115         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1116
1117 2012-03-09  Jim Meyering  <meyering@redhat.com>
1118
1119         readtokens.c: adjust wording in a comment
1120         * lib/readtokens.c: Insert omitted "that" in a comment.
1121
1122 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         modechange: add notations +40, 00440, etc.
1125         * lib/modechange.c (mode_compile): Support new notations
1126         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1127
1128 2012-03-08  Bruno Haible  <bruno@clisp.org>
1129
1130         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1131         * m4/exp2l-ieee.m4: New file.
1132         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1133         test whether exp2l works with a NaN argument and with a negative
1134         infinity argument. Replace it if not.
1135         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1137         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1138         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1139         (Depends-on): Update conditions.
1140         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1141         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1142         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1143
1144         Tests for module 'exp2l-ieee'.
1145         * modules/exp2l-ieee-tests: New file.
1146         * tests/test-exp2l-ieee.c: New file.
1147
1148         New module 'exp2l-ieee'.
1149         * modules/exp2l-ieee: New file.
1150
1151         Tests for module 'exp2-ieee'.
1152         * modules/exp2-ieee-tests: New file.
1153         * tests/test-exp2-ieee.c: New file.
1154
1155         New module 'exp2-ieee'.
1156         * modules/exp2-ieee: New file.
1157
1158         Tests for module 'exp2f-ieee'.
1159         * modules/exp2f-ieee-tests: New file.
1160         * tests/test-exp2f-ieee.c: New file.
1161         * tests/test-exp2-ieee.h: New file.
1162
1163         New module 'exp2f-ieee'.
1164         * modules/exp2f-ieee: New file.
1165
1166 2012-03-08  Bruno Haible  <bruno@clisp.org>
1167
1168         Tests for module 'exp2l'.
1169         * modules/exp2l-tests: New file.
1170         * tests/test-exp2l.c: New file.
1171
1172         New module 'exp2l'.
1173         * lib/math.in.h (exp2l): New declaration.
1174         * lib/exp2l.c: New file.
1175         * lib/expl-table.c: New file, extracted from lib/expl.c.
1176         * lib/expl.c (gl_expl_table): New declaration.
1177         (expl): Remove expl_table. Update reference.
1178         * m4/exp2l.m4: New file.
1179         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1181         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1182         * modules/exp2l: New file.
1183         * modules/expl (Files): Add lib/expl-table.c.
1184         (configure.ac): Compile also expl-table.c.
1185         * tests/test-math-c++.cc: Check the declaration of exp2l.
1186         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1187         problem.
1188
1189 2012-03-08  Bruno Haible  <bruno@clisp.org>
1190
1191         Tests for module 'exp2f'.
1192         * modules/exp2f-tests: New file.
1193         * tests/test-exp2f.c: New file.
1194
1195         New module 'exp2f'.
1196         * lib/math.in.h (exp2f): New declaration.
1197         * lib/exp2f.c: New file.
1198         * m4/exp2f.m4: New file.
1199         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1201         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1202         * modules/exp2f: New file.
1203         * tests/test-math-c++.cc: Check the declaration of exp2f.
1204         * doc/posix-functions/exp2f.texi: Mention the new module and the
1205         IRIX problem.
1206
1207 2012-03-08  Bruno Haible  <bruno@clisp.org>
1208
1209         Tests for module 'exp2'.
1210         * modules/exp2-tests: New file.
1211         * tests/test-exp2.c: New file.
1212         * tests/test-exp2.h: New file.
1213
1214         New module 'exp2'.
1215         * lib/math.in.h (exp2): New declaration.
1216         * lib/exp2.c: New file.
1217         * m4/exp2.m4: New file.
1218         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1220         REPLACE_EXP2.
1221         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1222         REPLACE_EXP2.
1223         * modules/exp2: New file.
1224         * tests/test-math-c++.cc: Check the declaration of exp2.
1225         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1226         and OpenBSD problems.
1227
1228 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         savedir: fix comment typo
1231         * lib/savedir.c (savedirstream): Fix typo in comment.
1232
1233 2012-03-08  Bruno Haible  <bruno@clisp.org>
1234
1235         test-readtokens.c: use const; remove unwarranted cast
1236         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1237
1238 2012-03-08  Bruno Haible  <bruno@clisp.org>
1239
1240         fmal: Avoid compilation error on AIX.
1241         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1242         AIX 5.2..7.1.
1243
1244 2012-03-08  Bruno Haible  <bruno@clisp.org>
1245
1246         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1247         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1248         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1249         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1250         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1251         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1252         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1253
1254 2012-03-08  Bruno Haible  <bruno@clisp.org>
1255
1256         remainderf: Override buggy system function on IRIX 6.5.
1257         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1258         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1259         when it exists.
1260         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1261
1262 2012-03-08  Jim Meyering  <meyering@redhat.com>
1263
1264         test-readtokens.c: avoid const-related compilation warnings
1265         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1266
1267 2012-03-07  Jim Meyering  <meyering@redhat.com>
1268             Bruno Haible  <bruno@clisp.org>
1269
1270         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1271         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1272         tests/randomd.c.
1273         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1274         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1275         tests/randoml.c.
1276         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1277
1278 2012-03-07  Bruno Haible  <bruno@clisp.org>
1279
1280         expm1l: Avoid compilation error on AIX.
1281         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1282         AIX 5.2..7.1.
1283
1284 2012-03-07  Bruno Haible  <bruno@clisp.org>
1285
1286         expm1l: Don't override undeclared system function on IRIX 6.5.
1287         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1288         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1289         it exists. Set HAVE_DECL_EXPM1L.
1290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1291         HAVE_EXPM1L.
1292         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1293         HAVE_EXPM1L.
1294         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1295
1296 2012-03-07  Bruno Haible  <bruno@clisp.org>
1297
1298         remainderl: Don't override undeclared system function on IRIX 6.5.
1299         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1300         HAVE_REMAINDERL.
1301         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1302         declared when it exists. Set HAVE_DECL_REMAINDERL.
1303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1304         not HAVE_REMAINDERL.
1305         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1306         HAVE_REMAINDERL.
1307         * doc/posix-functions/remainderl.texi: Mention missing declaration
1308         problem.
1309
1310 2012-03-07  Bruno Haible  <bruno@clisp.org>
1311
1312         rintf: Don't override undeclared system function on IRIX 6.5.
1313         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1314         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1315         exists. Set HAVE_DECL_RINTF.
1316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1317         HAVE_RINTF.
1318         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1319         HAVE_RINTF.
1320         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1321
1322 2012-03-07  Bruno Haible  <bruno@clisp.org>
1323
1324         roundl: Avoid compilation error on AIX.
1325         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1326         AIX 5.2..7.1.
1327
1328 2012-03-07  Bruno Haible  <bruno@clisp.org>
1329
1330         roundl: Don't override undeclared system function on IRIX 6.5.
1331         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1332         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1333         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1334         * modules/roundl (configure.ac): For replacement code, test
1335         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1336         (Depends-on): Update conditions.
1337         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1338
1339 2012-03-07  Bruno Haible  <bruno@clisp.org>
1340
1341         roundf: Don't override undeclared system function on IRIX 6.5.
1342         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1343         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1344         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1345         * modules/roundf (configure.ac): For replacement code, test
1346         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1347         (Depends-on): Update conditions.
1348         * modules/roundf-ieee (Depends-on): Update conditions.
1349         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1350
1351 2012-03-07  Bruno Haible  <bruno@clisp.org>
1352
1353         round: Don't override undeclared system function on IRIX 6.5.
1354         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1355         argument.
1356         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1357         also when it is not declared. Set HAVE_ROUND. For replacement code,
1358         test HAVE_ROUND, not HAVE_DECL_ROUND.
1359         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1360         not HAVE_DECL_ROUND.
1361         (Depends-on): Update conditions.
1362         * modules/round-ieee (Depends-on): Update conditions.
1363         * doc/posix-functions/round.texi: Mention the IRIX problem.
1364
1365 2012-03-07  Bruno Haible  <bruno@clisp.org>
1366
1367         copysignf: Don't override undeclared system function on IRIX 6.5.
1368         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1369         HAVE_COPYSIGNF.
1370         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1371         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1373         not HAVE_COPYSIGNF.
1374         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1375         HAVE_COPYSIGNF.
1376         * doc/posix-functions/copysignf.texi: Mention missing declaration
1377         problem.
1378
1379 2012-03-07  Jim Meyering  <meyering@redhat.com>
1380
1381         readtokens: add tests
1382         * modules/readtokens-tests: New file.
1383         * tests/test-readtokens.c: New file.
1384
1385 2012-03-07  Jim Meyering  <meyering@redhat.com>
1386
1387         quotearg: the module must now include quote.h
1388         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1389         So must the module.
1390         * modules/quotearg (Files): Add quote.h.
1391
1392 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1393
1394         readtokens: avoid core dumps with unusual calling patterns
1395         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1396         * lib/readtokens.c: Include limits.h.
1397         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1398         (readtoken): Don't cache the delimiters; the cache code was buggy
1399         if !delim && saved_delim, or if the new n_delim differs from the old.
1400         Also, it wasn't thread-safe.
1401
1402 2012-03-07  Bruno Haible  <bruno@clisp.org>
1403
1404         quote: Adhere to common module description layout.
1405         * modules/quote (Makefile.am): Add back empty section.
1406
1407 2012-03-06  Akim Demaille  <demaille@gostai.com>
1408
1409         quote: fuse into quotearg
1410         This patch is made for the benefit of Bison.
1411         quote does not leave the choice of the quoting style to the user.
1412         quoting_style provides poor customizability, yet quoting_options,
1413         which is very rich, is hidden inside quotearg.c.  So in order to
1414         allow quote customization, move its implementation to quotearg.c.
1415         * lib/quote.c: Remove.
1416         * modules/quote: Adjust.
1417         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1418         warning: provide all the members of literal structs.
1419         (quote_quoting_options): New.
1420         (quote, quote_n): Import implementation from quote.c.
1421         * lib/quote.h: Import the comments from quote.c.
1422         (quote_quoting_options): New.
1423
1424 2012-03-06  Bruno Haible  <bruno@clisp.org>
1425
1426         Tests for module 'expm1l-ieee'.
1427         * modules/expm1l-ieee-tests: New file.
1428         * tests/test-expm1l-ieee.c: New file.
1429
1430         New module 'expm1l-ieee'.
1431         * modules/expm1l-ieee: New file.
1432
1433         Tests for module 'expm1f-ieee'.
1434         * modules/expm1f-ieee-tests: New file.
1435         * tests/test-expm1f-ieee.c: New file.
1436
1437         New module 'expm1f-ieee'.
1438         * modules/expm1f-ieee: New file.
1439
1440         Tests for module 'expm1-ieee'.
1441         * modules/expm1-ieee-tests: New file.
1442         * tests/test-expm1-ieee.c: New file.
1443         * tests/test-expm1-ieee.h: New file.
1444
1445         New module 'expm1-ieee'.
1446         * modules/expm1-ieee: New file.
1447         * m4/expm1-ieee.m4: New file.
1448         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1449         whether expm1 works with a minus zero argument. Replace it if not.
1450         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1452         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1453         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1454         (Depends-on): Update conditions.
1455         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1456         AIX problem.
1457
1458 2012-03-06  Bruno Haible  <bruno@clisp.org>
1459
1460         Work around expm1f bug on IRIX 6.5.
1461         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1462         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1463         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1464         not work.
1465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1466         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1467         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1468         (Depends-on): Update conditions.
1469         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1470
1471 2012-03-06  Bruno Haible  <bruno@clisp.org>
1472
1473         Tests for module 'expm1l'.
1474         * modules/expm1l-tests: New file.
1475         * tests/test-expm1l.c: New file.
1476
1477         New module 'expm1l'.
1478         * lib/math.in.h (expm1l): New declaration.
1479         * lib/expm1l.c: New file.
1480         * m4/expm1l.m4: New file.
1481         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1483         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1484         * modules/expm1l: New file.
1485         * tests/test-math-c++.cc: Check the declaration of expm1l.
1486         * doc/posix-functions/expm1l.texi: Mention the new module.
1487
1488 2012-03-06  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'expm1f'.
1491         * modules/expm1f-tests: New file.
1492         * tests/test-expm1f.c: New file.
1493
1494         New module 'expm1f'.
1495         * lib/math.in.h (expm1f): New declaration.
1496         * lib/expm1f.c: New file.
1497         * m4/expm1f.m4: New file.
1498         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1500         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1501         * modules/expm1f: New file.
1502         * tests/test-math-c++.cc: Check the declaration of expm1f.
1503         * doc/posix-functions/expm1f.texi: Mention the new module.
1504
1505 2012-03-06  Bruno Haible  <bruno@clisp.org>
1506
1507         Tests for module 'expm1'.
1508         * modules/expm1-tests: New file.
1509         * tests/test-expm1.c: New file.
1510         * tests/test-expm1.h: New file.
1511
1512         New module 'expm1'.
1513         * lib/math.in.h (expm1): New declaration.
1514         * lib/expm1.c: New file.
1515         * m4/expm1.m4: New file.
1516         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1518         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1519         * modules/expm1: New file.
1520         * tests/test-math-c++.cc: Check the declaration of expm1.
1521         * doc/posix-functions/expm1.texi: Mention the new module.
1522
1523 2012-03-06  Bruno Haible  <bruno@clisp.org>
1524
1525         math: Ensure declarations of math functions.
1526         * modules/acosf (Depends-on): Add 'extensions'.
1527         * modules/asinf (Depends-on): Likewise.
1528         * modules/atan2f (Depends-on): Likewise.
1529         * modules/atanf (Depends-on): Likewise.
1530         * modules/cbrt (Depends-on): Likewise.
1531         * modules/cbrtf (Depends-on): Likewise.
1532         * modules/cbrtl (Depends-on): Likewise.
1533         * modules/copysignf (Depends-on): Likewise.
1534         * modules/copysignl (Depends-on): Likewise.
1535         * modules/cosf (Depends-on): Likewise.
1536         * modules/coshf (Depends-on): Likewise.
1537         * modules/expf (Depends-on): Likewise.
1538         * modules/fabsf (Depends-on): Likewise.
1539         * modules/fabsl (Depends-on): Likewise.
1540         * modules/fmaf (Depends-on): Likewise.
1541         * modules/fmal (Depends-on): Likewise.
1542         * modules/fmodf (Depends-on): Likewise.
1543         * modules/fmodl (Depends-on): Likewise.
1544         * modules/frexpf (Depends-on): Likewise.
1545         * modules/frexpl (Depends-on): Likewise.
1546         * modules/hypot (Depends-on): Likewise.
1547         * modules/hypotf (Depends-on): Likewise.
1548         * modules/hypotl (Depends-on): Likewise.
1549         * modules/ldexpf (Depends-on): Likewise.
1550         * modules/ldexpl (Depends-on): Likewise.
1551         * modules/log10f (Depends-on): Likewise.
1552         * modules/log10l (Depends-on): Likewise.
1553         * modules/log1p (Depends-on): Likewise.
1554         * modules/logb (Depends-on): Likewise.
1555         * modules/logf (Depends-on): Likewise.
1556         * modules/modff (Depends-on): Likewise.
1557         * modules/modfl (Depends-on): Likewise.
1558         * modules/powf (Depends-on): Likewise.
1559         * modules/remainderf (Depends-on): Likewise.
1560         * modules/remainderl (Depends-on): Likewise.
1561         * modules/rintf (Depends-on): Likewise.
1562         * modules/rintl (Depends-on): Likewise.
1563         * modules/sinf (Depends-on): Likewise.
1564         * modules/sinhf (Depends-on): Likewise.
1565         * modules/sqrtf (Depends-on): Likewise.
1566         * modules/tanf (Depends-on): Likewise.
1567         * modules/tanhf (Depends-on): Likewise.
1568         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1569         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1570         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1571         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1572         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1573         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1574         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1575         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1576         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1577         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1578         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1579         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1580         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1581         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1582         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1583         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1584         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1585         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1586         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1587         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1588         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1589         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1590         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1591         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1592         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1593         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1594         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1595         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1596         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1597         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1598         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1599         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1600         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1601         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1602         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1603         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1604         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1605         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1606         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1607         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1608         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1609
1610 2012-03-06  Bruno Haible  <bruno@clisp.org>
1611
1612         math: Update module names in warnings.
1613         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1614         tanl): Use specific module name in warn-on-use warning.
1615
1616 2012-03-06  Bruno Haible  <bruno@clisp.org>
1617
1618         expl: Simplify computation.
1619         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1620
1621 2012-03-05  Bruno Haible  <bruno@clisp.org>
1622
1623         exp* tests: More tests.
1624         * tests/test-exp.h: New file.
1625         * tests/test-exp.c: Include <float.h> and test-exp.h.
1626         (main): Invoke test_function.
1627         * tests/test-expf.c: Include <float.h> and test-exp.h.
1628         (main): Invoke test_function.
1629         * tests/test-expl.c: Include <float.h> and test-exp.h.
1630         (main): Invoke test_function.
1631         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1632         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1633         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1634         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1635         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1636         (Depends-on): Add 'float'.
1637         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1638
1639         expl: Fix precision of computed result.
1640         * lib/expl.c: Completely rewritten.
1641         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1642         (Maintainer): Add me.
1643         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1644
1645 2012-03-05  Bruno Haible  <bruno@clisp.org>
1646
1647         cbrt* tests: More tests.
1648         * tests/test-cbrt.h: New file.
1649         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1650         (main): Invoke test_function.
1651         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1652         (main): Invoke test_function.
1653         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1654         (main): Invoke test_function.
1655         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1656         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1657         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1658         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1659         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1660         (Depends-on): Add 'float'.
1661         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1662
1663 2012-03-05  Bruno Haible  <bruno@clisp.org>
1664
1665         hypot* tests: More tests.
1666         * tests/test-hypot.h: New file, partially extracted from
1667         tests/test-hypotl.c.
1668         * tests/test-hypot.c: Include test-hypot.h.
1669         (main): Invoke test_function.
1670         * tests/test-hypotf.c: Include test-hypot.h.
1671         (main): Invoke test_function.
1672         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1673         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1674         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1675         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1676         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1677         tests/randomf.c.
1678         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1679         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1680         tests/randoml.c.
1681         (Depends-on): Add 'fpucw', 'float'.
1682         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1683
1684 2012-03-05  Bruno Haible  <bruno@clisp.org>
1685
1686         fpucw: Doc about FreeBSD.
1687         * lib/fpucw.h: Mention FreeBSD in comments.
1688
1689 2012-03-04  Bruno Haible  <bruno@clisp.org>
1690
1691         sqrt* tests: More tests.
1692         * tests/test-sqrt.h: New file.
1693         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1694         (main): Invoke test_function.
1695         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1696         (main): Invoke test_function.
1697         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1698         (main): Invoke test_function.
1699         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1700         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1701         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1702         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1703         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1704         (Depends-on): Add 'float'.
1705         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1706
1707 2012-03-04  Bruno Haible  <bruno@clisp.org>
1708
1709         remainder* tests: More tests.
1710         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1711         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1712         (main): Invoke test_function.
1713         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1714         (main): Invoke test_function.
1715         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1716         (main): Invoke test_function.
1717         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1718         tests/randomd.c.
1719         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1720         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1721         tests/randomf.c.
1722         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1723         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1724         tests/randoml.c.
1725         (Depends-on): Add 'float'.
1726         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1727
1728 2012-03-04  Bruno Haible  <bruno@clisp.org>
1729
1730         remainder, remainderf, remainderl: Fix computation for large quotients.
1731         * lib/remainder.c: Completely rewritten.
1732         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1733         USE_FLOAT.
1734         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1735         USE_LONG_DOUBLE.
1736         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1737         isnand, isinf. Remove round, fma.
1738         * modules/remainderf (Files): Add lib/remainder.c.
1739         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1740         Remove roundf, fmaf.
1741         * modules/remainderl (Files): Add lib/remainder.c.
1742         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1743         isinf. Remove roundl, fmal.
1744         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1745         REMAINDER_LIBM.
1746         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1747         REMAINDERF_LIBM.
1748         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1749         REMAINDERL_LIBM.
1750
1751 2012-03-04  Bruno Haible  <bruno@clisp.org>
1752
1753         fmod* tests: More tests.
1754         * tests/test-fmod.h (my_ldexp): New function.
1755         (test_function): Reduce amount of random numbers to test. Add tests
1756         of very large quotients x / y.
1757         * tests/test-fmod.c (MAX_EXP): New macro.
1758         * tests/test-fmodf.c (MAX_EXP): Likewise.
1759         * tests/test-fmodl.c (MAX_EXP): Likewise.
1760
1761 2012-03-04  Bruno Haible  <bruno@clisp.org>
1762
1763         fmod, fmodl: Fix computation for large quotients x / y.
1764         * lib/fmod.c: Completely rewritten.
1765         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1766         USE_LONG_DOUBLE.
1767         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1768         isnand. Remove fma.
1769         * modules/fmodl (Files): Add lib/fmod.c.
1770         (Depends-on): Add float, isfinite, signbit, fabsl,
1771         frexpl, ldexpl, isnanl. Remove fma.
1772         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1773         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1774
1775 2012-03-03  Bruno Haible  <bruno@clisp.org>
1776
1777         fmod* tests: More tests.
1778         * tests/test-fmod.h: New file.
1779         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1780         (main): Invoke test_function.
1781         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1782         (main): Invoke test_function.
1783         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1784         (main): Invoke test_function.
1785         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1786         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1787         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1788         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1789         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1790         (Depends-on): Add 'float'.
1791         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1792
1793 2012-03-03  Bruno Haible  <bruno@clisp.org>
1794
1795         rint* tests: More tests.
1796         * tests/test-rint.h: New file, partially extracted from
1797         tests/test-rintl.c.
1798         * tests/test-rint.c: Include test-rint.h.
1799         (main): Invoke test_function.
1800         * tests/test-rintf.c: Include test-rint.h.
1801         (main): Invoke test_function.
1802         * tests/test-rintl.c: Include test-rint.h.
1803         (main): Invoke test_function.
1804         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1805         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1806         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1807         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1808         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1809         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1810
1811 2012-03-03  Bruno Haible  <bruno@clisp.org>
1812
1813         modf* tests: More tests.
1814         * tests/test-modf.h: New file.
1815         * tests/test-modf.c: Include <float.h> and test-modf.h.
1816         (main): Invoke test_function.
1817         * tests/test-modff.c: Include <float.h> and test-modf.h.
1818         (main): Invoke test_function.
1819         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1820         (main): Invoke test_function.
1821         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1822         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1823         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1824         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1825         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1826         (Depends-on): Add 'float'.
1827         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1828
1829 2012-03-03  Bruno Haible  <bruno@clisp.org>
1830
1831         fabs* tests: More tests.
1832         * tests/test-fabs.h: New file, partially extracted from
1833         tests/test-fabsl.c.
1834         * tests/test-fabs.c (RANDOM): New macro.
1835         * tests/test-fabsf.c (RANDOM): New macro.
1836         * tests/test-fabsl.c (RANDOM): New macro.
1837         * modules/fabs-tests (Files): Add tests/randomd.c.
1838         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1839         * modules/fabsf-tests (Files): Add tests/randomf.c.
1840         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1841         * modules/fabsl-tests (Files): Add tests/randoml.c.
1842         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1843
1844 2012-03-03  Bruno Haible  <bruno@clisp.org>
1845
1846         ldexp* tests: More tests.
1847         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1848         * tests/test-ldexp.c (RANDOM): New macro.
1849         * tests/test-ldexpf.c (RANDOM): New macro.
1850         * tests/test-ldexpl.c (RANDOM): New macro.
1851         * modules/ldexp-tests (Files): Add tests/randomd.c.
1852         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1853         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1854         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1855         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1856         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1857
1858 2012-03-03  Bruno Haible  <bruno@clisp.org>
1859
1860         frexp* tests: More tests.
1861         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1862         * tests/test-frexp.c (RANDOM): New macro.
1863         * tests/test-frexpf.c (RANDOM): New macro.
1864         * tests/test-frexpl.c (RANDOM): New macro.
1865         * modules/frexp-tests (Files): Add tests/randomd.c.
1866         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1867         * modules/frexpf-tests (Files): Add tests/randomf.c.
1868         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1869         * modules/frexpl-tests (Files): Add tests/randoml.c.
1870         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1871
1872 2012-03-03  Bruno Haible  <bruno@clisp.org>
1873
1874         Support for pseudo-random numbers in tests.
1875         * tests/randomf.c: New file.
1876         * tests/randomd.c: New file.
1877         * tests/randoml.c: New file.
1878         * tests/macros.h (randomf, randomd, randoml): New declarations.
1879
1880 2012-03-03  Bruno Haible  <bruno@clisp.org>
1881
1882         frexp* tests: Refactor.
1883         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1884         * tests/test-frexp.c: Include and use it.
1885         * tests/test-frexpf.c: Likewise.
1886         * tests/test-frexpl.c: Likewise.
1887         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1888         * modules/frexpf-tests (Files): Likewise.
1889         * modules/frexpl-tests (Files): Likewise.
1890
1891 2012-03-02  Jim Meyering  <meyering@redhat.com>
1892
1893         maint: don't specify XZ_OPT=-9ev in dist-related rule
1894         Using xz's -9 option is warranted only if you have a very large
1895         tarball (see xz's documentation for the sizes vs. presets), and
1896         requires 64MiB of memory at decompression time.
1897         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1898         Automake's default of just "-e" is fine.  Override on a
1899         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1900
1901 2012-03-01  Eric Blake  <eblake@redhat.com>
1902
1903         maint.mk: allow announcement for non-gnulib project
1904         * maint.mk (announcement): Skip gnulib version if not used.
1905
1906 2012-03-01  Jim Meyering  <meyering@redhat.com>
1907
1908         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1909         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1910         envvar settings cannot interfere.  Otherwise, setting envvars like
1911         prohibit=foo require=bar, etc. would cause spurious test failures.
1912
1913 2012-03-01  Eric Blake  <eblake@redhat.com>
1914
1915         maint.mk: add per-line exclusions to prohibitions
1916         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1917         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1918         (sc_const_long_option): Use it.
1919
1920 2012-03-01  Bruno Haible  <bruno@clisp.org>
1921
1922         Tests for module 'expl-ieee'.
1923         * modules/expl-ieee-tests: New file.
1924         * tests/test-expl-ieee.c: New file.
1925
1926         New module 'expl-ieee'.
1927         * modules/expl-ieee: New file.
1928
1929         Tests for module 'exp-ieee'.
1930         * modules/exp-ieee-tests: New file.
1931         * tests/test-exp-ieee.c: New file.
1932
1933         New module 'exp-ieee'.
1934         * modules/exp-ieee: New file.
1935
1936         Tests for module 'expf-ieee'.
1937         * modules/expf-ieee-tests: New file.
1938         * tests/test-expf-ieee.c: New file.
1939         * tests/test-exp-ieee.h: New file.
1940
1941         New module 'expf-ieee'.
1942         * modules/expf-ieee: New file.
1943
1944 2012-02-29  Bruno Haible  <bruno@clisp.org>
1945
1946         cbrtl-ieee: Work around test failure on IRIX 6.5.
1947         * m4/cbrtl-ieee.m4: New file.
1948         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1949         test whether cbrtl works with a minus zero argument. Replace it if not.
1950         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1952         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1953         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1954         (Depends-on): Update conditions.
1955         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1956         m4/signbit.m4.
1957         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1958         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1959         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1960
1961         Tests for module 'cbrtl-ieee'.
1962         * modules/cbrtl-ieee-tests: New file.
1963         * tests/test-cbrtl-ieee.c: New file.
1964
1965         New module 'cbrtl-ieee'.
1966         * modules/cbrtl-ieee: New file.
1967
1968         Tests for module 'cbrt-ieee'.
1969         * modules/cbrt-ieee-tests: New file.
1970         * tests/test-cbrt-ieee.c: New file.
1971
1972         New module 'cbrt-ieee'.
1973         * modules/cbrt-ieee: New file.
1974
1975         Tests for module 'cbrtf-ieee'.
1976         * modules/cbrtf-ieee-tests: New file.
1977         * tests/test-cbrtf-ieee.c: New file.
1978         * tests/test-cbrt-ieee.h: New file.
1979
1980         New module 'cbrtf-ieee'.
1981         * modules/cbrtf-ieee: New file.
1982
1983 2012-02-29  Bruno Haible  <bruno@clisp.org>
1984
1985         cbrtf: Work around bug in IRIX 6.5 system function.
1986         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1987         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1988         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1989         work.
1990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1991         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1992         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1993         (Depends-on): Update conditions.
1994         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1995
1996 2012-02-29  Bruno Haible  <bruno@clisp.org>
1997
1998         Tests for module 'cbrtl'.
1999         * modules/cbrtl-tests: New file.
2000         * tests/test-cbrtl.c: New file.
2001
2002         New module 'cbrtl'.
2003         * lib/math.in.h (cbrtl): New declaration.
2004         * lib/cbrtl.c: New file.
2005         * m4/cbrtl.m4: New file.
2006         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2008         HAVE_DECL_CBRTL.
2009         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2010         HAVE_DECL_CBRTL.
2011         * modules/cbrtl: New file.
2012         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2013         * doc/posix-functions/cbrtl.texi: Mention the new module.
2014
2015 2012-02-29  Bruno Haible  <bruno@clisp.org>
2016
2017         Tests for module 'cbrtf'.
2018         * modules/cbrtf-tests: New file.
2019         * tests/test-cbrtf.c: New file.
2020
2021         New module 'cbrtf'.
2022         * lib/math.in.h (cbrtf): New declaration.
2023         * lib/cbrtf.c: New file.
2024         * m4/cbrtf.m4: New file.
2025         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2027         HAVE_DECL_CBRTF.
2028         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2029         HAVE_DECL_CBRTF.
2030         * modules/cbrtf: New file.
2031         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2032         * doc/posix-functions/cbrtf.texi: Mention the new module.
2033
2034 2012-02-29  Bruno Haible  <bruno@clisp.org>
2035
2036         cbrt: Provide replacement on MSVC and Minix.
2037         * lib/math.in.h (cbrt): New declaration.
2038         * lib/cbrt.c: New file.
2039         * m4/cbrt.m4: New file.
2040         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2042         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2043         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2044         (Depends-on): Add dependencies.
2045         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2046         * tests/test-math-c++.cc: Check the declaration of cbrt.
2047         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2048         replacement.
2049
2050 2012-02-29  Bruno Haible  <bruno@clisp.org>
2051
2052         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2053         * m4/hypotl-ieee.m4: New file.
2054         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2055         test whether hypotl works with mixed NaN and Infinity arguments.
2056         Replace it if not.
2057         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2059         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2060         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2061         (Depends-on): Update conditions.
2062         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2063         (Depends-on): Add hypot-ieee.
2064         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2065         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2066
2067         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2068         * m4/hypotf-ieee.m4: New file.
2069         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2070         test whether hypotf works with mixed NaN and Infinity arguments.
2071         Replace it if not.
2072         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2073         (Depends-on): Add hypot-ieee.
2074         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2075         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2076
2077         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2078         * lib/math.in.h (hypot): New declaration.
2079         * lib/hypot.c: New file.
2080         * m4/hypot-ieee.m4: New file.
2081         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2082         whether hypot works with mixed NaN and Infinity arguments. Replace it
2083         if not.
2084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2085         REPLACE_HYPOT.
2086         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2087         * modules/hypot (Files): Add lib/hypot.c.
2088         (Depends-on): Add dependencies.
2089         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2090         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2091         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2092         * tests/test-math-c++.cc: Check the declaration of hypot.
2093         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2094
2095         Tests for module 'hypotl-ieee'.
2096         * modules/hypotl-ieee-tests: New file.
2097         * tests/test-hypotl-ieee.c: New file.
2098
2099         New module 'hypotl-ieee'.
2100         * modules/hypotl-ieee: New file.
2101
2102         Tests for module 'hypot-ieee'.
2103         * modules/hypot-ieee-tests: New file.
2104         * tests/test-hypot-ieee.c: New file.
2105
2106         New module 'hypot-ieee'.
2107         * modules/hypot-ieee: New file.
2108
2109         Tests for module 'hypotf-ieee'.
2110         * modules/hypotf-ieee-tests: New file.
2111         * tests/test-hypotf-ieee.c: New file.
2112         * tests/test-hypot-ieee.h: New file.
2113
2114         New module 'hypotf-ieee'.
2115         * modules/hypotf-ieee: New file.
2116
2117 2012-02-29  Bruno Haible  <bruno@clisp.org>
2118
2119         Remove unused variables.
2120         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2121         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2122         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2123         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2124
2125 2012-02-29  Eric Blake  <eblake@redhat.com>
2126
2127         termios: fix pid_t always, not just for tcgetsid
2128         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2129         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2130         just when building tcgetsid.
2131
2132 2012-02-29  Bruno Haible  <bruno@clisp.org>
2133
2134         Tests for module 'hypotl'.
2135         * modules/hypotl-tests: New file.
2136         * tests/test-hypotl.c: New file.
2137
2138         New module 'hypotl'.
2139         * lib/math.in.h (hypotl): New declaration.
2140         * lib/hypotl.c: New file.
2141         * m4/hypotl.m4: New file.
2142         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2144         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2145         * modules/hypotl: New file.
2146         * tests/test-math-c++.cc: Check the hypotl declaration.
2147         * doc/posix-functions/hypotl.texi: Mention the new module.
2148
2149 2012-02-29  Eric Blake  <eblake@redhat.com>
2150
2151         tcgetsid: fix cygwin header bug
2152         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2153
2154         docs: update cygwin progress
2155         * doc/posix-functions/llround.texi (llround): Added in cygwin
2156         1.7.8.
2157         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2158         * doc/glibc-functions/program_invocation_name.texi
2159         (program_invocation_name): Likewise.
2160         * doc/glibc-functions/program_invocation_short_name.texi
2161         (program_invocation_short_name): Likewise.
2162         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2163         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2164         Likewise.
2165         * doc/posix-functions/pthread_spin_destroy.texi
2166         (pthread_spin_destroy): Added in cygwin 1.7.10.
2167         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2168         Likewise.
2169         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2170         Likewise.
2171         * doc/posix-functions/pthread_spin_trylock.texi
2172         (pthread_spin_trylock): Likewise.
2173         * doc/posix-functions/pthread_spin_unlock.texi
2174         (pthread_spin_unlock): Likewise.
2175         * doc/posix-functions/pthread_setschedprio.texi
2176         (pthread_setschedprio): Likewise.
2177         * doc/posix-functions/pthread_attr_getstack.texi
2178         (pthread_attr_getstack): Likewise.
2179         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2180         (pthread_attr_getstackaddr): Likewise.
2181         * doc/glibc-functions/pthread_getattr_np.texi
2182         (pthread_getattr_np): Likewise.
2183         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2184         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2185         * doc/posix-functions/clock_settime.texi (clock_settime):
2186         Likewise.
2187         * doc/posix-functions/pthread_attr_getguardsize.texi
2188         (pthread_attr_getguardsize): Likewise.
2189         * doc/posix-functions/pthread_attr_setguardsize.texi
2190         (pthread_attr_setguardsize): Likewise.
2191         * doc/posix-functions/pthread_attr_setstack.texi
2192         (pthread_attr_setstack): Likewise.
2193         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2194         (pthread_attr_setstackaddr): Likewise.
2195         * doc/posix-functions/clock_getcpuclockid.texi
2196         (clock_getcpuclockid): Likewise.
2197         * doc/posix-functions/pthread_getcpuclockid.texi
2198         (pthread_getcpuclockid): Likewise.
2199         * doc/glibc-functions/error.texi (error): Likewise.
2200         * doc/glibc-functions/error_at_line.texi (error_at_line):
2201         Likewise.
2202         * doc/glibc-functions/error_message_count.texi
2203         (error_message_count): Likewise.
2204         * doc/glibc-functions/error_one_per_line.texi
2205         (error_one_per_line): Likewise.
2206         * doc/glibc-functions/error_print_progname.texi
2207         (error_print_progname): Likewise.
2208         * doc/posix-functions/pthread_condattr_getclock.texi
2209         (pthread_condattr_getclock): Likewise.
2210         * doc/posix-functions/pthread_condattr_setclock.texi
2211         (pthread_condattr_setclock): Likewise.
2212         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2213         Likewise.
2214         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2215         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2216         * doc/glibc-functions/get_current_dir_name.texi
2217         (get_current_dir_name): Likewise.
2218         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2219         Likewise.
2220         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2221         wrong return type.
2222         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2223         1.7.11.
2224
2225 2012-02-29  Bruno Haible  <bruno@clisp.org>
2226
2227         Tests for module 'hypotf'.
2228         * modules/hypotf-tests: New file.
2229         * tests/test-hypotf.c: New file.
2230
2231         New module 'hypotf'.
2232         * lib/math.in.h (hypotf): New declaration.
2233         * lib/hypotf.c: New file.
2234         * m4/hypotf.m4: New file.
2235         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2237         REPLACE_HYPOTF.
2238         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2239         REPLACE_HYPOTF.
2240         * modules/hypotf: New file.
2241         * tests/test-math-c++.cc: Check the hypotf declaration.
2242         * doc/posix-functions/hypotf.texi: Mention the new module.
2243
2244         hypot: Prepare for hypotf module.
2245         * m4/hypot.m4: New file.
2246         * modules/hypot (Files): Add m4/hypot.m4.
2247         (configure.ac): Invoke gl_FUNC_HYPOT.
2248
2249 2012-02-29  Bruno Haible  <bruno@clisp.org>
2250
2251         hypot tests: More tests.
2252         * tests/test-hypot.c: Include <float.h>.
2253         (main): Add tests about overflow and underflow.
2254
2255 2012-02-29  Bruno Haible  <bruno@clisp.org>
2256
2257         math code: Add comments.
2258         * lib/acosl.c: Add comment about related glibc source files.
2259         * lib/asinl.c: Likewise.
2260         * lib/atanl.c: Likewise.
2261         * lib/expl.c: Likewise.
2262         * lib/logl.c: Likewise.
2263         * lib/sincosl.c: Likewise.
2264         * lib/sinl.c: Likewise.
2265         * lib/tanl.c: Likewise.
2266         * lib/trigl.c: Likewise.
2267         * lib/cosl.c: Likewise. Fix comments.
2268
2269 2012-02-28  Bruno Haible  <bruno@clisp.org>
2270
2271         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2272         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2273         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2274         HUGE_VALL are defined.
2275         (numeric_equald): Renamed from numeric_equal.
2276         (numeric_equalf, numeric_equall): New functions.
2277         (main): Check also HUGE_VALF, HUGE_VALL.
2278         * modules/math-tests (Files): Add tests/macros.h.
2279         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2280         HUGE_VALL.
2281
2282 2012-02-28  Bruno Haible  <bruno@clisp.org>
2283
2284         doc: Move ISO C11 feature notes into POSIX chapters.
2285         * doc/posix-functions/aligned_alloc.texi: Renamed from
2286         doc/glibc-functions/aligned_alloc.texi.
2287         * doc/posix-functions/quick_exit.texi: Renamed from
2288         doc/glibc-functions/quick_exit.texi.
2289         * doc/posix-headers/uchar.texi: Renamed from
2290         doc/glibc-headers/uchar.texi.
2291         * doc/posix-functions/c16rtomb.texi: Renamed from
2292         doc/glibc-functions/c16rtomb.texi.
2293         * doc/posix-functions/c32rtomb.texi: Renamed from
2294         doc/glibc-functions/c32rtomb.texi.
2295         * doc/posix-functions/mbrtoc16.texi: Renamed from
2296         doc/glibc-functions/mbrtoc16.texi.
2297         * doc/posix-functions/mbrtoc32.texi: Renamed from
2298         doc/glibc-functions/mbrtoc32.texi.
2299         * doc/gnulib.texi: Update.
2300         (Glibc uchar.h): Remove section.
2301         Suggested by Eric Blake.
2302
2303 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         stdnoreturn: port to MSVC better
2306         MSVC standard headers use __declspec(noreturn), so #define noreturn
2307         to empty on that platform.  Reported by Bruno Haible in
2308         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2309         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2310         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2311
2312 2012-02-28  Bruno Haible  <bruno@clisp.org>
2313
2314         doc: Mention new glibc headers and functions.
2315         * doc/glibc-headers/uchar.texi: New file.
2316         * doc/glibc-functions/aligned_alloc.texi: New file.
2317         * doc/glibc-functions/c16rtomb.texi: New file.
2318         * doc/glibc-functions/c32rtomb.texi: New file.
2319         * doc/glibc-functions/clock_adjtime.texi: New file.
2320         * doc/glibc-functions/fanotify_init.texi: New file.
2321         * doc/glibc-functions/fanotify_mark.texi: New file.
2322         * doc/glibc-functions/inet6_opt_append.texi: New file.
2323         * doc/glibc-functions/inet6_opt_find.texi: New file.
2324         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2325         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2326         * doc/glibc-functions/inet6_opt_init.texi: New file.
2327         * doc/glibc-functions/inet6_opt_next.texi: New file.
2328         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2329         * doc/glibc-functions/inet6_rth_add.texi: New file.
2330         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2331         * doc/glibc-functions/inet6_rth_init.texi: New file.
2332         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2333         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2334         * doc/glibc-functions/inet6_rth_space.texi: New file.
2335         * doc/glibc-functions/login.texi: New file.
2336         * doc/glibc-functions/mbrtoc16.texi: New file.
2337         * doc/glibc-functions/mbrtoc32.texi: New file.
2338         * doc/glibc-functions/name_to_handle_at.texi: New file.
2339         * doc/glibc-functions/ntp_gettimex.texi: New file.
2340         * doc/glibc-functions/open_by_handle_at.texi: New file.
2341         * doc/glibc-functions/prlimit.texi: New file.
2342         * doc/glibc-functions/process_vm_readv.texi: New file.
2343         * doc/glibc-functions/process_vm_writev.texi: New file.
2344         * doc/glibc-functions/recvmmsg.texi: New file.
2345         * doc/glibc-functions/scandirat.texi: New file.
2346         * doc/glibc-functions/sendmmsg.texi: New file.
2347         * doc/glibc-functions/setns.texi: New file.
2348         * doc/glibc-functions/timespec_get.texi: New file.
2349         * doc/gnulib.texi: Include them.
2350         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2351         sections.
2352         Reported by Eric Blake.
2353
2354 2012-02-28  Bruno Haible  <bruno@clisp.org>
2355
2356         Avoid compilation errors with MSVC option -fp:strict.
2357         * lib/floor.c: Use MSVC specific pragma fenv_access.
2358         * lib/ceil.c: Likewise.
2359         * lib/trunc.c: Likewise.
2360         * lib/round.c: Likewise.
2361         * lib/rint.c: Likewise.
2362         * lib/fma.c: Likewise.
2363         * lib/integer_length.c: Likewise.
2364         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2366         * tests/test-floor2.c: Likewise.
2367         * tests/test-floorf2.c: Likewise.
2368         * tests/test-ceil2.c: Likewise.
2369         * tests/test-ceilf2.c: Likewise.
2370         * tests/test-trunc2.c: Likewise.
2371         * tests/test-truncf2.c: Likewise.
2372         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2373
2374 2012-02-27  Bruno Haible  <bruno@clisp.org>
2375
2376         Tests for module 'sqrtl-ieee'.
2377         * modules/sqrtl-ieee-tests: New file.
2378         * tests/test-sqrtl-ieee.c: New file.
2379
2380         New module 'sqrtl-ieee'.
2381         * modules/sqrtl-ieee: New file.
2382
2383         Tests for module 'sqrt-ieee'.
2384         * modules/sqrt-ieee-tests: New file.
2385         * tests/test-sqrt-ieee.c: New file.
2386
2387         New module 'sqrt-ieee'.
2388         * modules/sqrt-ieee: New file.
2389
2390         Tests for module 'sqrtf-ieee'.
2391         * modules/sqrtf-ieee-tests: New file.
2392         * tests/test-sqrtf-ieee.c: New file.
2393         * tests/test-sqrt-ieee.h: New file.
2394
2395         New module 'sqrtf-ieee'.
2396         * modules/sqrtf-ieee: New file.
2397
2398 2012-02-27  Bruno Haible  <bruno@clisp.org>
2399
2400         remainderl-ieee: Work around test failure on OSF/1.
2401         * m4/remainderl-ieee.m4: New file.
2402         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2403         present, test whether remainderl works with a zero second argument.
2404         Replace it if not.
2405         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2407         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2408         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2409         (Depends-on): Update conditions.
2410         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2411         (Depends-on): Add remainder-ieee.
2412         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2413         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2414         module.
2415
2416         remainderf-ieee: Work around test failure on OSF/1.
2417         * m4/remainderf-ieee.m4: New file.
2418         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2419         present, test whether remainderf works with a zero second argument.
2420         Replace it if not.
2421         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2423         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2424         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2425         (Depends-on): Update conditions.
2426         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2427         (Depends-on): Add remainder-ieee.
2428         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2429         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2430         module.
2431
2432         remainder-ieee: Work around test failure on OSF/1.
2433         * m4/remainder-ieee.m4: New file.
2434         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2435         present, test whether remainder works with a zero second argument.
2436         Replace it if not.
2437         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2439         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2440         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2441         (Depends-on): Update dependencies.
2442         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2443         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2444         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2445
2446         Tests for module 'remainderl-ieee'.
2447         * modules/remainderl-ieee-tests: New file.
2448         * tests/test-remainderl-ieee.c: New file.
2449
2450         New module 'remainderl-ieee'.
2451         * modules/remainderl-ieee: New file.
2452
2453         Tests for module 'remainder-ieee'.
2454         * modules/remainder-ieee-tests: New file.
2455         * tests/test-remainder-ieee.c: New file.
2456
2457         New module 'remainder-ieee'.
2458         * modules/remainder-ieee: New file.
2459
2460         Tests for module 'remainderf-ieee'.
2461         * modules/remainderf-ieee-tests: New file.
2462         * tests/test-remainderf-ieee.c: New file.
2463         * tests/test-remainder-ieee.h: New file.
2464
2465         New module 'remainderf-ieee'.
2466         * modules/remainderf-ieee: New file.
2467
2468 2012-02-27  Bruno Haible  <bruno@clisp.org>
2469
2470         modff, modfl: Fix configure syntax error.
2471         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2472         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2473
2474 2012-02-27  Bruno Haible  <bruno@clisp.org>
2475
2476         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2477         * m4/fmodl-ieee.m4: New file.
2478         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2479         whether fmodl works with zero arguments. Replace it if not.
2480         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2481         (Depends-on): Add fmod-ieee.
2482         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2483         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2484
2485         fmodf-ieee: Work around test failure on OSF/1.
2486         * m4/fmodf-ieee.m4: New file.
2487         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2488         whether fmodf works with zero arguments. Replace it if not.
2489         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2491         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2492         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2493         (Depends-on): Update dependencies.
2494         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2495         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2496         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2497
2498         fmodf-ieee: Work around test failure on MSVC 9.
2499         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2500         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2501
2502         fmod-ieee: Work around test failures on OSF/1, mingw.
2503         * m4/fmod-ieee.m4: New file.
2504         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2505         whether fmod works with zero arguments. Replace it if not.
2506         * lib/math.in.h (fmod): New declaration.
2507         * lib/fmod.c: New file.
2508         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2510         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2511         * modules/fmod (Files): Add lib/fmod.c.
2512         (Depends-on): Add math, isinf, trunc, fma.
2513         (configure.ac): Arrange to compile lib/fmod.c if needed.
2514         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2515         m4/signbit.m4.
2516         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2517         * tests/test-math-c++.cc: Check the declaration of fmod.
2518         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2519
2520         fmodl-ieee: Fix test failures.
2521         * lib/fmodl.c (fmodl): Treat Inf specially.
2522         * modules/fmodl (Depends-on): Add isinf.
2523
2524         Tests for module 'fmodl-ieee'.
2525         * modules/fmodl-ieee-tests: New file.
2526         * tests/test-fmodl-ieee.c: New file.
2527
2528         New module 'fmodl-ieee'.
2529         * modules/fmodl-ieee: New file.
2530
2531         Tests for module 'fmod-ieee'.
2532         * modules/fmod-ieee-tests: New file.
2533         * tests/test-fmod-ieee.c: New file.
2534
2535         New module 'fmod-ieee'.
2536         * modules/fmod-ieee: New file.
2537
2538         Tests for module 'fmodf-ieee'.
2539         * modules/fmodf-ieee-tests: New file.
2540         * tests/test-fmodf-ieee.c: New file.
2541         * tests/test-fmod-ieee.h: New file.
2542
2543         New module 'fmodf-ieee'.
2544         * modules/fmodf-ieee: New file.
2545
2546 2012-02-27  Bruno Haible  <bruno@clisp.org>
2547
2548         Tests for module 'rintl-ieee'.
2549         * modules/rintl-ieee-tests: New file.
2550         * tests/test-rintl-ieee.c: New file.
2551
2552         New module 'rintl-ieee'.
2553         * modules/rintl-ieee: New file.
2554
2555         Tests for module 'rint-ieee'.
2556         * modules/rint-ieee-tests: New file.
2557         * tests/test-rint-ieee.c: New file.
2558
2559         New module 'rint-ieee'.
2560         * modules/rint-ieee: New file.
2561
2562         Tests for module 'rintf-ieee'.
2563         * modules/rintf-ieee-tests: New file.
2564         * tests/test-rintf-ieee.c: New file.
2565         * tests/test-rint-ieee.h: New file.
2566
2567         New module 'rintf-ieee'.
2568         * modules/rintf-ieee: New file.
2569
2570 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2571
2572         regex: re_search etc. should return -2 when memory exhausted
2573         This bug was uncovered when testing 'grep'.  Without the fix,
2574         re_search and friends return -1 when memory is exhausted, but -1
2575         means no match, and this causes grep to falsely report no-match
2576         instead of memory-exhaustion.  See
2577         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2578         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2579         trouble; this can occur if re_search_internal ran out of memory.
2580
2581 2012-02-26  Bruno Haible  <bruno@clisp.org>
2582
2583         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2584         * m4/modfl-ieee.m4: New file.
2585         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2586         whether modfl works with Inf. Replace it if not.
2587         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2589         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2590         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2591         (Depends-on): Update dependencies.
2592         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2593         m4/signbit.m4.
2594         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2595         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2596
2597         modfl-ieee: Fix dependencies.
2598         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2599
2600         modfl-ieee: Fix test failures.
2601         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2602         * modules/modfl (Depends-on): Add isfinite, isinf.
2603
2604         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2605         * m4/modff-ieee.m4: New file.
2606         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2607         whether modff works with NaN and Inf. Replace it if not.
2608         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2610         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2611         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2612         (Depends-on): Update dependencies.
2613         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2614         m4/signbit.m4.
2615         (Depends-on): Add modf-ieee.
2616         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2617         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2618
2619         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2620         * m4/modf-ieee.m4: New file.
2621         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2622         whether modf works with NaN and Inf. Replace it if not.
2623         * lib/math.in.h (modf): New declaration.
2624         * lib/modf.c: New file.
2625         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2627         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2628         * modules/modf (Files): Add lib/modf.c.
2629         (Depends-on): Add math, isfinite, trunc, isinf.
2630         (configure.ac): Addrange to compile lib/modf.c if needed.
2631         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2632         m4/signbit.m4.
2633         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2634         * tests/test-math-c++.cc: Check the declaration of modf.
2635         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2636
2637         Tests for module 'modfl-ieee'.
2638         * modules/modfl-ieee-tests: New file.
2639         * tests/test-modfl-ieee.c: New file.
2640
2641         New module 'modfl-ieee'.
2642         * modules/modfl-ieee: New file.
2643
2644         Tests for module 'modf-ieee'.
2645         * modules/modf-ieee-tests: New file.
2646         * tests/test-modf-ieee.c: New file.
2647
2648         New module 'modf-ieee'.
2649         * modules/modf-ieee: New file.
2650
2651         Tests for module 'modff-ieee'.
2652         * modules/modff-ieee-tests: New file.
2653         * tests/test-modff-ieee.c: New file.
2654         * tests/test-modf-ieee.h: New file.
2655
2656         New module 'modff-ieee'.
2657         * modules/modff-ieee: New file.
2658
2659 2012-02-26  Bruno Haible  <bruno@clisp.org>
2660
2661         Tests for module 'fabsl-ieee'.
2662         * modules/fabsl-ieee-tests: New file.
2663         * tests/test-fabsl-ieee.c: New file.
2664
2665         New module 'fabsl-ieee'.
2666         * modules/fabsl-ieee: New file.
2667
2668         Tests for module 'fabs-ieee'.
2669         * modules/fabs-ieee-tests: New file.
2670         * tests/test-fabs-ieee.c: New file.
2671
2672         New module 'fabs-ieee'.
2673         * modules/fabs-ieee: New file.
2674
2675         Tests for module 'fabsf-ieee'.
2676         * modules/fabsf-ieee-tests: New file.
2677         * tests/test-fabsf-ieee.c: New file.
2678         * tests/test-fabs-ieee.h: New file.
2679
2680         New module 'fabsf-ieee'.
2681         * modules/fabsf-ieee: New file.
2682
2683 2012-02-26  Bruno Haible  <bruno@clisp.org>
2684
2685         Tests for module 'fmal-ieee'.
2686         * modules/fmal-ieee-tests: New file.
2687         * tests/test-fmal-ieee.c: New file.
2688
2689         New module 'fmal-ieee'.
2690         * modules/fmal-ieee: New file.
2691
2692         Tests for module 'fma-ieee'.
2693         * modules/fma-ieee-tests: New file.
2694         * tests/test-fma-ieee.c: New file.
2695
2696         New module 'fma-ieee'.
2697         * modules/fma-ieee: New file.
2698
2699         Tests for module 'fmaf-ieee'.
2700         * modules/fmaf-ieee-tests: New file.
2701         * tests/test-fmaf-ieee.c: New file.
2702         * tests/test-fma-ieee.h: New file.
2703
2704         New module 'fmaf-ieee'.
2705         * modules/fmaf-ieee: New file.
2706
2707 2012-02-26  Bruno Haible  <bruno@clisp.org>
2708
2709         Tests for module 'ldexpl-ieee'.
2710         * modules/ldexpl-ieee-tests: New file.
2711         * tests/test-ldexpl-ieee.c: New file.
2712
2713         New module 'ldexpl-ieee'.
2714         * modules/ldexpl-ieee: New file.
2715
2716         Tests for module 'ldexp-ieee'.
2717         * modules/ldexp-ieee-tests: New file.
2718         * tests/test-ldexp-ieee.c: New file.
2719
2720         New module 'ldexp-ieee'.
2721         * modules/ldexp-ieee: New file.
2722
2723         Tests for module 'ldexpf-ieee'.
2724         * modules/ldexpf-ieee-tests: New file.
2725         * tests/test-ldexpf-ieee.c: New file.
2726         * tests/test-ldexp-ieee.h: New file.
2727
2728         New module 'ldexpf-ieee'.
2729         * modules/ldexpf-ieee: New file.
2730
2731 2012-02-26  Bruno Haible  <bruno@clisp.org>
2732
2733         Refactor frexp*-ieee tests.
2734         * tests/test-frexp-ieee.h: New file.
2735         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2736         (main): Just call test_function.
2737         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2738         (main): Just call test_function.
2739         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2740         (main): Just call test_function.
2741         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2742         * modules/frexp-ieee-tests (Files): Likewise.
2743         * modules/frexpl-ieee-tests (Files): Likewise.
2744
2745         Tests for module 'frexpl-ieee'.
2746         * modules/frexpl-ieee-tests: New file.
2747         * tests/test-frexpl-ieee.c: New file.
2748
2749         New module 'frexpl-ieee'.
2750         * modules/frexpl-ieee: New file.
2751
2752         Tests for module 'frexp-ieee'.
2753         * modules/frexp-ieee-tests: New file.
2754         * tests/test-frexp-ieee.c: New file.
2755
2756         New module 'frexp-ieee'.
2757         * modules/frexp-ieee: New file.
2758
2759         Tests for module 'frexpf-ieee'.
2760         * modules/frexpf-ieee-tests: New file.
2761         * tests/test-frexpf-ieee.c: New file.
2762
2763         New module 'frexpf-ieee'.
2764         * modules/frexpf-ieee: New file.
2765
2766 2012-02-26  Bruno Haible  <bruno@clisp.org>
2767
2768         roundl-ieee tests: More tests.
2769         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2770         (main): Add tests for [MX] shaded specification in POSIX.
2771         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2772         (Depends-on): Add isnanl-nolibm.
2773
2774         round-ieee tests: More tests.
2775         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2776         (main): Add tests for [MX] shaded specification in POSIX.
2777         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2778         (Depends-on): Add isnand-nolibm.
2779
2780         roundf-ieee tests: More tests.
2781         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2782         (main): Add tests for [MX] shaded specification in POSIX.
2783         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2784         (Depends-on): Add isnanf-nolibm.
2785
2786         truncl-ieee tests: More tests.
2787         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2788         (main): Add tests for [MX] shaded specification in POSIX.
2789         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2790         (Depends-on): Add isnanl-nolibm.
2791
2792         trunc-ieee tests: More tests.
2793         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2794         (main): Add tests for [MX] shaded specification in POSIX.
2795         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2796         (Depends-on): Add isnand-nolibm.
2797
2798         truncf-ieee tests: More tests.
2799         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2800         (main): Add tests for [MX] shaded specification in POSIX.
2801         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2802         (Depends-on): Add isnanf-nolibm.
2803
2804         ceill-ieee tests: More tests.
2805         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2806         (main): Add tests for [MX] shaded specification in POSIX.
2807         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2808         (Depends-on): Add isnanl-nolibm.
2809
2810         ceil-ieee tests: More tests.
2811         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2812         (main): Add tests for [MX] shaded specification in POSIX.
2813         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2814         (Depends-on): Add isnand-nolibm.
2815
2816         ceilf-ieee tests: More tests.
2817         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2818         (main): Add tests for [MX] shaded specification in POSIX.
2819         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2820         (Depends-on): Add isnanf-nolibm.
2821
2822         floorl-ieee tests: More tests.
2823         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2824         (main): Add tests for [MX] shaded specification in POSIX.
2825         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2826         (Depends-on): Add isnanl-nolibm.
2827
2828         floor-ieee tests: More tests.
2829         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2830         (main): Add tests for [MX] shaded specification in POSIX.
2831         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2832         (Depends-on): Add isnand-nolibm.
2833
2834         floorf-ieee tests: More tests.
2835         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2836         (main): Add tests for [MX] shaded specification in POSIX.
2837         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2838         (Depends-on): Add isnanf-nolibm.
2839
2840 2012-02-26  Bruno Haible  <bruno@clisp.org>
2841
2842         fpieee: More comments.
2843         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2844
2845 2012-02-25  Bruno Haible  <bruno@clisp.org>
2846
2847         Tests for module 'log10l'.
2848         * modules/log10l-tests: New file.
2849         * tests/test-log10l.c: New file.
2850         * tests/test-math-c++.cc: Check the declaration of log10l.
2851
2852         New module 'log10l'.
2853         * lib/math.in.h (log10l): New declaration.
2854         * lib/log10l.c: New file.
2855         * m4/log10l.m4: New file.
2856         * modules/log10l: New file.
2857         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2859         HAVE_DECL_LOG10L.
2860         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2861         HAVE_DECL_LOG10L.
2862         * doc/posix-functions/log10l.texi: Mention the new module.
2863
2864 2012-02-25  Bruno Haible  <bruno@clisp.org>
2865
2866         fmodl, remainder*: Avoid wrong results due to rounding errors.
2867         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2868         expected bounds.
2869         * lib/remainderf.c (remainderf): Likewise.
2870         * lib/remainder.c (remainder): Likewise.
2871         * lib/remainderl.c (remainderl): Likewise.
2872
2873 2012-02-25  Bruno Haible  <bruno@clisp.org>
2874
2875         Tests for module 'remainderl'.
2876         * modules/remainderl-tests: New file.
2877         * tests/test-remainderl.c: New file.
2878         * tests/test-math-c++.cc: Check the declaration of remainderl.
2879
2880         New module 'remainderl'.
2881         * lib/math.in.h (remainderl): New declaration.
2882         * lib/remainderl.c: New file.
2883         * m4/remainderl.m4: New file.
2884         * modules/remainderl: New file.
2885         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2887         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2888         HAVE_REMAINDERL.
2889         * doc/posix-functions/remainderl.texi: Mention the new module.
2890
2891 2012-02-25  Bruno Haible  <bruno@clisp.org>
2892
2893         Tests for module 'remainderf'.
2894         * modules/remainderf-tests: New file.
2895         * tests/test-remainderf.c: New file.
2896         * tests/test-math-c++.cc: Check the declaration of remainderf.
2897
2898         New module 'remainderf'.
2899         * lib/math.in.h (remainderf): New declaration.
2900         * lib/remainderf.c: New file.
2901         * m4/remainderf.m4: New file.
2902         * modules/remainderf: New file.
2903         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2905         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2906         HAVE_REMAINDERF.
2907         * doc/posix-functions/remainderf.texi: Mention the new module.
2908
2909 2012-02-25  Bruno Haible  <bruno@clisp.org>
2910
2911         remainder: Support for MSVC.
2912         * lib/math.in.h (remainder): New declaration.
2913         * lib/remainder.c: New file.
2914         * m4/remainder.m4: New file.
2915         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2916         (Depends-on): Add math, round, fma.
2917         (configure.ac): Use results of gl_FUNC_REMAINDER.
2918         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2920         HAVE_DECL_REMAINDER.
2921         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2922         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2923         * tests/test-math-c++.cc: Check the declaration of remainder.
2924         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2925         problems are fixed.
2926
2927 2012-02-25  Bruno Haible  <bruno@clisp.org>
2928
2929         Tests for module 'fmodl'.
2930         * modules/fmodl-tests: New file.
2931         * tests/test-fmodl.c: New file.
2932         * tests/test-math-c++.cc: Check the declaration of fmodl.
2933
2934         New module 'fmodl'.
2935         * lib/math.in.h (fmodl): New declaration.
2936         * lib/fmodl.c: New file.
2937         * m4/fmodl.m4: New file.
2938         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2940         REPLACE_FMODL.
2941         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2942         REPLACE_FMODL.
2943         * modules/fmodl: New file.
2944         * doc/posix-functions/fmodl.texi: Mention the new module.
2945
2946 2012-02-25  Bruno Haible  <bruno@clisp.org>
2947
2948         Tests for module 'modfl'.
2949         * modules/modfl-tests: New file.
2950         * tests/test-modfl.c: New file.
2951         * tests/test-math-c++.cc: Check the declaration of modfl.
2952
2953         New module 'modfl'.
2954         * lib/math.in.h (modfl): New declaration.
2955         * lib/modfl.c: New file.
2956         * m4/modfl.m4: New file.
2957         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2959         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2960         * modules/modfl: New file.
2961         * doc/posix-functions/modfl.texi: Mention the new module.
2962
2963 2012-02-25  Bruno Haible  <bruno@clisp.org>
2964
2965         Tests for module 'fabsl'.
2966         * modules/fabsl-tests: New file.
2967         * tests/test-fabsl.c: New file.
2968         * tests/test-math-c++.cc: Check the declaration of fabsl.
2969
2970         New module 'fabsl'.
2971         * lib/math.in.h (fabsl): New declaration.
2972         * lib/fabsl.c: New file.
2973         * m4/fabsl.m4: New file.
2974         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2976         REPLACE_FABSL.
2977         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2978         REPLACE_FABSL.
2979         * modules/fabsl: New file.
2980         * doc/posix-functions/fabsl.texi: Mention the new module.
2981
2982 2012-02-25  Bruno Haible  <bruno@clisp.org>
2983
2984         fabs tests: More tests.
2985         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2986         (zero): New variable.
2987         (main): Add tests for signed zero.
2988         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2989
2990         fabsf tests: More tests.
2991         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2992         (zero): New variable.
2993         (main): Add tests for signed zero.
2994         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2995
2996 2012-02-24  Bruno Haible  <bruno@clisp.org>
2997
2998         atanl: Provide function definition on MSVC.
2999         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3000         function pointer.
3001         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3002
3003 2012-02-24  Bruno Haible  <bruno@clisp.org>
3004
3005         acosl: Provide function definition on MSVC.
3006         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3007         function pointer.
3008         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3009
3010 2012-02-24  Bruno Haible  <bruno@clisp.org>
3011
3012         asinl: Provide function definition on MSVC.
3013         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3014         function pointer.
3015         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3016
3017 2012-02-24  Bruno Haible  <bruno@clisp.org>
3018
3019         tanl: Provide function definition on MSVC.
3020         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3021         function pointer.
3022         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3023
3024 2012-02-24  Bruno Haible  <bruno@clisp.org>
3025
3026         cosl: Provide function definition on MSVC.
3027         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3028         function pointer.
3029         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3030
3031 2012-02-24  Bruno Haible  <bruno@clisp.org>
3032
3033         sinl: Provide function definition on MSVC.
3034         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3035         function pointer.
3036         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3037
3038 2012-02-24  Bruno Haible  <bruno@clisp.org>
3039
3040         logl: Provide function definition on MSVC.
3041         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3042         function pointer.
3043         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3044
3045 2012-02-24  Bruno Haible  <bruno@clisp.org>
3046
3047         expl: Provide function definition on MSVC.
3048         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3049         function pointer.
3050         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3051
3052 2012-02-24  Bruno Haible  <bruno@clisp.org>
3053
3054         sqrtl: Provide function definition on MSVC.
3055         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3056         a function pointer.
3057         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3058
3059 2012-02-24  Bruno Haible  <bruno@clisp.org>
3060
3061         ceill: Provide function definition on MSVC.
3062         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3063         used as a function pointer.
3064         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3065
3066 2012-02-24  Bruno Haible  <bruno@clisp.org>
3067
3068         floorl: Provide function definition on MSVC.
3069         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3070         used as a function pointer.
3071         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3072
3073 2012-02-24  Bruno Haible  <bruno@clisp.org>
3074
3075         ceilf: Provide function definition on MSVC.
3076         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3077         used as a function pointer.
3078         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3079
3080 2012-02-24  Bruno Haible  <bruno@clisp.org>
3081
3082         floorf: Provide function definition on MSVC.
3083         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3084         used as a function pointer.
3085         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3086
3087 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         stdnoreturn: new module
3090         This implements a replacement for C11's <stdnoreturn.h>.
3091         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3092         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3093         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3094         * tests/test-stdnoreturn.c: New files.
3095
3096 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3097
3098         regex: fix false multibyte matches in some regular expressions
3099         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3100         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3101         * lib/regex_internal.c (re_string_skip_chars):
3102         Fix miscomputation of remain_len that may cause incomplete
3103         multi-byte character and false match.
3104
3105 2012-02-24  Jim Meyering  <meyering@redhat.com>
3106
3107         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3108         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3109         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3110         Remove now-unnecessary str''cmp obfuscation.
3111         Suggested by Akim Demaille.
3112
3113 2012-02-24  Bruno Haible  <bruno@clisp.org>
3114
3115         streq: Rename macro.
3116         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3117         * NEWS: Mention the change.
3118         * lib/mbrtowc.c (mbrtowc): Update.
3119         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3120         * lib/wcwidth.c (wcwidth): Update.
3121         Suggested by Akim Demaille and Jim Meyering.
3122
3123 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3124
3125         regex: fix typo in definition of MIN
3126         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3127         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3128
3129 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3130             Bruno Haible  <bruno@clisp.org>
3131
3132         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3133         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3134         entries into a stack-allocated buffer directly.
3135         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3136
3137 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3138             Bruno Haible  <bruno@clisp.org>
3139
3140         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3141
3142          - There were several instances of this pattern:
3143
3144              for (;;) {
3145                n = acl (f, GETACLCNT, 0, NULL);
3146                [ allocate an array A of size N ]
3147                if (acl (f, GETACL, n, a) == n)
3148                  break;
3149              }
3150
3151            This loop might never terminate if some other process is constantly
3152            manipulating the file's ACL.  The loop should be rewritten to
3153            terminate.
3154
3155          - The acl (... GETACLNT ...) call is merely an optimization; its value
3156            is merely a hint as to how big to make the array.  A better
3157            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3158            and just guess a reasonably-big size, growing the size and trying
3159            again if it's not large enough.  This guarantees termination, and
3160            saves a system call.
3161
3162         * lib/acl-internal.h: Include <limits.h>.
3163         (MIN, SIZE_MAX): New macros.
3164         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3165         a stack-allocated buffer, and use malloc if it does not fit. Don't
3166         use GETACLCNT.
3167         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3168
3169 2012-02-19  Bruno Haible  <bruno@clisp.org>
3170
3171         acl: Fix endless loop on Solaris with vxfs.
3172         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3173         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3174         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3175         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3176         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3177         Reported by Bill Jones in
3178         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3179
3180 2012-02-19  Bruno Haible  <bruno@clisp.org>
3181
3182         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3183         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3184         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3185         that this function returns 0 in some more cases.
3186
3187 2012-02-19  Bruno Haible  <bruno@clisp.org>
3188
3189         acl: Update doc references.
3190         * doc/acl-resources.txt: Update links to Solaris documentation.
3191
3192 2012-02-19  Bruno Haible  <bruno@clisp.org>
3193
3194         Fix test failure in many locales on Solaris 11.
3195         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3196         'tr' arguments.
3197         * tests/test-pipe-filter-ii1.c (main): Likewise.
3198         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3199         expressions in the C locale.
3200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3201         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3202
3203 2012-02-19  Bruno Haible  <bruno@clisp.org>
3204
3205         gnulib-tool: Improve usage message.
3206         * gnulib-tool (func_usage): Move doc of --help and --version to the
3207         section "Operation modes".
3208
3209 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3210
3211         README-release: make it easier to execute commands
3212         * top/README-release: break commands out on to separate lines.
3213
3214 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3215
3216         GNUmakefile: simplify detection of unconfigured trees
3217         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3218         whether the tree make is being run from is already configured or
3219         not.  Related simplifications.
3220
3221 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3222
3223         * gnulib-tool (func_usage): Document --help and --version.
3224
3225 2012-02-11  Jim Meyering  <meyering@redhat.com>
3226
3227         bootstrap: don't exit 0 upon gnulib-tool failure
3228         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3229         its exit status, not 0.
3230
3231 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3232
3233         README-release: various improvements
3234         * top/README-release: Give a command to push changes for the
3235         release.  Add "distcheck" to list of other pre-release checks.
3236         Fix instance of "make stable" which should be "make TYPE".
3237
3238 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         maint: replace FSF snail-mail addresses with URLs
3241         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3242         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3243         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3244         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3245         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3246         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3247         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3248         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3249         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3250         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3251         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3252         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3253         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3254         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3255         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3256         * lib/glthread/thread.c, lib/glthread/thread.h:
3257         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3258         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3259         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3260         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3261         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3262         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3263         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3264         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3265         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3266         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3267         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3268         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3269         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3270         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3271         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3272         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3273         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3274         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3275         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3276         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3277         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3278         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3279         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3280         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3281         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3282         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3283         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3284         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3285         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3286         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3287         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3288         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3289         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3290         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3291         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3292         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3293         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3294         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3295         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3296         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3297         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3298         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3299         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3300         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3301         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3302         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3303         * tests/test-poll.c, tests/test-quotearg-simple.c:
3304         * tests/test-quotearg.c, tests/test-quotearg.h:
3305         * tests/test-round-ieee.c, tests/test-round1.c:
3306         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3307         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3308         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3309         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3310         * tests/test-strerror.c, tests/test-strerror_r.c:
3311         * tests/test-strsignal.c, tests/test-strverscmp.c:
3312         * tests/test-xmemdup0.c:
3313         Replace FSF snail mail addresses with URLs, as per GNU coding
3314         standards.  See glibc bug
3315         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3316
3317 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3318
3319         README-release: capitalize a word and split a line
3320         * top/README-release: Fix punctuation and spacing.
3321
3322 2012-02-08  Akim Demaille  <demaille@gostai.com>
3323
3324         fatal-signal: use C prototypes (with explicit void).
3325         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3326         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3327
3328 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         regex: spelling fix
3331         * lib/regexec.c: spelling fix
3332
3333         regex: rely on stdint.h for SIZE_MAX
3334         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3335
3336 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3337
3338         regex: merge glibc changes
3339
3340         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3341         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3342         (init_word_char): Work even if bitset words are not exactly 32 or
3343         64 bits wide.  Don't assume there are no padding bits.
3344         * lib/regex.c [_LIBC]: Do not include <config.h>.
3345         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3346         and -Wtype-limits.
3347         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3348         needless disagreement with glibc.  All uses changed.  Define it to
3349         1 only if _GNU_SOURCE, to match glibc.
3350         (_REG_RM_NAME): Remove; no longer needed, since the names in
3351         question are now all protected by __USE_GNU.
3352         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3353         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3354         * lib/regex_internal.h (MIN): New macro.
3355
3356         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3357         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3358
3359         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3360         * lib/regex_internal.c (re_string_fetch_byte_case):
3361         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3362         is miscompiled, and it turns out it is because of an incorrect
3363         attribute on re_string_fetch_byte_case.  Unlike
3364         re_string_peek_byte_case, this one is really not pure, it modifies
3365         memory (increments pstr->cur_idx), and with the pure attribute GCC
3366         assumed it doesn't and it cached the presumed value of
3367         regexp->cur_idx in a variable across the
3368          for (;; ++i)
3369            {
3370              if (i >= BRACKET_NAME_BUF_SIZE)
3371                return REG_EBRACK;
3372              if (token->type == OP_OPEN_CHAR_CLASS)
3373                ch = re_string_fetch_byte_case (regexp);
3374              else
3375                ch = re_string_fetch_byte (regexp);
3376              if (re_string_eoi(regexp))
3377                return REG_EBRACK;
3378              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3379                break;
3380              elem->opr.name[i] = ch;
3381            }
3382
3383         2011-11-29 Andreas Schwab <schwab@redhat.com>
3384         * lib/regcomp.c (build_equiv_class):
3385         Fix access after end of search string in regex matcher.
3386
3387         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3388         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3389
3390         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3391         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3392
3393         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3394         * lib/regcomp.c (parse_branch, parse_sub_exp):
3395         More regex memory leak fixes and tests.
3396         (parse_sub_exp, parse_bracket_exp):
3397         Fix memory leak for some invalid regular expressions.
3398
3399         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3400         * lib/regex_internal.c, lib/regexec.c:
3401         Fix unnecessary overallocation due to incomplete character.  When
3402         incomplete characters are found at the end of a string the code
3403         ran amok and allocated lots of memory.  Stricter limits are now in
3404         place.
3405
3406         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3407         * lib/regex.h: Update documentation.
3408
3409         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3410         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3411
3412         2010-05-05 Andreas Schwab <schwab@redhat.com>
3413         * lib/regexec.c (find_collation_sequence_value):
3414         Fix lookup of collation sequence value during regexp matching.
3415
3416         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3417         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3418
3419         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3420         * lib/regex.h: Cleanup namespace.
3421
3422         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3423         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3424
3425         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3426         * lib/regex_internal.h: Prevent some declarations and definitions
3427         to be seen when used in tests.
3428
3429         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3430         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3431         __libc_lock_* macros if not _LIBC.
3432         (struct re_dfa_t): Add lock.
3433
3434 2012-02-07  Eric Blake  <eblake@redhat.com>
3435
3436         maint.mk: also prohibit lower-case @var@
3437         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3438         lower case, like @top_srcdir@.
3439
3440 2012-02-04  Eric Blake  <eblake@redhat.com>
3441
3442         canonicalize: avoid uninitialized memory use
3443         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3444         random '/' left in dest.
3445         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3446
3447 2012-02-04  Bruno Haible  <bruno@clisp.org>
3448
3449         isatty: Fix test failure of ptsname_r on native Windows.
3450         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3451         and don't set errno.
3452         (isatty): Test first whether fd is valid. Set errno when returning 0.
3453
3454 2012-02-04  Bruno Haible  <bruno@clisp.org>
3455
3456         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3457         * tests/test-spawn-pipe-main.c: Include progname.h.
3458         (main): Invoke set_program_name.
3459         * modules/spawn-pipe-tests (Depends-on): Add progname.
3460
3461         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3462         * tests/test-nonblocking-socket-main.c: Include progname.h.
3463         (main): Invoke set_program_name.
3464         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3465
3466         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3467         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3468         (main): Invoke set_program_name.
3469         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3470
3471 2012-02-04  Eric Blake  <eblake@redhat.com>
3472
3473         canonicalize-lgpl: fix // handling
3474         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3475
3476         canonicalize: fix // handling
3477         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3478         /// to //, since only // is special.
3479
3480 2012-02-04  Bruno Haible  <bruno@clisp.org>
3481
3482         ioctl: Fix test failure on native Windows.
3483         * lib/ioctl.c: Include msvc-nothrow.h.
3484         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3485
3486 2012-02-04  Bruno Haible  <bruno@clisp.org>
3487
3488         fsync: Avoid test failure on native Windows.
3489         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3490         read-only.
3491
3492 2012-02-04  Bruno Haible  <bruno@clisp.org>
3493
3494         sys_select: Avoid syntax error on OpenBSD 5.0.
3495         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3496         currently being included, just include the system's <sys/select.h>.
3497
3498 2012-02-04  Bruno Haible  <bruno@clisp.org>
3499
3500         sys_select: Avoid syntax error on OpenBSD 5.0.
3501         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3502         <sys/select.h>, not before.
3503         Reported by Jiri B <jirib@devio.us>.
3504
3505 2012-02-04  Bruno Haible  <bruno@clisp.org>
3506
3507         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3508         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3509         global variables.
3510         * tests/test-get-rusage-data.c (main): Likewise.
3511         Reported by Jim Meyering.
3512
3513 2012-02-04  Bruno Haible  <bruno@clisp.org>
3514
3515         stdioext: Fix last commit.
3516         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3517
3518 2012-02-03  Bruno Haible  <bruno@clisp.org>
3519
3520         stdioext: Add tentative support for Plan9.
3521         * lib/stdio-impl.h: Include <errno.h>.
3522         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3523         * lib/freadable.c (freadable): Likewise.
3524         * lib/fwritable.c (fwritable): Likewise.
3525         * lib/fbufmode.c (fbufmode): Likewise.
3526         * lib/freading.c (freading): Likewise.
3527         * lib/fwriting.c (fwriting): Likewise.
3528         * lib/freadptr.c (freadptr): Likewise.
3529         * lib/freadseek.c (freadptrinc): Likewise.
3530         * lib/freadahead.c (freadahead): Likewise.
3531         * lib/fpurge.c (fpurge): Likewise.
3532         * lib/fseeko.c (rpl_fseeko): Likewise.
3533         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3534         Reported by Jens Staal <staal1978@gmail.com>.
3535
3536 2012-02-02  Jim Meyering  <meyering@redhat.com>
3537
3538         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3539         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3540         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3541         not even to try to add the attribute.  Instead, add a pragma to suppress
3542         the suggestion/warning.
3543
3544 2012-01-31  Karl Berry  <karl@gnu.org>
3545
3546         setstate doc: typo.
3547         * doc/posix-functions/setstate.texi (setstate): { not (.
3548
3549 2012-01-31  Bruno Haible  <bruno@clisp.org>
3550
3551         popen: Make more robust on Windows.
3552         * lib/popen.c: On native Windows, use the _popen based code even if
3553         HAVE_POPEN is set.
3554         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3555         environment variable on native Windows.
3556
3557 2012-01-30  Bruno Haible  <bruno@clisp.org>
3558
3559         pclose: Fix typo.
3560         * lib/stdio.in.h (pclose): Fix typo in warning message.
3561
3562 2012-01-30  Bruno Haible  <bruno@clisp.org>
3563
3564         doc about getlogin_r, setstate.
3565         * doc/posix-functions/getlogin_r.texi: List the incompatible
3566         declaration problem under "not fixed by gnulib".
3567         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3568         problem on Solaris 11 and other platforms.
3569
3570 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3571             Bruno Haible  <bruno@clisp.org>
3572
3573         poll tests: Make test more robust.
3574         * tests/test-poll.c: Include macros.h.
3575         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3576         return value of various I/O operations.
3577         * modules/poll-tests (Files): Add tests/macros.h.
3578
3579 2012-01-30  Bruno Haible  <bruno@clisp.org>
3580
3581         sys_stat: Fix support for mingw64 and MSVC.
3582         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3583         header files already do it.
3584         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3585         stat itself.
3586         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3587
3588 2012-01-30  Bruno Haible  <bruno@clisp.org>
3589
3590         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3592         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3593
3594 2012-01-29  Bruno Haible  <bruno@clisp.org>
3595
3596         quotearg: Fix test failure on MacOS X 10.5.
3597         * tests/test-quotearg-simple.c: Include localcharset.h.
3598         (main): If the locale encoding is not ASCII, bypass the tests of
3599         locale_quoting_style and clocale_quoting_style.
3600         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3601
3602 2012-01-29  Jim Meyering  <meyering@redhat.com>
3603
3604         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3605         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3606         detect uses of canonicalize_file_name.
3607
3608 2012-01-28  Bruno Haible  <bruno@clisp.org>
3609
3610         test-framework-sh: Fix test failure with AIX 7.1 diff.
3611         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3612         in column 1, like 'diff -c' does.
3613         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3614         whether 'diff -u' is used. Instead, test whether the output contains
3615         some '@' character.
3616
3617 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         strtoimax: eliminate need for stdint.h, inttypes.h checks
3620         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3621         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3622         the prerequisites for a recently-introduced strtoimax test.
3623         I guess this might cause strtoimax to be replaced when not
3624         strictly necessary on older hosts, but this shouldn't introduce
3625         any bugs and it should make Emacs 'configure' faster on typical
3626         modern hosts.  Problem discovered when importing the latest gnulib
3627         to an Emacs test version.
3628         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3629
3630 2012-01-28  Bruno Haible  <bruno@clisp.org>
3631
3632         sys_time: Override 'struct timeval' on some native Windows platforms.
3633         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3634         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3635         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3636         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3637         needs to be overridden.
3638         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3639         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3640         * tests/test-sys_select.c: Check that the tv_sec member has the same
3641         size as a 'time_t'.
3642         * tests/test-sys_time.c: Likewise.
3643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3644         is set, set also REPLACE_GETTIMEOFDAY.
3645         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3646         convert the resulting 'struct timeval' before returning.
3647         * lib/select.c: Include <sys/time.h>.
3648         (select, timeval): Undefine at the right place.
3649         * modules/select (Depends-on): Add sys_time.
3650         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3651         some Windows platforms.
3652         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3653
3654 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3655
3656         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3657         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3658         an integer.
3659         * lib/fcntl.c (dupfd): Likewise.
3660         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3661
3662 2012-01-28  Bruno Haible  <bruno@clisp.org>
3663
3664         fcntl: Avoid compilation error on native Windows.
3665         * modules/fcntl (Depends-on): Add 'close'.
3666
3667 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3668
3669         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3670         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3671         pointer to an integer.
3672         * lib/poll.c (IsConsoleHandle): Likewise.
3673         * lib/isatty.c (IsConsoleHandle): Likewise.
3674
3675 2012-01-28  Jim Meyering  <meyering@redhat.com>
3676
3677         doc: clarify README-release
3678         * top/README-release: Clarify: you should make a point to have
3679         the latest stable versions of build tools in your PATH, and the
3680         reference to buildreq is solely for its list of tool names, not
3681         for its minimal-functional version numbers.
3682         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3683
3684         maint.mk: use more readable (yet functionally equivalent) quoting
3685         It is common to quote a single quote in a single quoted string like
3686         this:  '...'\''...'.  Unless you know the idiom, that looks like
3687         gibberish, so prefer to double-quote the string when possible.
3688         Then you can use a more readable, lone single quote: "...'..."
3689         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3690         "don't" is more readable than the equivalent 'don'\''t'.
3691         (sc_cast_of_x_alloc_return_value): Likewise.
3692         (sc_cast_of_alloca_return_value): Likewise.
3693         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3694         rather than '\'':'\''.
3695
3696 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3697
3698         stdalign: relax _Alignof and tighten _Alignas test
3699         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3700         as it was too strict: alignof must divide offsetof, but it need
3701         not equal offsetof.  Inspired by Joseph S. Myers's comment
3702         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3703         Conversely, tighten the _Alignas test a bit, as the resulting
3704         alignment must be exactly 8.
3705
3706 2012-01-27  Bruno Haible  <bruno@clisp.org>
3707
3708         stdalign: Document the last change.
3709         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3710
3711 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3712
3713         stdalign: check that alignof and offsetof are consistent
3714         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3715         Problem reported for gnulib by Richard W.M. Jones in
3716         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3717
3718 2012-01-27  Jim Meyering  <meyering@redhat.com>
3719
3720         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3721         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3722         convert a sequence with gaps to the minimal containing range.
3723         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3724         * tests/test-update-copyright.sh: Test for this.
3725         The FSF confirmed it is ok to do this, assuming there is at
3726         least one significant change per year in the affected range:
3727         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3728
3729 2012-01-26  Bruno Haible  <bruno@clisp.org>
3730
3731         pipe2: refine doc about thread-safety
3732         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3733         multithread-safety problem.
3734         * doc/glibc-functions/accept4.texi: Likewise.
3735
3736 2012-01-26  Bruno Haible  <bruno@clisp.org>
3737
3738         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3739         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3740         In the test program, include <fcntl.h>, for O_RDONLY.
3741
3742 2012-01-26  Eric Blake  <eblake@redhat.com>
3743
3744         pipe2: document lack of thread-safety in replacement
3745         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3746         issue in replacement.
3747         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3748         Based on a report by Eric Wong.
3749
3750 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3751             Bruno Haible  <bruno@clisp.org>
3752
3753         malloca: Avoid warnings on x86_64 mingw64.
3754         * lib/malloca.c: Include <stdint.h>.
3755         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3756         * modules/malloca (Depends-on): Add stdint.
3757         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3758
3759 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3760
3761         obstack: remove __STDC__ conditionals
3762         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3763         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3764         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3765         m4/include_next.m4 as the only gnulib-maintained places that still
3766         refer to __STDC__.
3767
3768 2012-01-24  Bruno Haible  <bruno@clisp.org>
3769
3770         havelib: Modern quoting.
3771         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3772         the recent change to the GNU coding standards.
3773
3774 2012-01-24  Bruno Haible  <bruno@clisp.org>
3775
3776         stdint: Improve support for Android.
3777         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3778         Reported by Simon Josefsson <simon@josefsson.org>.
3779
3780 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3781
3782         doc: omit trailing empty lines from INSTALL etc.
3783         * doc/Makefile (INSTALL): Omit trailing empty lines.
3784         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3785         omit trailing empty lines.  This simplifies the build procedure.
3786
3787 2012-01-23  Jim Meyering  <meyering@redhat.com>
3788
3789         tests: avoid spurious warnings about gl_sockets_startup
3790         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3791         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3792         reporting a "statement with no effect".
3793         * tests/test-accept.c (main): Mark as "(void)".
3794         * tests/test-accept4.c (main): Likewise.
3795         * tests/test-bind.c (main): Likewise.
3796         * tests/test-connect.c (main): Likewise.
3797         * tests/test-getpeername.c (main): Likewise.
3798         * tests/test-getsockname.c (main): Likewise.
3799         * tests/test-getsockopt.c (main): Likewise.
3800         * tests/test-listen.c (main): Likewise.
3801         * tests/test-recv.c (main): Likewise.
3802         * tests/test-recvfrom.c (main): Likewise.
3803         * tests/test-send.c (main): Likewise.
3804         * tests/test-sendto.c (main): Likewise.
3805         * tests/test-setsockopt.c (main): Likewise.
3806         * tests/test-shutdown.c (main): Likewise.
3807
3808 2012-01-21  Bruno Haible  <bruno@clisp.org>
3809
3810         locale-fr.m4: Fix for Android.
3811         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3812         failure of the test program on Bionic libc.
3813
3814 2012-01-21  Jim Meyering  <meyering@redhat.com>
3815
3816         bootstrap: fail when bootstrap_post_import_hook fails
3817         Otherwise, it's far too easy to miss diagnostics emitted
3818         between gnulib-tool's output and that of running configure.
3819         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3820
3821 2012-01-17  Jim Meyering  <meyering@redhat.com>
3822
3823         maint: enable sc_trailing_blank
3824         * build-aux/pmccabe.css: Remove trailing blanks.
3825         * doc/acl-cygwin.txt: Likewise.
3826         * doc/gnu-oids.texi: Likewise
3827         * cfg.mk: Enable sc_trailing_blank.
3828         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3829
3830 2012-01-17  Jim Meyering  <meyering@redhat.com>
3831
3832         maint: enable sc_prohibit_openat_without_use
3833         * cfg.mk: Enable sc_prohibit_openat_without_use.
3834         Exempt lib/selinux-at.c.
3835
3836 2012-01-17  Jim Meyering  <meyering@redhat.com>
3837
3838         maint: enable sc_prohibit_cloexec_without_use
3839         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3840         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3841
3842 2012-01-17  Jim Meyering  <meyering@redhat.com>
3843
3844         maint: enable sc_prohibit_intprops_without_use
3845         * cfg.mk: Enable sc_prohibit_intprops_without_use
3846         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3847
3848 2012-01-17  Jim Meyering  <meyering@redhat.com>
3849
3850         maint: enable sc_prohibit_hash_pjw_without_use
3851         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3852         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3853         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3854         following " (".
3855
3856 2012-01-17  Jim Meyering  <meyering@redhat.com>
3857
3858         maint: enable double-word-prohibiting rule
3859         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3860         Exempt three files.
3861
3862 2012-01-17  Jim Meyering  <meyering@redhat.com>
3863
3864         maint: remove empty lines at EOF, but excluding modules/*
3865         Apply syntax rules at home as well as abroad.  Most changes
3866         were induced by running this:
3867           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3868             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3869             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3870         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3871         Exempt modules/* and two binary files.
3872         Also exempt doc/INSTALL*, per request from Bruno Haible.
3873         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3874         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3875         * doc/Copyright/request-assign.future: Likewise.
3876         * doc/Copyright/request-disclaim.changes: Likewise.
3877         * doc/INSTALL: Likewise.
3878         * doc/INSTALL.ISO: Likewise.
3879         * doc/INSTALL.UTF-8: Likewise.
3880         * doc/acl-cygwin.txt: Likewise.
3881         * doc/acl-resources.txt: Likewise.
3882         * doc/fdl-1.2.texi: Likewise.
3883         * doc/fdl-1.3.texi: Likewise.
3884         * doc/fdl.texi: Likewise.
3885         * lib/argp-pin.c: Likewise.
3886         * lib/round.c: Likewise.
3887         * lib/unicase/u16-totitle.c: Likewise.
3888         * lib/unictype/block_test.c: Likewise.
3889         * lib/uninorm/canonical-decomposition.c: Likewise.
3890         * m4/README: Likewise.
3891         * m4/relocatable-lib.m4: Likewise.
3892         * tests/test-isnand-nolibm.c: Likewise.
3893         * tests/test-isnand.c: Likewise.
3894         * tests/uninorm/NormalizationTest.txt: Likewise.
3895
3896 2012-01-17  Jim Meyering  <meyering@redhat.com>
3897
3898         maint: add framework to run syntax-check rules against gnulib sources
3899         * cfg.mk: New file, to disable all currently-failing tests.
3900         We'll enable them one by one, as they are made to pass.
3901         * Makefile (sc_maint): New rule.
3902
3903 2012-01-21  Bruno Haible  <bruno@clisp.org>
3904
3905         stdint: Add support for Android.
3906         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3907         include the system's <stdint.h>.
3908         Reported by Simon Josefsson <simon@josefsson.org>.
3909
3910 2012-01-19  Jim Meyering  <meyering@redhat.com>
3911
3912         bootstrap: add bootstrap_post_import_hook
3913         Bison does still need something like the gnulib_mk_hook whose
3914         invocation I had to remove along with slurp in commit 767ccd40.
3915         Technically, we could get along without it, but doing so would
3916         have required living with a warning and a mandatory post-bootstrap
3917         automake rerun.
3918         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3919         (bootstrap_post_import_hook): New function.
3920         Invoke it after gnulib-tool --import and before autoreconf.
3921
3922 2012-01-18  Jim Meyering  <meyering@redhat.com>
3923
3924         gitlog-to-changelog: don't use "no_"-prefixed variable name
3925         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3926         to enable both --cluster and --no-cluster.  Change variable name,
3927         s/\$no_cluster/$cluster/, and reverse usage to match.
3928
3929         gitlog-to-changelog: use "||", not "or" in expressions
3930         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3931         expressions.
3932
3933 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3934
3935         gitlog-to-changelog: new option --no-cluster
3936         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3937         clustering of adjacent commit messages.
3938
3939 2012-01-17  Jim Meyering  <meyering@redhat.com>
3940
3941         maint: spell file systems with two words, not one
3942         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3943         two words, not one.
3944
3945 2012-01-16  Jim Meyering  <meyering@redhat.com>
3946
3947         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3948         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3949
3950 2012-01-16  Eric Blake  <eblake@redhat.com>
3951
3952         bootstrap: cater to autoconf 2.59
3953         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3954         is not available.
3955
3956         bootstrap: properly check for libtool
3957         * build-aux/bootstrap (libtoolize): Also run libtool when older
3958         usage is detected.
3959
3960 2012-01-15  Bruno Haible  <bruno@clisp.org>
3961
3962         Improve support for MSVC 9.
3963         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3964         clashes on MSVC.
3965         * lib/fcntl.in.h: Likewise.
3966         * lib/stdlib.in.h: Likewise.
3967         * lib/sys_stat.in.h: Likewise.
3968
3969 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3970
3971         gnupload: we hold the master copy of this script now
3972         For motivation and more information, see:
3973         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3974         * build-aux/gnupload: Make it clear in the heading comments that the
3975         master copy of this file is maintained by gnulib.  Since we are at
3976         it, bump its copyright year and ...
3977         ($scriptversion): ... the date in its version.
3978         ($usage): Patches and bug reports should be sent to the gnulib list,
3979         not the automake one.
3980         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3981         anymore.
3982
3983 2012-01-15  Bruno Haible  <bruno@clisp.org>
3984
3985         Fix module 'random'.
3986         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3987         initstate, setstate are declared.
3988
3989 2012-01-14  Bruno Haible  <bruno@clisp.org>
3990
3991         Tests for module 'random'.
3992         * modules/random-tests: New file.
3993         * tests/test-random.c: New file, based on tests/test-random_r.c.
3994
3995         New module 'random'.
3996         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3997         declarations.
3998         * lib/random.c: New file, based on glibc/stdlib/random.c.
3999         * m4/random.m4: New file.
4000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4001         HAVE_RANDOM.
4002         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4003         * modules/random: New file.
4004         * config/srclist.txt: Add an entry for random.c.
4005         * doc/posix-functions/random.texi: Mention the 'random' module.
4006         * doc/posix-functions/initstate.texi: Likewise.
4007         * doc/posix-functions/setstate.texi: Likewise.
4008         * doc/posix-functions/srandom.texi: Likewise.
4009
4010 2012-01-12  Bruno Haible  <bruno@clisp.org>
4011
4012         random_r: Use common idioms.
4013         * lib/random_r.c: Include <stdlib.h> first.
4014
4015         random_r: Override incompatible API on AIX, OSF/1.
4016         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4017         Override the system function if REPLACE_RANDOM_R is 1.
4018         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4019         and OSF/1, set REPLACE_RANDOM_R.
4020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4021         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4022         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4023         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4024         * doc/glibc-functions/random_r.texi: Likewise.
4025         * doc/glibc-functions/setstate_r.texi: Likewise.
4026
4027         random_r: Support for MSVC 9.
4028         * lib/random_r.c: Include stdint.h, not inttypes.h.
4029
4030 2012-01-12  Eric Blake  <eblake@redhat.com>
4031
4032         inet_ntop: guard extra work by IF_LINT
4033         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4034         better code generation when not checking for warnings.
4035         Suggested by Paul Eggert and Jim Meyering.
4036
4037         strptime: fix regression on mingw
4038         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4039         Fix regression.  Reported by Bruno Haible.
4040
4041 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4042             Bruno Haible  <bruno@clisp.org>
4043
4044         copy-file: add error-code-returning variant.
4045         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4046         (qcopy_file_preserving): New declaration.
4047         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4048         copy_file_preserving. Change return type to 'int'. Don't emit an error
4049         message here.
4050         (copy_file_preserving): New function.
4051         * tests/test-copy-file.c: Include <stdlib.h>.
4052         (main): Test qcopy_file_preserving if the environment variable
4053         NO_STDERR_OUTPUT is set.
4054         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4055         with NO_STDERR_OUTPUT
4056         * tests/test-copy-file-2.sh: Likewise.
4057
4058 2012-01-10  Bruno Haible  <bruno@clisp.org>
4059
4060         copy-file: Use 'quote' module consistently.
4061         * lib/copy-file.c (copy_file_preserving): Use quote().
4062
4063         copy-file: Refactor.
4064         * lib/copy-file.c: Include quote.h.
4065         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4066         message here.
4067         * modules/copy-file (Depends-on): Add quote.
4068
4069         acl: Export qcopy_acl.
4070         * lib/acl.h (qcopy_acl): New declaration.
4071         * lib/copy-acl.c (qcopy_acl): Make non-static.
4072
4073         acl: Rename a local variable.
4074         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4075
4076         acl: Align return values of copy_acl and qcopy_acl.
4077         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4078         maybe < -1.
4079
4080 2012-01-11  Eric Blake  <eblake@redhat.com>
4081
4082         strptime: silence gcc warnings
4083         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4084         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4085         Reported by Daniel P. Berrange.
4086
4087         inet_ntop: silence gcc warning
4088         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4089         Reported by Daniel P. Berrange.
4090
4091 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4092
4093         getloadavg test: skip the test on GNU/Linux without /proc mounted
4094         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4095         file.  When /proc is not mounted, it always fails with ENOENT.
4096         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4097         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4098
4099 2012-01-10  Bruno Haible  <bruno@clisp.org>
4100
4101         regex: Avoid link error on MSVC 9.
4102         * modules/regex (Depends-on): Add wctype.
4103
4104 2012-01-10  Bruno Haible  <bruno@clisp.org>
4105
4106         doc: Mention --with-tests option.
4107         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4108         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4109         --with-tests.
4110         Reported by Reuben Thomas.
4111
4112 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4113
4114         users.txt: order package names lexicographically.
4115         * users.txt: Order package names lexicographically.
4116
4117 2012-01-10  Jim Meyering  <meyering@redhat.com>
4118
4119         maint.mk: fix description in comment
4120         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4121
4122         ignore-value: remove deprecated ignore_ptr function
4123         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4124         * NEWS: Note this.
4125
4126 2012-01-09  Jim Meyering  <meyering@redhat.com>
4127
4128         test-init.sh: avoid a subshell
4129         * tests/test-init.sh: Remove protective subshell.
4130         Suggested by Bernhard Voelker.  While a subshell is normally
4131         required to protect against older shells (Solaris, FreeBSD) that
4132         warn about a missing program before performing redirection, the
4133         shell-selection tests performed by init.sh probably exclude any
4134         offending shell.
4135
4136 2012-01-08  Bruno Haible  <bruno@clisp.org>
4137
4138         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4139         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4140         variable.
4141
4142 2012-01-08  Bruno Haible  <bruno@clisp.org>
4143
4144         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4145         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4146         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4147         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4148         macro.
4149         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4150         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4151         * lib/spawn_faction_addopen.c: Add workaround implementation if
4152         HAVE_WORKING_POSIX_SPAWN.
4153         * modules/spawn (Makefile): Substitute
4154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4155         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4156         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4157         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4158         (Depends-on): Update conditions.
4159         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4160         the Solaris 11 bug.
4161
4162 2012-01-08  Bruno Haible  <bruno@clisp.org>
4163
4164         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4165         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4166         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4167         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4168         macro.
4169         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4170         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4171         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4172         HAVE_WORKING_POSIX_SPAWN.
4173         * modules/spawn (Makefile): Substitute
4174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4175         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4176         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4177         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4178         (Depends-on): Update conditions.
4179         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4180         the Solaris 11 bug.
4181
4182 2012-01-08  Bruno Haible  <bruno@clisp.org>
4183
4184         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4185         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4187         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4188         HAVE_WORKING_POSIX_SPAWN.
4189         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4190         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4191         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4192         * lib/spawn_faction_addclose.c: Add workaround implementation if
4193         HAVE_WORKING_POSIX_SPAWN.
4194         * modules/spawn (Makefile): Substitute
4195         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4196         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4197         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4198         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4199         (Depends-on): Update conditions.
4200         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4201         the Solaris 11 bug.
4202
4203 2012-01-08  Bruno Haible  <bruno@clisp.org>
4204
4205         doc: Update for Solaris 11 2011-11.
4206         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4207         * m4/printf.m4: Update comments.
4208
4209 2012-01-08  Bruno Haible  <bruno@clisp.org>
4210
4211         mktime: Avoid compilation error on Solaris 11.
4212         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4213
4214 2012-01-08  Bruno Haible  <bruno@clisp.org>
4215
4216         doc: Small fix.
4217         * doc/posix-headers/nl_types.texi: Correct platforms list.
4218
4219 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4220
4221         Add lgpl-3.0 module.
4222         * MODULES.html.sh (Support for building documentation): Add
4223         lgpl-3.0.
4224         * modules/lgpl-3.0: New file.
4225
4226 2012-01-08  Jim Meyering  <meyering@redhat.com>
4227
4228         select.c: indent with spaces, not TABs
4229         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4230
4231 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4232
4233         quotearg: do not use grave accent for left quote
4234         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4235         locale_quoting_style.
4236         (quotearg_buffer_restyled): Fix example.
4237         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4238
4239 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4240
4241         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4242         Most programs do not have translation catalogs for English and much
4243         less separate catalogs for British and American English.  Drop the
4244         suggestion to translators about these two, and provide it
4245         automatically for Unicode locales.  Like most programs, even those
4246         using American English, we use single quotation marks.  This conflicts
4247         with the American typographic convention, but works better when you
4248         cite the entire error message within double quotes.  It also tries not
4249         to clash with established practice and with what non-gnulib programs
4250         will usually do.
4251         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4252         using an UTF-8 or GB-18030 locale.  The list of other locales with
4253         quotes was provided by Bruno Haible.
4254         (quotearg_buffer_restyled): Adjust instructions to translators.
4255         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4256         text, since this would be wrong when using Unicode.
4257         * modules/quotearg: Depend on c-strcaseeq.
4258
4259 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4260
4261         quotearg: fix Wikipedia link
4262         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4263
4264 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4265
4266         Fix for mingw with MSVC9.
4267         * m4/ld-version-script.m4: Check that compiler rejects version
4268         scripts with syntax errors.  Reported by Bruno Haible
4269         <bruno@clisp.org>.
4270
4271 2012-01-06  Bruno Haible  <bruno@clisp.org>
4272
4273         Talk about "native Windows API", not "Woe32".
4274         * lib/accept4.c: Update comments to mention native Windows.
4275         * lib/execute.c: Likewise.
4276         * lib/fatal-signal.c: Likewise.
4277         * lib/localcharset.c: Likewise.
4278         * lib/nanosleep.c: Likewise.
4279         * lib/nl_langinfo.c: Likewise.
4280         * lib/pclose.c: Likewise.
4281         * lib/pipe-filter-gi.c: Likewise.
4282         * lib/pipe-filter-ii.c: Likewise.
4283         * lib/pipe.c: Likewise.
4284         * lib/pipe2.c: Likewise.
4285         * lib/popen.c: Likewise.
4286         * lib/progreloc.c: Likewise.
4287         * lib/relocatable.c: Likewise.
4288         * lib/sigaction.c: Likewise.
4289         * lib/sigprocmask.c: Likewise.
4290         * lib/spawn-pipe.h: Likewise.
4291         * lib/spawn-pipe.c: Likewise.
4292         * lib/spawni.c: Likewise.
4293         * lib/stat-time.h: Likewise.
4294         * lib/w32spawn.h: Likewise.
4295         * tests/test-isatty.c: Likewise.
4296         * lib/config.charset: More comments.
4297         * doc/gnulib-intro.texi: Mention native Windows.
4298         * doc/posix-functions/_Exit_C99.texi: Likewise.
4299         * doc/posix-headers/fcntl.texi: Likewise.
4300
4301 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4302
4303         argp: Avoid crash if translator uses % characters in a translation.
4304         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4305         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4306
4307 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4308
4309         doc: C11 and C++11 are now official
4310         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4311         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4312         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4313         * modules/stdalign:
4314         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4315
4316 2012-01-06  Bruno Haible  <bruno@clisp.org>
4317
4318         uc-is-grapheme-break tests: Tweak.
4319         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4320         message.
4321
4322 2012-01-06  Bruno Haible  <bruno@clisp.org>
4323
4324         test-init.sh: correct the test for diff -u
4325         * tests/test-init.sh: Also redirect stdout to /dev/null.
4326
4327 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4328
4329         Use ', not `, for quoting output.
4330         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4331         (print_changelog_deltas, get_tool_versions, main program):
4332         * build-aux/git-version-gen:
4333         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4334         * build-aux/move-if-change (help):
4335         * build-aux/useless-if-before-free (usage, main program):
4336         * check-module (parse_module_file, usage)
4337         (find_included_lib_files, check_module):
4338         * lib/argmatch.c (main) [TEST]:
4339         * lib/argp-help.c (_help):
4340         * lib/getopt1.c (main) [TEST]:
4341         * lib/git-merge-changelog.c (usage):
4342         * lib/xstrtol-error.c (xstrtol_error):
4343         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4344         * m4/argz.m4 (gl_FUNC_ARGZ):
4345         * m4/bison.m4 (gl_BISON):
4346         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4348         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4349         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4350         * m4/gc-random.m4 (gl_GC_RANDOM):
4351         * m4/intl.m4 (gt_CHECK_DECL):
4352         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4354         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4356         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4357         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4358         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4359         * tests/test-dirname.c (main):
4360         * tests/test-getpass.c (main):
4361         * tests/test-iconvme.c (main):
4362         * tests/test-parse-datetime.c (LOG):
4363         * tests/test-xstrtoimax.sh:
4364         * tests/test-xstrtol.sh:
4365         * tests/test-xstrtoll.sh:
4366         * tests/test-xstrtoumax.sh:
4367         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4368         * top/GNUmakefile (abort-due-to-no-makefile):
4369         Quote 'like this', not `like this', as per the recent change to
4370         the GNU coding standards.
4371
4372 2012-01-05  Bruno Haible  <bruno@clisp.org>
4373
4374         strtoimax: Don't force a replacement on systems where intmax_t is int.
4375         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4376         'intmax_t' is not larger than 'int'.
4377         Reported by Pádraig Brady <P@draigBrady.com>.
4378
4379 2012-01-05  Bruno Haible  <bruno@clisp.org>
4380
4381         doc: Mention NetBSD bugs.
4382         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4383         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4384
4385 2012-01-05  Bruno Haible  <bruno@clisp.org>
4386
4387         strtoumax tests: Enhance tests.
4388         * tests/test-strtoumax.c (main): Add tests for large values.
4389
4390 2012-01-05  Bruno Haible  <bruno@clisp.org>
4391
4392         strtoimax: Work around AIX 5.1 bug.
4393         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4394         definition.
4395         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4396         Set HAVE_STRTOIMAX.
4397         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4398         REPLACE_STRTOIMAX.
4399         * modules/inttypes-incomplete (Makefile.am): Substitute
4400         REPLACE_STRTOIMAX.
4401         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4402         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4403         (Depends-on): Update conditions.
4404         * tests/test-strtoimax.c (main): Add tests for large values.
4405         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4406
4407 2012-01-05  Bruno Haible  <bruno@clisp.org>
4408
4409         inttypes: Modernize.
4410         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4411         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4412         (Makefile.am): Update inttypes.h rule.
4413
4414 2012-01-05  Jim Meyering  <meyering@redhat.com>
4415
4416         init.sh: don't waste a subshell just to redirect stderr
4417         * tests/init.sh: In testing for diff -u and diff -c, use a
4418         stderr-redirecting exec inside `...` rather than a subshell.
4419
4420         test-init.sh: avoid failure on HP-UX 11.00
4421         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4422         resolves to diff -c or cmp.  Reported by Bruno Haible.
4423
4424 2012-01-05  Bruno Haible  <bruno@clisp.org>
4425
4426         Tests for module 'strtoull'.
4427         * modules/strtoull-tests: New file.
4428         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4429
4430 2012-01-05  Bruno Haible  <bruno@clisp.org>
4431
4432         Tests for module 'strtoll'.
4433         * modules/strtoll-tests: New file.
4434         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4435
4436 2012-01-05  Bruno Haible  <bruno@clisp.org>
4437
4438         Tests for module 'strtoul'.
4439         * modules/strtoul-tests: New file.
4440         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4441
4442 2012-01-05  Bruno Haible  <bruno@clisp.org>
4443
4444         Tests for module 'strtol'.
4445         * modules/strtol-tests: New file.
4446         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4447
4448 2012-01-04  Jim Meyering  <meyering@redhat.com>
4449
4450         test-init.sh: accommodate Solaris 5.10's different diff -u output
4451         * tests/test-init.sh: Also exempt @@ lines from the comparison
4452         of diff output, since Solaris 5.10 and GNU diff formats differ.
4453         Reported by Stefano Lattarini.
4454
4455 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4456
4457         test-posixtm: don't assume signed integer wraparound
4458         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4459         after signed integer overflow.  Inspired by (though it may not
4460         fix) Bruno Haible's bug report in
4461         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4462
4463         Spell out "Windows 9x" and "Windows XP".
4464         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4465         "Windows 9x" and "WinXP" with "Windows XP".
4466
4467 2012-01-04  Jim Meyering  <meyering@redhat.com>
4468
4469         test-vc-list-files-cvs.sh: remove obsolete comment
4470         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4471         double exit.  Now that's all encapsulated via skip_ and Exit.
4472
4473 2012-01-04  Bruno Haible  <bruno@clisp.org>
4474
4475         Talk about "native Windows API", not "Win32".
4476         * lib/classpath.c: Update comments to mention native Windows.
4477         * lib/csharpexec.c: Likewise.
4478         * lib/dup2.c: Likewise.
4479         * lib/error.c: Likewise.
4480         * lib/fcntl.c: Likewise.
4481         * lib/filename.h: Likewise.
4482         * lib/findprog.c: Likewise.
4483         * lib/get-rusage-as.c: Likewise.
4484         * lib/get-rusage-data.c: Likewise.
4485         * lib/getpagesize.c: Likewise.
4486         * lib/javaexec.c: Likewise.
4487         * lib/msvc-inval.c: Likewise.
4488         * lib/msvc-nothrow.c: Likewise.
4489         * lib/nanosleep.c: Likewise.
4490         * lib/nonblocking.c: Likewise.
4491         * lib/printf-parse.c: Likewise.
4492         * lib/setlocale.c: Likewise.
4493         * lib/sigaction.c: Likewise.
4494         * lib/strerror_r.c: Likewise.
4495         * lib/tmpdir.c: Likewise.
4496         * lib/vasnprintf.c: Likewise.
4497         * lib/w32spawn.h: Likewise.
4498         * lib/waitpid.c: Likewise.
4499         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4500         * m4/locale-ar.m4: Likewise.
4501         * m4/locale-fr.m4: Likewise.
4502         * m4/locale-ja.m4: Likewise.
4503         * m4/locale-tr.m4: Likewise.
4504         * m4/locale-zh.m4: Likewise.
4505         * m4/printf.m4: Likewise.
4506         * tests/test-cloexec.c: Likewise.
4507         * tests/test-copy-acl.sh: Likewise.
4508         * tests/test-copy-file.sh: Likewise.
4509         * tests/test-file-has-acl.sh: Likewise.
4510         * tests/test-set-mode-acl.sh: Likewise.
4511         * tests/test-dup-safer.c: Likewise.
4512         * tests/test-dup2.c: Likewise.
4513         * tests/test-dup3.c: Likewise.
4514         * tests/test-fcntl.c: Likewise.
4515         * tests/test-nonblocking-pipe.h: Likewise.
4516         * tests/test-nonblocking-socket.h: Likewise.
4517         * tests/test-pipe.c: Likewise.
4518         * tests/test-pipe2.c: Likewise.
4519         * tests/test-spawn-pipe-child.c: Likewise.
4520         * doc/acl-resources.txt: Likewise.
4521         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4522         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4523         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4524         * lib/localcharset.c: Update comments to mention native Windows.
4525         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4526         * lib/localename.c: Likewise.
4527         * lib/progreloc.c: Likewise.
4528         * lib/relocatable.c: Likewise.
4529         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4530         (windows_compute_revents): Renamed from win32_compute_revents.
4531         (windows_compute_revents_socket): Renamed from
4532         win32_compute_revents_socket.
4533         * lib/select.c: Update comments to mention native Windows.
4534         (windows_poll_handle): Renamed from win32_poll_handle.
4535         * m4/threadlib.m4: Update comments to mention native Windows.
4536         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4537         --enable-threads=windows instead of --enable-threads=win32. Set
4538         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4539         * lib/glthread/lock.h: Update comments to mention native Windows.
4540         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4541         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4542         USE_WIN32_THREADS.
4543         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4544         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4545         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4546         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4547         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4548         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4549         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4550         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4551         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4552         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4553         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4554         * tests/test-tls.c: Likewise.
4555         Rationale:
4556         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4557         on both 32-bit and 64-bit Windows systems.
4558         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4559         line of distinction is between "native Windows" on one side and Unix/
4560         POSIX systems on the other side. More details in
4561         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4562         Suggested by Paul Eggert.
4563
4564 2012-01-03  Bruno Haible  <bruno@clisp.org>
4565
4566         isatty: Support for MSVC 9.
4567         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4568         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4569         (_isatty_nothrow): New function.
4570         (isatty): Use it instead of _isatty.
4571         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4572         * lib/poll.c (IsConsoleHandle): Likewise.
4573         * lib/select.c (IsConsoleHandle): Likewise.
4574         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4575         (gl_PREREQ_ISATTY): New macro.
4576         * modules/isatty (Depends-on): Add msvc-inval.
4577         (configure.ac): Invoke gl_PREREQ_ISATTY.
4578
4579 2012-01-03  Jim Meyering  <meyering@redhat.com>
4580
4581         maint.mk: remove temporary transition aid from over 1.5 years ago
4582         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4583         purpose was to aid in the transition (avoiding silent malfunction)
4584         from that old name to the new _sc_search_regexp.  This shim was
4585         added by commit 219c504b.
4586
4587         init.sh: do not try to accommodate compare arguments starting with "-"
4588         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4589         compare arguments that start with "-".  Besides, we do not worry
4590         about this when invoking diff or cmp; why start now with sed?
4591         Using "--" to separate options from argument would trigger sed
4592         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4593         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4594
4595 2012-01-02  Bruno Haible  <bruno@clisp.org>
4596
4597         Enhance tests for module 'isatty'.
4598         * modules/isatty-tests (Depends-on): Add pipe-posix.
4599         * tests/test-isatty.c: Include <fcntl.h>.
4600         (DEV_NULL): New macro.
4601         (main): Test the resut of isatty() also on regular files, pipes, and
4602         /dev/null.
4603
4604         New module 'isatty'.
4605         * lib/unistd.in.h (isatty): New declaration.
4606         * lib/isatty.c: New file, based on an idea of
4607         Bastien Roucariès <roucaries.bastien@gmail.com>.
4608         * m4/isatty.m4: New file.
4609         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4610         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4611         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4612         REPLACE_ISATTY.
4613         * modules/isatty: New file.
4614         * doc/posix-functions/isatty.texi: Mention the new module.
4615         Suggested by Paolo Bonzini.
4616
4617 2012-01-02  Bruno Haible  <bruno@clisp.org>
4618
4619         canonicalize: Tweak 2011-12-29 commit.
4620         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4621         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4622
4623 2012-01-02  Jim Meyering  <meyering@redhat.com>
4624
4625         gitlog-to-changelog: describe input syntax in --help output
4626         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4627
4628         gitlog-to-changelog: fix typo in --help: show backslash before email @
4629         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4630         in sources, but not in actual output.
4631
4632 2011-12-30  Jim Meyering  <meyering@redhat.com>
4633
4634         gitlog-to-changelog: don't malfunction when name contains %-directive
4635         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4636         in a name string cause trouble.  E.g., with a user name of "%s",
4637         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4638
4639 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4640
4641         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4642         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4643         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4644         the "  (tiny change)" notation that is appended to the standard
4645         ChangeLog "date  name  email" header line.
4646
4647 2012-01-01  Jim Meyering  <meyering@redhat.com>
4648
4649         test-framework-sh: init.sh: fix "make dist" failure
4650         When using gnulib-tool's --with-tests option and any module that
4651         depends on test-framework-sh, "make dist" would fail due to the
4652         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4653         in the gltests directory, and not in the gllib/ directory.
4654         One way to work around that is to move the EXTRA_DIST += init.sh
4655         from the primary module to the -tests one:
4656         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4657         * modules/test-framework-sh (Makefile.am): ...not here.
4658         Reported by Tom G. Christensen in
4659         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4660
4661         version-etc: update copyright year reported by --version
4662         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4663
4664 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4665
4666         canonicalize: only stat() if required
4667         * lib/canonicalize.c (canonicalize_filename_mode):
4668         Avoid calling l?stat() when both CAN_MISSING,
4669         and CAN_NOLINKS are set, as we neither need
4670         to resolve symlinks or test component existence.
4671
4672 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         doc: cover st_ino issues once; add OpenVMS etc.
4675         * doc/posix-functions/stat.texi (stat):
4676         * doc/posix-functions/lstat.texi (lstat):
4677         * doc/posix-functions/fstatat.texi (fstatat):
4678         * doc/posix-functions/fstat.texi (fstat):
4679         Move general 'struct stat' stuff to sys_stat.texi,
4680         leaving behind a pointer.
4681         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4682         Merge duplicate info about 'struct stat' problems into here.
4683         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4684         and suggest partial workarounds.
4685
4686         same-inode: port to OpenVMS
4687         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4688         three st_ino values.
4689
4690 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4691
4692         canonicalize: fix references to stat() and lstat()
4693         * lib/canonicalize.c (canonicalize_filename_mode):
4694         Ensure references always resolve to a replacement
4695         function if required (even via a macro).
4696
4697 2011-12-30  Jim Meyering  <meyering@redhat.com>
4698
4699         gitlog-to-changelog: remove a little duplication
4700         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4701         rather than twice.
4702
4703 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4704
4705         canonicalize: add support for not resolving symlinks
4706         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4707         indicate we don't want to follow symlinks.  Also
4708         provide CAN_MODE_MASK to aid setting these existing
4709         mutually exclusive values.
4710         * lib/canonicalize.c (canonicalize_filename_mode):
4711         Extract the flags from can_mode parameter, which
4712         are currently just used to select between stat()
4713         and lstat().  Also ensure that mutually exclusive
4714         values are flagged immediately as invalid.
4715         * tests/test-canonicalize.c: Verify symlinks are
4716         not followed, and that invalid flag combinations
4717         are diagnosed.
4718
4719 2011-12-25  Jim Meyering  <meyering@redhat.com>
4720
4721         gitlog-to-changelog: do not clump multi-paragraph entries
4722         Identical header lines (date,name,email+coauthors) are suppressed,
4723         thus putting all entries with those same characteristics under
4724         a single header.  However, when a log entry consists of two or
4725         more paragraphs, it may not be clear where it starts and ends.
4726         This change makes it so that such an entry is always separated
4727         from others by a header line, even when that header would
4728         otherwise be suppressed.
4729         * build-aux/gitlog-to-changelog: Implement the above.
4730         Inspired by a related request from Stefano Lattarini in
4731         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4732
4733 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         announce-gen: fix `cmd' typo in diagnostic
4736         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4737         diagnostic: a missing '$' meant that the command was not output.
4738
4739 2011-12-23  Jim Meyering  <meyering@redhat.com>
4740
4741         test-framework-sh: distribute init.sh
4742         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4743         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4744         fail due to the lack of init.sh.
4745
4746         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4747         * modules/atexit-tests: Rather than listing tests/init.sh,
4748         now that there's a module for it, simply depend on that new module.
4749         * modules/closein-tests: Likewise.
4750         * modules/exclude-tests: Likewise.
4751         * modules/getcwd-tests: Likewise.
4752         * modules/perror-tests: Likewise.
4753         * modules/pread-tests: Likewise.
4754         * modules/pwrite-tests: Likewise.
4755         * modules/vc-list-files-tests: Likewise.
4756         * modules/verify-tests: Likewise.
4757         * modules/xalloc-die-tests: Likewise.
4758         * modules/xstrtoimax-tests: Likewise.
4759         * modules/xstrtol-tests: Likewise.
4760         * modules/xstrtoll-tests: Likewise.
4761         * modules/xstrtoumax-tests: Likewise.
4762         * modules/yesno-tests: Likewise.
4763
4764 2011-12-22  Jim Meyering  <meyering@redhat.com>
4765
4766         test-framework-sh: add minimal tests of init.sh's compare function
4767         * modules/test-framework-sh-tests: New file.
4768         * tests/test-init.sh: New file.
4769
4770         test-framework-sh: new module
4771         * modules/test-framework-sh: New file.
4772         * MODULES.html.sh (Support for maintaining and releasing projects):
4773         List it.
4774
4775         init.sh: do not emit simulated diff output to stderr
4776         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4777
4778 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4779
4780         .gitignore: ignore gnulib.dvi and regex.info
4781         * doc/.gitignore:add gnulib.dvi and regex.info
4782
4783 2011-12-22  Jim Meyering  <meyering@redhat.com>
4784
4785         init.sh: correct previous change
4786         * tests/init.sh (compare): My previous change was wrong.
4787         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4788
4789         init.sh: avoid unwarranted test failure when using "set -e"
4790         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4791         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4792         a use like "compare exp out" would get evoke an unconditional failure.
4793
4794 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4795
4796         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4797         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4798         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4799         autoreconf that did not.
4800         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4801         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4802
4803 2011-12-17  Jim Meyering  <meyering@redhat.com>
4804
4805         bootstrap: remove some now-unneeded code
4806         This script arose back when gnulib-tool was young.
4807         Since then, it has seen improvements that render much of this
4808         script unnecessary.  In particular, it can now make symlinks
4809         to the files it uses.  Also, I no longer see as much value in
4810         marking files as read-only via comments.
4811         If you relied on the symlink-creation feature of the preceding
4812         version of this script, you can get most of that functionality
4813         by adding the --symlink option to the definition of
4814         gnulib_tool_option_extras in your bootstrap.conf file.
4815         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4816         Run autopoint and libtoolize *before* gnulib-tool.
4817         After it, run an abbreviated autoreconf, rather than a loop around
4818         all tools.
4819         (slirp, bt_mark_as_generated): Remove functions.
4820
4821 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4822
4823         ftoastr: fix typo
4824         * lib/ftoastr.h: Fix misspelling in comment.
4825
4826 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4827
4828         * top/README-release: fix punctuation.
4829
4830 2011-12-17  Jim Meyering  <meyering@redhat.com>
4831
4832         bootstrap: correct the recent buildreq change
4833         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4834         had no effect.
4835         * build-aux/bootstrap (buildreq): Bracket each search term with
4836         "*...*", so that the shell "case" statement works as intended.
4837         Add comments.
4838
4839 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4840
4841         build: let bootstrap resort to wget when downloading .po files
4842         * build-aux/bootstrap (download_po_files): Fallback to wget when
4843         downloading the .po files via rsync fails.  This is necessary to
4844         bootstrap from behind a strict firewall.
4845
4846 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         stdint: don't assume C++11 when compiling with g++
4849         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4851         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4852         work also in C++ before C++11, as that improperly inhibits
4853         generating a substitute stdint.h for that case.
4854
4855 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4856
4857         alloca: protect comment from gnulib-tool
4858         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4859         that gnulib-tool doesn't think it's a license, and munge it to
4860         say "GCC version 3".
4861
4862 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4863
4864         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4865         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4866         $(abs_top_builddir) instead of $(top_builddir).
4867
4868 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4869
4870         strftime-tests: also test nanoseconds
4871         * tests/test-strftime.c (T): Add a test of %N.
4872
4873 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4874
4875         inttypes, stdint: add C++11 support
4876         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4877         when including inttypes.h and stdint.h.  Support this change to
4878         the standard.
4879         * doc/posix-headers/inttypes.texi (inttypes.h):
4880         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4881         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4882         Define if not defined already, for the benefit of pre-C++11 hosts.
4883         Define the standard format macros (e.g., PRId8) always.
4884         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4885         Likewise, if __cpluspus.  Define the standard constant and limit
4886         macros (e.g., INT8_C, INT8_MAX) always.
4887         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4888         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4889         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4890         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4891         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4892         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4893         Likewise.
4894
4895 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         nonblocking tests: Fix test failure on Linux/PPC.
4898         Suggested by Prerna Saxena in
4899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4900         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4901         Set to 1100000.
4902
4903 2011-12-12  Jim Meyering  <meyering@redhat.com>
4904
4905         argmatch: don't hard-code `' when listing valid option arguments
4906         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4907         use the quote function to add quotes.  Use fputs rather than
4908         fprintf for the format string with no format directive.
4909
4910 2011-12-07  Eric Blake  <eblake@redhat.com>
4911
4912         bootstrap: detect tools required by gnulib-tool
4913         * build-aux/bootstrap (buildreq): Provide minimum implicit
4914         dependencies.
4915         * DEPENDENCIES: Mention patch as a prereq.
4916
4917 2011-12-04  Bruno Haible  <bruno@clisp.org>
4918
4919         sethostname: Port to Windows platforms.
4920         * lib/sethostname.c: Provide an alternate implementation for Windows
4921         platforms.
4922         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4923         (main): Skip the test if sethostname() fails with EPERM. On Windows
4924         platforms, don't check the result of gethostname().
4925
4926 2011-12-04  Bruno Haible  <bruno@clisp.org>
4927             Jim Meyering  <meyering@redhat.com>
4928
4929         tests: Avoid spurious error message on platforms without mktemp program.
4930         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4931
4932 2011-12-04  Bruno Haible  <bruno@clisp.org>
4933
4934         sethostname: Fix documentation.
4935         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4936         "not fixed" section.
4937
4938 2011-12-03  Bruno Haible  <bruno@clisp.org>
4939
4940         gnulib-tool: Verify that the License field is present and non-empty.
4941         * gnulib-tool (func_get_license_raw): New function, extracted from
4942         func_get_license.
4943         (func_get_license): Use it. Warn if the module is not a test module and
4944         has no license.
4945         Suggested by Jim Meyering.
4946
4947 2011-12-03  Bruno Haible  <bruno@clisp.org>
4948
4949         sethostname tests: Fix link error on mingw.
4950         * tests/test-sethostname1.c: New file, extracted from
4951         tests/test-sethostname.c.
4952         * tests/test-sethostname2.c: New file, extracted from
4953         tests/test-sethostname.c.
4954         * tests/test-sethostname.c: Remove file.
4955         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4956         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4957         (Depends-on): Add gethostname.
4958         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4959         Link the latter with $(GETHOSTNAME_LIB).
4960
4961         sethostname tests: Fix compilation error on mingw.
4962         * tests/test-sethostname.c: Don't include <sys/types.h>.
4963         (geteuid): Use a dummy value without uid_t.
4964         * modules/sethostname-tests (Depends-on): Remove sys_types.
4965
4966         sethostname tests: Avoid a gcc warning.
4967         * tests/test-sethostname.c (main): Remove an unused variable.
4968
4969         Tweak last commit.
4970         * modules/sethostname-tests (Files): Sort by decreasing importance.
4971         (configure.ac): Check for geteuid.
4972         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4973         the test when there's nothing to test. Drop an unnecessary cast.
4974         Improve an error message. Verify that the final sethostname() call
4975         succeeds.
4976
4977 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4978
4979         Add a test suite for the sethostname module.
4980         * modules/sethostname-tests: New file.  A test program
4981         for the sethostname module.
4982         * tests/test-sethostname.c: Likewise.
4983
4984 2011-12-03  Bruno Haible  <bruno@clisp.org>
4985
4986         Tweak last commit.
4987         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4988         Fix preprocessor directives indentation. Fix typos.
4989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4990         * modules/unistd (Makefile): Likewise.
4991
4992 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4993
4994         Integrate the sethostname module into unistd.
4995         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4996         into the unistd.h header.
4997         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4998         preprocessor directives.
4999         * modules/unistd: Setup the Makefile substitutions of the
5000         SETHOSTNAME preprocessor directives.
5001
5002 2011-12-03  Bruno Haible  <bruno@clisp.org>
5003
5004         Tweak last commit.
5005         * lib/sethostname.c: Don't include <string.h>.
5006         (sethostname): No need to copy the argument string to the stack. Don't
5007         call clearerr. Preserve errno when fprintf failed.
5008         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5009         Don't invoke AC_REPLACE_FUNCS.
5010         * modules/sethostname (Link): Remove empty section.
5011         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5012         failure problem.
5013
5014 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5015
5016         New module 'sethostname'.
5017         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5018         for systems that lack it.
5019         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5020         sethostname declaration and function.
5021         * modules/sethostname: New file.  Define the sethostname module.
5022
5023 2011-12-03  Bruno Haible  <bruno@clisp.org>
5024
5025         Tweak last commit.
5026         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5027
5028 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5029
5030         Split the HOST_NAME_MAX detection into a separate m4 macro.
5031         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5032         macro so it can be used by the pending sethostname module.
5033
5034 2011-12-03  Bruno Haible  <bruno@clisp.org>
5035
5036         Fix module descriptions syntax.
5037         * modules/argv-iter (License): Fix syntax.
5038         * modules/di-set (License): Likewise.
5039         * modules/ino-map (License): Likewise.
5040         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5041
5042 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5043
5044         stdalign: port to Clang 3.0
5045         Problem reported by Simon Josefsson in
5046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5047         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5048         which has <stdalign.h> but which does not define alignof.
5049         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5050
5051 2011-12-01  Eric Blake  <eblake@redhat.com>
5052
5053         mktempd: silence dd usage
5054         * build-aux/mktempd (rand_bytes): Silence dd.
5055
5056 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5057
5058         manywarnings: Don't mention gcc version in docstring.
5059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5060         Jim Meyering <meyering@redhat.com>.
5061
5062 2011-11-30  Jim Meyering  <meyering@redhat.com>
5063
5064         hash: mark a few floating point constants with "f" suffix
5065         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5066         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5067         floating point constants with "f", since they're destined to be
5068         saved/used as "float"s.
5069
5070 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5071
5072         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5073         * tests/test-float.c (test_long_double): Correct and re-enable the
5074         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5075
5076 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5077
5078         Avoid subtracting two pointers that don't point into the same block.
5079         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5080         only pointers into the same memory block are subtracted. We cannot
5081         assume that sizeof (ptrdiff_t) == sizeof (void *).
5082
5083 2011-11-29  Eric Blake  <eblake@redhat.com>
5084
5085         maint.mk: add syntax check for use of compare from init.sh
5086         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5087         moved here from coreutils.
5088
5089         manywarnings: drop -Wunsuffixed-float-constants
5090         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5091         '1.0D', which is the only way to silence this warning for 'double'.
5092
5093 2011-11-29  Jim Meyering  <meyering@redhat.com>
5094
5095         hash: mark compute_bucket_size with the pure attribute
5096         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5097
5098         quotearg, propername: correct pragma guard expression
5099         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5100         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5101
5102 2011-11-28  Jim Meyering  <meyering@redhat.com>
5103
5104         propername: do not mark proper_name with the const attribute
5105         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5106         since it examines data pointed to by its parameter.
5107         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5108         the suggestion from -Wsuggest-attribute=const.
5109
5110         propername: mark one more function as const
5111         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5112
5113 2011-11-27  Jim Meyering  <meyering@redhat.com>
5114
5115         mark functions with const and pure attributes
5116
5117         Mark functions per suggestions from gcc-4.6 when using these options:
5118         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5119         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5120         Follow these guidelines: when possible, apply the attribute to
5121         an extern declaration, not to its definition.  Apply it to the
5122         definition only when the definition is static.
5123         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5124         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5125         * lib/base64.h (isbase64): Likewise.
5126         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5127         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5128         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5129         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5130         (c_tolower, c_toupper): Likewise.
5131         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5132         * lib/chdir-long.c (find_non_slash): Likewise.
5133         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5134         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5135         * lib/file-type.h (file_type): Likewise.
5136         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5137         * lib/filevercmp.c (verrevcmp): Likewise.
5138         * lib/freadahead.h (freadahead): Likewise.
5139         * lib/fts.c (fts_maxarglen): Likewise.
5140         * lib/hash-pjw.h (hash_pjw): Likewise.
5141         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5142         * lib/hash.c (is_prime, next_prime): Likewise.
5143         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5144         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5145         (hash_table_ok, hash_get_first, hash_string): Likewise.
5146         (compute_bucket_size): Likewise.
5147         * lib/i-ring.h (i_ring_empty): Likewise.
5148         * lib/isnan.c (isnanl): Likewise.
5149         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5150         * lib/memcasecmp.h (memcasecmp): Likewise.
5151         * lib/memchr2.h (memchr2): Likewise.
5152         * lib/memcmp2.h (memcmp2): Likewise.
5153         * lib/parse-datetime.y (lookup_zone): Likewise.
5154         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5155         [!WINDOWS_SOCKETS]: Likewise.
5156         * lib/strnlen1.h (strnlen1): Likewise.
5157         * lib/uniwidth.in.h (uc_width): Likewise.
5158         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5159         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5160         (quoting_options_from_style): Add a comment.
5161         * lib/propername.h (proper_name): Add a comment.
5162
5163 2011-11-27  Bruno Haible  <bruno@clisp.org>
5164
5165         Remove unused macros from !_LIBC code in glibc-borrowed files.
5166         * lib/fnmatch.c (STRCOLL): Remove macro.
5167         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5168         * lib/glob.c (__stat, __readdir64): Remove macros.
5169         * lib/tempname.c (__open64, __xstat64): Remove macros.
5170         Suggested by Paul Eggert.
5171
5172 2011-11-27  Bruno Haible  <bruno@clisp.org>
5173
5174         getcwd: Fix link error on MSVC 9.
5175         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5176
5177 2011-11-27  Bruno Haible  <bruno@clisp.org>
5178
5179         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5180         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5181         HAVE_OPENDIR is 0.
5182         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5183         HAVE_CLOSEDIR is 0.
5184         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5185         is 0.
5186         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5187
5188 2011-11-27  Bruno Haible  <bruno@clisp.org>
5189
5190         getcwd: Fix bug from 2011-08-17.
5191         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5192         platforms that need it.
5193         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5194         code of 4 to be a failure, not a success. This ensures that
5195         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5196
5197 2011-11-27  Bruno Haible  <bruno@clisp.org>
5198
5199         binary-io tests: Avoid test failure on mingw when libtool is used.
5200         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5201         Don't verify the size of t-bin-out1.tmp here.
5202         * tests/test-binary-io.sh: Verify it here.
5203         Reported by Simon Josefsson.
5204
5205 2011-11-26  Bruno Haible  <bruno@clisp.org>
5206
5207         Fix conflict between two instantiations of module 'unistd'.
5208         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5209         ${include_guard_prefix} also in the autoconf snippet.
5210         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5212         GNULIB_UNISTD_H_GETOPT.
5213         * modules/getopt-posix (configure.ac): Set the
5214         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5215         * modules/getopt-gnu (configure.ac): Likewise.
5216         * modules/unistd (Makefile.am): Change the substitution value of
5217         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5218         Reported by Simon Josefsson.
5219
5220 2011-11-25  Bruno Haible  <bruno@clisp.org>
5221
5222         pagealign_alloc: Doc and comments.
5223         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5224         module.
5225         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5226
5227 2011-11-25  Jim Meyering  <meyering@redhat.com>
5228
5229         test-update-copyright.sh: avoid false-positive failure
5230         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5231         around false positive failure on Cygwin/Windows.  The latter was
5232         matching erroneously-created files with names like
5233         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5234
5235 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5236
5237         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5238         * m4/valgrind-tests.m4: Check that the parameters that will be
5239         used works, not just a subset of them.  Reported by Bruno Haible
5240         <bruno@clisp.org>.
5241
5242 2011-11-24  Jim Meyering  <meyering@redhat.com>
5243
5244         test-stdalign.c: comment out long double tests
5245         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5246         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5247         error: '_Alignas' specifiers cannot reduce alignment of \
5248         'static_longdouble_alignas'.
5249
5250 2011-11-22  Jim Meyering  <meyering@redhat.com>
5251
5252         init.sh: make "compare /dev/null FILE" output more readable
5253         * tests/init.sh (compare_): Document the preferred order of arguments.
5254         (emit_diff_u_header_): New function.
5255         (compare_dev_null_): Emit a simulated diff, rather than just the
5256         contents of the unexpected file.  Suggestion from Bruno Haible.
5257
5258 2011-11-21  Jim Meyering  <meyering@redhat.com>
5259             Eric Blake  <eblake@redhat.com>
5260
5261         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5262         * tests/init.sh: Make our compare function slightly more portable.
5263         Reported by Bruno Haible in
5264         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5265
5266 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5267
5268         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5269         before using it, in code that ends up in config.h.
5270
5271 2011-11-20  Bruno Haible  <bruno@clisp.org>
5272
5273         getcwd: Work around getcwd bug on AIX 5..7.
5274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5275         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5276         Use a different value for gl_cv_func_getcwd_path_max. Move the
5277         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5278         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5279         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5280         Define HAVE_MINIMALLY_WORKING_GETCWD.
5281         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5282         where it is not even minimally working, that is, on AIX.
5283         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5284         m4/getcwd-path-max.m4.
5285         (main): Update exit code computation.
5286         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5287         getcwd does not handle long file names.
5288
5289 2011-11-20  Bruno Haible  <bruno@clisp.org>
5290
5291         getcwd: Fix bug from 2009-09-10.
5292         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5293         like "no".
5294
5295 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5296
5297         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5298
5299 2011-11-20  Bruno Haible  <bruno@clisp.org>
5300
5301         fma tests: Avoid shadowing local variables.
5302         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5303         expected.
5304
5305 2011-11-20  Bruno Haible  <bruno@clisp.org>
5306
5307         copysignf tests: Fix.
5308         * tests/test-copysignf.c: Fix signature check.
5309
5310 2011-11-20  Bruno Haible  <bruno@clisp.org>
5311
5312         fma: Remove unused code.
5313         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5314         unused macros.
5315
5316 2011-11-20  Bruno Haible  <bruno@clisp.org>
5317
5318         sethostname: Fix doc about AIX.
5319         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5320         sethostname; it has it.
5321
5322         sethostname: Mention more portability problems.
5323         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5324         problem.
5325         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5326
5327 2011-11-19  Bruno Haible  <bruno@clisp.org>
5328
5329         Depend on module fcntl-h when AT_FDCWD is used.
5330         * modules/utimens (Depends-on): Add fcntl-h.
5331         * modules/areadlinkat (Depends-on): Likewise.
5332         * modules/areadlinkat-with-size (Depends-on): Likewise.
5333         * modules/faccessat (Depends-on): Likewise.
5334         * modules/fchmodat (Depends-on): Likewise.
5335         * modules/fchownat (Depends-on): Likewise.
5336         * modules/getcwd (Depends-on): Likewise.
5337         * modules/mkdirat (Depends-on): Likewise.
5338         * modules/mkfifoat (Depends-on): Likewise.
5339         * modules/readlinkat (Depends-on): Likewise.
5340         * modules/symlinkat (Depends-on): Likewise.
5341         * modules/dup2-tests (Depends-on): Likewise.
5342         * modules/fdutimensat-tests (Depends-on): Likewise.
5343         * modules/futimens-tests (Depends-on): Likewise.
5344
5345 2011-11-19  Bruno Haible  <bruno@clisp.org>
5346
5347         euidaccess: Update a comment.
5348         * lib/euidaccess.c: Update comment about platforms with faccessat.
5349
5350 2011-11-19  Bruno Haible  <bruno@clisp.org>
5351
5352         openat: Fix file list.
5353         * modules/openat (Files): Remove lib/at-func.c.
5354
5355 2011-11-19  Bruno Haible  <bruno@clisp.org>
5356
5357         fstatat: Simplify.
5358         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5359         gnulib should define rpl_fstatat, there is a
5360         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5361
5362 2011-11-19  Bruno Haible  <bruno@clisp.org>
5363
5364         Ensure 'inline' can be used in tests/test-utimens-common.h.
5365         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5366         * modules/futimens-tests (configure.ac): Likewise.
5367         * modules/utimens-tests (configure.ac): Likewise.
5368         * modules/utimensat-tests (configure.ac): Likewise.
5369
5370 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5371
5372         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5373         not hash_insert0.
5374         (hash_insert_if_absent): Doc fix.
5375
5376 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5377
5378         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5379
5380 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5381
5382         test-getcwd: disambiguate exit status
5383         * tests/test-getcwd.c (test_long_name): Return 0..7.
5384         (main): Exit with an unambiguous exit status.  The old
5385         code yielded a mysterious mixture of two failure codes.
5386
5387         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5388         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5389         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5390         rpl_fstatat or fstatat.  This should fix the other problem
5391         reported by Kai Habel in
5392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5393         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5395         and I reproduced it on a Solaris 8 host we still have in production.
5396
5397 2011-11-18  Jim Meyering  <meyering@redhat.com>
5398
5399         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5400         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5401         Add a sentence to the comment.
5402         (hash_insert0): New function that simply calls hash_insert_if_absent.
5403         * lib/hash.h (hash_insert_if_absent): Declare it.
5404         (hash_insert0): Add deprecation attribute.
5405         (_GL_ATTRIBUTE_DEPRECATED): Define.
5406         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5407         not hash_insert0.
5408         * NEWS: Mention it, even though it's not really an incompatible change.
5409
5410 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5411
5412         openat: avoid compilation failure due to lack of <errno.h> inclusion
5413         * lib/openat.c: Include <errno.h>.
5414
5415 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         * modules/getcwd (Depends-on): Add fdopendir.
5418         This fixes one of the two problems reported by Kai Habel in
5419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5420
5421         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5422         stdalign problem reported by Ian Beckwith in
5423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5424         * modules/crypto/gc-arcfour (Depends-on):
5425         Depend conditionally on crypto/arcfour.
5426         * modules/crypto/gc-arctwo (Depends-on):
5427         Depend conditionally on crypto/arctwo.
5428         * modules/crypto/gc-des (Depends-on):
5429         Depend conditionally on crypto/des.
5430         * modules/crypto/gc-hmac-md5 (Depends-on):
5431         Depend conditionally on crypto/hmac-md5.
5432         * modules/crypto/gc-hmac-sha1 (Depends-on):
5433         Depend conditionally on crypto/hmac-sha1.
5434         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5435         * modules/crypto/gc-md4 (Depends-on):
5436         Depend conditionally on crypto/md4.
5437         * modules/crypto/gc-md5 (Depends-on):
5438         Depend conditionally on crypto/md5.
5439         * modules/crypto/gc-rijndael (Depends-on):
5440         Depend conditionally on crypto/rijndael.
5441         * modules/crypto/gc-sha1 (Depends-on):
5442         Depend conditionally on crypto/sha1.
5443         * modules/crypto/gc-arcfour:
5444         * modules/crypto/gc-arctwo:
5445         * modules/crypto/gc-des:
5446         * modules/crypto/gc-hmac-md5:
5447         * modules/crypto/gc-hmac-sha1:
5448         * modules/crypto/gc-md2:
5449         * modules/crypto/gc-md4:
5450         * modules/crypto/gc-md5:
5451         * modules/crypto/gc-rijndael:
5452         * modules/crypto/gc-sha1:
5453         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5454         now that the conditional dependencies do the work for us.
5455
5456 2011-11-17  Jim Meyering  <meyering@redhat.com>
5457
5458         tests: factor st_ctime-comparison out of two headers
5459         * tests/test-utimens-common.h (ctime_compare): Define.
5460         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5461         * tests/test-lutimens.h (test_lutimens): Likewise.
5462         * tests/test-utimens.h (test_utimens): Likewise.
5463
5464         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5465         Invoke the test program via an init.sh-using wrapper.
5466         * tests/test-getcwd.sh: New file.
5467         * modules/getcwd-tests (Files): Add it.
5468         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5469
5470 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5471
5472         gitlog-to-changelog: support multi-author commits.
5473         The FSF cares about keeping track of all authors of patches to its
5474         projects, but Git doesn't provide obvious support for multi-author
5475         changesets. Consensus seems to be forming around the use of extra
5476         Signed-off-by inspired lines in the log message formatted as
5477         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5478         multi-author commits between version control systems.
5479         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5480         log message and output in standard ChangeLog multi-author format.
5481         Reported by Peter Rosin <peda@lysator.liu.se>
5482
5483 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5484             Bruno Haible  <bruno@clisp.org>
5485
5486         Fix some modules' file list.
5487         * modules/fstatat (Files): Add m4/lstat.m4.
5488         * modules/openat (Files): Likewise.
5489         * modules/unlinkat (Files): Likewise.
5490
5491 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5492
5493         maint.mk: fix tight-scope.mk generation in VPATH builds.
5494         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5495         reference with $(srcdir) so that the file is found correctly even
5496         when running `make syntax-check' in a VPATH build.
5497
5498 2011-11-13  Bruno Haible  <bruno@clisp.org>
5499             Jim Meyering  <meyering@redhat.com>
5500
5501         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5502         * tests/init.sh (compare): Remove "No differences encountered" or
5503         synonymous output from the 'diff' program.
5504
5505 2011-11-13  Bruno Haible  <bruno@clisp.org>
5506
5507         Makefile: Tweak indentation.
5508         * Makefile: Use tab as first character in every line that contains rule
5509         commands.
5510
5511 2011-11-13  Bruno Haible  <bruno@clisp.org>
5512
5513         Syntax check for copyright statements.
5514         * check-copyright: New file.
5515         * Makefile (sc_check_copyright): New rule.
5516
5517 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5518
5519         * build-aux/git-version-gen: Add --prefix to configure the tag
5520         match string.
5521
5522 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5523
5524         * build-aux/git-version-gen: Add --help and --version.
5525
5526 2011-11-12  Jim Meyering  <meyering@redhat.com>
5527
5528         revamp the other test-exclude?.sh scripts to use init.sh, too
5529         * tests/test-exclude1.sh: Use init.sh.
5530         * tests/test-exclude2.sh: Likewise.
5531         * tests/test-exclude3.sh: Likewise.
5532         * tests/test-exclude4.sh: Likewise.
5533         * tests/test-exclude5.sh: Likewise.
5534         * tests/test-exclude6.sh: Likewise.
5535         * tests/test-exclude7.sh: Likewise.
5536         * tests/test-exclude8.sh: Likewise.
5537         * modules/exclude-tests (Files): List init.sh.
5538
5539         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5540         These shell scripts ignored failure of the binary test-exclude,
5541         so making the latter return 77 didn't cause them to be skipped.
5542         * tests/test-exclude5.sh: Exit with test-exclude's error status
5543         when that program fails.  Revamp to use init.sh.
5544         * tests/test-exclude2.sh: Likewise.
5545
5546         test-exclude: fix a typo
5547         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5548
5549 2011-11-11  Bruno Haible  <bruno@clisp.org>
5550
5551         obstack: Fix compilation error on MSVC 9.
5552         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5553
5554 2011-11-11  Jim Meyering  <meyering@redhat.com>
5555
5556         test-exclude: skip tests rather than failing on deficient systems
5557         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5558         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5559         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5560         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5561
5562 2011-11-10  Bruno Haible  <bruno@clisp.org>
5563
5564         ptsname_r test: Avoid gcc warning on glibc systems.
5565         * tests/test-ptsname_r.c (null_ptr): New function.
5566         (test_errors): Use it.
5567
5568 2011-11-10  Bruno Haible  <bruno@clisp.org>
5569
5570         ptsname_r: Avoid compilation error on OSF/1 5.1.
5571         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5573         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5574         function is not declared or incompatibly declared.
5575         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5576         * modules/ptsname_r (Depends-on, configure.ac): Update.
5577         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5578
5579 2011-11-10  Bruno Haible  <bruno@clisp.org>
5580
5581         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5582         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5583         When cross-compiling, guess yes on all platforms except AIX.
5584         Reported by Ludovic Courtès <ludo@gnu.org>.
5585
5586 2011-11-09  Bruno Haible  <bruno@clisp.org>
5587
5588         ptsname_r tests: Fix bugs.
5589         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5590         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5591
5592 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5593
5594         fstatat: work with cross-compilation
5595         Problem reported by Ludovic Courtès in
5596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5597         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5598         "cross-compiling" and assume the bug is present.  Replace
5599         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5600         an inverted sense, to be more conservative about our assumptions.
5601         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5602
5603 2011-11-09  Bruno Haible  <bruno@clisp.org>
5604
5605         Improve MODULES.html output.
5606         * modules/mkfifoat (Description): Use the word "function".
5607         * modules/readlinkat (Description): Likewise.
5608         * modules/symlinkat (Description): Likewise.
5609
5610 2011-11-09  Eric Blake  <eblake@redhat.com>
5611
5612         ptsname_r-tests: new test module
5613         * modules/ptsname_r-tests: New module.
5614         * tests/test-ptsname_r.c: New file.
5615
5616         ptsname_r: new module
5617         * modules/ptsname_r: New module.
5618         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5619         * lib/ptsname.c (__ptsname_r): Split...
5620         * lib/ptsname_r.c: ...into new file.
5621         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5622         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5623         * modules/stdlib (Makefile.am): Substitute witnesses.
5624         * lib/stdlib.in.h (ptsname_r): Declare it.
5625         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5626         * MODULES.html.sh (Misc): Likewise.
5627         * modules/ptsname (Depends-on): Alter dependency.
5628         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5629
5630 2011-11-09  Jim Meyering  <meyering@redhat.com>
5631
5632         announce-gen: be more concise when there's only one URL+tarball
5633         * build-aux/announce-gen (get_tool_versions): When you distribute
5634         only one type of tarball, combine the first two "Here are..."
5635         sections and make the key-checking grammar independent of
5636         how many tarballs there are.
5637
5638 2011-11-09  Eric Blake  <eblake@redhat.com>
5639
5640         openpty: provide a stub on mingw
5641         * lib/pty.in.h (includes): Provide forward declarations.
5642         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5643
5644         raise: fix mingw handling of SIGPIPE
5645         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5646
5647 2011-11-08  Bruno Haible  <bruno@clisp.org>
5648
5649         More conditional dependencies.
5650         * modules/faccessat (Depends-on): Add conditions.
5651         * modules/fchmodat (Depends-on): Likewise.
5652         * modules/fchownat (Depends-on): Likewise.
5653         * modules/fstatat (Depends-on): Likewise.
5654         * modules/mkfifoat (Depends-on): Likewise.
5655         * modules/readlinkat (Depends-on): Likewise.
5656         * modules/symlinkat (Depends-on): Likewise.
5657         * modules/unlinkat (Depends-on): Likewise.
5658         * modules/utimensat (Depends-on): Likewise.
5659         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5660         * modules/linkat (Depends-on): Refine the conditions.
5661         * modules/renameat (Depends-on): Likewise.
5662
5663 2011-11-08  Bruno Haible  <bruno@clisp.org>
5664
5665         faccessat: Move AC_LIBOBJ invocation to module description.
5666         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5667         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5668         invocation from here...
5669         * modules/faccessat (configure.ac): ... to here. Invoke
5670         gl_PREREQ_FACCESSAT.
5671
5672 2011-11-08  Bruno Haible  <bruno@clisp.org>
5673
5674         faccessat: Simplify autoconf macro.
5675         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5676         gl_FUNC_EUIDACCESS.
5677
5678 2011-11-08  Bruno Haible  <bruno@clisp.org>
5679
5680         renameat: Fix dependencies.
5681         * modules/renameat (Depends-on): Add stdbool.
5682
5683 2011-11-08  Bruno Haible  <bruno@clisp.org>
5684
5685         mkfifoat: Fix module description.
5686         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5687         not gl_UNISTD_MODULE_INDICATOR.
5688
5689 2011-11-08  Bruno Haible  <bruno@clisp.org>
5690
5691         fstatat: Remove unused dependency.
5692         * modules/fstatat (Depends-on): Remove fstat.
5693
5694 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5695
5696         GNUmakefile: behave when Makefile is missing.
5697         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5698
5699 2011-11-08  Bruno Haible  <bruno@clisp.org>
5700
5701         openat: Conditionalize dependencies.
5702         * lib/openat.c: Reduce the scope of some #includes.
5703         * modules/openat (Depends-on): Add conditions.
5704
5705 2011-11-07  Jim Meyering  <meyering@redhat.com>
5706
5707         maint.mk: extract GPG key ID without using a temporary file
5708         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5709         without using a temporary file.  Based on a suggestion from Werner Koch
5710         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5711
5712 2011-11-07  Eric Blake  <eblake@redhat.com>
5713
5714         grantpt: fix typo
5715         * lib/stdlib.in.h (grantpt): Check correct function.
5716
5717         maint.mk: silence new syntax check
5718         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5719
5720 2011-11-06  Bruno Haible  <bruno@clisp.org>
5721
5722         Doc about floating-point and math API.
5723         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5724         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5725
5726 2011-11-06  Bruno Haible  <bruno@clisp.org>
5727
5728         stdalign tests: Skip the test when compiled by Sun C.
5729         * tests/test-stdalign.c (main): Skip the test on Sun C.
5730
5731 2011-11-06  Bruno Haible  <bruno@clisp.org>
5732
5733         ansi-c++-opt: Complete the 2011-06-05 change.
5734         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5735         does not support namespaces, set the variable to "no", not to ":".
5736
5737 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5740
5741 2011-11-06  Bruno Haible  <bruno@clisp.org>
5742
5743         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5744         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5745         (minus_zerol) [HP-UX]: New macro.
5746         (unary_minus) [HP-UX]: New function.
5747         (copysignl) [HP-UX]: Use unary_minus function.
5748
5749 2011-11-06  Bruno Haible  <bruno@clisp.org>
5750
5751         ldexp, ldexpf, ldexpl: Enhance tests.
5752         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5753         and tests/test-ldexpl.c.
5754         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5755         LDEXP, MIN_EXP, MAX_EXP): New macros.
5756         Include test-ldexp.h.
5757         (main): Just call test_function.
5758         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5759         infinity.h, nan.h.
5760         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5761         MAX_EXP): New macros.
5762         Include test-ldexp.h.
5763         (x, y): Remove variables.
5764         (main): Just call test_function.
5765         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5766         infinity.h, nan.h.
5767         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5768         MAX_EXP): New macros.
5769         Include test-ldexp.h.
5770         (x, y): Remove variables.
5771         (main): Just call test_function.
5772         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5773         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5774         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5775         (Depends-on): Add isnand-nolibm, signbit, float.
5776         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5777         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5778         (Depends-on): Add isnanf-nolibm, signbit, float.
5779
5780 2011-11-06  Bruno Haible  <bruno@clisp.org>
5781
5782         math tests: Cosmetics.
5783         * tests/test-math-c++.cc: Reorder declarations.
5784
5785 2011-11-05  Bruno Haible  <bruno@clisp.org>
5786
5787         fma*: Simplify test.
5788         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5789         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5790
5791         Tests for module 'fmal'.
5792         * modules/fmal-tests: New file.
5793         * tests/test-fmal1.c: New file.
5794         * tests/test-fmal2.c: New file.
5795
5796         New module 'fmal'.
5797         * lib/math.in.h (fmal): New declaration.
5798         * lib/fmal.c: New file.
5799         * m4/fmal.m4: New file.
5800         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5802         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5803         REPLACE_FMAL.
5804         * modules/fmal: New file.
5805         * doc/posix-functions/fmal.texi: Mention the new module and the various
5806         bugs.
5807
5808         Tests for module 'fmaf'.
5809         * modules/fmaf-tests: New file.
5810         * tests/test-fmaf1.c: New file.
5811         * tests/test-fmaf2.c: New file.
5812
5813         New module 'fmaf'.
5814         * lib/math.in.h (fmaf): New declaration.
5815         * lib/fmaf.c: New file.
5816         * m4/fmaf.m4: New file.
5817         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5819         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5820         REPLACE_FMAF.
5821         * modules/fmaf: New file.
5822         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5823         bugs.
5824
5825         Tests for module 'fma'.
5826         * modules/fma-tests: New file.
5827         * tests/test-fma1.c: New file.
5828         * tests/test-fma1.h: New file.
5829         * tests/test-fma2.c: New file.
5830         * tests/test-fma2.h: New file.
5831
5832         New module 'fma'.
5833         * lib/math.in.h (fma): New declaration.
5834         * lib/fma.c: New file.
5835         * m4/fma.m4: New file.
5836         * m4/fegetround.m4: New file.
5837         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5839         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5840         REPLACE_FMA.
5841         * modules/fma: New file.
5842         * doc/posix-functions/fma.texi: Mention the new module and the various
5843         bugs.
5844
5845         Extend gl_MATHFUNC.
5846         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5847         Support 'void' as argument type.
5848         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5849
5850 2011-11-05  Jim Meyering  <meyering@redhat.com>
5851
5852         maint.mk: also prohibit inclusion of dirent.h without use
5853         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5854
5855 2011-11-05  Bruno Haible  <bruno@clisp.org>
5856
5857         ldexpl tests: Avoid test failure on MSVC 9.
5858         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5859         value. Needed in order to enforce the conversion from a value greater
5860         than LDBL_MAX to Infinity.
5861
5862 2011-11-05  Bruno Haible  <bruno@clisp.org>
5863
5864         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5865         * modules/at-internal: New file, extracted from modules/openat.
5866         * modules/openat-h: New file.
5867         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5868         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5869         * modules/openat (Description): Add reference to POSIX function.
5870         (Files): Remove lib/openat.h, lib/openat-proc.c.
5871         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5872         intprops, unistd.
5873         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5874         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5875         gl_FCNTL_MODULE_INDICATOR.
5876         (Include): Remove unistd.h, openat.h.
5877         * modules/areadlinkat (Files): Add lib/at-func.c.
5878         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5879         openat-die, openat-h, save-cwd.
5880         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5881         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5882         openat-die, openat-h, save-cwd, unistd.
5883         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5884         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5885         openat-h, save-cwd. Remove fcntl-h, openat.
5886         * modules/fchmodat (Files): Remove lib/openat.h.
5887         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5888         openat, stdbool, unistd.
5889         * modules/fchownat (Files): Remove lib/openat.h.
5890         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5891         openat, stdbool, sys_stat.
5892         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5893         lib/openat-proc.c.
5894         (Depends-on): Add at-internal.
5895         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5896         * modules/fstatat (Files): Remove lib/openat.h.
5897         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5898         stdbool, unistd.
5899         * modules/fts (Depends-on): Add openat-h.
5900         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5901         openat.
5902         * modules/mkdirat (Files): Remove lib/openat.h.
5903         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5904         openat, stdbool, sys_stat.
5905         * modules/mkfifoat (Files): Add lib/at-func.c.
5906         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5907         openat-h, save-cwd. Remove fcntl-h, openat.
5908         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5909         * modules/readlinkat (Files): Add lib/at-func.c.
5910         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5911         openat-h, save-cwd. Remove fcntl-h, openat.
5912         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5913         openat.
5914         * modules/selinux-at (Files): Add lib/at-func.c.
5915         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5916         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5917         * modules/symlinkat (Files): Add lib/at-func.c.
5918         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5919         openat-h, save-cwd. Remove fcntl-h, openat.
5920         * modules/unlinkat (Files): Remove lib/openat.h.
5921         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5922         stdbool.
5923         * modules/utimensat (Files): Add lib/at-func.c.
5924         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5925         openat-die, openat-h, save-cwd.
5926         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5927         * modules/fdutimensat-tests (Depends-on): Add openat.
5928         * modules/fstatat-tests (Depends-on): Add openat-h.
5929         * modules/readlinkat-tests (Depends-on): Add openat.
5930         * modules/symlinkat-tests (Depends-on): Add openat.
5931
5932 2011-11-05  Bruno Haible  <bruno@clisp.org>
5933
5934         openat: Include <stdbool.h>.
5935         * lib/openat.c: Include <stdbool.h>.
5936
5937 2011-11-04  Bruno Haible  <bruno@clisp.org>
5938
5939         fchownat, renameat, unlinkat: Fix dependencies.
5940         * modules/fchownat (Depends-on): Add fstatat.
5941         * modules/renameat (Depends-on): Likewise.
5942         * modules/unlinkat (Depends-on): Likewise.
5943
5944 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5945
5946         openat: remove direct dependency on dirent
5947         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5948         and hasn't been needed ever since fdopendir was split into its own
5949         module on 2009-08-31.
5950         * modules/openat (Depends-on): Remove dirent.
5951
5952 2011-11-04  Bruno Haible  <bruno@clisp.org>
5953
5954         renameat: Optimize code size.
5955         * modules/renameat (configure.ac): Don't compile at-func2.c if
5956         REPLACE_RENAMEAT is 1.
5957
5958 2011-11-04  Bruno Haible  <bruno@clisp.org>
5959
5960         openat tests: Fix file list.
5961         * modules/openat-tests (Files): Add tests/test-open.h.
5962
5963 2011-11-04  Bruno Haible  <bruno@clisp.org>
5964
5965         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5966         * modules/fchmodat (Depends-on): Add openat-die.
5967         * modules/fchownat (Depends-on): Likewise.
5968         * modules/linkat (Depends-on): Likewise.
5969         * modules/renameat (Depends-on): Likewise.
5970         * modules/openat (Depends-on): Add dirent.
5971
5972 2011-11-04  Jim Meyering  <meyering@redhat.com>
5973
5974         at-func*.c: fix comments
5975         * lib/at-func2.c: Correct/improve first-line comment.
5976         * lib/at-func.c: Correct grammar in first-line comment.
5977
5978 2011-11-04  Bruno Haible  <bruno@clisp.org>
5979
5980         New module 'mkdirat', split off from module 'openat'.
5981         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5982         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5983         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5984         * modules/mkdirat: New file, extracted from modules/openat.
5985         * modules/openat (Files): Remove lib/mkdirat.c.
5986         (Depends-on): Remove mkdir.
5987         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5988         (Include): Remove <sys/stat.h>.
5989         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5990         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5991         tests/test-mkdir.h.
5992         (Depends-on): Remove ignore-value.
5993         (Makefile.am): Remove rules for test-mkdirat.
5994         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5995         of module 'openat'.
5996         * NEWS: Mention the change.
5997
5998 2011-11-04  Bruno Haible  <bruno@clisp.org>
5999
6000         closedir: Avoid warning on mingw.
6001         * lib/closedir.c: Include <unistd.h>.
6002
6003 2011-11-04  Bruno Haible  <bruno@clisp.org>
6004
6005         New module 'fstatat', split off from module 'openat'.
6006         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6007         defined.
6008         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6009         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6010         gl_FUNC_FSTATAT.
6011         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6012         * modules/fstatat: New file, extracted from modules/openat.
6013         * modules/openat (Files): Remove lib/fstatat.c.
6014         (Depends-on): Remove lstat.
6015         (configure.ac): Remove AC_LIBOBJ of fstatat.
6016         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6017         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6018         tests/test-lstat.h, tests/test-stat.h.
6019         (Depends-on): Remove getcwd-lgpl.
6020         (Makefile.am): Remove rules for test-fstatat.
6021         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6022         of module 'openat'.
6023         * NEWS: Mention the change.
6024         * modules/getcwd (Depends-on): Add fstatat.
6025         * modules/linkat (Depends-on): Likewise.
6026         * modules/mkfifoat-tests (Depends-on): Likewise.
6027         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6028
6029 2011-11-03  Bruno Haible  <bruno@clisp.org>
6030
6031         New module 'unlinkat', split off from module 'openat'.
6032         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6033         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6034         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6035         * modules/unlinkat: New file, extracted from modules/openat. Correct
6036         the dependency conditions.
6037         * modules/openat (Files): Remove lib/unlinkat.c.
6038         (Depends-on): Remove rmdir, unlink.
6039         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6040         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6041         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6042         tests/test-rmdir.h, tests/test-unlink.h.
6043         (Depends-on): Remove unlinkdir.
6044         (Makefile.am): Remove rules for test-unlinkat.
6045         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6046         of module 'openat'.
6047         * NEWS: Mention the change.
6048         * modules/linkat-tests (Depends-on): Add unlinkat.
6049         * modules/mkfifoat-tests (Depends-on): Likewise.
6050         * modules/readlinkat-tests (Depends-on): Likewise.
6051
6052 2011-11-02  Bruno Haible  <bruno@clisp.org>
6053
6054         New module 'fchmodat', split off from module 'openat'.
6055         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6056         defined.
6057         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6058         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6059         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6060         * modules/fchmodat: New file, extracted from modules/openat.
6061         * modules/openat (Files): Remove lib/fchmodat.c.
6062         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6063         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6064         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6065         (Makefile.am): Remove rules for test-fchmodat.
6066         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6067         of module 'openat'.
6068         * NEWS: Mention the change.
6069
6070 2011-11-02  Jim Meyering  <meyering@redhat.com>
6071
6072         putenv: indent #definition of "environ" to placate cppi
6073         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6074
6075         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6076         Git logs are often treated as immutable, because editing them
6077         changes the SHA1 checksums of all descendants.  Thus, errors in
6078         git logs tend to stay there forever.  However, when we generate
6079         a ChangeLog file -- typically for distribution -- from that git log,
6080         we can actually make corrections in the generated file.  The key
6081         lies in recording in machine-readable/applicable form the desired
6082         corrections.  See --help for description and an example.
6083         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6084         (usage): Describe it; alphabetize option descriptions.
6085         (main): Honor the new option, carefully.
6086
6087 2011-11-01  Jim Meyering  <meyering@redhat.com>
6088
6089         gitlog-to-changelog: avoid an infloop
6090         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6091         that ends up being empty.
6092
6093 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6094
6095         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6096         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6097         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6098         contains (possibly-quoted) backslashes.  This should avoid
6099         all-too-common shell bugs if COMPLICATED contains backslashes in
6100         the "wrong" places.  Reported by David Evans in
6101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6102         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6103         because we want ASCII ranges.  Is there some reason we don't use
6104         the C locale everywhere in this script?
6105         (func_module, top level): Avoid unwanted pathname expansion when
6106         $repo_url_prefix or $repo_url_suffix_repl contain shell
6107         metacharacters like '?' and '*'.
6108
6109 2011-11-01  Bruno Haible  <bruno@clisp.org>
6110
6111         fchownat: Improve description.
6112         * modules/fchownat (Description): Add link to function.
6113
6114 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6115
6116         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6117         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6119         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6120
6121 2011-11-01  Bruno Haible  <bruno@clisp.org>
6122
6123         alignof: Avoid collision with stdalign module.
6124         * lib/alignof.h (alignof): Remove macro.
6125         * NEWS: Mention the change.
6126         Reported by Paul Eggert.
6127
6128 2011-11-01  Bruno Haible  <bruno@clisp.org>
6129
6130         New module 'fchownat', split off from module 'openat'.
6131         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6132         defined.
6133         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6134         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6135         invoke gl_FUNC_FCHOWNAT.
6136         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6137         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6138         * modules/fchownat: New file, extracted from modules/openat.
6139         * modules/openat (Files): Remove lib/fchownat.c.
6140         (Depends-on): Remove lchown.
6141         (configure.ac): Remove AC_LIBOBJ of fchownat.
6142         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6143         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6144         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6145         (Depends-on): Remove mgetgroups, usleep, stat-time.
6146         (configure.ac): Remove test for getegid.
6147         (Makefile.am): Remove rules for test-fchownat.
6148         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6149         of module 'openat'.
6150         * NEWS: Mention the change.
6151
6152 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         stdalign: port better to MSVC and to Sun C 5.11
6155         This fixes some of the problems reported by Bruno Haible in
6156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6157         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6158         shortcomings of MSVC and of Sun C 5.11.
6159         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6160         around __declspec arg.
6161         * modules/stdalign-tests (Files): Add tests/macros.h.
6162         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6163         Include macros.h, for ASSERT.
6164         (DECLARE_ALIGNED): Remove.
6165         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6166         to catch bug), and to 1 if not (simplifies the rest of the code).
6167         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6168         (CHECK_AUTO): Remove.
6169         (CHECK_ALIGNED): Check only the alignment of the static vars,
6170         since auto var alignment isn't supported by Sun C 5.11.
6171         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6172         ASSERT failures are easier to diagnose.
6173
6174 2011-10-31  Bruno Haible  <bruno@clisp.org>
6175
6176         doc about some IRIX 5.3 problems.
6177         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6178         on IRIX 5.3.
6179         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6180         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6181         5.3.
6182         * doc/posix-functions/grantpt.texi: Likewise.
6183         * doc/posix-functions/unlockpt.texi: Likewise.
6184         * doc/posix-functions/lgamma.texi: Likewise.
6185         * doc/posix-functions/nextafter.texi: Likewise.
6186         * doc/posix-functions/remainder.texi: Likewise.
6187         * doc/posix-functions/select.texi: Mention misplaced declaration on
6188         IRIX 5.3.
6189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6190
6191 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6192
6193         gitlog-to-changelog: fix git-log invocation.
6194         git-log mishandles date strings before 1970-01-01 UTC, and there is
6195         no use to specify --since=1970-01-01 by default anyway.
6196         * build-aux/gitlog-to-changelog: By default, when no --since option
6197         was given, do not specify explicit --since option to git-log.
6198
6199 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6200
6201         gitlog-to-changelog: new option --append-dot.
6202         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6203         first non-blank line of each commit message terminated with a dot.
6204
6205 2011-10-30  Bruno Haible  <bruno@clisp.org>
6206
6207         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6208         * lib/ffsl.h: Include <config.h>.
6209         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6210
6211 2011-10-30  Jim Meyering  <meyering@redhat.com>
6212
6213         GNUmakefile: reenable "make syntax-check" for most projects
6214         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6215         build-aux variable", "syntax-check" would do nothing but succeed with
6216         the "No version control files detected..." diagnostic (unless you
6217         happened to override _build-aux via cfg.mk).
6218         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6219         to precede inclusion of maint.mk.  Otherwise, these variables would
6220         be used undefined in any project that does not override the default.
6221
6222 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6223
6224         gitlog-to-changelog: treat a message with only blank lines as empty.
6225         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6226         trailing blank lines before the code that issues a warning about an
6227         empty commit message.
6228
6229 2011-10-30  Jim Meyering  <meyering@redhat.com>
6230
6231         test-parse-datetime.c: avoid new DST-related false positive test failure
6232         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6233         based on the time/date we'll convert, not the current time.
6234         Otherwise, the moment we cross a DST boundary like today's in
6235         Europe, (CEST to CET), that offset ends up being one hour off.
6236
6237 2011-10-27  Bruno Haible  <bruno@clisp.org>
6238
6239         fstat: Tweak documentation.
6240         * modules/fstat (Description): More precise description.
6241
6242 2011-10-27  Bruno Haible  <bruno@clisp.org>
6243
6244         Update documentation regarding 'largefile' module.
6245         * doc/posix-functions/fstat.texi: Tweak wording.
6246         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6247         problems with huge directories and/or small ino_t types.
6248         * doc/posix-functions/readdir.texi: Likewise.
6249         * doc/posix-functions/rewinddir.texi: Likewise.
6250
6251 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6252
6253         maint.mk: don't maintain a second build-aux variable.
6254         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6255         depends on GNUmakefile, which already maintains a cfg.mk
6256         overridable $(_build-aux) for projects with a non-standard
6257         build-aux directory location, although without the $(srcdir)
6258         prefix.  Use that variable consistently instead of introducing a
6259         second one.  Adjust all call sites.
6260
6261 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6262
6263         Add stdalign module and use it in other modules.
6264         This is based on a previous proposal by Bruno Haible
6265         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6266
6267         stdalign: new module
6268         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6269         * modules/stdalign: New files.
6270         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6271         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6272
6273         stdalign-tests: new module
6274         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6275
6276         argp: use stdalign
6277         * lib/argp-parse.c: Include <stdalign.h>.
6278         (alignof): Remove.
6279         * modules/argp (Depends-on): Add stdalign.
6280
6281         crypto libraries: use stdalign
6282         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6283         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6284         Do not include <stdlib.h> twice, in md4.c.
6285         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6286         because we are accessing a pointer's bit-pattern, not a size.
6287         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6288         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6289         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6290         * modules/crypto/sha512: Likewise.
6291
6292         sys_socket: use stdalign, not alignof
6293         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6294         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6295
6296 2011-10-27  Bruno Haible  <bruno@clisp.org>
6297
6298         raise test: Avoid a test failure on Linux/MIPS.
6299         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6300         because 99 is a valid signal on Linux/MIPS.
6301
6302 2011-10-27  Bruno Haible  <bruno@clisp.org>
6303
6304         nonblocking tests: Fix test failure on Linux/MIPS.
6305         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6306         Set to 270000.
6307
6308 2011-10-27  Bruno Haible  <bruno@clisp.org>
6309
6310         utimensat: Work around problem on Linux/hppa.
6311         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6312         values.
6313         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6314
6315 2011-10-25  Jim Meyering  <meyering@redhat.com>
6316
6317         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6318         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6319         after symbols like NULL, size_t, etc.
6320         Reported by Alfred M. Szmidt.
6321
6322         maint.mk: exempt ENODATA from a syntax-check rule
6323         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6324         from the sc_prohibit_always-defined_macros syntax-check rule.
6325         Add a comment.  See this for more details:
6326         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6327
6328 2011-10-23  Jim Meyering  <meyering@redhat.com>
6329
6330         fts: close parent dir FD before returning from post-traversal fts_read
6331         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6332         unlink A, even though an FD open on A remained.  This is suboptimal
6333         (holding a file descriptor open longer than needed), but otherwise not
6334         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6335         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6336         that represents a real problem: it causes the removal of A to fail
6337         with e.g., "rm: cannot remove `A': Device or resource busy"
6338
6339         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6340         directory file descriptors.  After completing the final, FTS_DP,
6341         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6342         cache, but then proceeded to add a new FD to it via the subsequent
6343         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6344         final file descriptor would be closed only via fts_close's call to
6345         fd_ring_clear.  Now, it is usually closed earlier, via the final
6346         FTS_DP-returning fts_read call.
6347         * lib/fts.c (restore_initial_cwd): New function, converted from
6348         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6349         Update callers.
6350         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6351         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6352
6353 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6354             Bruno Haible  <bruno@clisp.org>
6355             Jim Meyering  <jim@meyering.net>
6356
6357         readme-release: improve safety of release prep instructions.
6358         * README-release: Don't git pull all branches when only master
6359         is needed for the release process.
6360         Run make maintainer-clean before changing trees and merging.
6361         Don't try to run ./configure right after git pull in case files
6362         that influence the bootstrap process have changed, move the
6363         ./configure step to after running ./bootstrap.
6364         Don't bootstrap "one last time"... it's the first time!
6365
6366 2011-10-22  Bruno Haible  <bruno@clisp.org>
6367
6368         errno, strerror-override: Support for MSVC 10.
6369         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6370         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6371         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6372         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6373         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6374         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6375         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6376         Assign values compatible with MSVC 10.
6377         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6378         New macros.
6379         (GNULIB_defined_EWINSOCK): New macro.
6380         * lib/strerror-override.c (strerror_override): Update accordingly.
6381         * lib/strerror-override.h: Likewise.
6382         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6383         longer equal to the corresponding errno value.
6384         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6385
6386 2011-10-22  Bruno Haible  <bruno@clisp.org>
6387
6388         perror: Recognize when test program crashes.
6389         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6390         strerror, set gl_cv_func_perror_works to no.
6391         Reported by Daniel Richard G. <skunk@iskunk.org>.
6392
6393         perror: Fix indentation.
6394         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6395
6396 2011-10-22  Bruno Haible  <bruno@clisp.org>
6397
6398         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6399         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6400         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6401         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6402         functions, not as a macro.
6403         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6404         macros.
6405         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6406         absence of macro.
6407         Suggested by Eric Blake.
6408         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6409
6410 2011-10-21  Bruno Haible  <bruno@clisp.org>
6411
6412         relocatable-prog-wrapper: Don't leave object files behind.
6413         * build-aux/install-reloc: Re-synchronize list of .o files to be
6414         removed with list of compilation units.
6415
6416 2011-10-20  Bruno Haible  <bruno@clisp.org>
6417
6418         openpty, posix_openpt: Remove code duplication.
6419         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6420         * lib/openpty.c: Include <stdlib.h>.
6421         (openpty): Use posix_openpt on all platforms except IRIX.
6422         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6423
6424 2011-10-20  Bruno Haible  <bruno@clisp.org>
6425
6426         unlockpt: Detect invalid argument.
6427         * lib/unlockpt.c: Include <fcntl.h>.
6428         (unlockpt): Check whether fd is valid, using fcntl().
6429         * modules/unlockpt (Depends-on): Add fcntl-h.
6430
6431 2011-10-20  Bruno Haible  <bruno@clisp.org>
6432
6433         openpty: Avoid compilation error on AIX 6.1.
6434         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6435
6436 2011-10-20  Bruno Haible  <bruno@clisp.org>
6437
6438         posix_openpt: Support for OpenBSD.
6439         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6440         (posix_openpt) [OpenBSD]: New code.
6441         * lib/grantpt.c: Include <fcntl.h>.
6442         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6443         * modules/grantpt (Depends-on): Add fcntl-h.
6444
6445 2011-10-20  Bruno Haible  <bruno@clisp.org>
6446
6447         posix_openpt test: Coding style.
6448         * tests/test-posix_openpt.c: Use GNU coding style.
6449
6450 2011-10-20  Bruno Haible  <bruno@clisp.org>
6451
6452         grantpt: Support --avoid=pt_chown.
6453         * modules/grantpt (Files): Add lib/pty-private.h.
6454
6455 2011-10-20  Bruno Haible  <bruno@clisp.org>
6456
6457         posix_openpt: Fix autoconf macro.
6458         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6459         unneeded check for _getpty.
6460
6461 2011-10-20  Bruno Haible  <bruno@clisp.org>
6462
6463         openpty: Update comments.
6464         * lib/openpty.c: Add comments about Minix.
6465
6466 2011-10-19  Eric Blake  <eblake@redhat.com>
6467
6468         openpty: relax license
6469         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6470
6471         pt_chown: use configmake to simplify build
6472         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6473
6474         ptsname and others: relax license
6475         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6476         * modules/unlockpt (License): Likewise.
6477         * modules/pt_chown (License): Likewise.
6478         * modules/ptsname (License): Likewise.
6479         * modules/ttyname_r (License): Likewise.
6480
6481 2011-10-19  Jim Meyering  <meyering@redhat.com>
6482
6483         posix_openpt: remove spurious #endif
6484         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6485
6486 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6487
6488         maint.mk: Respect $(build_aux) in web-manual rule.
6489         * top/maint.mk (web-manual): Find gen-announce script in user's
6490         $(build_aux) directory instead of hard-coding 'build-aux'.
6491
6492 2011-10-19  Bruno Haible  <bruno@clisp.org>
6493
6494         posix_openpt: Fix compilation error.
6495         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6496         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6497         Mention the openpty module as an alternative.
6498
6499 2011-10-19  Bruno Haible  <bruno@clisp.org>
6500
6501         Support for old NeXTstep 3.3 frexp().
6502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6503         execution time of the test to 5 seconds.
6504         Reported by Daniel Richard G. <skunk@iskunk.org>.
6505
6506 2011-10-19  Bruno Haible  <bruno@clisp.org>
6507
6508         Support for old NeXTstep 3.3 sed.
6509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6510         part, use /.../, not \|...|. Escape periods in the header file name.
6511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6512         Reported by Daniel Richard G. <skunk@iskunk.org>.
6513
6514 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6515
6516         Support for old NeXTstep 3.3 gcc.
6517         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6518         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6519         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6520         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6521         * lib/regex.h (_Restrict_arr_): Likewise.
6522         * lib/regex_internal.h (re_token_t): Likewise.
6523         * lib/regexec.c (check_node_accept_bytes): Likewise.
6524         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6525
6526 2011-10-18  Eric Blake  <eblake@redhat.com>
6527
6528         posix_openpt: new module
6529         * modules/posix_openpt: New module.
6530         * m4/posix_openpt.m4: New file.
6531         * lib/posix_openpt.c: Likewise.
6532         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6533         (gl_STDLIB_H_DEFAULTS): Set defaults.
6534         * modules/stdlib (Makefile.am): Substitute macros.
6535         * lib/stdlib.in.h (posix_openpt): Declare.
6536         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6537         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6538         * modules/posix_openpt-tests: New test module.
6539         * tests/test-posix_openpt.c: New test.
6540
6541 2011-10-15  Bruno Haible  <bruno@clisp.org>
6542
6543         xstrtoll: Fix compilation failure.
6544         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6545         from lib/strtol.c.
6546         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6547         some platforms.
6548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6549
6550 2011-10-15  Bruno Haible  <bruno@clisp.org>
6551
6552         vasnprintf: Optimize bit search operation.
6553         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6555         gl_DOUBLE_EXPONENT_LOCATION.
6556         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6557         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6558         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6559         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6560         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6561         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6562         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6563         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6564         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6565
6566 2011-10-15  Bruno Haible  <bruno@clisp.org>
6567
6568         vasnprintf: Fix comments.
6569         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6570
6571 2011-10-14  Bruno Haible  <bruno@clisp.org>
6572
6573         Tests for module 'integer_length_ll'.
6574         * modules/integer_length_ll-tests: New file.
6575         * tests/test-integer_length_ll.c: New file.
6576
6577         New module 'integer_length_ll'.
6578         * lib/integer_length_ll.c: New file.
6579         * modules/integer_length_ll: New file.
6580
6581 2011-10-14  Bruno Haible  <bruno@clisp.org>
6582
6583         Tests for module 'integer_length_l'.
6584         * modules/integer_length_l-tests: New file.
6585         * tests/test-integer_length_l.c: New file.
6586
6587         New module 'integer_length_l'.
6588         * lib/integer_length_l.c: New file.
6589         * modules/integer_length_l: New file.
6590
6591 2011-10-14  Bruno Haible  <bruno@clisp.org>
6592
6593         Tests for module 'integer_length'.
6594         * modules/integer_length-tests: New file.
6595         * tests/test-integer_length.c: New file.
6596
6597         New module 'integer_length'.
6598         * lib/integer_length.h: New file.
6599         * lib/integer_length.c: New file.
6600         * modules/integer_length: New file.
6601
6602 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6603
6604         popen: Fix dependency conditions.
6605         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6606
6607 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6608
6609         perror: Fix autoconf test.
6610         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6611         <stdlib.h> and <string.h>.
6612
6613 2011-10-14  Bruno Haible  <bruno@clisp.org>
6614
6615         ffsl: Optimize on 64-bit platforms.
6616         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6617         unrolling.
6618
6619 2011-10-13  Bruno Haible  <bruno@clisp.org>
6620
6621         ffsl: Optimize on 32-bit platforms.
6622         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6623         use ffs() without a loop.
6624
6625         ffsl, ffsll: Optimize for GCC.
6626         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6627         * lib/ffsl.c (GCC_BUILTIN): New macro.
6628         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6629
6630 2011-10-13  Bruno Haible  <bruno@clisp.org>
6631
6632         ffs, bcopy, memset: Support symbol renaming via config.h.
6633         * lib/ffs.c: Include <config.h>.
6634         * lib/bcopy.c: Likewise.
6635         * lib/memset.c: Likewise.
6636
6637 2011-10-10  Bruno Haible  <bruno@clisp.org>
6638
6639         atanl: Simplify for platforms where 'long double' == 'double'.
6640         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6641         alternative implementation.
6642         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6643         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6644         * modules/atanl (Depends-on): Add atan. Update conditions.
6645
6646 2011-10-10  Bruno Haible  <bruno@clisp.org>
6647
6648         acosl: Simplify for platforms where 'long double' == 'double'.
6649         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6650         alternative implementation.
6651         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6652         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6653         * modules/acosl (Depends-on): Add acos. Update conditions.
6654
6655 2011-10-10  Bruno Haible  <bruno@clisp.org>
6656
6657         asinl: Simplify for platforms where 'long double' == 'double'.
6658         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6659         alternative implementation.
6660         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6661         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6662         * modules/asinl (Depends-on): Add asin. Update conditions.
6663
6664 2011-10-10  Bruno Haible  <bruno@clisp.org>
6665
6666         tanl: Simplify for platforms where 'long double' == 'double'.
6667         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6668         implementation.
6669         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6670         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6671         * modules/tanl (Depends-on): Add tan. Update conditions.
6672         (configure.ac): Don't compile trigl.c if
6673         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6674
6675 2011-10-10  Bruno Haible  <bruno@clisp.org>
6676
6677         cosl: Simplify for platforms where 'long double' == 'double'.
6678         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6679         implementation.
6680         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6681         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6682         * modules/cosl (Depends-on): Add cos. Update conditions.
6683         (configure.ac): Don't compile sincosl.c and trigl.c if
6684         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6685
6686 2011-10-10  Bruno Haible  <bruno@clisp.org>
6687
6688         sinl: Simplify for platforms where 'long double' == 'double'.
6689         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6690         implementation.
6691         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6692         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6693         * modules/sinl (Depends-on): Add sin. Update conditions.
6694         (configure.ac): Don't compile sincosl.c and trigl.c if
6695         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6696
6697 2011-10-10  Bruno Haible  <bruno@clisp.org>
6698
6699         logl: Simplify for platforms where 'long double' == 'double'.
6700         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6701         implementation.
6702         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6703         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6704         * modules/logl (Depends-on): Add log. Update conditions.
6705
6706 2011-10-10  Bruno Haible  <bruno@clisp.org>
6707
6708         expl: Simplify for platforms where 'long double' == 'double'.
6709         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6710         implementation.
6711         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6712         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6713         * modules/expl (Depends-on): Add exp. Update conditions.
6714
6715 2011-10-10  Bruno Haible  <bruno@clisp.org>
6716
6717         sqrtl: Simplify for platforms where 'long double' == 'double'.
6718         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6719         alternative implementation.
6720         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6721         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6722         * modules/sqrtl (Depends-on): Update conditions.
6723
6724 2011-10-10  Bruno Haible  <bruno@clisp.org>
6725
6726         ldexpl: Simplify for platforms where 'long double' == 'double'.
6727         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6728         alternative implementation.
6729         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6730         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6731         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6732
6733 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6734
6735         ffsll: set correct witness
6736         * modules/ffsll (configure.ac): Fix typo.
6737
6738 2011-10-10  Bruno Haible  <bruno@clisp.org>
6739
6740         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6741         * lib/printf-frexpl.c: Include <config.h>.
6742         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6743         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6744         second time.
6745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6746         gl_LONG_DOUBLE_VS_DOUBLE.
6747         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6748         conditions.
6749
6750 2011-10-10  Bruno Haible  <bruno@clisp.org>
6751
6752         frexpl: Simplify for platforms where 'long double' == 'double'.
6753         * lib/frexpl.c: Include <config.h>.
6754         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6755         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6756         time.
6757         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6758         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6759         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6760         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6761         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6762         conditions.
6763
6764 2011-10-10  Jim Meyering  <meyering@redhat.com>
6765
6766         test-renameat: don't leave behind a temporary file
6767         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6768           ERROR: files left in build directory after distclean:
6769           ./gltests/test-renameat.too
6770           make[1]: *** [distcleancheck] Error 1
6771         Reported by Tom G. Christensen.
6772
6773 2011-10-09  Bruno Haible  <bruno@clisp.org>
6774
6775         rint: Determine RINT_LIBM correctly on AIX 7.
6776         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6777         directly, not only through a function pointer. Also accept an optional
6778         4th argument with extra code.
6779         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6780         rintf() call by gcc when optimizing.
6781
6782         mathfunc.m4: Refactor.
6783         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6784         m4 variable.
6785
6786 2011-10-09  Bruno Haible  <bruno@clisp.org>
6787
6788         rintl: Simplify for platforms where 'long double' == 'double'.
6789         * lib/rintl.c: Include <config.h>.
6790         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6791         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6792         time.
6793         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6794         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6795         * modules/rintl (Depends-on): Add rint. Update conditions.
6796
6797 2011-10-09  Bruno Haible  <bruno@clisp.org>
6798
6799         roundl: Simplify for platforms where 'long double' == 'double'.
6800         * lib/roundl.c: Include <config.h>.
6801         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6802         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6803         time.
6804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6805         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6806         * modules/roundl (Depends-on): Add round. Update conditions.
6807
6808 2011-10-09  Bruno Haible  <bruno@clisp.org>
6809
6810         truncl: Simplify for platforms where 'long double' == 'double'.
6811         * lib/truncl.c: Include <config.h>.
6812         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6813         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6814         time.
6815         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6816         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6817         * modules/truncl (Depends-on): Add trunc. Update conditions.
6818
6819 2011-10-09  Bruno Haible  <bruno@clisp.org>
6820
6821         ceill: Simplify for platforms where 'long double' == 'double'.
6822         * lib/ceill.c: Include <config.h>.
6823         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6824         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6825         time.
6826         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6827         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6828         * modules/ceill (Depends-on): Add ceil. Update conditions.
6829
6830 2011-10-09  Bruno Haible  <bruno@clisp.org>
6831
6832         floorl: Simplify for platforms where 'long double' == 'double'.
6833         * lib/floorl.c: Include <config.h>.
6834         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6835         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6836         time.
6837         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6838         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6839         * modules/floorl (Depends-on): Add floor. Update conditions.
6840
6841 2011-10-09  Bruno Haible  <bruno@clisp.org>
6842
6843         rint: Fix ordering constraints.
6844         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6845         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6846         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6847
6848 2011-10-09  Bruno Haible  <bruno@clisp.org>
6849
6850         copysignl: Simplify for platforms where 'long double' == 'double'.
6851         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6852         alternative.
6853         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6854         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6855         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6856
6857 2011-10-09  Bruno Haible  <bruno@clisp.org>
6858
6859         Tests for module 'rintl'.
6860         * modules/rintl-tests: New file.
6861         * tests/test-rintl.c: New file.
6862
6863         New module 'rintl'.
6864         * lib/math.in.h (rintl): New declaration.
6865         * lib/rintl.c: New file.
6866         * m4/rintl.m4: New file.
6867         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6869         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6870         * modules/rintl: New file.
6871         * tests/test-math-c++.cc: Check the declaration of rintl.
6872         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6873         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6874         * doc/posix-functions/rintl.texi: Mention the new module.
6875
6876 2011-10-09  Bruno Haible  <bruno@clisp.org>
6877
6878         Tests for module 'rintf'.
6879         * modules/rintf-tests: New file.
6880         * tests/test-rintf.c: New file.
6881
6882         New module 'rintf'.
6883         * lib/math.in.h (rintf): New declaration.
6884         * lib/rintf.c: New file.
6885         * m4/rintf.m4: New file.
6886         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6888         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6889         * modules/rintf: New file.
6890         * tests/test-math-c++.cc: Check the declaration of rintf.
6891         * doc/posix-functions/rintf.texi: Mention the new module.
6892
6893 2011-10-09  Bruno Haible  <bruno@clisp.org>
6894
6895         rint: Support for MSVC.
6896         * lib/math.in.h (rint): New declaration.
6897         * lib/rint.c: New file.
6898         * m4/rint.m4: New file.
6899         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6901         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6902         * modules/rint (Description): Fix.
6903         (Files): Add lib/rint.c, m4/rint.m4.
6904         (Depends-on): Add math.
6905         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6906         gl_MATH_MODULE_INDICATOR.
6907         * tests/test-math-c++.cc: Check the declaration of rint.
6908         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6909         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6910         * doc/posix-functions/rint.texi: Mention the replacement provided by
6911         the module.
6912
6913         rint tests: More tests.
6914         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6915         minus-zero.h, infinity.h, nan.h.
6916         (main): Skip the test if the current rounding mode is not standard. Add
6917         tests for negative numbers, minus zero, infinity, NaN.
6918         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6919         tests/nan.h.
6920         (Depends-on): Add isnand-nolibm.
6921
6922 2011-10-09  Bruno Haible  <bruno@clisp.org>
6923
6924         Tests for module 'copysignl'.
6925         * modules/copysignl-tests: New file.
6926         * tests/test-copysignl.c: New file.
6927
6928         New module 'copysignl'.
6929         * lib/math.in.h (copysignl): New declaration.
6930         * lib/copysignl.c: New file.
6931         * m4/copysignl.m4: New file.
6932         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6934         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6935         HAVE_COPYSIGNL.
6936         * modules/copysignl: New file.
6937         * tests/test-math-c++.cc: Check the declaration of copysignl.
6938         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6939         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6940         * doc/posix-functions/copysignl.texi: Mention the new module.
6941
6942 2011-10-09  Bruno Haible  <bruno@clisp.org>
6943
6944         Tests for module 'copysignf'.
6945         * modules/copysignf-tests: New file.
6946         * tests/test-copysignf.c: New file.
6947
6948         New module 'copysignf'.
6949         * lib/math.in.h (copysignf): New declaration.
6950         * lib/copysignf.c: New file.
6951         * m4/copysignf.m4: New file.
6952         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6954         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6955         HAVE_COPYSIGNF.
6956         * modules/copysignf: New file.
6957         * tests/test-math-c++.cc: Check the declaration of copysignf.
6958         * doc/posix-functions/copysignf.texi: Mention the new module.
6959
6960 2011-10-09  Bruno Haible  <bruno@clisp.org>
6961
6962         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6964         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6965         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6966         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6967         gl_SIGNAL_H_DEFAULTS.
6968
6969 2011-10-09  Bruno Haible  <bruno@clisp.org>
6970
6971         poll: Make macro safer.
6972         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6973         ac_cv_header_poll_h is not set.
6974
6975 2011-10-09  Bruno Haible  <bruno@clisp.org>
6976
6977         copysign: Provide replacement.
6978         * lib/math.in.h (copysign): New declaration.
6979         * lib/copysign.c: New file.
6980         * m4/copysign.m4: New file.
6981         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6983         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6984         HAVE_COPYSIGN.
6985         * modules/copysign (Description): Clarify.
6986         (Files): Add lib/copysign.c, m4/copysign.m4.
6987         (Depends-on): Add math, signbit.
6988         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6989         gl_MATH_MODULE_INDICATOR.
6990         * tests/test-math-c++.cc: Check the declaration of copysign.
6991         * doc/posix-functions/copysign.texi: Mention the effects of the module
6992         on Minix and MSVC.
6993
6994 2011-10-09  Bruno Haible  <bruno@clisp.org>
6995
6996         isinf: Ensure macro on AIX 5.1.
6997         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6998         macro.
6999         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7000
7001 2011-10-09  Bruno Haible  <bruno@clisp.org>
7002
7003         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7004         * modules/snprintf-posix-tests (configure.ac): Require
7005         gl_LONG_DOUBLE_VS_DOUBLE.
7006         * modules/sprintf-posix-tests (configure.ac): Likewise.
7007         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7008         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7009         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7010         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7011         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7012         tests on platforms where 'long double' is the same as 'double'.
7013         * tests/test-sprintf-posix.h (test_function): Likewise.
7014         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7015         * tests/test-vasprintf-posix.c (test_function): Likewise.
7016
7017         *printf: Fix for platforms where 'long double' == 'double'.
7018         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7019         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7020         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7021         * modules/fprintf-posix (Files): Likewise.
7022         * modules/obstack-printf-posix (Files): Likewise.
7023         * modules/snprintf-posix (Files): Likewise.
7024         * modules/sprintf-posix (Files): Likewise.
7025         * modules/vasnprintf (Files): Likewise.
7026         * modules/vasnprintf-posix (Files): Likewise.
7027         * modules/vasprintf-posix (Files): Likewise.
7028         * modules/vdprintf-posix (Files): Likewise.
7029         * modules/vfprintf-posix (Files): Likewise.
7030         * modules/vsnprintf-posix (Files): Likewise.
7031         * modules/vsprintf-posix (Files): Likewise.
7032         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7033         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7034         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7035         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7036         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7037         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7038         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7039
7040         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7041         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7042         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7043         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7044         'long double'.
7045         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7046
7047         isinf: Fix for platforms where 'long double' == 'double'.
7048         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7049         Don't blindly assume 80-bit 'long double'.
7050
7051         isfinite: Fix for platforms where 'long double' == 'double'.
7052         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7053         Don't blindly assume 80-bit 'long double'.
7054
7055         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7056         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7057         * modules/isfinite-tests (configure.ac): Require
7058         gl_LONG_DOUBLE_VS_DOUBLE.
7059         * modules/isinf-tests (configure.ac): Likewise.
7060         * modules/isnan-tests (configure.ac): Likewise.
7061         * modules/isnanl-tests (configure.ac): Likewise.
7062         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7063         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7064         tests on platforms where 'long double' is the same as 'double'.
7065         * tests/test-isinf.c (test_isinfl): Likewise.
7066         * tests/test-isnan.c (test_long_double): Likewise.
7067         * tests/test-isnanl.h (main): Likewise.
7068
7069 2011-10-08  Bruno Haible  <bruno@clisp.org>
7070
7071         Tests for module 'tanhf'.
7072         * modules/tanhf-tests: New file.
7073         * tests/test-tanhf.c: New file.
7074
7075         New module 'tanhf'.
7076         * lib/math.in.h (tanhf): New declaration.
7077         * lib/tanhf.c: New file.
7078         * m4/tanhf.m4: New file.
7079         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7081         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7082         * modules/tanhf: New file.
7083         * tests/test-math-c++.cc: Check the declaration of tanhf.
7084         * doc/posix-functions/tanhf.texi: Mention the new module.
7085
7086         tanh: Use a .m4 file.
7087         * m4/tanh.m4: New file.
7088         * modules/tanh (Files): Add it.
7089         (configure.ac): Just invoke gl_FUNC_TANH.
7090
7091 2011-10-08  Bruno Haible  <bruno@clisp.org>
7092
7093         Tests for module 'coshf'.
7094         * modules/coshf-tests: New file.
7095         * tests/test-coshf.c: New file.
7096
7097         New module 'coshf'.
7098         * lib/math.in.h (coshf): New declaration.
7099         * lib/coshf.c: New file.
7100         * m4/coshf.m4: New file.
7101         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7103         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7104         * modules/coshf: New file.
7105         * tests/test-math-c++.cc: Check the declaration of coshf.
7106         * doc/posix-functions/coshf.texi: Mention the new module.
7107
7108         cosh: Use a .m4 file.
7109         * m4/cosh.m4: New file.
7110         * modules/cosh (Files): Add it.
7111         (configure.ac): Just invoke gl_FUNC_COSH.
7112
7113 2011-10-08  Bruno Haible  <bruno@clisp.org>
7114
7115         Tests for module 'sinhf'.
7116         * modules/sinhf-tests: New file.
7117         * tests/test-sinhf.c: New file.
7118
7119         New module 'sinhf'.
7120         * lib/math.in.h (sinhf): New declaration.
7121         * lib/sinhf.c: New file.
7122         * m4/sinhf.m4: New file.
7123         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7125         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7126         * modules/sinhf: New file.
7127         * tests/test-math-c++.cc: Check the declaration of sinhf.
7128         * doc/posix-functions/sinhf.texi: Mention the new module.
7129
7130         sinh: Use a .m4 file.
7131         * m4/sinh.m4: New file.
7132         * modules/sinh (Files): Add it.
7133         (configure.ac): Just invoke gl_FUNC_SINH.
7134
7135 2011-10-08  Bruno Haible  <bruno@clisp.org>
7136
7137         Tests for module 'atan2f'.
7138         * modules/atan2f-tests: New file.
7139         * tests/test-atan2f.c: New file.
7140
7141         New module 'atan2f'.
7142         * lib/math.in.h (atan2f): New declaration.
7143         * lib/atan2f.c: New file.
7144         * m4/atan2f.m4: New file.
7145         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7147         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7148         * modules/atan2f: New file.
7149         * tests/test-math-c++.cc: Check the declaration of atan2f.
7150         * doc/posix-functions/atan2f.texi: Mention the new module.
7151
7152         atan2: Use a .m4 file.
7153         * m4/atan2.m4: New file.
7154         * modules/atan2 (Files): Add it.
7155         (configure.ac): Just invoke gl_FUNC_ATAN2.
7156
7157 2011-10-08  Bruno Haible  <bruno@clisp.org>
7158
7159         Tests for module 'atanf'.
7160         * modules/atanf-tests: New file.
7161         * tests/test-atanf.c: New file.
7162
7163         New module 'atanf'.
7164         * lib/math.in.h (atanf): New declaration.
7165         * lib/atanf.c: New file.
7166         * m4/atanf.m4: New file.
7167         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7169         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7170         * modules/atanf: New file.
7171         * tests/test-math-c++.cc: Check the declaration of atanf.
7172         * doc/posix-functions/atanf.texi: Mention the new module.
7173
7174         atan: Use a .m4 file.
7175         * m4/atan.m4: New file.
7176         * modules/atan (Files): Add it.
7177         (configure.ac): Just invoke gl_FUNC_ATAN.
7178
7179 2011-10-08  Bruno Haible  <bruno@clisp.org>
7180
7181         Tests for module 'acosf'.
7182         * modules/acosf-tests: New file.
7183         * tests/test-acosf.c: New file.
7184
7185         New module 'acosf'.
7186         * lib/math.in.h (acosf): New declaration.
7187         * lib/acosf.c: New file.
7188         * m4/acosf.m4: New file.
7189         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7191         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7192         * modules/acosf: New file.
7193         * tests/test-math-c++.cc: Check the declaration of acosf.
7194         * doc/posix-functions/acosf.texi: Mention the new module.
7195
7196         acos: Use a .m4 file.
7197         * m4/acos.m4: New file.
7198         * modules/acos (Files): Add it.
7199         (configure.ac): Just invoke gl_FUNC_ACOS.
7200
7201 2011-10-08  Bruno Haible  <bruno@clisp.org>
7202
7203         Tests for module 'asinf'.
7204         * modules/asinf-tests: New file.
7205         * tests/test-asinf.c: New file.
7206
7207         New module 'asinf'.
7208         * lib/math.in.h (asinf): New declaration.
7209         * lib/asinf.c: New file.
7210         * m4/asinf.m4: New file.
7211         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7213         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7214         * modules/asinf: New file.
7215         * tests/test-math-c++.cc: Check the declaration of asinf.
7216         * doc/posix-functions/asinf.texi: Mention the new module.
7217
7218         asin: Use a .m4 file.
7219         * m4/asin.m4: New file.
7220         * modules/asin (Files): Add it.
7221         (configure.ac): Just invoke gl_FUNC_ASIN.
7222
7223 2011-10-08  Bruno Haible  <bruno@clisp.org>
7224
7225         Tests for module 'tanf'.
7226         * modules/tanf-tests: New file.
7227         * tests/test-tanf.c: New file.
7228
7229         New module 'tanf'.
7230         * lib/math.in.h (tanf): New declaration.
7231         * lib/tanf.c: New file.
7232         * m4/tanf.m4: New file.
7233         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7235         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7236         * modules/tanf: New file.
7237         * tests/test-math-c++.cc: Check the declaration of tanf.
7238         * doc/posix-functions/tanf.texi: Mention the new module.
7239
7240         tan: Use a .m4 file.
7241         * m4/tan.m4: New file.
7242         * modules/tan (Files): Add it.
7243         (configure.ac): Just invoke gl_FUNC_TAN.
7244
7245 2011-10-08  Bruno Haible  <bruno@clisp.org>
7246
7247         Tests for module 'cosf'.
7248         * modules/cosf-tests: New file.
7249         * tests/test-cosf.c: New file.
7250
7251         New module 'cosf'.
7252         * lib/math.in.h (cosf): New declaration.
7253         * lib/cosf.c: New file.
7254         * m4/cosf.m4: New file.
7255         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7257         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7258         * modules/cosf: New file.
7259         * tests/test-math-c++.cc: Check the declaration of cosf.
7260         * doc/posix-functions/cosf.texi: Mention the new module.
7261
7262         cos: Use a .m4 file.
7263         * m4/cos.m4: New file.
7264         * modules/cos (Files): Add it.
7265         (configure.ac): Just invoke gl_FUNC_COS.
7266
7267 2011-10-08  Bruno Haible  <bruno@clisp.org>
7268
7269         Tests for module 'sinf'.
7270         * modules/sinf-tests: New file.
7271         * tests/test-sinf.c: New file.
7272
7273         New module 'sinf'.
7274         * lib/math.in.h (sinf): New declaration.
7275         * lib/sinf.c: New file.
7276         * m4/sinf.m4: New file.
7277         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7279         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7280         * modules/sinf: New file.
7281         * tests/test-math-c++.cc: Check the declaration of sinf.
7282         * doc/posix-functions/sinf.texi: Mention the new module.
7283
7284         sin: Use a .m4 file.
7285         * m4/sin.m4: New file.
7286         * modules/sin (Files): Add it.
7287         (configure.ac): Just invoke gl_FUNC_SIN.
7288
7289 2011-10-08  Bruno Haible  <bruno@clisp.org>
7290
7291         Tests for module 'powf'.
7292         * modules/powf-tests: New file.
7293         * tests/test-powf.c: New file.
7294
7295         New module 'powf'.
7296         * lib/math.in.h (powf): New declaration.
7297         * lib/powf.c: New file.
7298         * m4/powf.m4: New file.
7299         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7301         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7302         * modules/powf: New file.
7303         * tests/test-math-c++.cc: Check the declaration of powf.
7304         * doc/posix-functions/powf.texi: Mention the new module.
7305
7306         pow: Use a .m4 file.
7307         * m4/pow.m4: New file.
7308         * modules/pow (Files): Add it.
7309         (configure.ac): Just invoke gl_FUNC_POW.
7310
7311 2011-10-08  Bruno Haible  <bruno@clisp.org>
7312
7313         Tests for module 'log10f'.
7314         * modules/log10f-tests: New file.
7315         * tests/test-log10f.c: New file.
7316
7317         New module 'log10f'.
7318         * lib/math.in.h (log10f): New declaration.
7319         * lib/log10f.c: New file.
7320         * m4/log10f.m4: New file.
7321         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7323         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7324         * modules/log10f: New file.
7325         * tests/test-math-c++.cc: Check the declaration of log10f.
7326         * doc/posix-functions/log10f.texi: Mention the new module.
7327
7328         log10: Use a .m4 file.
7329         * m4/log10.m4: New file.
7330         * modules/log10 (Files): Add it.
7331         (configure.ac): Just invoke gl_FUNC_LOG10.
7332
7333 2011-10-08  Bruno Haible  <bruno@clisp.org>
7334
7335         Tests for module 'logf'.
7336         * modules/logf-tests: New file.
7337         * tests/test-logf.c: New file.
7338
7339         New module 'logf'.
7340         * lib/math.in.h (logf): New declaration.
7341         * lib/logf.c: New file.
7342         * m4/logf.m4: New file.
7343         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7345         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7346         * modules/logf: New file.
7347         * tests/test-math-c++.cc: Check the declaration of logf.
7348         * doc/posix-functions/logf.texi: Mention the new module.
7349
7350         log: Use a .m4 file.
7351         * m4/log.m4: New file.
7352         * modules/log (Files): Add it.
7353         (configure.ac): Just invoke gl_FUNC_LOG.
7354
7355 2011-10-08  Bruno Haible  <bruno@clisp.org>
7356
7357         Tests for module 'expf'.
7358         * modules/expf-tests: New file.
7359         * tests/test-expf.c: New file.
7360
7361         New module 'expf'.
7362         * lib/math.in.h (expf): New declaration.
7363         * lib/expf.c: New file.
7364         * m4/expf.m4: New file.
7365         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7367         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7368         * modules/expf: New file.
7369         * tests/test-math-c++.cc: Check the declaration of expf.
7370         * doc/posix-functions/expf.texi: Mention the new module.
7371
7372         exp: Use a .m4 file.
7373         * m4/exp.m4: New file.
7374         * modules/exp (Files): Add it.
7375         (configure.ac): Just invoke gl_FUNC_EXP.
7376
7377 2011-10-08  Bruno Haible  <bruno@clisp.org>
7378
7379         Tests for module 'sqrtf'.
7380         * modules/sqrtf-tests: New file.
7381         * tests/test-sqrtf.c: New file.
7382
7383         New module 'sqrtf'.
7384         * lib/math.in.h (sqrtf): New declaration.
7385         * lib/sqrtf.c: New file.
7386         * m4/sqrtf.m4: New file.
7387         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7389         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7390         * modules/sqrtf: New file.
7391         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7392         * doc/posix-functions/sqrtf.texi: Mention the new module.
7393
7394 2011-10-08  Bruno Haible  <bruno@clisp.org>
7395
7396         Tests: Avoid link failures w.r.t. libintl.
7397         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7398         $(LIBINTL).
7399         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7400         $(LIBINTL).
7401         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7402         against $(LIBINTL).
7403         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7404         $(LIBINTL).
7405         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7406         $(LIBINTL).
7407         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7408
7409 2011-10-08  Bruno Haible  <bruno@clisp.org>
7410
7411         pow tests: Defeat compiler optimizations.
7412         * tests/test-pow.c (main): Assign arguments to x and y before use.
7413
7414 2011-10-08  Bruno Haible  <bruno@clisp.org>
7415
7416         gnulib-tool: Improve last commit.
7417         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7418         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7419         ignore dependencies that are not among the modules list.
7420
7421 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7422
7423         gnulib-tool: don't follow dependencies to avoided modules
7424         This fixes a bug that is related to the previous one.
7425         * gnulib-tool (func_modules_transitive_closure)
7426         (func_emit_autoconf_snippets):
7427         Check whether a dependency is acceptable before using it.
7428         (--extract-dependencies): Report an error if --avoid is also used,
7429         since this combination of options is not yet supported.
7430
7431         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7432         Problem reported by Peter Dyballa in
7433         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7434         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7435         when echoing "$condition".
7436
7437 2011-10-07  Bruno Haible  <bruno@clisp.org>
7438
7439         Fix documentation about math functions on MacOS X.
7440         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7441         MacOS X 10.5.
7442         * doc/posix-functions/fdim.texi: Likewise.
7443         * doc/posix-functions/feclearexcept.texi: Likewise.
7444         * doc/posix-functions/fegetenv.texi: Likewise.
7445         * doc/posix-functions/fegetround.texi: Likewise.
7446         * doc/posix-functions/feholdexcept.texi: Likewise.
7447         * doc/posix-functions/feraiseexcept.texi: Likewise.
7448         * doc/posix-functions/fesetenv.texi: Likewise.
7449         * doc/posix-functions/fesetround.texi: Likewise.
7450         * doc/posix-functions/fetestexcept.texi: Likewise.
7451         * doc/posix-functions/feupdateenv.texi: Likewise.
7452         * doc/posix-functions/fmax.texi: Likewise.
7453         * doc/posix-functions/fmin.texi: Likewise.
7454         * doc/posix-functions/log2.texi: Likewise.
7455         * doc/posix-functions/modff.texi: Likewise.
7456         * doc/posix-functions/nan.texi: Likewise.
7457         * doc/posix-functions/nanf.texi: Likewise.
7458         * doc/posix-functions/nextafterf.texi: Likewise.
7459         * doc/posix-functions/remquo.texi: Likewise.
7460
7461 2011-10-07  Bruno Haible  <bruno@clisp.org>
7462
7463         modff: Drop assumption about library that defines modff.
7464         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7465         AC_CHECK_FUNCS.
7466         * modules/modff (Files): Add m4/mathfunc.m4.
7467
7468 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7469
7470         raise tests: Avoid a GCC warning.
7471         * tests/test-raise.c (handler): Use _Noreturn.
7472
7473 2011-10-07  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'ldexpf'.
7476         * modules/ldexpf-tests: New file.
7477         * tests/test-ldexpf.c: New file.
7478
7479         New module 'ldexpf'.
7480         * lib/math.in.h (ldexpf): New declaration.
7481         * lib/ldexpf.c: New file.
7482         * m4/ldexpf.m4: New file.
7483         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7485         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7486         * modules/ldexpf: New file.
7487         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7488         * doc/posix-functions/ldexpf.texi: Mention the new module.
7489
7490 2011-10-06  Bruno Haible  <bruno@clisp.org>
7491
7492         frexpf: Work around problems on IRIX and mingw.
7493         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7495         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7496         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7497         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7498         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7499         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7500
7501 2011-10-06  Bruno Haible  <bruno@clisp.org>
7502
7503         fabsf: Drop assumption about library that defines fabsf.
7504         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7505         AC_CHECK_FUNCS.
7506         * modules/fabsf (Files): Add m4/mathfunc.m4.
7507
7508 2011-10-06  Bruno Haible  <bruno@clisp.org>
7509
7510         frexpf: Drop assumption about library that defines frexpf.
7511         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7512         'int *', 'float *', 'long double *', 'float', 'long double'.
7513         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7514         AC_CHECK_FUNCS.
7515         * modules/frexpf (Files): Add m4/mathfunc.m4.
7516
7517         Tests for module 'frexpf'.
7518         * modules/frexpf-tests: New file.
7519         * tests/test-frexpf.c: New file.
7520
7521         New module 'frexpf'.
7522         * lib/math.in.h (frexpf): New declaration.
7523         * lib/frexpf.c: New file.
7524         * m4/frexpf.m4: New file.
7525         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7527         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7528         * modules/frexpf: New file.
7529         * tests/test-math-c++.cc: Check the declaration of frexpf.
7530         * doc/posix-functions/frexpf.texi: Mention the new module.
7531
7532 2011-10-06  Bruno Haible  <bruno@clisp.org>
7533
7534         math: Sort function declarations of math.in.h.
7535         * lib/math.in.h (frexp, logb): Move declarations.
7536
7537 2011-10-05  Bruno Haible  <bruno@clisp.org>
7538
7539         Tests for module 'modff'.
7540         * modules/modff-tests: New file.
7541         * tests/test-modff.c: New file.
7542
7543         New module 'modff'.
7544         * lib/math.in.h (modff): New declaration.
7545         * lib/modff.c: New file.
7546         * m4/modff.m4: New file.
7547         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7549         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7550         * modules/modff: New file.
7551         * tests/test-math-c++.cc: Check the declaration of modff.
7552         * doc/posix-functions/modff.texi: Mention the new module.
7553
7554         modf tests: Make test sharper.
7555         * tests/test-modf.c (main): Strengthen upper bound.
7556
7557         modf: Use a .m4 file.
7558         * m4/modf.m4: New file.
7559         * modules/modf (Files): Add it.
7560         (configure.ac): Just invoke gl_FUNC_MODF.
7561
7562 2011-10-05  Bruno Haible  <bruno@clisp.org>
7563
7564         Tests for module 'fmodf'.
7565         * modules/fmodf-tests: New file.
7566         * tests/test-fmodf.c: New file.
7567
7568         New module 'fmodf'.
7569         * lib/math.in.h (fmodf): New declaration.
7570         * lib/fmodf.c: New file.
7571         * m4/fmodf.m4: New file.
7572         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7574         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7575         * modules/fmodf: New file.
7576         * tests/test-math-c++.cc: Check the declaration of fmodf.
7577         * doc/posix-functions/fmodf.texi: Mention the new module.
7578
7579         fmod: Use a .m4 file.
7580         * m4/fmod.m4: New file.
7581         * modules/fmod (Files): Add it.
7582         (configure.ac): Just invoke gl_FUNC_FMOD.
7583
7584 2011-10-05  Bruno Haible  <bruno@clisp.org>
7585
7586         Tests for module 'fabsf'.
7587         * modules/fabsf-tests: New file.
7588         * tests/test-fabsf.c: New file.
7589
7590         New module 'fabsf'.
7591         * lib/math.in.h (fabsf): New declaration.
7592         * lib/fabsf.c: New file.
7593         * m4/fabsf.m4: New file.
7594         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7596         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7597         * modules/fabsf: New file.
7598         * tests/test-math-c++.cc: Check the declaration of fabsf.
7599         * doc/posix-functions/fabsf.texi: Mention the new module.
7600
7601         fabs: Use a .m4 file.
7602         * m4/fabs.m4: New file.
7603         * modules/fabs (Files): Add it.
7604         (configure.ac): Just invoke gl_FUNC_FABS.
7605
7606 2011-10-05  Jim Meyering  <meyering@redhat.com>
7607
7608         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7609         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7610         ls -lL regression introduced in coreutils-8.12, it does so at the
7611         cost of an additional stat call in the common case.  Besides, now
7612         that the kernel change that prompted commit 95f7c57f has been reverted
7613         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7614         we have no use for commit 95f7c57f, "file-has-acl: use
7615         acl_extended_file_nofollow if available".
7616
7617 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7618
7619         file-has-acl: revert unintended change in behavior of ls -L
7620         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7621         derived from...
7622         (file_has_acl): ...code here.  Call it.
7623         This problem was introduced with 2011-07-22 commit 95f7c57f,
7624         "file-has-acl: use acl_extended_file_nofollow if available".
7625         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7626
7627 2011-10-03  Bruno Haible  <bruno@clisp.org>
7628
7629         poll: Avoid link errors on MSVC.
7630         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7631         * modules/poll (Depends-on): Add sockets.
7632         (Link): New section.
7633         * NEWS: Mention the change.
7634         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7635         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7636         $(LIB_POLL) instead of $(LIBSOCKET).
7637
7638 2011-10-03  Bruno Haible  <bruno@clisp.org>
7639
7640         sys_select tests: Fix link error on MSVC 9.
7641         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7642         with $(LIB_SELECT) instead of $(LIBSOCKET).
7643
7644 2011-10-03  Bruno Haible  <bruno@clisp.org>
7645
7646         sys_select: Fix compilation error on mingw.
7647         * lib/sys_select.in.h: On native Windows, include <io.h>.
7648
7649 2011-10-03  Bruno Haible  <bruno@clisp.org>
7650
7651         wmemset: Support for MSVC.
7652         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7653         whether wmemset() exists.
7654
7655 2011-10-03  Bruno Haible  <bruno@clisp.org>
7656
7657         wmemmove: Support for MSVC.
7658         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7659         whether wmemmove() exists.
7660
7661 2011-10-03  Bruno Haible  <bruno@clisp.org>
7662
7663         wmemcpy: Support for MSVC.
7664         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7665         whether wmemcpy() exists.
7666
7667 2011-10-03  Bruno Haible  <bruno@clisp.org>
7668
7669         wmemcmp: Support for MSVC.
7670         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7671         whether wmemcmp() exists.
7672
7673 2011-10-03  Bruno Haible  <bruno@clisp.org>
7674
7675         wmemchr: Support for MSVC.
7676         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7677         whether wmemchr() exists.
7678
7679 2011-10-03  Bruno Haible  <bruno@clisp.org>
7680
7681         glthread/*, strsignal: Support for MSVC.
7682         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7683         including <winsock.h> on MSVC 9.
7684         * lib/glthread/lock.h: Likewise.
7685         * lib/glthread/thread.h: Likewise.
7686         * lib/glthread/tls.h: Likewise.
7687         * lib/glthread/yield.h: Likewise.
7688         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7689         if HAVE_UNISTD_H is false.
7690         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7691
7692 2011-10-03  Bruno Haible  <bruno@clisp.org>
7693
7694         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7695         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7696         Set to 100000.
7697
7698 2011-10-03  Bruno Haible  <bruno@clisp.org>
7699
7700         acl: Fix specification.
7701         * lib/file-has-acl.c (file_has_acl): Fix specification.
7702
7703 2011-10-03  Bruno Haible  <bruno@clisp.org>
7704
7705         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7706         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7707         (compute_curr_prefix, shared_library_fullname,
7708         find_shared_library_fullname, get_shared_library_fullname, relocate):
7709         Use it together with PIC && INSTALLDIR.
7710         Reported by <jojelino@gmail.com>
7711         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7712
7713 2011-10-01  Jim Meyering  <meyering@redhat.com>
7714
7715         maint.mk: adjust a release-related rule not to require use of gzip
7716         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7717         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7718         projects that build only .tar.xz files.  Also fix an erroneous test.
7719
7720         test-linkat: don't leave behind a temporary file
7721         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7722         Otherwise, coreutils' "make distcheck" would fail with this:
7723           Only in /c/cu/tests/torture/coreutils/test/\
7724             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7725           make[2]: *** [my-distcheck] Error 1
7726
7727         float, math: add omitted file
7728         * lib/itold.c: Add file, required for yesterday's float change.
7729
7730 2011-10-01  Bruno Haible  <bruno@clisp.org>
7731
7732         isinf: Fix for OpenBSD/x86.
7733         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7734         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7735         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7736
7737 2011-10-01  Bruno Haible  <bruno@clisp.org>
7738
7739         isfinite: Fix syntax error in configure test.
7740         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7741
7742         isfinite: Fix typo.
7743         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7744         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7745
7746 2011-10-01  Bruno Haible  <bruno@clisp.org>
7747
7748         nonblocking tests: Fix test failure on Linux/IA-64.
7749         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7750         Set to 270000.
7751
7752 2011-10-01  Bruno Haible  <bruno@clisp.org>
7753
7754         mkfifoat tests: Fix a test failure on mingw.
7755         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7756         with error ENOSYS.
7757
7758 2011-09-30  Bruno Haible  <bruno@clisp.org>
7759
7760         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7761         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7762         'long double'. Set REPLACE_ITOLD.
7763         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7764         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7765         * lib/itold.c: New file.
7766         * modules/float (Files): Add lib/itold.c.
7767         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7768         (Makefile.am): Substitute REPLACE_ITOLD.
7769         * modules/math (Depends-on): Add float.
7770         (Makefile.am): Substitute REPLACE_ITOLD.
7771         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7772         * doc/posix-headers/math.texi: Likewise.
7773         * doc/posix-functions/logl.texi: Likewise.
7774
7775 2011-09-30  Bruno Haible  <bruno@clisp.org>
7776
7777         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7778         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7779         Set to 140000.
7780
7781 2011-09-30  Bruno Haible  <bruno@clisp.org>
7782
7783         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7784         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7785         invocation, say "right after AC_PROG_CC_STDC", not "right after
7786         AC_PROG_CC".
7787         Reported by Gary V. Vaughan <gary@gnu.org>.
7788
7789 2011-09-30  Bruno Haible  <bruno@clisp.org>
7790
7791         Centralize C99 requirement.
7792         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7793         * modules/stdarg (configure.ac-early): Invoke it instead of
7794         AC_PROG_CC_STDC.
7795         Reported by Gary V. Vaughan and Paul Eggert.
7796
7797 2011-09-29  Bruno Haible  <bruno@clisp.org>
7798
7799         float: Fix LDBL_MAX value on Linux/PowerPC.
7800         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7801         on Linux/PowerPC.
7802         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7803         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7804         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7805         platform.
7806         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7807
7808 2011-09-29  Bruno Haible  <bruno@clisp.org>
7809
7810         doc: Improve doc about gl_EARLY.
7811         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7812         AC_PROG_CC_STDC invocation.
7813         Reported by Gary V. Vaughan <gary@gnu.org>.
7814
7815 2011-09-28  Bruno Haible  <bruno@clisp.org>
7816
7817         fgetc, fputc, fread, fwrite tests: Fix link error.
7818         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7819         on non-MSVC platforms.
7820         * tests/test-fputc.c (main): Likewise.
7821         * tests/test-fread.c (main): Likewise.
7822         * tests/test-fwrite.c (main): Likewise.
7823         Reported by Jim Meyering.
7824
7825 2011-09-27  Bruno Haible  <bruno@clisp.org>
7826
7827         fputc, fwrite tests: Avoid test failure on MSVC.
7828         * tests/test-fgetc.c: Include msvc-inval.h.
7829         (main): Invoke gl_msvc_inval_ensure_handler.
7830         * tests/test-fputc.c: Include msvc-inval.h.
7831         (main): Invoke gl_msvc_inval_ensure_handler.
7832         * tests/test-fread.c: Include msvc-inval.h.
7833         (main): Invoke gl_msvc_inval_ensure_handler.
7834         * tests/test-fwrite.c: Include msvc-inval.h.
7835         (main): Invoke gl_msvc_inval_ensure_handler.
7836         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7837         * modules/fputc-tests (Depends-on): Likewise.
7838         * modules/fread-tests (Depends-on): Likewise.
7839         * modules/fwrite-tests (Depends-on): Likewise.
7840
7841 2011-09-27  Bruno Haible  <bruno@clisp.org>
7842
7843         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7844         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7845         (raise): Remove older, duplicated declaration.
7846         (_gl_raise_SIGPIPE): New declaration.
7847         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7848         (rpl_raise): Remove function.
7849         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7850         a gnulib-defined SIGPIPE here.
7851         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7852         'sigprocmask' has detected missing signal-blocking and the module
7853         'sigpipe' is enabled.
7854         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7855
7856 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7857
7858         base64-tests: avoid memory leak
7859         * tests/test-base64.c (main): Plug memory leak.
7860
7861         base32: new module
7862         * modules/base32: New module.
7863         * lib/base32.c: New file.
7864         * lib/base32.h: Likewise.
7865         * m4/base32.m4: Likewise.
7866         * modules/base32-tests: New test.
7867         * tests/test-base32.c: Likewise.
7868         * MODULES.html.sh (Misc): Mention it.
7869
7870 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7871
7872         gnulib: use more-standard license notice wording
7873         * gnulib-tool (func_emit_copyright_notice): When emitting a
7874         license notice into a file, use the standard wording as suggested
7875         by the current information for GNU maintainers, except say "file"
7876         rather than "program".  The new wording gives a license version
7877         number, which addresses an issue raised by Glenn Morris in
7878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7879         * m4/onceonly.m4: Use that same wording here, too.
7880
7881         dup2: minor simplification
7882         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7883         as lib/dup2.c no longer uses 'inline'.
7884
7885 2011-09-25  Bruno Haible  <bruno@clisp.org>
7886
7887         strings: Fix compilation error on MSVC.
7888         * lib/strings.in.h: Include <stddef.h> for size_t.
7889
7890 2011-09-25  Bruno Haible  <bruno@clisp.org>
7891
7892         fflush et al.: Document limitation on MSVC.
7893         * doc/posix-functions/fflush.texi: Document possible crash in handling
7894         mode other than DEFAULT_HANDLING.
7895         * doc/posix-functions/fgetc.texi: Likewise.
7896         * doc/posix-functions/fputc.texi: Likewise.
7897         * doc/posix-functions/fread.texi: Likewise.
7898         * doc/posix-functions/fwrite.texi: Likewise.
7899
7900 2011-09-25  Bruno Haible  <bruno@clisp.org>
7901
7902         msvc-inval: Allow three invalid parameter handling modes.
7903         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7904         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7905         macros.
7906         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7907         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7908         SANE_LIBRARY_HANDLING as a no-op.
7909         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7910         <stdlib.h>.
7911         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7912
7913 2011-09-25  Bruno Haible  <bruno@clisp.org>
7914
7915         msvc-inval: Make handler multithread-safe.
7916         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7917         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7918         declarations.
7919         (gl_msvc_inval_current): New declaration.
7920         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7921         Operate on the structure returned by gl_msvc_inval_current().
7922         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7923         Remove varaiables.
7924         (tls_index, tls_initialized): New variables.
7925         (not_per_thread): New variable.
7926         (gl_msvc_inval_current): New function.
7927         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7928         returned by gl_msvc_inval_current().
7929
7930 2011-09-25  Bruno Haible  <bruno@clisp.org>
7931
7932         msvc-inval: Install handler globally.
7933         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7934         !_MSC_VER.
7935         (gl_msvc_invalid_parameter_handler): Remove declaration.
7936         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7937         declarations.
7938         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7939         Install the handler globally, don't uninstall it.
7940         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7941         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7942         currently valid, call RaiseException instead.
7943         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7944         for !_MSC_VER.
7945
7946 2011-09-25  Bruno Haible  <bruno@clisp.org>
7947
7948         strerror_r-posix: Fix for MSVC 9.
7949         * lib/strerror_r.c (local_snprintf): New function.
7950         (snprintf): Define to local_snprintf, not to _snprintf.
7951
7952 2011-09-25  Bruno Haible  <bruno@clisp.org>
7953
7954         ftruncate: Support for MSVC 9.
7955         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7956         (chsize_nothrow): New function.
7957         (chsize): Redefine as a macro.
7958         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7959         * modules/ftruncate (Depends-on): Add msvc-inval.
7960
7961 2011-09-25  Bruno Haible  <bruno@clisp.org>
7962
7963         New module 'fstat'.
7964         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7965         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7966         * lib/fchdir.c (rpl_fstat): Remove function.
7967         * m4/fstat.m4: New file.
7968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7969         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7970         declared.
7971         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7972         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7973         * modules/fstat: New file.
7974         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7975         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7976         is set.
7977         * doc/posix-functions/fstat.texi: Mention the new module and the
7978         problem on MSVC.
7979         * NEWS: Mention the change.
7980         * modules/acl (Depends-on): Add fstat.
7981         * modules/chdir-safer (Depends-on): Likewise.
7982         * modules/chown (Depends-on): Likewise.
7983         * modules/copy-file (Depends-on): Likewise.
7984         * modules/fchdir (Depends-on): Likewise.
7985         * modules/fdopendir (Depends-on): Likewise.
7986         * modules/fopen (Depends-on): Likewise.
7987         * modules/fts (Depends-on): Likewise.
7988         * modules/getcwd (Depends-on): Likewise.
7989         * modules/isapipe (Depends-on): Likewise.
7990         * modules/linkat (Depends-on): Likewise.
7991         * modules/lseek (Depends-on): Likewise.
7992         * modules/mkdir-p (Depends-on): Likewise.
7993         * modules/open (Depends-on): Likewise.
7994         * modules/openat (Depends-on): Likewise.
7995         * modules/read-file (Depends-on): Likewise.
7996         * modules/renameat (Depends-on): Likewise.
7997         * modules/utimens (Depends-on): Likewise.
7998
7999 2011-09-25  Bruno Haible  <bruno@clisp.org>
8000
8001         linkat: Fix compilation on MSVC 9.
8002         * lib/linkat.c: Don't include <stdint.h>.
8003
8004 2011-09-25  Bruno Haible  <bruno@clisp.org>
8005
8006         fclose: Support for MSVC 9.
8007         * lib/fclose.c: Include msvc-inval.h.
8008         (fclose_nothrow): New function.
8009         (rpl_fclose): Use it.
8010         * modules/fclose (Depends-on): Add msvc-inval.
8011         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8012
8013 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8014
8015         dup2: minor simplifications
8016         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8017         that it's a performance win.
8018         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8019         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8020
8021 2011-09-24  Jim Meyering  <meyering@redhat.com>
8022
8023         test-futimens: avoid a warning from gcc -Wshadow
8024         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8025         to avoid a shadowing warning.
8026
8027 2011-09-24  Bruno Haible  <bruno@clisp.org>
8028
8029         fdopen: Support for MSVC 9.
8030         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8031         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8032         * lib/fdopen.c: Include msvc-inval.h.
8033         (fdopen_nothrow): New function.
8034         (rpl_fdopen): Use it.
8035         * modules/fdopen (Depends-on): Add msvc-inval.
8036         * modules/fclose-tests (Depends-on): Add fdopen.
8037         * modules/fflush-tests (Depends-on): Likewise.
8038         * modules/fgetc-tests (Depends-on): Likewise.
8039         * modules/fputc-tests (Depends-on): Likewise.
8040         * modules/fread-tests (Depends-on): Likewise.
8041         * modules/freopen-tests (Depends-on): Likewise.
8042         * modules/fseeko-tests (Depends-on): Likewise.
8043         * modules/ftello-tests (Depends-on): Likewise.
8044         * modules/fwrite-tests  (Depends-on): Likewise.
8045         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8046
8047 2011-09-24  Bruno Haible  <bruno@clisp.org>
8048
8049         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8050         * modules/fgetc-tests (Depends-on): Add unistd.
8051         * modules/fputc-tests (Depends-on): Likewise.
8052         * modules/fread-tests (Depends-on): Likewise.
8053         * modules/fwrite-tests (Depends-on): Likewise.
8054
8055 2011-09-24  Bruno Haible  <bruno@clisp.org>
8056
8057         dup: Simplify autoconf test.
8058         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8059         on gl_MSVC_INVAL's result.
8060
8061 2011-09-24  Bruno Haible  <bruno@clisp.org>
8062
8063         Tests for function fwrite().
8064         * modules/fwrite-tests: New file.
8065         * tests/test-fwrite.c: New file.
8066         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8067
8068         Tests for function fread().
8069         * modules/fread-tests: New file.
8070         * tests/test-fread.c: New file.
8071         * modules/stdio-tests (Depends-on): Add fread-tests.
8072
8073         Activate fputc tests.
8074         * modules/stdio-tests (Depends-on): Add fputc-tests.
8075
8076         Enhance fgetc, fputc tests.
8077         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8078         * tests/test-fputc.c (main): Likewise.
8079
8080 2011-09-24  Bruno Haible  <bruno@clisp.org>
8081
8082         write: Support for MSVC 9.
8083         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8084         is not 1.
8085         * lib/write.c (write_nothrow): New function.
8086         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8087         not 1. Use write_nothrow.
8088         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8089         invalid parameter handler.
8090         (gl_PREREQ_WRITE): New macro.
8091         * modules/write (Depends-on): Add msvc-inval.
8092         (configure.ac): Invoke gl_PREREQ_WRITE.
8093         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8094
8095 2011-09-24  Bruno Haible  <bruno@clisp.org>
8096
8097         read: Fix last commit.
8098         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8099
8100 2011-09-24  Bruno Haible  <bruno@clisp.org>
8101
8102         dup2: Fix last commit.
8103         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8104         (rpl_dup2): Disable fcntl workaround on native Windows.
8105
8106         sigprocmask: Make code safer.
8107         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8108         section that changes macro definitions for this compilation unit.
8109
8110 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         dup2: clarify by coalescing Windows-specific material
8113         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8114         "msvc-nothrow.h"' to the Windows-specific section, so that the
8115         Emacs source need not contain these include files.
8116         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8117         Windows-specific fixes into this function rather than just the
8118         nothrow fix, as this shortens and clarifies the code.  Always
8119         define as a function, as that's a bit cleaner than having it be
8120         sometimes a function and sometimes a macro.
8121         (rpl_dup2): Move the Windows-specific stuff out of here and into
8122         ms_windows_dup2.  Don't protect the Haiku-related fix with
8123         "#if !defined __linux__", as the same code also works around
8124         a Linux kernel bug, and it doesn't add any system calls on any
8125         platform.  Add comment about FreeBSD 6.1.
8126
8127         sigprocmask: move #include directive
8128         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8129         Windows-specific section, so that the Emacs source need not
8130         contain msvc-inval.h.
8131
8132 2011-09-23  Bruno Haible  <bruno@clisp.org>
8133
8134         read: Support for MSVC 9.
8135         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8136         is not 1.
8137         * lib/read.c (read_nothrow): New function.
8138         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8139         read_nothrow.
8140         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8141         invalid parameter handler.
8142         (gl_PREREQ_READ): New macro.
8143         * modules/read (Depends-on): Add msvc-inval.
8144         (configure.ac): Invoke gl_PREREQ_READ.
8145         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8146
8147 2011-09-23  Bruno Haible  <bruno@clisp.org>
8148
8149         close: Support for MSVC 9.
8150         * lib/close.c: Include <errno.h>, msvc-inval.h.
8151         (close_nothrow): New function.
8152         (rpl_close): Use it.
8153         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8154         invalid parameter handler.
8155         * modules/close (Depends-on): Add msvc-inval.
8156         * modules/dup2-tests (Depends-on): Add close.
8157         * modules/dup3-tests (Depends-on): Likewise.
8158         * modules/fcntl-tests (Depends-on): Likewise.
8159         * modules/spawn-pipe-tests (Depends-on): Likewise.
8160         * modules/unistd-safer-tests (Depends-on): Likewise.
8161         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8162
8163 2011-09-23  Bruno Haible  <bruno@clisp.org>
8164
8165         New module 'dup'.
8166         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8167         Allow replacement.
8168         * lib/dup.c: New file.
8169         * lib/fchdir.c (rpl_dup): Remove function.
8170         * m4/dup.m4: New file.
8171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8172         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8173         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8174         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8175         * modules/dup: New file.
8176         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8177         'dup' module is in use.
8178         * modules/fdopendir (Depends-on): Add dup.
8179         * modules/fdutimensat-tests (Depends-on): Likewise.
8180         * modules/fts (Depends-on): Likewise.
8181         * modules/futimens-tests (Depends-on): Likewise.
8182         * modules/posix_spawnp-tests (Depends-on): Likewise.
8183         * modules/unistd-safer-tests (Depends-on): Likewise.
8184         * modules/utimens-tests (Depends-on): Likewise.
8185         * doc/posix-functions/dup.texi: Mention the new module and the problem
8186         on MSVC.
8187
8188 2011-09-23  Bruno Haible  <bruno@clisp.org>
8189
8190         getdtablesize: Support for MSVC 9.
8191         * lib/getdtablesize.c: Include msvc-inval.h.
8192         (_setmaxstdio_nothrow): New function.
8193         (_setmaxstdio): Redefine it.
8194         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8195         * modules/getdtablesize (Depends-on): Add msvc-inval.
8196         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8197
8198 2011-09-23  Bruno Haible  <bruno@clisp.org>
8199
8200         signal-h: Rename from signal.
8201         * modules/signal-h: Renamed from modules/signal.
8202         * modules/pthread_sigmask (Depends-on): Update.
8203         * modules/raise (Depends-on): Likewise.
8204         * modules/sigaction (Depends-on): Likewise.
8205         * modules/sigpipe (Depends-on): Likewise.
8206         * modules/sigprocmask (Depends-on): Likewise.
8207         * modules/sys_select (Depends-on): Likewise.
8208         * modules/signal-h-tests: Renamed from modules/signal-tests.
8209         (Files, Depends-on, Makefile.am): Update.
8210         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8211         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8212         (Files, Makefile.am): Update.
8213         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8214         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8215         * modules/signal: New placeholder file.
8216         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8217         * doc/posix-headers/signal.texi: Update.
8218         * NEWS: Mention the change.
8219
8220 2011-09-23  Bruno Haible  <bruno@clisp.org>
8221
8222         sigprocmask: Avoid crashes through signal() on MSVC 9.
8223         * lib/sigprocmask.c: Include msvc-inval.h.
8224         (signal_nothrow): New function.
8225         (signal): Redefine it.
8226         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8227         * modules/sigprocmask (Depends-on): Add msvc-inval.
8228         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8229
8230 2011-09-23  Bruno Haible  <bruno@clisp.org>
8231
8232         Tests for module 'raise'.
8233         * modules/raise-tests: New file.
8234         * tests/test-raise.c: New file.
8235
8236         raise: Support for MSVC.
8237         * lib/signal.in.h (raise): New declaration.
8238         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8239         for native Windows platforms.
8240         * m4/raise.m4: New file.
8241         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8242         HAVE_RAISE, REPLACE_RAISE.
8243         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8244         REPLACE_RAISE.
8245         * modules/raise (Status, Notice): Remove fields.
8246         (Files): Add m4/raise.m4.
8247         (Depends-on): Add signal, msvc-inval.
8248         (configure.ac): Use the common idioms.
8249         (Maintainer): Add me.
8250         * tests/test-signal-c++.cc: Check the signature of raise.
8251         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8252
8253 2011-09-23  Bruno Haible  <bruno@clisp.org>
8254
8255         pipe2: Fix compilation on pre-C99 compilers.
8256         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8257
8258 2011-09-23  Bruno Haible  <bruno@clisp.org>
8259
8260         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8261         * lib/msvc-nothrow.h: New file.
8262         * lib/msvc-nothrow.c: New file.
8263         * m4/msvc-nothrow.m4: New file.
8264         * modules/msvc-nothrow: New file.
8265         * lib/dup2.c: Include msvc-nothrow.h.
8266         (rpl_dup2): No need to protect _get_osfhandle call here.
8267         * lib/accept4.c: Include msvc-nothrow.h.
8268         * lib/error.c: Likewise.
8269         * lib/fcntl.c: Likewise.
8270         * lib/lseek.c: Likewise.
8271         * lib/nonblocking.c: Likewise.
8272         * lib/poll.c: Likewise.
8273         * lib/read.c: Likewise.
8274         * lib/select.c: Likewise.
8275         * lib/sockets.h: Likewise.
8276         * lib/sockets.c: Likewise.
8277         * lib/stdio-read.c: Likewise.
8278         * lib/stdio-write.c: Likewise.
8279         * lib/write.c: Likewise.
8280         * lib/w32sock.h: Likewise.
8281         * lib/w32spawn.h: Likewise.
8282         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8283         * lib/fsync.c: Likewise.
8284         * lib/isapipe.c: Likewise.
8285         * modules/dup2 (Depends-on): Add msvc-nothrow.
8286         * modules/accept4 (Depends-on): Likewise.
8287         * modules/error (Depends-on): Likewise.
8288         * modules/fcntl (Depends-on): Likewise.
8289         * modules/lseek (Depends-on): Likewise.
8290         * modules/nonblocking (Depends-on): Likewise.
8291         * modules/poll (Depends-on): Likewise.
8292         * modules/read (Depends-on): Likewise.
8293         * modules/select (Depends-on): Likewise.
8294         * modules/sockets (Depends-on): Likewise.
8295         * modules/sigpipe (Depends-on): Likewise.
8296         * modules/write (Depends-on): Likewise.
8297         * modules/accept (Depends-on): Likewise.
8298         * modules/bind (Depends-on): Likewise.
8299         * modules/connect (Depends-on): Likewise.
8300         * modules/gethostname (Depends-on): Likewise.
8301         * modules/getpeername (Depends-on): Likewise.
8302         * modules/getsockname (Depends-on): Likewise.
8303         * modules/getsockopt (Depends-on): Likewise.
8304         * modules/ioctl (Depends-on): Likewise.
8305         * modules/listen (Depends-on): Likewise.
8306         * modules/recv (Depends-on): Likewise.
8307         * modules/recvfrom (Depends-on): Likewise.
8308         * modules/send (Depends-on): Likewise.
8309         * modules/sendto (Depends-on): Likewise.
8310         * modules/setsockopt (Depends-on): Likewise.
8311         * modules/shutdown (Depends-on): Likewise.
8312         * modules/socket (Depends-on): Likewise.
8313         * modules/execute (Depends-on): Likewise.
8314         * modules/spawn-pipe (Depends-on): Likewise.
8315         * modules/flock (Depends-on): Likewise.
8316         * modules/fsync (Depends-on): Likewise.
8317         * modules/isapipe (Depends-on): Likewise.
8318         * tests/test-cloexec.c: Include msvc-nothrow.h.
8319         * tests/test-dup-safer.c: Likewise.
8320         * tests/test-dup2.c: Likewise.
8321         * tests/test-dup3.c: Likewise.
8322         * tests/test-fcntl.c: Likewise.
8323         * tests/test-pipe.c: Likewise.
8324         * tests/test-pipe2.c: Likewise.
8325         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8326         * modules/unistd-safer-tests (Depends-on): Likewise.
8327         * modules/dup2-tests (Depends-on): Likewise.
8328         * modules/dup3-tests (Depends-on): Likewise.
8329         * modules/fcntl-tests (Depends-on): Likewise.
8330         * modules/pipe-posix-tests (Depends-on): Likewise.
8331         * modules/pipe2-tests (Depends-on): Likewise.
8332
8333 2011-09-23  Bruno Haible  <bruno@clisp.org>
8334
8335         dup2: Make code more maintainable.
8336         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8337         (rpl_dup2): Use it.
8338         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8339         * modules/dup2 (configure.ac): Invoke it.
8340         Reported by Paul Eggert.
8341
8342 2011-09-23  Bruno Haible  <bruno@clisp.org>
8343
8344         msvc-inval: Fix compilation error.
8345         * lib/msvc-inval.h: Include <excpt.h>.
8346
8347 2011-09-23  Bruno Haible  <bruno@clisp.org>
8348
8349         mkdir: Tweak for MSVC 9.
8350         * lib/sys_stat.in.h: Update comments.
8351         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8352
8353         Tests for module 'chdir'.
8354         * modules/chdir-tests: New file.
8355         * tests/test-chdir.c: New file.
8356
8357         New module 'chdir'.
8358         * modules/chdir: New file.
8359         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8360         (chdir): New declaration.
8361         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8362         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8363         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8364         * tests/test-unistd-c++.cc: Check signature of chdir.
8365         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8366         * modules/chdir-long (Depends-on): Add chdir.
8367         * modules/fchdir (Depends-on): Likewise.
8368         * modules/rename (Depends-on): Likewise.
8369         * modules/savewd (Depends-on): Likewise.
8370
8371         rmdir: Support for mingw, MSVC 9.
8372         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8373         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8374
8375         getcwd: Tweak for MSVC 9.
8376         * lib/unistd.in.h: Update comments.
8377         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8378
8379 2011-09-22  Bruno Haible  <bruno@clisp.org>
8380
8381         strerror_r-posix: Avoid a link error on MSVC.
8382         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8383         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8384
8385 2011-09-22  Bruno Haible  <bruno@clisp.org>
8386
8387         select: Avoid link errors on MSVC.
8388         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8389         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8390         * modules/pselect (Link): Likewise.
8391         * NEWS: Mention the change.
8392         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8393         test-select-stdin against $(LIB_SELECT).
8394         * modules/pselect-tests (Makefile.am): Link test-pselect against
8395         $(LIB_SELECT).
8396
8397 2011-09-22  Bruno Haible  <bruno@clisp.org>
8398
8399         select: Avoid compilation error on MSVC.
8400         * lib/select.c: Don't include <stdbool.h>.
8401
8402 2011-09-21  Bruno Haible  <bruno@clisp.org>
8403
8404         Consolidate all uses of PATH_MAX in *.m4 files.
8405         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8406         macros.
8407         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8408         and gl_PATHMAX_SNIPPET.
8409         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8410         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8411         * modules/chdir-long (Files): Add m4/pathmax.m4.
8412         * modules/getcwd (Files): Likewise.
8413
8414 2011-09-21  Bruno Haible  <bruno@clisp.org>
8415
8416         ftruncate: Un-deprecate, concentrate on Win32 support.
8417         * modules/ftruncate (Status, Notice): Remove sections.
8418         (Depends-on): Add largefile.
8419         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8420         non-mingw platforms.
8421         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8422         include <io.h>.
8423         * modules/perror-tests (Depends-on): Add ftruncate.
8424         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8425         'ftruncate' module.
8426
8427 2011-09-21  Bruno Haible  <bruno@clisp.org>
8428
8429         Add dependencies to new dirent related modules.
8430         * modules/opendir (Depends-on): Add closedir.
8431         * modules/getcwd (Depends-on): Add opendir, closedir.
8432         * modules/dirent-safer-tests (Depends-on): Likewise.
8433         * modules/fdopendir-tests (Depends-on): Likewise.
8434         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8435         * modules/renameat-tests (Depends-on): Likewise.
8436
8437 2011-09-21  Bruno Haible  <bruno@clisp.org>
8438
8439         opendir: Avoid compilation error on mingw.
8440         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8441         * modules/opendir (Depends-on): Add unistd.
8442
8443 2011-09-21  Bruno Haible  <bruno@clisp.org>
8444
8445         ftruncate tests: Avoid a test failure on mingw.
8446         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8447
8448 2011-09-21  Bruno Haible  <bruno@clisp.org>
8449
8450         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8451         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8452         native Windows.
8453
8454 2011-09-21  Bruno Haible  <bruno@clisp.org>
8455
8456         New module 'fdopen'.
8457         * lib/stdio.in.h (fdopen): New declaration.
8458         * lib/fdopen.c: New file.
8459         * m4/fdopen.m4: New file.
8460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8461         REPLACE_FDOPEN.
8462         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8463         REPLACE_FDOPEN.
8464         * modules/fdopen: New file.
8465         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8466         * tests/test-stdio-c++.cc: Check signature of fdopen.
8467         * doc/posix-functions/fdopen.texi: Mention the new module.
8468
8469 2011-09-21  Bruno Haible  <bruno@clisp.org>
8470
8471         unlockpt tests: Avoid test failure on NetBSD 5.1.
8472         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8473         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8474
8475 2011-09-21  Bruno Haible  <bruno@clisp.org>
8476
8477         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8478         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8479         * tests/test-getlogin_r.c (main): Likewise.
8480
8481 2011-09-20  Bruno Haible  <bruno@clisp.org>
8482
8483         time tests: Don't require pid_t.
8484         * doc/posix-headers/time.texi: Revert last change.
8485         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8486         * tests/test-time.c: Comment out the check for pid_t.
8487
8488 2011-09-20  Bruno Haible  <bruno@clisp.org>
8489
8490         fsync tests: Avoid a test failure on mingw.
8491         * tests/test-fsync.c (main): Allow a failure with EIO.
8492
8493 2011-09-20  Bruno Haible  <bruno@clisp.org>
8494
8495         euidaccess: Update comments.
8496         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8497
8498 2011-09-20  Bruno Haible  <bruno@clisp.org>
8499
8500         Ensure EBADF returns for socket functions on mingw.
8501         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8502         descriptor is invalid.
8503         * lib/bind.c (rpl_bind): Likewise.
8504         * lib/connect.c (rpl_connect): Likewise.
8505         * lib/getpeername.c (rpl_getpeername): Likewise.
8506         * lib/getsockname.c (rpl_getsockname): Likewise.
8507         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8508         * lib/listen.c (rpl_listen): Likewise.
8509         * lib/recv.c (rpl_recv): Likewise.
8510         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8511         * lib/send.c (rpl_send): Likewise.
8512         * lib/sendto.c (rpl_sendto): Likewise.
8513         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8514         * lib/shutdown.c (rpl_shutdown): Likewise.
8515
8516 2011-09-20  Bruno Haible  <bruno@clisp.org>
8517
8518         select tests: EBADF tests.
8519         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8520         test_bad_fd): New functions.
8521         (test_function): Invoke also test_bad_fd.
8522
8523 2011-09-20  Bruno Haible  <bruno@clisp.org>
8524
8525         Tests for module 'posix_spawn_file_actions_addopen.
8526         * modules/posix_spawn_file_actions_addopen-tests: New file.
8527         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8528
8529         Tests for module 'posix_spawn_file_actions_adddup2'.
8530         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8531         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8532
8533         Tests for module 'posix_spawn_file_actions_addclose'.
8534         * modules/posix_spawn_file_actions_addclose-tests: New file.
8535         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8536
8537 2011-09-20  Bruno Haible  <bruno@clisp.org>
8538
8539         Tests for module 'unlockpt'.
8540         * modules/unlockpt-tests: New file.
8541         * tests/test-unlockpt.c: New file.
8542         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8543
8544         Tests for module 'grantpt'.
8545         * modules/grantpt-tests: New file.
8546         * tests/test-grantpt.c: New file.
8547         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8548
8549 2011-09-20  Bruno Haible  <bruno@clisp.org>
8550
8551         freopen tests: EBADF tests.
8552         * tests/test-freopen.c: Include errno.h, unistd.h.
8553         (main): Add tests for EBADF, commented out for the moment.
8554
8555         fclose tests: EBADF tests.
8556         * tests/test-fclose.c (main): Add tests for EBADF.
8557
8558         fflush tests: EBADF tests.
8559         * tests/test-fflush.c: Include errno.h, macros.h.
8560         (main): Add tests for EBADF.
8561
8562         ftello tests: EBADF tests.
8563         * tests/test-ftello4.sh: New file.
8564         * tests/test-ftello4.c: New file.
8565         * modules/ftello-tests (Files): Add them.
8566         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8567
8568         fseeko tests: EBADF tests.
8569         * tests/test-fseeko4.sh: New file.
8570         * tests/test-fseeko4.c: New file.
8571         * modules/fseeko-tests (Files): Add them.
8572         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8573
8574         Tests for function fputc().
8575         * modules/fputc-tests: New file.
8576         * tests/test-fputc.c: New file.
8577         * modules/stdio-tests (Depends-on): Add fputc-tests.
8578
8579         Tests for function fgetc().
8580         * modules/fgetc-tests: New file.
8581         * tests/test-fgetc.c: New file.
8582         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8583
8584         Tests for function fdopen().
8585         * modules/fdopen-tests: New file.
8586         * tests/test-fdopen.c: New file.
8587         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8588
8589         Tests for module 'vdprintf'.
8590         * modules/vdprintf-tests: New file.
8591         * tests/test-vdprintf.c: New file.
8592
8593         Tests for module 'dprintf'.
8594         * modules/dprintf-tests: New file.
8595         * tests/test-dprintf.c: New file.
8596
8597 2011-09-20  Bruno Haible  <bruno@clisp.org>
8598
8599         Tests for module 'ioctl'.
8600         * modules/ioctl-tests: New file.
8601         * tests/test-ioctl.c: New file.
8602
8603 2011-09-20  Bruno Haible  <bruno@clisp.org>
8604
8605         fcntl tests: EBADF tests.
8606         * tests/test-fcntl.c (main): Add more tests for EBADF.
8607
8608 2011-09-20  Bruno Haible  <bruno@clisp.org>
8609
8610         utimensat tests: EBADF tests.
8611         * tests/test-utimensat.c (main): Add tests for EBADF.
8612
8613         renameat tests: EBADF tests.
8614         * tests/test-renameat.c (main): Add tests for EBADF.
8615
8616         mkfifoat tests: EBADF tests.
8617         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8618
8619         readlinkat tests: EBADF tests.
8620         * tests/test-readlinkat.c (main): Add tests for EBADF.
8621
8622         symlinkat tests: EBADF tests.
8623         * tests/test-symlinkat.c (main): Add tests for EBADF.
8624
8625         linkat tests: EBADF tests.
8626         * tests/test-linkat.c (main): Add tests for EBADF.
8627
8628         Tests for module 'faccessat'.
8629         * modules/faccessat-tests: New file.
8630         * tests/test-faccessat.c: New file.
8631
8632         fdopendir tests: EBADF tests.
8633         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8634
8635         openat tests: EBADF tests.
8636         * tests/test-fchownat.c (main): Add tests for EBADF.
8637         * tests/test-fstatat.c (main): Likewise.
8638         * tests/test-mkdirat.c (main): Likewise.
8639         * tests/test-openat.c (main): Likewise.
8640         * tests/test-unlinkat.c (main): Likewise.
8641         * tests/test-fchmodat.c: New file.
8642         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8643         (Makefile.am): Also run 'test-fchmodat'.
8644
8645 2011-09-20  Bruno Haible  <bruno@clisp.org>
8646
8647         utimens, futimens, fdutimensat tests: EBADF tests.
8648         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8649
8650         Tests for function fstat().
8651         * modules/fstat-tests: New file.
8652         * tests/test-fstat.c: New file.
8653         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8654
8655 2011-09-20  Bruno Haible  <bruno@clisp.org>
8656
8657         test-ttyname_r tests: EBADF tests.
8658         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8659
8660         Tests for module 'isatty'.
8661         * modules/isatty-tests: New file.
8662         * tests/test-isatty.c: New file.
8663
8664         Tests for module 'write'.
8665         * modules/write-tests: New file.
8666         * tests/test-write.c: New file.
8667
8668         Tests for module 'read'.
8669         * modules/read-tests: New file.
8670         * tests/test-read.c: New file.
8671
8672         pwrite tests: EBADF tests.
8673         * tests/test-pwrite.c (main): Add tests for EBADF.
8674
8675         pread tests: EBADF tests.
8676         * tests/test-pread.c (main): Add tests for EBADF.
8677
8678         lseek tests: EBADF tests.
8679         * tests/test-lseek.c (main): Add more tests for EBADF.
8680
8681         Tests for module 'ftruncate'.
8682         * modules/ftruncate-tests: New file.
8683         * tests/test-ftruncate.sh: New file.
8684         * tests/test-ftruncate.c: New file.
8685
8686         fsync tests: EBADF tests.
8687         * tests/test-fsync.c (main): Add more tests for EBADF.
8688
8689         fdatasync tests: EBADF tests.
8690         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8691
8692         Tests for module 'fchown'.
8693         * modules/fchown-tests: New file.
8694         * tests/test-fchown.c: New file.
8695
8696         Tests for module 'fchmod'.
8697         * modules/fchmod-tests: New file.
8698         * tests/test-fchmod.c: New file.
8699
8700         fchdir tests: EBADF tests.
8701         * tests/test-fchdir.c (main): Add more tests for EBADF.
8702
8703         dup2 tests: EBADF tests.
8704         * tests/test-dup2.c (main): Add more tests for EBADF.
8705
8706         Tests for module 'dup'.
8707         * modules/dup-tests: New file.
8708         * tests/test-dup.c: New file.
8709
8710         Tests for module 'close'.
8711         * modules/close-tests: New file.
8712         * tests/test-close.c: New file.
8713
8714 2011-09-20  Bruno Haible  <bruno@clisp.org>
8715
8716         Tests for module 'shutdown'.
8717         * modules/shutdown-tests: New file.
8718         * tests/test-shutdown.c: New file.
8719
8720         Tests for module 'setsockopt'.
8721         * modules/setsockopt-tests: New file.
8722         * tests/test-setsockopt.c: New file.
8723
8724         Tests for module 'sendto'.
8725         * modules/sendto-tests: New file.
8726         * tests/test-sendto.c: New file.
8727
8728         Tests for module 'send'.
8729         * modules/send-tests: New file.
8730         * tests/test-send.c: New file.
8731
8732         Tests for module 'recvfrom'.
8733         * modules/recvfrom-tests: New file.
8734         * tests/test-recvfrom.c: New file.
8735
8736         Tests for module 'recv'.
8737         * modules/recv-tests: New file.
8738         * tests/test-recv.c: New file.
8739
8740         Tests for module 'listen'.
8741         * modules/listen-tests: New file.
8742         * tests/test-listen.c: New file.
8743
8744         Tests for module 'getsockopt'.
8745         * modules/getsockopt-tests: New file.
8746         * tests/test-getsockopt.c: New file.
8747
8748         Tests for module 'getsockname'.
8749         * modules/getsockname-tests: New file.
8750         * tests/test-getsockname.c: New file.
8751
8752         Tests for module 'getpeername'.
8753         * modules/getpeername-tests: New file.
8754         * tests/test-getpeername.c: New file.
8755
8756         Tests for module 'connect'.
8757         * modules/connect-tests: New file.
8758         * tests/test-connect.c: New file.
8759
8760         Tests for module 'bind'.
8761         * modules/bind-tests: New file.
8762         * tests/test-bind.c: New file.
8763
8764         accept4 tests: Fix for native Windows.
8765         * tests/test-accept4.c: Include sockets.h.
8766         (main): Invoke gl_sockets_startup.
8767         * modules/accept4-tests (Depends-on): Add sockets.
8768
8769         accept tests: Fix for native Windows.
8770         * tests/test-accept.c: Include sockets.h.
8771         (main): Invoke gl_sockets_startup.
8772         * modules/accept-tests (Depends-on): Add sockets.
8773
8774 2011-09-19  Bruno Haible  <bruno@clisp.org>
8775
8776         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8777         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8778         do...while(0).
8779         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8780         Suggested by Paul Eggert.
8781
8782 2011-09-19  Bruno Haible  <bruno@clisp.org>
8783
8784         sched: Ensure pid_t is defined.
8785         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8786         not define pid_t.
8787         * lib/sched.in.h: Include <sys/types.h>.
8788         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8790
8791 2011-09-19  Bruno Haible  <bruno@clisp.org>
8792
8793         msvc-inval: Ensure the entire expansion is a single statement.
8794         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8795         of braces.
8796
8797 2011-09-19  Jim Meyering  <meyering@redhat.com>
8798
8799         tests: use printf, not echo in init.sh's warn_ function
8800         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8801         misbehave when given strings containing a backslash or starting
8802         with e.g., -n.  James Youngman suggested setting IFS.
8803
8804 2011-09-19  Eric Blake  <eblake@redhat.com>
8805
8806         futimens: enhance test
8807         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8808         closed non-negative fd.
8809
8810         date: accept 'hence' as opposite of 'ago'
8811         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8812         * tests/test-parse-datetime.c (main): Enhance test.
8813         Suggested by Jesse Wilson.
8814
8815 2011-09-19  Jim Meyering  <meyering@redhat.com>
8816
8817         getcwd: don't fail in a deep directory on a system without openat
8818         Before this change, getcwd would fail when called from a directory
8819         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8820         the non-openat implementation used "..", "../..", "../../..", etc.
8821         to access ancestor directories.  With too many, that string would
8822         be longer than PATH_MAX.
8823         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8824         using gnulib's openat replacement.
8825         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8826         we're using the replacement function.
8827
8828 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8829
8830         maint.mk: avoid warnings from perl about missing files
8831         * top/maint.mk (def_sym_regex): Ignore files listed in
8832         $(gl_other_headers_) that do not exist, say because a project
8833         does not use a corresponding module.
8834
8835 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8836
8837         stat: use pathmax.h only if needed
8838         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8839         This is better for Emacs, which does not have a mingw port and
8840         therefore can avoid the pathmax module.
8841
8842         utimens: remove dependency on dup2
8843         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8844         to work around the Linux kernel bug.
8845         * modules/utimens (Depends-on): Remove dup2.
8846
8847 2011-09-18  Bruno Haible  <bruno@clisp.org>
8848
8849         inet_ntop, inet_pton: Look for it also in libresolv.
8850         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8851         libnsl, search for it in libresolv.
8852         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8853         Needed on Solaris 7.
8854
8855 2011-09-18  Bruno Haible  <bruno@clisp.org>
8856
8857         accept, accept4 tests: Avoid link error on Solaris.
8858         * modules/accept-tests (Makefile.am): Link test-accept against
8859         $(LIBSOCKET).
8860         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8861         $(LIBSOCKET).
8862
8863         accept4: Avoid link error on Solaris.
8864         * modules/accept4 (Link): New section.
8865
8866         socket functions: Avoid link errors on Solaris.
8867         * modules/accept (Depends-on): Add socketlib.
8868         (Link): New section.
8869         * modules/bind (Depends-on): Add socketlib.
8870         (Link): New section.
8871         * modules/connect (Depends-on): Add socketlib.
8872         (Link): New section.
8873         * modules/getpeername (Depends-on): Add socketlib.
8874         (Link): New section.
8875         * modules/getsockname (Depends-on): Add socketlib.
8876         (Link): New section.
8877         * modules/getsockopt (Depends-on): Add socketlib.
8878         (Link): New section.
8879         * modules/listen (Depends-on): Add socketlib.
8880         (Link): New section.
8881         * modules/recv (Depends-on): Add socketlib.
8882         (Link): New section.
8883         * modules/recvfrom (Depends-on): Add socketlib.
8884         (Link): New section.
8885         * modules/send (Depends-on): Add socketlib.
8886         (Link): New section.
8887         * modules/sendto (Depends-on): Add socketlib.
8888         (Link): New section.
8889         * modules/setsockopt (Depends-on): Add socketlib.
8890         (Link): New section.
8891         * modules/shutdown (Depends-on): Add socketlib.
8892         (Link): New section.
8893         * modules/socket (Depends-on): Add socketlib.
8894         (Link): New section.
8895
8896 2011-09-18  Bruno Haible  <bruno@clisp.org>
8897
8898         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8899         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8900         than 5 seconds.
8901         * modules/ptsname-tests (configure.ac): Test for alarm.
8902
8903 2011-09-18  Bruno Haible  <bruno@clisp.org>
8904
8905         posix_spawn_file_actions_add*: Fix module dependencies.
8906         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8907         posix_spawn_file_actions_init.
8908         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8909         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8910
8911 2011-09-18  Bruno Haible  <bruno@clisp.org>
8912
8913         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8914         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8915         * tests/test-renameat.c (main): Likewise.
8916
8917 2011-09-18  Bruno Haible  <bruno@clisp.org>
8918
8919         Tests for module 'accept4'.
8920         * modules/accept4-tests: New file.
8921         * tests/test-accept4.c: New file.
8922
8923 2011-09-18  Bruno Haible  <bruno@clisp.org>
8924
8925         Tests for module 'accept'.
8926         * modules/accept-tests: New file.
8927         * tests/test-accept.c: New file.
8928
8929 2011-09-18  Bruno Haible  <bruno@clisp.org>
8930
8931         dup2: Support for MSVC.
8932         * lib/dup2.c: Include msvc-inval.h.
8933         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8934         _get_osfhandle calls.
8935         * modules/dup2 (Depends-on): Add msvc-inval.
8936         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8937
8938         New module 'msvc-inval'.
8939         * lib/msvc-inval.h: New file.
8940         * lib/msvc-inval.c: New file.
8941         * m4/msvc-inval.m4: New file.
8942         * modules/msvc-inval: New file.
8943
8944 2011-09-17  Bruno Haible  <bruno@clisp.org>
8945
8946         Tests for module 'pclose'.
8947         * modules/pclose-tests: New file.
8948
8949         New module 'pclose'.
8950         * lib/stdio.in.h (pclose): New declaration.
8951         * lib/pclose.c: New file.
8952         * m4/pclose.m4: New file.
8953         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8954         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8955         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8956         * modules/pclose: New file.
8957         * modules/popen-tests (Depends-on): Add pclose.
8958         * modules/popen-safer-tests (Depends-on): Likewise.
8959         * doc/posix-functions/pclose.texi: Mention the new module.
8960
8961 2011-09-17  Bruno Haible  <bruno@clisp.org>
8962
8963         popen: Support for MSVC.
8964         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8965         * lib/popen.c (popen): Provide alternate definition for native Windows.
8966         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8968         * modules/popen (Depends-on, configure.ac): Update condition.
8969         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8970         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8971         fixed.
8972
8973 2011-09-17  Bruno Haible  <bruno@clisp.org>
8974
8975         isnanl, isnand, isnanf: Work around MSVC bug.
8976         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8977
8978 2011-09-17  Bruno Haible  <bruno@clisp.org>
8979
8980         sys_socket tests: Fix recent mistake.
8981         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8982
8983 2011-09-17  Bruno Haible  <bruno@clisp.org>
8984
8985         putenv: Support for MSVC.
8986         * modules/putenv (Depends-on): Add environ.
8987         * lib/putenv.c (environ): Disable declaration.
8988         * lib/unistd.in.h: Update comment.
8989
8990 2011-09-17  Bruno Haible  <bruno@clisp.org>
8991
8992         math: Avoid macro redefinition warnings on MSVC.
8993         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8994         Undefine before redefining.
8995
8996 2011-09-17  Bruno Haible  <bruno@clisp.org>
8997
8998         doc: Mention functions which are declared as macros.
8999         * doc/posix-functions/*[fl].texi: Mention that some functions are
9000         defined as macros with arguments only.
9001
9002 2011-09-17  Bruno Haible  <bruno@clisp.org>
9003
9004         Add dependencies to new dirent related modules.
9005         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9006         * modules/fts (Depends-on): Likewise.
9007         * modules/glob (Depends-on): Likewise.
9008         * modules/savedir (Depends-on): Likewise.
9009         * modules/scandir (Depends-on): Likewise.
9010         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9011         * modules/fdopendir (Depends-on): Add opendir.
9012
9013 2011-09-17  Bruno Haible  <bruno@clisp.org>
9014
9015         inet_pton: Support for MSVC on Windows Vista or newer.
9016         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9017         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9018         HAVE_DECL_INET_PTON is defined.
9019         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9020         On platforms with <winsock2.h>, test whether inet_pton is declared in
9021         <ws2tcpip.h>. If so, arrange to replace it.
9022         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9023         REPLACE_INET_PTON.
9024         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9025         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9026         (Depends-on, configure.ac): Update condition.
9027         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9028
9029 2011-09-17  Bruno Haible  <bruno@clisp.org>
9030
9031         inet_ntop: Support for MSVC on Windows Vista or newer.
9032         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9033         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9034         HAVE_DECL_INET_NTOP is defined.
9035         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9036         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9037         <ws2tcpip.h>. If so, arrange to replace it.
9038         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9039         REPLACE_INET_NTOP.
9040         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9041         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9042         (Depends-on, configure.ac): Update condition.
9043         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9044
9045 2011-09-16  Eric Blake  <eblake@redhat.com>
9046
9047         test-fsync: yet another enhancement
9048         * tests/test-fsync.c (main): Also test behavior on read-only text
9049         file.
9050
9051 2011-09-16  Bruno Haible  <bruno@clisp.org>
9052
9053         Enhance fsync, fdatasync tests.
9054         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9055         * tests/test-fdatasync.c (main): Likewise.
9056
9057 2011-09-16  Bruno Haible  <bruno@clisp.org>
9058
9059         Support for MSVC compiler: Ensure mode_t gets defined.
9060         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9061         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9063         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9064         * tests/test-fcntl-h.c: Check that mode_t is defined.
9065         * tests/test-sys_stat.c: Likewise.
9066         * tests/test-sys_types.c: Likewise.
9067         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9068         * doc/posix-headers/sys_stat.texi: Likewise.
9069         * doc/posix-headers/sys_types.texi: Likewise.
9070
9071 2011-09-16  Bruno Haible  <bruno@clisp.org>
9072
9073         sys_stat: Support for MSVC.
9074         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9075         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9076         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9077         MSVC.
9078
9079 2011-09-16  Bruno Haible  <bruno@clisp.org>
9080
9081         Support for MSVC compiler: Ensure off_t gets defined.
9082         * lib/unistd.in.h: Include <sys/types.h>.
9083         * tests/test-fcntl-h.c: Check that off_t is defined.
9084         * tests/test-sys_stat.c: Likewise.
9085         * tests/test-sys_types.c: Likewise.
9086
9087 2011-09-16  Eric Blake  <eblake@redhat.com>
9088
9089         fdatasync: port to Solaris
9090         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9091         * modules/fdatasync (Link): Document it.
9092         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9093
9094         fdatasync: port to MacOS X 10.7
9095         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9096         declared.
9097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9098         * modules/unistd (Makefile.am): Substitute it.
9099         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9100         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9101
9102         fdatasync: minor improvements
9103         * modules/fdatasync (Depends-on): Add condition for fsync.
9104         * lib/fdatasync.c (fdatasync): Add comment.
9105         * tests/test-unistd-c++.cc: Test fdatasync.
9106
9107         unistd: update refs to newer POSIX
9108         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9109         Suggested by Bruno Haible.
9110
9111         fdatasync: new module
9112         * modules/fsync (Description): Document difference to fdatasync.
9113         * modules/fdatasync: New module.
9114         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9115         * lib/fdatasync.c (fdatasync): Likewise.
9116         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9117         defaults.
9118         * modules/unistd (Makefile.am): Set witnesses.
9119         * lib/unistd.in.h (fdatasync): Declare.
9120         * MODULES.html.sh: Document it.
9121         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9122         * modules/fdatasync-tests: New test.
9123         * tests/test-fdatasync.c: Likewise.
9124
9125 2011-09-16  Eric Blake  <eblake@redhat.com>
9126
9127         test-fsync: enhance tests
9128         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9129         * tests/test-fsync.c (main): Enhance test.
9130
9131 2011-09-15  Bruno Haible  <bruno@clisp.org>
9132
9133         Support for MSVC compiler: Ensure ssize_t gets defined.
9134         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9135         * doc/posix-headers/stdio.texi: Likewise.
9136         * modules/stdio (Depends-on): Add ssize_t.
9137         * modules/sys_socket (Depends-on): Likewise.
9138         * modules/sys_types (Depends-on): Likewise.
9139         * modules/sys_uio (Depends-on): Likewise.
9140         * modules/unistd (Depends-on): Likewise.
9141         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9142         * tests/test-sys_types.c: Check that ssize_t is defined.
9143
9144 2011-09-14  Bruno Haible  <bruno@clisp.org>
9145
9146         Avoid using #, the m4 comment starter character, near brackets.
9147         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9148         delimiter character in sed expressions.
9149         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9150         Suggested by Eric Blake.
9151
9152         Properly quote AC_CHECK_DECLS' 4th argument.
9153         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9154         argument.
9155         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9156         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9157         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9158         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9159         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9160         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9163         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9164         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9165         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9166         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9167         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9168         * m4/isinf.m4 (gl_ISINF): Likewise.
9169         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9170         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9171         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9172         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9174         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9175         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9176         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9177         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9178         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9179         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9180         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9182         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9184         Reported by Eric Blake.
9185
9186         Properly quote AC_CHECK_DECL's 4th argument.
9187         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9188         argument.
9189         * m4/argp.m4 (gl_ARGP): Likewise.
9190         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9191         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9192         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9193         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9194         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9195         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9197         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9198         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9199         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9200         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9201         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9202         Reported by Eric Blake.
9203
9204 2011-09-14  Eric Blake  <eblake@redhat.com>
9205
9206         opendir: avoid compile warning
9207         * lib/opendir.c (includes): Always include errno.h.
9208         Reported by Tatsuro MATSUOKA.
9209
9210 2011-09-14  Jim Meyering  <meyering@redhat.com>
9211
9212         maint.mk: sc_tight_scope: propagate failure from sub-make
9213         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9214         Reported by Martin von Gagern.
9215
9216 2011-09-13  Bruno Haible  <bruno@clisp.org>
9217
9218         tempname: Support for MSVC.
9219         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9220         MSVC.
9221         * modules/tempname (Depends-on): Add fcntl-h.
9222
9223 2011-09-13  Bruno Haible  <bruno@clisp.org>
9224
9225         sys_time: Support for MSVC.
9226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9227         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9228         include <winsock2.h>.
9229         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9230         function declarations that collide with POSIX.
9231         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9232         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9233
9234 2011-09-13  Bruno Haible  <bruno@clisp.org>
9235
9236         stat: Support for MSVC.
9237         * lib/stat.c: Include pathmax.h.
9238         * modules/stat (Depends-on): Add pathmax.
9239
9240         pathmax: Support for native Windows.
9241         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9242
9243 2011-09-12  Bruno Haible  <bruno@clisp.org>
9244
9245         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9246         * lib/dirent.in.h (struct dirent): New type.
9247         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9248         DT_WHT): New macros.
9249         (DIR): New type.
9250         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9251         (readdir, rewinddir): New declarations.
9252         * lib/dirent-private.h: New file.
9253         * lib/opendir.c: New file.
9254         * lib/readdir.c: New file.
9255         * lib/rewinddir.c: New file.
9256         * lib/closedir.c: New file.
9257         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9258         * m4/opendir.m4: New file.
9259         * m4/readdir.m4: New file.
9260         * m4/rewinddir.m4: New file.
9261         * m4/closedir.m4: New file.
9262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9263         REPLACE_CLOSEDIR here.
9264         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9265         readdir, rewinddir are declared.
9266         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9267         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9268         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9269         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9270         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9271         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9272         * modules/opendir: New file.
9273         * modules/readdir: New file.
9274         * modules/rewinddir: New file.
9275         * modules/closedir: New file.
9276         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9277         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9278         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9279         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9280         * NEWS: Mention the 'fchdir' change.
9281
9282 2011-09-11  Bruno Haible  <bruno@clisp.org>
9283
9284         asm-underscore.m4: Support for MSVC.
9285         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9286         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9287
9288 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9289
9290         Doc about crypt functions.
9291         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9292         needing for _GNU_SOURCE to get crypt.
9293         * doc/posix-functions/encrypt.texi: Likewise.
9294         * doc/posix-functions/setkey.texi: Likewise.
9295
9296 2011-09-11  Bruno Haible  <bruno@clisp.org>
9297
9298         doc: Update regarding MSVC 9.
9299         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9300         tested".
9301         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9302         * doc/posix-headers/*.texi: Likewise.
9303         * doc/pastposix-functions/*.texi: Likewise.
9304         * doc/glibc-functions/*.texi: Likewise.
9305         * doc/glibc-headers/*.texi: Likewise.
9306
9307 2011-09-11  Bruno Haible  <bruno@clisp.org>
9308
9309         unistd et al.: Don't assume <unistd.h> exists.
9310         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9311         does not exist.
9312         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9313         exist. But include <stdlib.h>.
9314         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9315         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9316         symlink() does not exist.
9317         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9318         include <io.h> instead.
9319         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9320         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9321         include <direct.h> instead.
9322         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9323         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9324         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9325         <io.h> instead.
9326         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9327         correctly if the system does not have hard links.
9328         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9329         <direct.h> instead.
9330         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9331         it when looking for function declarations.
9332         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9333         <direct.h> and <io.h> instead.
9334         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9335
9336 2011-09-11  Bruno Haible  <bruno@clisp.org>
9337
9338         strcase: Support for MSVC.
9339         * modules/strcase (Status, Notice): Remove obsoletion mark.
9340         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9341         * doc/posix-functions/strncasecmp.texi: Likewise.
9342
9343         strings: Don't assume <strings.h> exists.
9344         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9345         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9346         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9347         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9348
9349 2011-09-11  Bruno Haible  <bruno@clisp.org>
9350
9351         dirent: Don't assume <dirent.h> exists.
9352         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9353         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9354         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9355         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9356
9357 2011-09-11  Bruno Haible  <bruno@clisp.org>
9358
9359         Fix wint_t on MSVC.
9360         * lib/wchar.in.h (wint_t): On MSVC, override it.
9361         * lib/wctype.in.h (wint_t): Likewise.
9362         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9363         MSVC.
9364         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9365         * doc/posix-headers/wctype.texi: Likewise.
9366
9367 2011-09-11  Bruno Haible  <bruno@clisp.org>
9368
9369         sys_types: Fix typo.
9370         * lib/sys_types.in.h: Fix typo in comment.
9371         Reported by Paul Eggert.
9372
9373         Support for MSVC compiler: Ensure size_t gets defined.
9374         * modules/strings (Depends-on): Add 'sys_types'.
9375         * modules/sys_uio (Depends-on): Likewise.
9376         * lib/sys_uio.in.h: Update comment.
9377
9378         C++ tests for module 'sys_types'.
9379         * modules/sys_types-c++-tests: New file.
9380         * tests/test-sys_types-c++.cc: New file.
9381
9382         Tests for module 'sys_types'.
9383         * modules/sys_types-tests: New file.
9384         * tests/test-sys_types.c: New file.
9385
9386         New module 'sys_types'.
9387         * lib/sys_types.in.h: New file.
9388         * m4/sys_types_h.m4: New file.
9389         * modules/sys_types: New file.
9390         * doc/posix-headers/sys_types.texi: Mention the new module and the
9391         size_t problem on MSVC 9.
9392
9393 2011-09-11  Bruno Haible  <bruno@clisp.org>
9394
9395         Support for MSVC compiler: Avoid division by a literal 0.
9396         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9397         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9398         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9399         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9400         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9401         * tests/infinity.h: New file.
9402         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9403         on MSVC.
9404         * tests/test-ceilf1.c: Include infinity.h.
9405         (main): Use Infinityf.
9406         * tests/test-ceil1.c: Include infinity.h.
9407         (main): Use Infinityd.
9408         * tests/test-ceill.c: Include infinity.h.
9409         (main): Use Infinityl.
9410         * tests/test-dprintf-posix.c: Include infinity.h.
9411         (test_function): Use Infinityd.
9412         * tests/test-floorf1.c: Include infinity.h.
9413         (main): Use Infinityf.
9414         * tests/test-floor1.c: Include infinity.h.
9415         (main): Use Infinityd.
9416         * tests/test-floorl.c: Include infinity.h.
9417         (main): Use Infinityl.
9418         * tests/test-fprintf-posix.c: Include infinity.h.
9419         (test_function): Use Infinityd.
9420         * tests/test-frexp.c: Include infinity.h.
9421         (main): Use Infinityd.
9422         * tests/test-frexpl.c: Include infinity.h.
9423         (main): Use Infinityl.
9424         * tests/test-isfinite.c: Include infinity.h.
9425         (test_isfinitef): Use Infinityf.
9426         (test_isfinited): Use Infinityd.
9427         (test_isfinitel): Use Infinityl.
9428         * tests/test-isinf.c: Include infinity.h.
9429         (test_isinff): Use Infinityf.
9430         (test_isinfd): Use Infinityd.
9431         (test_isinfl): Use Infinityl.
9432         * tests/test-isnan.c: Include infinity.h.
9433         (test_float): Use Infinityf.
9434         (test_double): Use Infinityd.
9435         (test_long_double): Use Infinityl.
9436         * tests/test-isnanf.h: Include infinity.h.
9437         (main): Use Infinityf.
9438         * tests/test-isnand.h: Include infinity.h.
9439         (main): Use Infinityd.
9440         * tests/test-isnanl.h: Include infinity.h.
9441         (main): Use Infinityl.
9442         * tests/test-ldexpl.c: Include infinity.h.
9443         (main): Use Infinityl.
9444         * tests/test-printf-posix.h: Include infinity.h.
9445         (test_function): Use Infinityd.
9446         * tests/test-roundf1.c: Include infinity.h.
9447         (main): Use Infinityf.
9448         * tests/test-round1.c: Include infinity.h.
9449         (main): Use Infinityd.
9450         * tests/test-roundl.c: Include infinity.h.
9451         (main): Use Infinityl.
9452         * tests/test-signbit.c: Include infinity.h.
9453         (test_signbitf): Use Infinityf.
9454         (test_signbitd): Use Infinityd.
9455         (test_signbitl): Use Infinityl.
9456         * tests/test-snprintf-posix.h: Include infinity.h.
9457         (test_function): Use Infinityd, Infinityl.
9458         * tests/test-sprintf-posix.h: Include infinity.h.
9459         (test_function): Use Infinityd, Infinityl.
9460         * tests/test-truncf1.c: Include infinity.h.
9461         (main): Use Infinityf.
9462         * tests/test-trunc1.c: Include infinity.h.
9463         (main): Use Infinityd.
9464         * tests/test-truncl.c: Include infinity.h.
9465         (main): Use Infinityl.
9466         * tests/test-vasnprintf-posix.c: Include infinity.h.
9467         (test_function): Use Infinityd, Infinityl.
9468         * tests/test-vasprintf-posix.c: Include infinity.h.
9469         (test_function): Use Infinityd, Infinityl.
9470         * modules/ceilf-tests (Files): Add tests/infinity.h.
9471         * modules/ceil-tests (Files): Likewise.
9472         * modules/ceill-tests (Files): Likewise.
9473         * modules/dprintf-posix-tests (Files): Likewise.
9474         * modules/floorf-tests (Files): Likewise.
9475         * modules/floor-tests (Files): Likewise.
9476         * modules/floorl-tests (Files): Likewise.
9477         * modules/fprintf-posix-tests (Files): Likewise.
9478         * modules/frexp-tests (Files): Likewise.
9479         * modules/frexp-nolibm-tests (Files): Likewise.
9480         * modules/frexpl-tests (Files): Likewise.
9481         * modules/frexpl-nolibm-tests (Files): Likewise.
9482         * modules/isfinite-tests (Files): Likewise.
9483         * modules/isinf-tests (Files): Likewise.
9484         * modules/isnan-tests (Files): Likewise.
9485         * modules/isnanf-tests (Files): Likewise.
9486         * modules/isnanf-nolibm-tests (Files): Likewise.
9487         * modules/isnand-tests (Files): Likewise.
9488         * modules/isnand-nolibm-tests (Files): Likewise.
9489         * modules/isnanl-tests (Files): Likewise.
9490         * modules/isnanl-nolibm-tests (Files): Likewise.
9491         * modules/ldexpl-tests (Files): Likewise.
9492         * modules/printf-posix-tests (Files): Likewise.
9493         * modules/roundf-tests (Files): Likewise.
9494         * modules/round-tests (Files): Likewise.
9495         * modules/roundl-tests (Files): Likewise.
9496         * modules/signbit-tests (Files): Likewise.
9497         * modules/snprintf-posix-tests (Files): Likewise.
9498         * modules/sprintf-posix-tests (Files): Likewise.
9499         * modules/truncf-tests (Files): Likewise.
9500         * modules/trunc-tests (Files): Likewise.
9501         * modules/truncl-tests (Files): Likewise.
9502         * modules/vasnprintf-posix-tests (Files): Likewise.
9503         * modules/vasprintf-posix-tests (Files): Likewise.
9504         * modules/vdprintf-posix-tests (Files): Likewise.
9505         * modules/vfprintf-posix-tests (Files): Likewise.
9506         * modules/vprintf-posix-tests (Files): Likewise.
9507         * modules/vsnprintf-posix-tests (Files): Likewise.
9508         * modules/vsprintf-posix-tests (Files): Likewise.
9509         * modules/xprintf-posix-tests (Files): Likewise.
9510
9511 2011-09-11  Bruno Haible  <bruno@clisp.org>
9512
9513         Ensure pid_t gets defined.
9514         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9515         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9516         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9517         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9519         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9520         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9521         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9522         * tests/test-fcntl-h.c: Check that pid_t is defined.
9523         * tests/test-sched.c: Likewise.
9524         * tests/test-termios.c: Likewise.
9525         * tests/test-time.c: Likewise.
9526         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9527         * doc/posix-headers/signal.texi: Likewise.
9528         * doc/posix-headers/sys_types.texi: Likewise.
9529         * doc/posix-headers/time.texi: Likewise.
9530
9531 2011-09-11  Bruno Haible  <bruno@clisp.org>
9532
9533         acl: Fix compilation on Solaris 10 (older version).
9534         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9535         of ACE_EVERYONE.
9536         * lib/set-mode-acl.c (qset_acl): Likewise.
9537         Reported by Christian Jullien <eligis@orange.fr>.
9538
9539 2011-09-10  Bruno Haible  <bruno@clisp.org>
9540
9541         iconv, unsetenv: Add support for MSVC compiler.
9542         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9543         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9544
9545 2011-09-10  Bruno Haible  <bruno@clisp.org>
9546
9547         *printf: Add support for MSVC compiler.
9548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9549         handles the exception caused by the %n directive. When cross-compiling,
9550         guess no on native Windows.
9551         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9552         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9553         emulate it through vsnprintf.
9554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9555         * doc/posix-functions/dprintf.texi: Update documentation regarding
9556         MSVC 9.
9557         * doc/posix-functions/fprintf.texi: Likewise.
9558         * doc/posix-functions/printf.texi: Likewise.
9559         * doc/posix-functions/snprintf.texi: Likewise.
9560         * doc/posix-functions/sprintf.texi: Likewise.
9561         * doc/posix-functions/swprintf.texi: Likewise.
9562         * doc/posix-functions/vdprintf.texi: Likewise.
9563         * doc/posix-functions/vfprintf.texi: Likewise.
9564         * doc/posix-functions/vprintf.texi: Likewise.
9565         * doc/posix-functions/vsnprintf.texi: Likewise.
9566         * doc/posix-functions/vsprintf.texi: Likewise.
9567         * doc/glibc-functions/asprintf.texi: Likewise.
9568         * doc/glibc-functions/obstack_printf.texi: Likewise.
9569         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9570         * doc/glibc-functions/vasprintf.texi: Likewise.
9571
9572 2011-09-10  Bruno Haible  <bruno@clisp.org>
9573
9574         nocrash: Add support for native Windows.
9575         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9576
9577 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9578             Bruno Haible  <bruno@clisp.org>
9579
9580         absolute-header, include-next: Add support for MSVC compiler.
9581         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9582         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9583         directory separator in #line directives.
9584         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9585         recognize also backslash as directory separator in #line directives.
9586
9587 2011-09-08  Jim Meyering  <meyering@redhat.com>
9588
9589         maint.mk: mark the post-release commit log with "maint: " prefix
9590         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9591         one-line commit-log summary.
9592
9593 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9594             Bruno Haible  <bruno@clisp.org>
9595
9596         Doc about crypt functions.
9597         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9598         systems.
9599         * doc/posix-functions/encrypt.texi: Likewise.
9600         * doc/posix-functions/setkey.texi: Likewise.
9601
9602 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9603
9604         * lib/gc.h: Fix copyright header.
9605
9606 2011-09-07  Bruno Haible  <bruno@clisp.org>
9607
9608         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9609         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9610         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9611
9612 2011-09-07  Bruno Haible  <bruno@clisp.org>
9613
9614         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9615         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9616         * lib/freopen.c: Likewise.
9617         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9618         * lib/lstat.c: Likewise.
9619         * lib/stat.c: Likewise.
9620         * lib/open.c: Use different syntax for include of <fcntl.h>.
9621         * lib/openat.c: Include fcntl.h again, explicitly.
9622
9623 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9624
9625         parse-datetime: document the newly accepted format
9626         * doc/parse-datetime.texi (Combined date and time of day items):
9627         New section.
9628
9629 2011-09-06  Bruno Haible  <bruno@clisp.org>
9630
9631         acl: Fix a test failure on newer Solaris 10 with ZFS.
9632         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9633         ENOSYS as no ACL.
9634         Reported by Jim Meyering.
9635
9636 2011-09-06  Bruno Haible  <bruno@clisp.org>
9637
9638         acl: Update for AIX >= 5.3 with NFS.
9639         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9640         ENOSYS as no ACL.
9641
9642         acl: Fix a test failure on AIX >= 5.3 with NFS.
9643         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9644         as no ACL.
9645
9646 2011-09-06  Bruno Haible  <bruno@clisp.org>
9647
9648         acl: Fix a test failure on IRIX 6.5 with NFS.
9649         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9650         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9651         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9652         * lib/copy-acl.c (qcopy_acl): Likewise.
9653
9654 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9655
9656         openat: port to AIX 7.1 with large files
9657         AIX 7.1 does a "#define openat open64at" if large files are in use,
9658         so we can't simply #undef openat.  Use the orig_openat trick (similar
9659         to orig_open in lib/open.c) to work around the problem.  Problem
9660         reported by Kevin Brott for GNU tar, in the thread containing
9661         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9662         * lib/openat.c (__need_system_fcntl_h): Define first.
9663         Include <fcntl.h> and <sys/types.h> before undefining.
9664         (orig_openat) [HAVE_OPENAT]: New inline function.
9665         (openat) [HAVE_OPENAT]: Do not undef.
9666         (rpl_openat): Use orig_openat, not openat.
9667
9668 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9669             Bruno Haible  <bruno@clisp.org>
9670
9671         acl: Avoid errors on NonStop Kernel.
9672         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9673         ENOTSUP errors.
9674
9675 2011-09-05  Bruno Haible  <bruno@clisp.org>
9676
9677         acl: Clean up Solaris code.
9678         * lib/acl-internal.h: Remove no-op #if.
9679         * lib/file-has-acl.c: Likewise.
9680         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9681         * lib/copy-acl.c (qcopy_acl): Likewise.
9682
9683 2011-09-05  Bruno Haible  <bruno@clisp.org>
9684
9685         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9686         binaries built on the original Solaris 10.
9687         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9688         trivial.
9689
9690 2011-09-05  Bruno Haible  <bruno@clisp.org>
9691
9692         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9693         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9694         10.
9695         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9696         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9697         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9698         instead of acl_get, facl_get, acl_set, facl_set.
9699
9700 2011-09-05  Bruno Haible  <bruno@clisp.org>
9701
9702         copy-file: Try unit tests on more file systems.
9703         * tests/test-copy-file-1.sh: New file.
9704         * tests/test-copy-file-2.sh: New file.
9705         * modules/copy-file-tests (Files): Add them.
9706         (Makefile.am): Add them to TESTS.
9707
9708         acl: Try unit tests on more file systems.
9709         * tests/test-file-has-acl-1.sh: New file.
9710         * tests/test-file-has-acl-2.sh: New file.
9711         * tests/test-set-mode-acl-1.sh: New file.
9712         * tests/test-set-mode-acl-2.sh: New file.
9713         * tests/test-copy-acl-1.sh: New file.
9714         * tests/test-copy-acl-2.sh: New file.
9715         * modules/acl-tests (Files): Add them.
9716         (Makefile.am): Add them to TESTS.
9717
9718 2011-09-04  Bruno Haible  <bruno@clisp.org>
9719
9720         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9721         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9722         10.
9723         (OLD_ALLOW, OLD_DENY): New macros.
9724         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9725         ACE_ACCESS_ALLOWED_ACE_TYPE.
9726         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9727         ACE_ACCESS_DENIED_ACE_TYPE.
9728         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9729         (NEW_ACE_EXECUTE): Fix value.
9730         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9731         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9732         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9733         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9734         NEW_ACE_SYNCHRONIZE): New macros.
9735         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9736         instead of acl_fromtext, acl_set, facl_set.
9737         Fixes a coreutils/tests/cp/perm failure.
9738
9739 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9740
9741         openat: test for fstatat (..., 0) bug
9742         Further testing with tar suggests that fstatat (..., 0)
9743         does not work in general, on AIX 7.1; see
9744         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9745         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9746         replacement fstatat (which is what older AIX releases were using
9747         anyway).
9748         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9749         use is now changed to orig_fstatat.  This was probably the right
9750         thing to do anyway.
9751         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9752         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9753         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9754         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9755         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9756         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9757         if the bug is found.
9758
9759         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9760         This tests for another fstatat bug on AIX 7.1:
9761         fstatat (AT_FDCWD, ..., 0) does not work.  See
9762         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9763         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9764         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9765         (rpl_fstatat): Adjust so that it works around either (or both)
9766         bugs if present.
9767         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9768
9769 2011-09-03  Karl Berry  <karl@gnu.org>
9770
9771         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9772         in index entries.
9773
9774 2011-09-02  Bruno Haible  <bruno@clisp.org>
9775
9776         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9777         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9778         values of AR, ARFLAGS, RANLIB.
9779         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9780
9781 2011-09-02  Bruno Haible  <bruno@clisp.org>
9782
9783         Find 'ar' program that fits with --host argument.
9784         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9785
9786 2011-09-02  Bruno Haible  <bruno@clisp.org>
9787
9788         tests: init.sh: Support any non-GNU diff.
9789         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9790         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9791         Solaris 8.
9792
9793 2011-09-02  Bruno Haible  <bruno@clisp.org>
9794
9795         tests: init.sh: work also with any non-GNU diff that supports -u
9796         * tests/init.sh: Relax check for diff -u support.
9797         Rather than checking for GNU diff via --version, simply check
9798         for support for -u itself.  Useful at least on OpenBSD 4.9,
9799         AIX 7.1, IRIX 6.5, and Solaris 10.
9800
9801 2011-09-01  Bruno Haible  <bruno@clisp.org>
9802
9803         strtoimax, strtoumax: Document problem on HP-UX 11.
9804         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9805         * doc/posix-functions/strtoumax.texi: Likewise.
9806
9807 2011-09-01  Bruno Haible  <bruno@clisp.org>
9808
9809         strtoumax: Avoid link error on OSF/1 with DTK cc.
9810         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9811         defined as a function.
9812         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9813         strtoumax is defined, not whether it is declared.
9814
9815 2011-09-01  Bruno Haible  <bruno@clisp.org>
9816
9817         strtoimax: Avoid link error on OSF/1 with DTK cc.
9818         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9819         defined as a function.
9820         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9821         strtoimax is defined, not whether it is declared.
9822
9823 2011-09-01  Bruno Haible  <bruno@clisp.org>
9824
9825         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9826         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9827         as a function.
9828         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9829         whether it is declared.
9830
9831 2011-09-01  Bruno Haible  <bruno@clisp.org>
9832
9833         imaxabs: Avoid link error on OSF/1 with DTK cc.
9834         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9835         as a function.
9836         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9837         whether it is declared.
9838
9839 2011-09-01  Bruno Haible  <bruno@clisp.org>
9840
9841         Tests for module 'strtoumax'.
9842         * modules/strtoumax-tests: New file.
9843         * tests/test-strtoumax.c: New file.
9844
9845         Tests for module 'strtoimax'.
9846         * modules/strtoimax-tests: New file.
9847         * tests/test-strtoimax.c: New file.
9848
9849         Tests for module 'imaxdiv'.
9850         * modules/imaxdiv-tests: New file.
9851         * tests/test-imaxdiv.c: New file.
9852
9853         Tests for module 'imaxabs'.
9854         * modules/imaxabs-tests: New file.
9855         * tests/test-imaxabs.c: New file.
9856
9857 2011-09-01  Bruno Haible  <bruno@clisp.org>
9858
9859         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9860         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9861         pthread_create.
9862
9863 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9864
9865         openat: work around AIX 7.1 fstatat issue
9866         This should fix the problem that was not properly fixed
9867         in the previous change, dated 2011-08-30.
9868         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9869         __need_system_stat_h defined.
9870         (orig_fstatat) [HAVE_FSTATAT]: New function.
9871         (rpl_fstatat): Go back to the old way of doing things,
9872         except call orig_fstatat instead of fstatat.
9873         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9874         Remove unnecessary check whether fstatat fills in st_size etc.
9875
9876 2011-09-01  Bruno Haible  <bruno@clisp.org>
9877
9878         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9879         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9880         just include the system's header.
9881
9882 2011-08-31  Jim Meyering  <meyering@redhat.com>
9883
9884         tests: avoid spurious assertion failure in test-float.c on ppc64
9885         * tests/test-float.c (test_long_double): Comment out an assertion,
9886         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9887         with gcc-4.4.4.
9888
9889         maint: indent with spaces, not TABs
9890         I need to get in the habit of running gnulib's "make check".
9891         Both of these would have been caught.
9892         * m4/largefile.m4: Indent with spaces, not TABs.
9893         * lib/parse-datetime.y (iso_8601_time): Likewise.
9894         Spotted by Pádraig Brady.
9895
9896         test-parse-datetime.c: accommodate a relatively strict gcc warning
9897         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9898         to avoid a warning from gcc's -Werror=missing-declarations.
9899         Insert a few spaces-before-funcall-parenthesis.
9900
9901 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9902
9903         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9904         The parser now accepts ISO 8601 date-time strings with "T" as the
9905         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9906         with a space between the date and time strings.  Now it also parses
9907         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9908         variants like "2004-02-29T16:21:42.333-07:00"
9909         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9910         of day representation using the 'T' separator character.
9911         * doc/parse-datetime.texi (General date syntax): replace use of
9912         deprecated --iso-8601 option with --rfc-3339 in example of date
9913         command output formats that can be parsed.
9914         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9915         lib/parse-datetime.y.
9916         (gmt_offset): New function.
9917         (main): Add additional test cases to validate ISO8601 extended
9918         date and time of day parsing.
9919
9920 2011-08-31  Bruno Haible  <bruno@clisp.org>
9921
9922         freopen: Documentation.
9923         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9924         name.
9925         Reported by Claudio Bley <claudio.bley@gmail.com>.
9926
9927 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9928
9929         freopen: Don't crash if the filename argument is NULL.
9930         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9931         NULL.
9932
9933 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9934
9935         openat: work around AIX 7.1 fstatat bug
9936         Problem reported by Kevin Brott for GNU tar, in the thread containing
9937         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9938         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9939         FSTATAT_ST_SIZE_ETC_BROKEN.
9940         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9941         rpl_fstatat.
9942         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9943         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9944         AC_CHECK_FUNCS_ONCE for fstatat.
9945         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9946         fchmodat, mkdirat, openat and unlinkat.
9947
9948 2011-08-30  Bruno Haible  <bruno@clisp.org>
9949
9950         Avoid endless recursions if config.h includes some header files.
9951         * lib/fopen.c (__need_FILE): Define already before including config.h.
9952         * lib/freopen.c (__need_FILE): Likewise.
9953         * lib/open.c (__need_system_fcntl_h): Likewise.
9954         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9955         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9956         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9957
9958 2011-08-25  Karl Berry  <karl@gnu.org>
9959
9960         * config/srclist.txt (ylwrap): new try.
9961         * build-aux/ylwrap: new file.
9962
9963 2011-08-23  Bruno Haible  <bruno@clisp.org>
9964
9965         tmpdir: Use a good default directory on native Windows.
9966         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9967         (P_tmpdir): Default to _P_tmpdir on native Windows.
9968         (path_search): On native Windows, try the value returned by GetTempPath
9969         before trying P_tmpdir.
9970         * modules/tmpdir (Depends-on): Add pathmax.
9971         Suggested by John Darrington <john@darrington.wattle.id.au>.
9972
9973 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9974
9975         doc: fix typo in README-release
9976         * top/README-release: Capitalize first word of a sentence.
9977
9978 2011-08-19  Jim Meyering  <meyering@redhat.com>
9979
9980         fts: do not exhaust memory when processing million-entry directories
9981         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9982         directory would require about 256*N bytes of memory.  Thus, it was
9983         easy to construct a directory too large to be processed by any of
9984         those tools.  With this change, fts' maximum memory utilization is
9985         now limited to around 30MB.
9986         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9987         (fts_read): When we've processed the final entry (i.e., when
9988         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9989         using the parent entry to read any remaining entries.  Dispatch
9990         depending on what fts_build returns:
9991         - NULL+stop, aka failure: stop
9992         - NULL otherwise: move up in the dir hierarchy
9993         - non-NULL: handle this new entry
9994         (fts_build): Declare and use new local, continue_readdir.
9995         Prepare to be called from fts_read, when the entries
9996         from a partially-read directory have just been exhausted.
9997         In that case, we'll skip the opendir and instead use the parent's
9998         fts_dirp and derive dir_fd from that.
9999         Finally, in the readdir loop, if we read max_entries entries,
10000         exit the loop ensuring *not* to call closedir.  This is required
10001         so that fts_dirp can be reused on a subsequent call.
10002         Prompted by Ben England's report of memory exhaustion in find
10003         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10004
10005         maint: fts: move decl of `dp' down into while loop; split a long line
10006         * lib/fts.c (fts_build): No semantic change.
10007
10008         fts: add/use new struct member, fts_dirp
10009         We are about to use this to manage any directory with
10010         too many entries to read all of them into memory at once.
10011         To do that, we'll need to save the DIR* pointer in each
10012         affected FTSENT struct.
10013         * lib/fts_.h: Include <dirent.h>.
10014         (struct FTSENT) [fts_dirp]: New member.
10015         * lib/fts.c (closedir_and_clear): Define.
10016         Use it in place of closedir so that we are sure to
10017         clear the new fts_dirp member when done with it.
10018         (fts_alloc): Initialize the new member.
10019         (fts_lfree): Free, if needed.
10020
10021         maint: fts: give __opendir2 a new parameter and rename
10022         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10023         than surreptitiously using sole caller's "dir_fd".
10024         (fts_opendir): Rename from __opendir2.
10025
10026         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10027         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10028
10029         maint: fts.c: correct off-by-one indentation
10030         * lib/fts.c (fts_build): Correct indentation, change style
10031         of a couple of block comments, and bracing style.
10032
10033         maint: fts.c: move __opendir2 #define "up" out of function body
10034         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10035
10036         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10037         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10038         out for a long time and besides was useful only on BSD systems.
10039
10040 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10041
10042         regex: port to Stratus OpenVOS
10043         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10044         define to empty, rather than attempting nonportable optimizations.
10045         Problem reported by Paul Green in:
10046         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10047         and fix suggested by Eric Blake in:
10048         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10049
10050 2011-08-17  Eric Blake  <eblake@redhat.com>
10051
10052         getcwd: fix test failures on mingw
10053         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10054         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10055         test if long directory cannot be created, and allow mingw errno.
10056
10057         getcwd-lgpl: fix m4 to match relaxed test for BSD
10058         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10059         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10060         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10061         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10062         signature problem.
10063
10064         getcwd: fix compilation on mingw64
10065         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10066         getcwd.
10067         Reported by Marc-André Lureau.
10068
10069         pipe2: silence compiler warning
10070         * lib/pipe2.c (pipe2): Hide label if it is not used.
10071
10072 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10073
10074         relocatable-prog: fix link error
10075         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10076         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10077         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10078         into modules/relocatable-lib without noticing that
10079         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10080         also needs to build relocatable.c.
10081
10082 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10083
10084         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10085         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10086         shell code: it contained a 'break' that was not in a loop.
10087         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10088         via a shell-language loop; this may have been true in old Autoconf
10089         versions, but it's not true in Autoconf 2.68.  I found this bug
10090         when testing coreutils git on Solaris 8, whose shell complains
10091         about the syntax error.
10092
10093 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10094
10095         * lib/base64.c: Fix comment to reference RFC 4648.
10096         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10097         <gvtulder@gmail.com>.
10098
10099 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10100
10101         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10102
10103         po/Makefile.in.in: fix make -q problem
10104         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10105         rule, since there's no file named 'check-macro-version' and its
10106         use as a file breaks make -q.
10107         (all): Don't depend on check-macro-version.
10108         (CHECK_MACRO_VERSION): New macro.
10109         (stamp-po): Use it.
10110
10111         configmake: fix make -q problem
10112         * modules/configmake (configmake.h): Update configmake.h's time stamp
10113         even if the file does not change.  Otherwise, 'make -q' fails.
10114         Problem reported by Simon Josefsson in
10115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10116
10117 2011-08-11  Jim Meyering  <meyering@redhat.com>
10118
10119         git-version-gen: correct the advice in a comment
10120         * build-aux/git-version-gen: Correct comment.
10121         Don't recommend to list .tarball-version in .gitignore.
10122
10123 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         base64: fix off-by-one buffer size bug
10126         Problem and (trivial) fix reported by Gijs van Tulder in
10127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10128         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10129         * tests/test-base64.c (main): Catch the bug.
10130
10131 2011-08-10  Eric Blake  <eblake@redhat.com>
10132
10133         closein: correct comments
10134         * lib/closein.c (close_stdin): Improve comments.
10135
10136 2011-08-09  Bruno Haible  <bruno@clisp.org>
10137
10138         More tests for 'fseeko'.
10139         * tests/test-fseeko3.c: New file, from Eric Blake.
10140         * tests/test-fseeko3.sh: New file.
10141         * modules/fseeko-tests (Files): Add them.
10142         (TESTS): Add test-fseeko3.sh.
10143         (check_PROGRAMS): Add test-fseeko3.
10144
10145 2011-08-09  Eric Blake  <eblake@redhat.com>
10146
10147         fseeko: remove unneeded hack
10148         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10149
10150         fseeko: fix bug on glibc
10151         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10152         Reported by John W. Eaton.
10153
10154 2011-08-08  Bruno Haible  <bruno@clisp.org>
10155
10156         unictype/base: Fix interoperability with preinstalled libunistring.
10157         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10158         Reported by Simon Josefsson.
10159
10160 2011-08-08  Bruno Haible  <bruno@clisp.org>
10161
10162         iswblank: Detect declaration correctly.
10163         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10164         AC_CHECK_DECLS invocation.
10165
10166 2011-08-08  Bruno Haible  <bruno@clisp.org>
10167
10168         tcgetsid: Detect declaration correctly.
10169         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10170         AC_CHECK_DECLS invocation.
10171         Reported by Simon Josefsson.
10172
10173 2011-08-08  Eric Blake  <eblake@redhat.com>
10174
10175         largefile: fix typo that regressed large file support
10176         * modules/largefile (configure.ac-early): Fix section name.
10177
10178 2011-08-06  Karl Berry  <karl@gnu.org>
10179
10180         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10181         a separate module.
10182
10183 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10184
10185         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10186         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10187         get prototype for free.
10188
10189 2011-08-04  Bruno Haible  <bruno@clisp.org>
10190
10191         Tests for module 'pathmax'.
10192         * modules/pathmax-tests: New file.
10193         * tests/test-pathmax.c: New file.
10194
10195         canonicalize-lgpl: Support larger filenames on the Hurd.
10196         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10197         Reported by Paul Eggert.
10198
10199         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10200         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10201         * lib/chdir-long.h: Include pathmax.h.
10202         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10203         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10204         (PATH_MAX): Remove code that is done by pathmax.h.
10205         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10206         * lib/tmpfile.c: Add a comment.
10207         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10208         * modules/chdir-long (Depends-on): Add pathmax.
10209         * modules/getcwd (Depends-on): Add pathmax.
10210         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10211         is not defined.
10212         * doc/posix-headers/limits.texi: Mention the pathmax module.
10213         * NEWS: Mention the change.
10214
10215 2011-08-02  Bruno Haible  <bruno@clisp.org>
10216
10217         pthread_sigmask: Actually use results of gl_THREADLIB.
10218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10219         gl_THREADLIB, not gl_[]THREADLIB.
10220         Reported by Eric Blake.
10221
10222 2011-08-02  Jim Meyering  <meyering@redhat.com>
10223
10224         maint.mk: relax the default _gl_TS_function_match regexp
10225         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10226         space between function name and "(" in an "extern" declaration.
10227         That would fail to match a decl with no space there: extern void foo();
10228
10229 2011-07-31  Iain Nicol  <iain@thenicols.net>
10230
10231         git-version-gen: document that EXTRA_DIST must include .version
10232         * build-aux/git-version-gen: In the how-to-use comment, document
10233         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10234         will fail when run from an unpacked distribution tarball.
10235
10236 2011-08-01  Bruno Haible  <bruno@clisp.org>
10237
10238         wctype-h: Fix last change.
10239         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10240         REPLACE_TOWLOWER to 0.
10241         Reported by Sam Steingold <sds@gnu.org>.
10242
10243 2011-07-31  Bruno Haible  <bruno@clisp.org>
10244
10245         frexpl: Update autoconf test.
10246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10247         according to changes of 2011-06-20.
10248
10249 2011-07-31  Bruno Haible  <bruno@clisp.org>
10250
10251         sys_utsname: Add support for Minix.
10252         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10253         <sys/utsname.h>.
10254         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10255         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10256
10257 2011-07-31  Bruno Haible  <bruno@clisp.org>
10258
10259         strings: Add support for Minix.
10260         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10261         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10262         * doc/posix-headers/strings.texi: Document the Minix problem.
10263
10264 2011-07-31  Bruno Haible  <bruno@clisp.org>
10265
10266         wctype-h: Add support for Minix.
10267         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10268         REPLACE_TOWLOWER.
10269         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10270         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10271         REPLACE_ISWCNTRL.
10272
10273 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10276         This is a performance improvement for 64-bit hosts: it causes the
10277         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10278
10279 2011-07-31  Bruno Haible  <bruno@clisp.org>
10280
10281         stdioext: Add support for Minix.
10282         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10283         * lib/fpurge.c (fpurge): Likewise.
10284         * lib/freadahead.c (freadahead): Likewise.
10285         * lib/freadable.c (freadable): Likewise.
10286         * lib/freading.c (freading): Likewise.
10287         * lib/freadptr.c (freadptr): Likewise.
10288         * lib/freadseek.c (freadptrinc): Likewise.
10289         * lib/fseeko.c (rpl_fseeko): Likewise.
10290         * lib/fseterr.c (fseterr): Likewise.
10291         * lib/fwritable.c (fwritable): Likewise.
10292         * lib/fwriting.c (fwriting): Likewise.
10293         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10294         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10295
10296 2011-07-31  Bruno Haible  <bruno@clisp.org>
10297
10298         errno: Port to Minix.
10299         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10300         ECONNABORTED are defined.
10301         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10302         GNULIB_defined_ECONNABORTED): New macros.
10303         * lib/strerror-override.h (strerror_override): Test also
10304         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10305         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10306         ECONNABORTED.
10307         * doc/posix-headers/errno.texi: Mention the Minix problem.
10308
10309 2011-07-31  Bruno Haible  <bruno@clisp.org>
10310
10311         Work around declaration collisions on Minix.
10312         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10313         defined, set REPLACE_MBSINIT.
10314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10315         defined, set REPLACE_MBRTOWC.
10316         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10317         set REPLACE_MBRLEN.
10318         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10319         defined, set REPLACE_MBSRTOWCS.
10320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10321         defined, set REPLACE_WCRTOMB.
10322         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10323         defined, set REPLACE_WCSRTOMBS.
10324
10325 2011-07-31  Bruno Haible  <bruno@clisp.org>
10326
10327         Add support for Minix with ACK compiler.
10328         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10329         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10330         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10331
10332 2011-07-31  Bruno Haible  <bruno@clisp.org>
10333
10334         Documentation about Minix.
10335         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10336         * doc/glibc-headers/*.texi: Likewise.
10337         * doc/posix-functions/*.texi: Likewise.
10338         * doc/glibc-functions/*.texi: Likewise.
10339
10340 2011-07-31  Bruno Haible  <bruno@clisp.org>
10341
10342         snippet/warn-on-use: Fix indentation.
10343         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10344
10345 2011-07-25  Jim Meyering  <meyering@redhat.com>
10346
10347         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10348         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10349         commands.
10350
10351 2011-07-27  Jim Meyering  <meyering@redhat.com>
10352
10353         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10354         * top/maint.mk (gl_extract_significant_defines_): Now that
10355         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10356         gnulib/lib/signal.in.h, and now that we recommend to
10357         define-if-undefined those two symbols in application code,
10358         we must filter them out of the "significant" list.
10359         This avoids a "make syntax-check" failure in coreutils.
10360
10361 2011-07-26  Eric Blake  <eblake@redhat.com>
10362
10363         warnings: add comments about previous patch
10364         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10365         * m4/include_next.m4: Likewise.
10366         * m4/warn-on-use.m4: Likewise.
10367         * m4/warnings.m4: Likewise, and simplify use.
10368         Suggested by Stefano Lattarini.
10369
10370         include-next, warnings: support older autoconf
10371         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10372         AS_VAR_PUSHDEF in a way that works with older autoconf.
10373         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10374         Reported by Daniel P. Berrange.
10375
10376 2011-07-25  Bruno Haible  <bruno@clisp.org>
10377
10378         fseek, ftell: Fix doc.
10379         * doc/posix-functions/fseek.texi: Reword statement about
10380         AC_SYS_LARGEFILE.
10381         * doc/posix-functions/ftell.texi: Likewise.
10382
10383 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10384             Bruno Haible  <bruno@clisp.org>
10385
10386         Add dependencies to the 'largefile' module.
10387         * modules/fopen (Depends-on): Add 'largefile'.
10388         * modules/freopen (Depends-on): Likewise.
10389         * modules/fseeko (Depends-on): Likewise.
10390         * modules/ftello (Depends-on): Likewise.
10391         * modules/glob (Depends-on): Likewise.
10392         * modules/lseek (Depends-on): Likewise.
10393         * modules/lstat (Depends-on): Likewise.
10394         * modules/mkostemp (Depends-on): Likewise.
10395         * modules/mkostemps (Depends-on): Likewise.
10396         * modules/mkstemp (Depends-on): Likewise.
10397         * modules/mkstemps (Depends-on): Likewise.
10398         * modules/open (Depends-on): Likewise.
10399         * modules/openat (Depends-on): Likewise.
10400         * modules/pread (Depends-on): Likewise.
10401         * modules/pwrite (Depends-on): Likewise.
10402         * modules/scandir (Depends-on): Likewise.
10403         * modules/stat (Depends-on): Likewise.
10404         * modules/tmpfile (Depends-on): Likewise.
10405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10406         since the containing module now depends on the largefile module.
10407         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10408         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10409         off_t is fixed by gnulib.
10410         * doc/posix-functions/freopen.texi: Likewise.
10411         * doc/posix-functions/fseeko.texi: Likewise.
10412         * doc/posix-functions/fstatat.texi: Likewise.
10413         * doc/posix-functions/ftello.texi: Likewise.
10414         * doc/posix-functions/glob.texi: Likewise.
10415         * doc/posix-functions/lseek.texi: Likewise.
10416         * doc/posix-functions/lstat.texi: Likewise.
10417         * doc/posix-functions/mkstemp.texi: Likewise.
10418         * doc/posix-functions/open.texi: Likewise.
10419         * doc/posix-functions/openat.texi: Likewise.
10420         * doc/posix-functions/pread.texi: Likewise.
10421         * doc/posix-functions/pwrite.texi: Likewise.
10422         * doc/posix-functions/scandir.texi: Likewise.
10423         * doc/posix-functions/stat.texi: Likewise.
10424         * doc/posix-functions/tmpfile.texi: Likewise.
10425         * doc/glibc-functions/mkostemp.texi: Likewise.
10426         * doc/glibc-functions/mkostemps.texi: Likewise.
10427         * doc/glibc-functions/mkstemps.texi: Likewise.
10428
10429 2011-07-25  Bruno Haible  <bruno@clisp.org>
10430
10431         fcntl: Move AC_LIBOBJ invocation to module description.
10432         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10433         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10434
10435         fcntl: Remove call-in from fchdir.m4.
10436         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10438
10439         dup3: Remove potential call-in from fchdir.m4.
10440         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10442
10443         dup2: Move AC_LIBOBJ invocation to module description.
10444         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10445         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10446         Don't invoke AC_LIBOBJ.
10447         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10448
10449         dup2: Remove call-in from fchdir.m4.
10450         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10452
10453         fclose: Move AC_LIBOBJ invocation to module description.
10454         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10455         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10456         to 1.
10457         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10458
10459         fclose: Remove call-in from close.m4.
10460         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10461         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10462
10463         close: Move AC_LIBOBJ invocation to module description.
10464         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10465         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10466         1.
10467         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10468
10469         close: Remove call-in from fchdir.m4.
10470         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10472
10473         open: Move AC_LIBOBJ invocation to module description.
10474         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10475         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10476         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10477
10478         open: Remove call-in from fchdir.m4.
10479         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10481
10482         fchdir: Start to remove gl_REPLACE_* idiom.
10483         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10484         (gl_FUNC_FCHDIR): Invoke it.
10485
10486 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10487
10488         * lib/ftell.c (ftell): Comment out cast.
10489
10490         close: use gl_REPLACE_FCLOSE only if defined
10491         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10492         is defined.  The close module doesn't depend on the fclose module
10493         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10495         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10496
10497 2011-07-24  Jim Meyering  <meyering@redhat.com>
10498
10499         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10500         * tests/test-select.h (test_function): Declare as "static".
10501
10502 2011-07-24  Bruno Haible  <bruno@clisp.org>
10503
10504         doc: Mention the effects of AC_SYS_LARGEFILE.
10505         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10506         on this function.
10507         * doc/posix-functions/aio_error.texi: Likewise.
10508         * doc/posix-functions/aio_fsync.texi: Likewise.
10509         * doc/posix-functions/aio_read.texi: Likewise.
10510         * doc/posix-functions/aio_return.texi: Likewise.
10511         * doc/posix-functions/aio_suspend.texi: Likewise.
10512         * doc/posix-functions/aio_write.texi: Likewise.
10513         * doc/posix-functions/fgetpos.texi: Likewise.
10514         * doc/posix-functions/fopen.texi: Likewise.
10515         * doc/posix-functions/freopen.texi: Likewise.
10516         * doc/posix-functions/fsetpos.texi: Likewise.
10517         * doc/posix-functions/fstatvfs.texi: Likewise.
10518         * doc/posix-functions/ftruncate.texi: Likewise.
10519         * doc/posix-functions/ftw.texi: Likewise.
10520         * doc/posix-functions/getrlimit.texi: Likewise.
10521         * doc/posix-functions/glob.texi: Likewise.
10522         * doc/posix-functions/lio_listio.texi: Likewise.
10523         * doc/posix-functions/lockf.texi: Likewise.
10524         * doc/posix-functions/mkstemp.texi: Likewise.
10525         * doc/posix-functions/mmap.texi: Likewise.
10526         * doc/posix-functions/nftw.texi: Likewise.
10527         * doc/posix-functions/openat.texi: Likewise.
10528         * doc/posix-functions/opendir.texi: Likewise.
10529         * doc/posix-functions/posix_fadvise.texi: Likewise.
10530         * doc/posix-functions/posix_fallocate.texi: Likewise.
10531         * doc/posix-functions/pread.texi: Likewise.
10532         * doc/posix-functions/pwrite.texi: Likewise.
10533         * doc/posix-functions/readdir.texi: Likewise.
10534         * doc/posix-functions/readdir_r.texi: Likewise.
10535         * doc/posix-functions/rewinddir.texi: Likewise.
10536         * doc/posix-functions/scandir.texi: Likewise.
10537         * doc/posix-functions/seekdir.texi: Likewise.
10538         * doc/posix-functions/setrlimit.texi: Likewise.
10539         * doc/posix-functions/statvfs.texi: Likewise.
10540         * doc/posix-functions/telldir.texi: Likewise.
10541         * doc/posix-functions/tmpfile.texi: Likewise.
10542         * doc/posix-functions/truncate.texi: Likewise.
10543         * doc/glibc-functions/fallocate.texi: Likewise.
10544         * doc/glibc-functions/fstatfs.texi: Likewise.
10545         * doc/glibc-functions/fts_children.texi: Likewise.
10546         * doc/glibc-functions/fts_read.texi: Likewise.
10547         * doc/glibc-functions/getdirentries.texi: Likewise.
10548         * doc/glibc-functions/mkostemp.texi: Likewise.
10549         * doc/glibc-functions/mkostemps.texi: Likewise.
10550         * doc/glibc-functions/mkstemps.texi: Likewise.
10551         * doc/glibc-functions/preadv.texi: Likewise.
10552         * doc/glibc-functions/pwritev.texi: Likewise.
10553         * doc/glibc-functions/sendfile.texi: Likewise.
10554         * doc/glibc-functions/statfs.texi: Likewise.
10555
10556 2011-07-24  Bruno Haible  <bruno@clisp.org>
10557
10558         doc: Fix typo.
10559         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10560
10561 2011-07-24  Bruno Haible  <bruno@clisp.org>
10562
10563         doc: Mention fsusage.
10564         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10565
10566 2011-07-24  Bruno Haible  <bruno@clisp.org>
10567
10568         doc: Mention new glibc headers and functions.
10569         * doc/glibc-headers/gshadow.texi: New file.
10570         * doc/glibc-functions/endsgent.texi: New file.
10571         * doc/glibc-functions/fgetsgent.texi: New file.
10572         * doc/glibc-functions/fgetsgent_r.texi: New file.
10573         * doc/glibc-functions/getsgent.texi: New file.
10574         * doc/glibc-functions/getsgent_r.texi: New file.
10575         * doc/glibc-functions/getsgnam.texi: New file.
10576         * doc/glibc-functions/getsgnam_r.texi: New file.
10577         * doc/glibc-functions/putsgent.texi: New file.
10578         * doc/glibc-functions/setsgent.texi: New file.
10579         * doc/glibc-functions/sgetsgent.texi: New file.
10580         * doc/glibc-functions/sgetsgent_r.texi: New file.
10581         * doc/glibc-functions/malloc_info.texi: New file.
10582         * doc/glibc-functions/preadv.texi: New file.
10583         * doc/glibc-functions/pwritev.texi: New file.
10584         * doc/glibc-functions/register_printf_modifier.texi: New file.
10585         * doc/glibc-functions/register_printf_specifier.texi: New file.
10586         * doc/glibc-functions/register_printf_type.texi: New file.
10587         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10588         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10589         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10590         * doc/glibc-functions/pthread_getname_np.texi: New file.
10591         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10592         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10593         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10594         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10595         * doc/glibc-functions/pthread_setname_np.texi: New file.
10596         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10597         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10598         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10599         * doc/glibc-functions/qsort_r.texi: New file.
10600         * doc/glibc-functions/quick_exit.texi: New file.
10601         * doc/glibc-functions/syncfs.texi: New file.
10602         * doc/gnulib.texi: Include them.
10603         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10604         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10605         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10606         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10607         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10608         * doc/glibc-functions/execvpe.texi: Likewise.
10609
10610 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10611
10612         ftell: don't include <unistd.h>
10613         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10614         guaranteed to define off_t, and the ftell module depends on the
10615         stdio module.
10616
10617         ftell: do not assume wraparound signed arithmetic
10618         * lib/ftell.c: Include <limits.h>.
10619         (ftell): Don't assume wraparound signed arithmetic.
10620
10621 2011-07-24  Bruno Haible  <bruno@clisp.org>
10622
10623         close: No longer depend on module 'fclose'.
10624         * modules/close (Depends-on): Remove fclose.
10625         * NEWS: Mention the change.
10626         Suggested by Sam Steingold <sds@gnu.org>.
10627
10628 2011-07-24  Bruno Haible  <bruno@clisp.org>
10629
10630         fsusage: Enable large volume support on AIX >= 5.2.
10631         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10632         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10633         instead of STAT_STATVFS.
10634         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10635
10636         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10638         f_blocks field only on MacOS X.
10639
10640         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10641         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10642         * modules/fsusage (Depends-on): Add largefile.
10643
10644 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10645
10646         * README: Modernize discussion of signed integers.
10647         Assuming overflow wraparound is no longer safe.
10648         Mention ones' complement and signed magnitude.
10649
10650 2011-07-22  Bruno Haible  <bruno@clisp.org>
10651
10652         select tests, pselect tests: Refactor.
10653         * tests/test-select.h: New file, extracted from tests/test-select.c.
10654         (select_fn): New type.
10655         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10656         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10657         test_pipe): Add my_select argument.
10658         (test_function): Renamed from main. Add my_select argument.
10659         * tests/test-select.c: Move most code to tests/test-select.h. Include
10660         test-select.h.
10661         * modules/select-tests (Files): Add tests/test-select.h.
10662         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10663         (my_select, main): New functions.
10664         * modules/pselect-tests (Files): Add tests/test-select.h,
10665         tests/macros.h, tests/signature.h.
10666         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10667         (configure.ac): Check for <sys/wait.h>.
10668
10669 2011-07-22  Bruno Haible  <bruno@clisp.org>
10670
10671         sys_select tests: Check the signature of FD_*.
10672         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10673         signature tests from here...
10674         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10675         here.
10676         * modules/sys_select-tests (Files): Add tests/signature.h.
10677
10678 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         largefile: new module, replacing large-inode
10681         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10682         * MODULES.html.sh: Add largefile, remove large-inode.
10683         * modules/largefile, m4/largefile.m4: New files.
10684         * modules/large-inode, m4/large-inode.m4: Remove.
10685
10686         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10688         implementations that use only 32 bits to count blocks.
10689         On typical hosts with 1024-byte blocks, this fails with file
10690         systems as small as 4 TiB.  Problem reported by Herb Wartens
10691         <http://debbugs.gnu.org/9140> and this should also fix a similar
10692         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10693
10694         large-inode: New module
10695         * MODULES.html.sh: Add it.
10696         * modules/large-inode, m4/large-inode.m4: New files.
10697
10698         extensions: Enable extensions on MacOS X 10.5 and later.
10699         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10700
10701 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10702
10703         file-has-acl: use acl_extended_file_nofollow if available
10704         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10705         (acl_extended_file): New macro.
10706         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10707         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10708
10709 2011-07-21  Bruno Haible  <bruno@clisp.org>
10710
10711         Declare system functions in a way that works with C++.
10712         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10713         declare fdopendir as extern "C".
10714         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10715         declare frexpl as extern "C".
10716         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10717         declare gai_strerror as extern "C".
10718         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10719         programs, declare gai_strerror as extern "C".
10720         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10721         declare getlogin_r as extern "C".
10722         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10723         as extern "C".
10724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10725         declare ldexpl as extern "C".
10726         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10727         as extern "C".
10728         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10729         program, declare getmntinfo as extern "C".
10730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10731         stpncpy as extern "C".
10732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10733         program, declare __xpg_strerror_r as extern "C".
10734         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10735         strndup as extern "C".
10736         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10737         declare memset and bzero as extern "C".
10738         Reported by Sam Steingold <sds@gnu.org>.
10739
10740 2011-07-12  Jim Meyering  <meyering@redhat.com>
10741
10742         maint.mk: prohibit inclusion of "verify.h" without use
10743         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10744
10745 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10746
10747         timer-time: A new module to check for timer_settime()
10748         * m4/timer_time.m4: Check for the posix function.
10749         * modules/timer-time: Add the new module.
10750         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10751         Mention it.
10752
10753 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10754             Bruno Haible  <bruno@clisp.org>
10755
10756         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10757         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10758         not defined, assume POSIX threads and look for pthread_sigmask in
10759         $LIBS, without changing $CPPFLAGS.
10760
10761 2011-07-19  Bruno Haible  <bruno@clisp.org>
10762
10763         strstr: Update cross-compilation guess.
10764         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10765         CPUs, guess no, in view of glibc
10766         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10767         Suggested by Eric Blake. Reported by Reuben Thomas.
10768
10769 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10770
10771         getopt-gnu: suppress core dumps from detection code
10772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10773         to suppress core dumps that may well occur on glibc systems.
10774         * modules/getopt-gnu: Depend on nocrash.
10775
10776 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         pthread_sigmask: ensure usleep is declared
10779         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10780         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10781
10782 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10783
10784         doc: Document NonStop portability issues.
10785         * doc/posix-functions/sigaction.texi (sigaction):
10786         * doc/posix-headers/signal.texi (signal.h):
10787         Document NonStop.  See Joachim Schmitz in
10788         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10789
10790 2011-07-15  Bruno Haible  <bruno@clisp.org>
10791
10792         ffsl, ffsll: Avoid unportable behaviour.
10793         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10794
10795 2011-07-15  Bruno Haible  <bruno@clisp.org>
10796
10797         ffs: More tests.
10798         * tests/test-ffs.c (NBITS): New macro.
10799         (main): Add more tests.
10800         * tests/test-ffsl.c (NBITS): New macro.
10801         (main): Add more tests.
10802         * tests/test-ffsll.c (NBITS): New macro.
10803         (main): Add more tests.
10804
10805 2011-07-15  Eric Blake  <eblake@redhat.com>
10806
10807         ffsl, ffsll: new modules
10808         * modules/ffsl: New file.
10809         * modules/ffsll: Likewise.
10810         * m4/ffsl.m4: Likewise.
10811         * m4/ffsll.m4: Likewise.
10812         * lib/ffsl.c: Likewise.
10813         * lib/ffsl.h: Likewise.
10814         * lib/ffsll.c: Likewise.
10815         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10816         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10817         * modules/string (Makefile.am): Substitute witnesses.
10818         * lib/strings.in.h (ffsl, ffsll): Declare.
10819         * modules/ffsl-tests: New test file.
10820         * modules/ffsll-tests: Likewise.
10821         * tests/test-ffsl.c: Likewise.
10822         * tests/test-ffsll.c: Likewise.
10823         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10824         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10825         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10826
10827         ffs: fix m4 prerequisite
10828         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10829
10830         ffs: avoid undefined behavior
10831         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10832         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10833         Reported by Bruno Haible.
10834
10835 2011-07-12  Bruno Haible  <bruno@clisp.org>
10836
10837         pthread_sigmask: Rely on module 'threadlib'.
10838         * modules/pthread_sigmask (Depends-on): Add threadlib.
10839         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10840         is defined.
10841
10842 2011-07-12  Bruno Haible  <bruno@clisp.org>
10843
10844         regex: Depend on module 'strcase'.
10845         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10846
10847 2011-07-12  Jim Meyering  <meyering@redhat.com>
10848
10849         warn-on-use: fix typo in file name
10850         * modules/snippet/warn-on-use (Files): Correct file name:
10851         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10852
10853 2011-07-12  Bruno Haible  <bruno@clisp.org>
10854
10855         strings: Document module.
10856         * doc/posix-headers/strings.texi: Mention module 'strings'.
10857
10858 2011-07-12  Bruno Haible  <bruno@clisp.org>
10859
10860         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10861         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10862         (Files, Makefile.am): Update.
10863         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10864         * modules/stdlib (Depends-on): Update.
10865
10866 2011-07-12  Bruno Haible  <bruno@clisp.org>
10867
10868         * NEWS: Mention the changes.
10869
10870         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10871         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10872         (Files, Makefile.am): Update.
10873         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10874         * modules/arpa_inet (Depends-on): Update.
10875         * modules/ctype (Depends-on): Update.
10876         * modules/dirent (Depends-on): Update.
10877         * modules/fcntl-h (Depends-on): Update.
10878         * modules/glob (Depends-on): Update.
10879         * modules/iconv-h (Depends-on): Update.
10880         * modules/inttypes-incomplete (Depends-on): Update.
10881         * modules/langinfo (Depends-on): Update.
10882         * modules/locale (Depends-on): Update.
10883         * modules/math (Depends-on): Update.
10884         * modules/netdb (Depends-on): Update.
10885         * modules/poll-h (Depends-on): Update.
10886         * modules/pty (Depends-on): Update.
10887         * modules/search (Depends-on): Update.
10888         * modules/signal (Depends-on): Update.
10889         * modules/spawn (Depends-on): Update.
10890         * modules/stdio (Depends-on): Update.
10891         * modules/stdlib (Depends-on): Update.
10892         * modules/string (Depends-on): Update.
10893         * modules/strings (Depends-on): Update.
10894         * modules/sys_file (Depends-on): Update.
10895         * modules/sys_ioctl (Depends-on): Update.
10896         * modules/sys_select (Depends-on): Update.
10897         * modules/sys_socket (Depends-on): Update.
10898         * modules/sys_stat (Depends-on): Update.
10899         * modules/sys_time (Depends-on): Update.
10900         * modules/sys_times (Depends-on): Update.
10901         * modules/sys_utsname (Depends-on): Update.
10902         * modules/sys_wait (Depends-on): Update.
10903         * modules/termios (Depends-on): Update.
10904         * modules/time (Depends-on): Update.
10905         * modules/unistd (Depends-on): Update.
10906         * modules/wchar (Depends-on): Update.
10907         * modules/wctype-h (Depends-on): Update.
10908         * MODULES.html.sh (Support for building libraries and executables):
10909         Update.
10910
10911         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10912         * modules/snippet/unused-parameter: Renamed from
10913         modules/unused-parameter.
10914         (Files, Makefile.am): Update.
10915         * build-aux/snippet/unused-parameter.h: Renamed from
10916         build-aux/unused-parameter.h.
10917         * modules/selinux-h (Depends-on): Update.
10918         * modules/unistr/base (Depends-on): Update.
10919         * MODULES.html.sh (Core language properties): Update.
10920
10921         Rename module 'link-warning' to 'snippet/link-warning'.
10922         * modules/snippet/link-warning: Renamed from modules/link-warning.
10923         (Files, Makefile.am): Update.
10924         * build-aux/snippet/link-warning.h: Renamed from
10925         build-aux/link-warning.h.
10926         * MODULES.html.sh (Support for building libraries and executables):
10927         Update.
10928
10929         Rename module 'c++defs' to 'snippet/c++defs'.
10930         * modules/snippet/c++defs: Renamed from modules/c++defs.
10931         (Files, Makefile.am): Update.
10932         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10933         * modules/arpa_inet (Depends-on): Update.
10934         * modules/ctype (Depends-on): Update.
10935         * modules/dirent (Depends-on): Update.
10936         * modules/fcntl-h (Depends-on): Update.
10937         * modules/glob (Depends-on): Update.
10938         * modules/iconv-h (Depends-on): Update.
10939         * modules/langinfo (Depends-on): Update.
10940         * modules/locale (Depends-on): Update.
10941         * modules/math (Depends-on): Update.
10942         * modules/netdb (Depends-on): Update.
10943         * modules/poll-h (Depends-on): Update.
10944         * modules/pty (Depends-on): Update.
10945         * modules/search (Depends-on): Update.
10946         * modules/signal (Depends-on): Update.
10947         * modules/spawn (Depends-on): Update.
10948         * modules/stdio (Depends-on): Update.
10949         * modules/stdlib (Depends-on): Update.
10950         * modules/string (Depends-on): Update.
10951         * modules/strings (Depends-on): Update.
10952         * modules/sys_ioctl (Depends-on): Update.
10953         * modules/sys_select (Depends-on): Update.
10954         * modules/sys_socket (Depends-on): Update.
10955         * modules/sys_stat (Depends-on): Update.
10956         * modules/sys_time (Depends-on): Update.
10957         * modules/sys_wait (Depends-on): Update.
10958         * modules/termios (Depends-on): Update.
10959         * modules/time (Depends-on): Update.
10960         * modules/unistd (Depends-on): Update.
10961         * modules/wchar (Depends-on): Update.
10962         * modules/wctype-h (Depends-on): Update.
10963
10964         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10965         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10966         (Files, Makefile.am): Update.
10967         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10968         * modules/argv-iter (Depends-on): Update.
10969         * modules/arpa_inet (Depends-on): Update.
10970         * modules/dirent (Depends-on): Update.
10971         * modules/fcntl-h (Depends-on): Update.
10972         * modules/fnmatch (Depends-on): Update.
10973         * modules/getopt-posix (Depends-on): Update.
10974         * modules/glob (Depends-on): Update.
10975         * modules/iconv-h (Depends-on): Update.
10976         * modules/inttypes-incomplete (Depends-on): Update.
10977         * modules/locale (Depends-on): Update.
10978         * modules/math (Depends-on): Update.
10979         * modules/netdb (Depends-on): Update.
10980         * modules/search (Depends-on): Update.
10981         * modules/signal (Depends-on): Update.
10982         * modules/spawn (Depends-on): Update.
10983         * modules/stdio (Depends-on): Update.
10984         * modules/stdlib (Depends-on): Update.
10985         * modules/string (Depends-on): Update.
10986         * modules/strings (Depends-on): Update.
10987         * modules/sys_socket (Depends-on): Update.
10988         * modules/sys_stat (Depends-on): Update.
10989         * modules/sys_time (Depends-on): Update.
10990         * modules/sys_times (Depends-on): Update.
10991         * modules/sys_utsname (Depends-on): Update.
10992         * modules/time (Depends-on): Update.
10993         * modules/unistd (Depends-on): Update.
10994         * modules/wchar (Depends-on): Update.
10995         * MODULES.html.sh (Support for building libraries and executables):
10996         Update.
10997
10998 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10999
11000         Improvements on _Noreturn and related modules.
11001
11002         modules/_Exit-tests: test _Noreturn too
11003         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11004         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11005         (main): Use them.
11006
11007         stdnoreturn, stdnoreturn-tests: remove modules
11008         They're not needed here and a bit premature for use elsewhere.  See
11009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11010         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11011         * tests/test-stdnoreturn.c: Remove files.
11012         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11013         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11014         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11015         and using noreturn.
11016         * modules/openat, modules/sigpipe-die, modules/xalloc:
11017         * modules/xmemdup0, modules/xstrtol:
11018         Remove dependency on stdnoreturn.
11019
11020         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11021         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11022         Reparenthesize to avoid GCC warning.
11023         Support Microsoft's syntax.
11024         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11025
11026         _Noreturn-tests: remove module
11027         * modules/_Noreturn-tests: Remove.
11028         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11029         * tests/test-_Noreturn.c: Remove.
11030         * tests/test-stdnoreturn.c: Merge from the old
11031         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11032
11033 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11034
11035         _Noreturn, stdnoreturn, and related modules.
11036
11037         * top/maint.mk: Adjust to new noreturn support.
11038         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11039         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11040
11041         xalloc: use stdnoreturn.h
11042         * lib/xalloc.h: Include <stdnoreturn.h>.
11043         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11044         * modules/xalloc (Depends-on): Add stdnoreturn.
11045
11046         xstrtol: use stdnoreturn.h
11047         * lib/xstrtol.h: Include <stdnoreturn.h>.
11048         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11049         * modules/xstrtol (Depends-on): Add stdnoreturn.
11050
11051         xmemdup0: use stdnoreturn.h
11052         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11053         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11054         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11055
11056         sigpipe-die: use stdnoreturn.h
11057         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11058         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11059         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11060
11061         openat: use stdnoreturn.h
11062         * lib/openat.h: Include <stdnoreturn.h>.
11063         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11064         * modules/openat (Depends-on): Add stdnoreturn.
11065
11066         * lib/openat-die.c (openat_save_fail): Modernize comment.
11067
11068         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11069
11070         * lib/glthread/thread.h: Modernize comment.
11071
11072         obstack: use _Noreturn
11073         * lib/obstack.c (__attribute__): Remove macro.
11074         (print_and_abort): Use _Noreturn.
11075
11076         c-stack: use _Noreturn
11077         * lib/c-stack.c (die, overflow_handler, segv_handler):
11078         Use _Noreturn rather than __attribute__((noreturn)).
11079
11080         argmatch-tests, exclude_tests: use _Noreturn
11081         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11082         Remove.
11083         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11084
11085         stdlib: use _Noreturn
11086         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11087         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11088         * modules/stdlib (Depends-on): Add _Noreturn.
11089         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11090
11091         stdnoreturn-tests: new module
11092         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11093
11094         stdnoreturn: new module
11095         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11096         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11097
11098         _Noreturn-tests: new module
11099         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11100
11101         _Noreturn: new module
11102         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11103         New section, mentioning it.
11104         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11105
11106         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11107
11108 2011-07-11  Eric Blake  <eblake@redhat.com>
11109
11110         ffs: new module
11111         * modules/ffs: New file.
11112         * m4/ffs.m4: Likewise.
11113         * lib/ffs.c: Likewise.
11114         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11115         * modules/strings (Makefile.am): Substitute witness.
11116         (Depends-on): Add c++defs.
11117         * lib/strings.in.h (ffs): Declare.
11118         * modules/ffs-tests: New test file.
11119         * tests/test-ffs.c: Test new module.
11120         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11121         * doc/posix-functions/ffs.texi (ffs): Likewise.
11122
11123         regex: avoid compiler warning
11124         * lib/regex.c (includes): Include <strings.h>, for use of
11125         strcasecmp in regcomp.c.
11126         Reported by Joachim Schmitz.
11127
11128 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11129
11130         stdint: respect system's intmax_t if INTMAX_MAX
11131         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11132         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11133         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11134         long but int64_t is long long, and where we will clash with the
11135         system intmax_t if we override it.  See
11136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11137         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11138         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11139         similarly for UINTMAX_C.
11140
11141 2011-07-08  Bruno Haible  <bruno@clisp.org>
11142
11143         pthread_sigmask tests: Avoid a compiler warning.
11144         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11145         non-zero.
11146
11147         sigprocmask tests: A better way to avoid a compiler warning.
11148         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11149         (main): Complain if system() returns non-zero.
11150         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11151
11152 2011-07-08  Bruno Haible  <bruno@clisp.org>
11153
11154         pthread_sigmask: Work around IRIX bug.
11155         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11156         bug.
11157         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11158         there may be unblocked pending signals.
11159         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11160
11161 2011-07-08  Bruno Haible  <bruno@clisp.org>
11162
11163         pthread_sigmask: Work around Cygwin bug.
11164         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11165         bug.
11166         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11167         the system's pthread_sigmask function.
11168         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11169
11170 2011-07-08  Bruno Haible  <bruno@clisp.org>
11171
11172         pthread_sigmask: Work around bug in single-threaded implementation.
11173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11174         FreeBSD, HP-UX, Solaris bug.
11175         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11176         * lib/pthread_sigmask.c: Include <stddef.h>.
11177         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11178         the system's pthread_sigmask function.
11179         * modules/pthread_sigmask (configure.ac): Invoke
11180         gl_PREREQ_PTHREAD_SIGMASK.
11181         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11182         HP-UX, Solaris.
11183
11184 2011-07-08  Eric Blake  <eblake@redhat.com>
11185
11186         test-sigprocmask: avoid compiler warning
11187         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11188         * tests/test-sigprocmask.c (main): Use it to silence warning.
11189         Reported by Jim Meyering.
11190
11191         test-snprintf: avoid compiler warning
11192         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11193         * tests/test-vsnprintf.c (main): Likewise.
11194         Reported by Jim Meyering.
11195
11196 2011-07-08  Bruno Haible  <bruno@clisp.org>
11197
11198         Tests for module 'pthread_sigmask'.
11199         * modules/pthread_sigmask-tests: New file.
11200         * tests/test-pthread_sigmask1.c: New file, based on
11201         tests/test-sigprocmask.c.
11202         * tests/test-pthread_sigmask2.c: New file.
11203
11204 2011-07-08  Jim Meyering  <meyering@redhat.com>
11205
11206         test-getopt.h: avoid warning about an unused variable
11207         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11208
11209 2011-07-07  Jim Meyering  <meyering@redhat.com>
11210
11211         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11212         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11213         now that it no longer contains leading TABs.
11214         Remove unused "url=FIXME" statement.
11215
11216 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11219         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11220         When gl_THREADLIB is not in use, assume that the POSIX sematics
11221         are desired.  This is better for Emacs, which uses POSIX semantics
11222         on GNUish and/or POSIXish platforms, and does not use threads at
11223         all otherwise.
11224
11225         pthread_sigmask: fix typo when testing for libraries
11226         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11227         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11228
11229 2011-07-08  Eric Blake  <eblake@redhat.com>
11230
11231         fts: introduce FTS_NOATIME
11232         * lib/fts_.h (FTS_NOATIME): New bit flag.
11233         (FTS_OPTIONMASK): Adjust.
11234         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11235         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11236
11237 2011-07-08  Bruno Haible  <bruno@clisp.org>
11238
11239         Tests for module 'thread'.
11240         * modules/thread-tests: New file.
11241         * tests/test-thread_self.c: New file.
11242         * tests/test-thread_create.cc: New file.
11243
11244 2011-07-08  Bruno Haible  <bruno@clisp.org>
11245
11246         thread: Avoid gcc warnings when using gl_thread_self().
11247         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11248         'void *'.
11249         (gl_thread_self_pointer): Update.
11250
11251 2011-07-07  Bruno Haible  <bruno@clisp.org>
11252
11253         signal-c++-tests: Check declaration of pthread_sigmask.
11254         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11255         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11256         $(LIB_PTHREAD_SIGMASK).
11257
11258 2011-07-07  Bruno Haible  <bruno@clisp.org>
11259
11260         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11261         * lib/signal.in.h (pthread_sigmask): Override if
11262         REPLACE_PTHREAD_SIGMASK is 1.
11263         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11264         REPLACE_PTHREAD_SIGMASK.
11265         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11266         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11267         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11268         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11269         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11270
11271 2011-07-07  Bruno Haible  <bruno@clisp.org>
11272
11273         pthread_sigmask: Ensure declaration in <signal.h>.
11274         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11275         include <pthread.h>.
11276         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11277         problem.
11278
11279 2011-07-07  Bruno Haible  <bruno@clisp.org>
11280
11281         pthread_sigmask: Document the module.
11282         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11283
11284 2011-07-07  Bruno Haible  <bruno@clisp.org>
11285
11286         pthread_sigmask: Follow gnulib conventions.
11287         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11288         gl_PTHREAD_SIGMASK.
11289         * modules/pthread_sigmask (configure.ac): Update.
11290
11291 2011-07-07  Bruno Haible  <bruno@clisp.org>
11292
11293         pthread_sigmask: Make declaration C++ safe.
11294         * lib/signal.in.h: In two special conditions, just do an #include_next.
11295         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11296         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11298         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11299         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11300         not REPLACE_PTHREAD_MASK.
11301         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11302         not REPLACE_PTHREAD_MASK.
11303         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11304
11305 2011-07-07  Bruno Haible  <bruno@clisp.org>
11306
11307         pthread_sigmask: Fix return value.
11308         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11309         * lib/pthread_sigmask.c: New file.
11310         * modules/pthread_sigmask (Files): Add it.
11311         (configure.ac): Invoke AC_LIBOBJ.
11312
11313 2011-07-07  Eric Blake  <eblake@redhat.com>
11314
11315         getopt: more portable argv creation
11316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11317         const, use char arrays rather than strings.
11318         Suggested by Paul Eggert.
11319
11320 2011-07-07  Bruno Haible  <bruno@clisp.org>
11321
11322         Tests for module 'sigprocmask'.
11323         * modules/sigprocmask-tests: New file.
11324         * tests/test-sigprocmask.c: New file.
11325
11326 2011-07-07  Bruno Haible  <bruno@clisp.org>
11327
11328         float tests: Tweak.
11329         * tests/test-float.c (main): Tweak skip message.
11330
11331 2011-07-07  Eric Blake  <eblake@redhat.com>
11332
11333         getopt: avoid compiler warning during configure
11334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11335         assigning string literals to non-const pointer.
11336
11337         getopt-gnu: avoid crash in glibc getopt
11338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11339         * tests/test-getopt.h (test_getopt): Enhance test.
11340         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11341         * doc/posix-functions/getopt.texi (getopt): Document it.
11342         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11343         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11344         Likewise.
11345
11346 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11347
11348         getopt: handle W; without long options in getopt [BZ #12922]
11349         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11350         but no long options are defined, just return 'W'.
11351
11352 2011-07-07  Bruno Haible  <bruno@clisp.org>
11353
11354         Avoid literal tabs.
11355         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11356         variable containing a tab instead of a literal tab.
11357         Reported by Jim Meyering.
11358
11359 2011-07-07  Bruno Haible  <bruno@clisp.org>
11360
11361         Comments.
11362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11363
11364 2011-07-06  Bruno Haible  <bruno@clisp.org>
11365
11366         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11367         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11368         <winsock2.h>.
11369         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11370         lib/sys_socket.in.h.
11371         (close, gethostname): Hide declarations from <winsock2.h>.
11372         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11373         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11374         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11375         (select): Don't override if gnulib's <sys/select.h> was already
11376         included.
11377         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11378         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11379         setsockopt, shutdown, select): Tweak indentation.
11380
11381 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11382
11383         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11384         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11385         in an application that does not use the sys_select module.
11386
11387 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11388
11389         poll: do not return 0 on timeout=-1
11390         * lib/poll.c: Loop with yield if no events occured
11391
11392 2011-07-06  Eric Blake  <eblake@redhat.com>
11393
11394         pthread_sigmask: always replace when not using pthread
11395         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11396         replacement when using some threading other than pthread.  Fix
11397         logic bug.
11398
11399 2011-07-06  Bruno Haible  <bruno@clisp.org>
11400
11401         Comments.
11402         * m4/printf.m4: Update comments about mingw.
11403
11404 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11405
11406         sys_select: define sigset_t more portably
11407         * lib/sys_select.in.h: Always include <sys/types.h>, since
11408         we now need sigset_t and mingw defines it there.
11409         Include <signal.h> before split inclusion guard, to avoid
11410         mishaps on Solaris, whose <signal.h> eventually includes us.
11411         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11412         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11413         which come from ...
11414         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11415         gl_CHECK_TYPE_SIGSET_T.
11416         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11417         does the real work.
11418         * modules/sys_select (Depends-on): Add 'signal'.
11419
11420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11421         Suggested by Bruno Haible.
11422
11423         pselect: Use pthread_sigmask, not sigprocmask.
11424         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11425         multithreaded apps better than sigprocmask does.
11426         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11427         sigprocmask directly.
11428
11429 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11430
11431         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11432         Don't #undef,  since we don't need any underlying pselect.
11433         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11434         (Depends-on): Add select.
11435         (Link): Add $(LIBSOCKET).
11436         These changes suggested by Bruno Haible.
11437
11438         pselect: document better
11439         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11440         * doc/posix-functions/pselect.texi (pselect): Document new module.
11441
11442         pthread_sigmask: new module
11443         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11444         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11445         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11446         This is done only as a macro; I don't know how well that'll
11447         work for C++.  Move <sys/types.h> include before the include_next,
11448         to avoid mishap on Solaris.
11449         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11450         * modules/signal (Makefile.am): Substitute the check's results.
11451         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11452
11453         test-pselect: new module
11454         * modules/pselect-tests, tests/test-pselect.c: New files.
11455         * tests/test-select.c, tests/test-sys_select-c++.cc:
11456         If TEST_PSELECT is defined, test pselect instead of testing select.
11457
11458         * tests/test-sys_select.c (sigset_t): Test for it, too.
11459         Suggested by Bruno Haible.
11460
11461 2011-07-05  Eric Blake  <eblake@redhat.com>
11462
11463         snprintf: guarantee %1$d, for libintl
11464         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11465         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11466         * doc/posix-functions/snprintf.texi (snprintf): Update.
11467         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11468         * tests/test-snprintf.c (main): Enhance test.
11469         * tests/test-vsnprintf.c (main): Likewise.
11470
11471 2011-07-05  Jim Meyering  <meyering@redhat.com>
11472
11473         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11474         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11475         per Bruno's request, to accommodate this idiom (no space after "#")
11476         even when the function is inside an #if block:
11477         char *
11478         gets (char *s)
11479         #undef gets
11480         {
11481           ...
11482         }
11483
11484 2011-07-04  Jim Meyering  <meyering@redhat.com>
11485
11486         maint: indent with spaces, not TABs, and add a rule to check this
11487         * tests/test-userspec.c: Indent with spaces, not TABs.
11488         * tests/test-argp.c: Likewise.
11489         * tests/test-c-stack2.sh: Likewise.
11490         * tests/test-parse-duration.sh: Likewise
11491         * m4/strtod.m4: Likewise.
11492         * m4/alloca.m4: Likewise.
11493         * m4/pselect.m4: Likewise.
11494         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11495
11496 2011-07-03  Jim Meyering  <meyering@redhat.com>
11497
11498         maint.mk: correct omissions in prohibit_argmatch_without_use check
11499         This rule would mistakenly report that argmatch.h is included without
11500         use even when both the argmatch and invalid_arg macro were used.
11501         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11502         of argmatch and invalid_arg.
11503
11504 2011-07-03  Bruno Haible  <bruno@clisp.org>
11505
11506         Comments about EINTR.
11507         * lib/safe-read.h: Explain the purpose of this module.
11508         * lib/safe-write.h: Likewise.
11509         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11510         module.
11511         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11512         module.
11513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11514
11515 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11516
11517         xnanosleep: Rewrite to use new dtotimespec module.
11518         It has the conversion code that used to be in xnanosleep.
11519         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11520         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11521         (TIME_T_MAX): Remove.
11522         (xnanosleep): Rewrite in terms of dtotimespec.
11523         * modules/xnanosleep (Depends-on): Add dtotimespec.
11524         Remove intprops, stdbool.
11525
11526         timespec-add, timespec-sub: new modules
11527         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11528         * lib/timespec-add.c, lib/timespec-sub.c:
11529         * modules/timespec-add, modules/timespec-sub: New files.
11530
11531         dtotimespec: new module
11532         * lib/timespec.h (dtotimespec): New decl.
11533         * lib/dtotimespec.c, modules/dtotimespec: New files.
11534
11535         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11536
11537         pselect: new module
11538         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11539         (pselect): New decls.
11540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11541         since the standard pselect decl uses 'restrict'.
11542         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11543         HAVE_PSELECT, REPLACE_PSELECT.
11544         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11545         HAVE_PSELECT, REPLACE_PSELECT.
11546         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11547
11548         sys_select: don't depend on sys_socket
11549         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11551         This fix works on GNU and GNU-like platforms, but has not been tested
11552         on native Windows.
11553         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11554         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11555         gl_HEADER_SYS_SOCKET.
11556         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11557         gl_PREREQ_SYS_H_WINSOCK2.
11558
11559 2011-06-29  Eric Blake  <eblake@redhat.com>
11560
11561         pipe2: fix C89 compile problem
11562         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11563         Reported by Bruno Haible.
11564
11565         pipe, pipe2: don't corrupt fd on error
11566         * lib/pipe.c (pipe): Leave fd unchanged on error.
11567         * lib/pipe2.c (pipe2): Likewise.
11568         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11569         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11570
11571 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11572
11573         mmap-anon: do not use regular expressions inadvertently
11574         * m4/mmap-anon.m4: Remove trailing period from strings sought
11575         in the output.
11576
11577 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11578
11579         nanosleep: fix integer overflow problem
11580         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11581         arithmetic wraps around on overflow.
11582
11583         nanosleep: simplify carrying
11584         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11585         first call to the underyling nanosleep, not for the last one.
11586         This doesn't fix any bugs, but it simplifies the computation of
11587         the remaining delay.  Found while auditing integer overflow issues.
11588
11589         dup2: remove test for existence of fcntl
11590         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11591         "#if HAVE_FCNTL", in the configure-time test program.
11592         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11593         and therefore speeds up "configure" a bit.  Found while
11594         adding the dup2 module to Emacs.
11595
11596 2011-06-24  Eric Blake  <eblake@redhat.com>
11597
11598         maint.mk: enhance useless header checks
11599         * top/maint.mk (_sc_header_without_use): Check both include
11600         styles.
11601         (sc_prohibit_assert_without_use)
11602         (sc_prohibit_close_stream_without_use)
11603         (sc_prohibit_getopt_without_use)
11604         (sc_prohibit_quotearg_without_use)
11605         (sc_prohibit_quote_without_use)
11606         (sc_prohibit_long_options_without_use)
11607         (sc_prohibit_inttostr_without_use)
11608         (sc_prohibit_ignore_value_without_use)
11609         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11610         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11611         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11612         (sc_prohibit_hash_pjw_without_use)
11613         (sc_prohibit_safe_read_without_use)
11614         (sc_prohibit_argmatch_without_use)
11615         (sc_prohibit_canonicalize_without_use)
11616         (sc_prohibit_root_dev_ino_without_use)
11617         (sc_prohibit_openat_without_use)
11618         (sc_prohibit_c_ctype_without_use)
11619         (sc_prohibit_signal_without_use)
11620         (sc_prohibit_stdio--_without_use)
11621         (sc_prohibit_stdio-safer_without_use)
11622         (sc_prohibit_strings_without_use)
11623         (sc_prohibit_intprops_without_use)
11624         (sc_prohibit_stddef_without_use)
11625         (sc_prohibit_xfreopen_without_use): Update clients.
11626
11627 2011-06-24  Jim Meyering  <meyering@redhat.com>
11628
11629         syntax-check: keep one maint.mk rule in sync with its header
11630         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11631         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11632         I prefer to avoid temporary files here, so use <(...), but that
11633         is not supported by /bin/sh, so...
11634         (SHELL): Define to /bin/bash.
11635
11636 2011-06-24  Eric Blake  <eblake@redhat.com>
11637
11638         maint.mk: update sc_prohibit_intprops_without_use
11639         * top/maint.mk (_intprops_names): Match recent changes.
11640
11641 2011-06-24  Bruno Haible  <bruno@clisp.org>
11642
11643         strerror-override: No-op tweak.
11644         * lib/strerror-override.h (strerror_override): Reorder conditions,
11645         for consistency with lib/strerror-override.c.
11646
11647 2011-06-23  Eric Blake  <eblake@redhat.com>
11648
11649         maint.mk: test further PATH_MAX issues
11650         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11651         (sc_prohibit_path_max_allocation): ...and also test alloca.
11652         Suggested by Jim Meyering.
11653
11654 2011-06-22  Eric Blake  <eblake@redhat.com>
11655
11656         maint.mk: add syntax-check to avoid char[PATH_MAX]
11657         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11658
11659         stat: be robust to PATH_MAX definition
11660         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11661         * modules/stat (Depends-on): Add verify.
11662
11663         link: work around IRIX bug
11664         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11665         * lib/link.c (rpl_link): Work around it.
11666         * tests/test-link.h (test_link): Enhance test.
11667         * doc/posix-functions/link.texi (link): Document the bug.
11668
11669         getopt: silence clang warning
11670         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11671         dereference.
11672         Reported by Gustavo Martin Domato.
11673
11674 2011-06-22  Jim Meyering  <meyering@redhat.com>
11675
11676         bootstrap: do not insert a blank line into each .gitignore file
11677         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11678
11679 2011-06-21  Eric Blake  <eblake@redhat.com>
11680
11681         perror: test for output mismatch
11682         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11683         perror on IRIX.
11684
11685         strerror_r: fix OpenBSD behavior on out-of-range
11686         * lib/strerror_r.c (strerror_r): Always use maximal string.
11687         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11688
11689         strerror_r: fix OpenBSD behavior on 0
11690         * lib/strerror-override.c (strerror_override): Also override 0
11691         when needed.
11692         * lib/strerror-override.h (strerror_override): Likewise.
11693         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11694         earlier.
11695         * lib/strerror_r.c (strerror_r): Likewise.
11696         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11697         behavior...
11698         (gl_FUNC_STRERROR_0): ...into new macro.
11699         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11700         is overridden.
11701         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11702         * modules/strerror-override (Files): Add strerror.m4.
11703         (configure.ac): Also provide override for 0 when needed.
11704         * doc/posix-functions/strerror.texi (strerror): Document this.
11705         * doc/posix-functions/perror.texi (perror): Likewise.
11706
11707         perror: adjust array size
11708         * modules/perror (Depends-on): Add strerror-override.
11709         * lib/perror.c (perror): Use it to avoid magic number.
11710
11711         strerror-override: reduce size
11712         * lib/strerror-override.c (strerror_override): Use fewer lines.
11713
11714 2011-06-20  Bruno Haible  <bruno@clisp.org>
11715
11716         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11717         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11718
11719 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11720
11721         alloca: port to compilers that can optimize like GCC 4.6.0
11722         * lib/alloca.c (find_stack_direction): New signature, taken from
11723         Autoconf git.  This works with GCC 4.6.0.  This code should never
11724         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11725         be used with other compilers that optimize as well as GCC 4.6.0 does.
11726         (alloca): Adjust to new signature.
11727         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11728         New macro, which patches Autoconf in a similar way.
11729
11730         c-stack: stop worrying about stack direction
11731         * lib/c-stack.c (find_stack_direction): Remove.
11732         (segv_handler): Don't worry about stack direction growth, as it's
11733         too much of a pain to configure this correctly, given how compilers
11734         are optimizing-away our stack-growth detection code.  Instead, assume
11735         that any access to just before or just after the stack is OK.
11736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11737         Don't require AC_FUNC_ALLOCA; no longer needed.
11738
11739 2011-06-20  Eric Blake  <eblake@redhat.com>
11740
11741         test-stat: don't allocate PATH_MAX bytes
11742         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11743         PATH_MAX-sized buffer.
11744         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11745         * modules/stat-tests (Depends-on): Likewise.
11746         * tests/test-fstatat.c (includes): Drop pathmax.h.
11747         * tests/test-stat.c (includes): Likewise.
11748         Reported by Bruno Haible.
11749
11750 2011-06-20  Bruno Haible  <bruno@clisp.org>
11751
11752         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11753         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11754         * lib/float.c: New file.
11755         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11756         REPLACE_FLOAT_LDBL.
11757         * modules/float (Files): Add lib/float.c.
11758         (configure.ac): Invoke AC_LIBOBJ.
11759         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11760
11761 2011-06-20  Bruno Haible  <bruno@clisp.org>
11762
11763         Tests for module 'float'.
11764         * modules/float-tests: New file.
11765         * tests/test-float.c: New file.
11766
11767 2011-06-19  Bruno Haible  <bruno@clisp.org>
11768
11769         isinf: Coding style.
11770         * lib/isinf.c: Use GNU coding style.
11771
11772 2011-06-19  Bruno Haible  <bruno@clisp.org>
11773
11774         linkat test: Avoid test failure on AIX 7.1.
11775         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11776         * tests/test-link.h (test_link): Likewise.
11777
11778 2011-06-19  Bruno Haible  <bruno@clisp.org>
11779
11780         pread test: Avoid test failure on OpenBSD 4.9.
11781         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11782
11783 2011-06-19  Bruno Haible  <bruno@clisp.org>
11784
11785         sprintf-posix: Fix test failure on AIX 7.1.
11786         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11787         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11788         on AIX.
11789         * doc/posix-functions/fprintf.texi: Likewise.
11790         * doc/posix-functions/printf.texi: Likewise.
11791         * doc/posix-functions/snprintf.texi: Likewise.
11792         * doc/posix-functions/sprintf.texi: Likewise.
11793         * doc/posix-functions/vdprintf.texi: Likewise.
11794         * doc/posix-functions/vfprintf.texi: Likewise.
11795         * doc/posix-functions/vprintf.texi: Likewise.
11796         * doc/posix-functions/vsnprintf.texi: Likewise.
11797         * doc/posix-functions/vsprintf.texi: Likewise.
11798
11799 2011-06-19  Bruno Haible  <bruno@clisp.org>
11800
11801         roundl-ieee: Fix test failure on AIX 7.1.
11802         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11803         * doc/posix-functions/roundl.texi: Mention problem with negative
11804         arguments.
11805
11806 2011-06-19  Bruno Haible  <bruno@clisp.org>
11807
11808         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11809         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11810         * doc/posix-functions/round.texi: Mention problem with negative
11811         arguments.
11812         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11813
11814 2011-06-19  Bruno Haible  <bruno@clisp.org>
11815
11816         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11817         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11818         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11819         * doc/posix-functions/roundf.texi: Mention problem with negative
11820         arguments.
11821         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11822
11823 2011-06-19  Bruno Haible  <bruno@clisp.org>
11824
11825         ceilf-ieee: Work around bug on MacOS X 10.5.
11826         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11827
11828         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11829         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11830         IEEE compliant, avoid compiler optimizations.
11831         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11832         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11833         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11834         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11835         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11836         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11837         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11838         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11839         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11840         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11841
11842 2011-06-19  Bruno Haible  <bruno@clisp.org>
11843
11844         ceilf-ieee: Work around bug on AIX 7.1.
11845         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11846         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11847
11848 2011-06-19  Bruno Haible  <bruno@clisp.org>
11849
11850         ceil-ieee: Work around bug on AIX 7.1.
11851         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11852         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11853
11854 2011-06-18  Bruno Haible  <bruno@clisp.org>
11855
11856         fsync test: Avoid test failure on MacOS X and AIX.
11857         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11858         EINVAL.
11859
11860 2011-06-18  Bruno Haible  <bruno@clisp.org>
11861
11862         openat, fdopendir tests: Fix link errors.
11863         * modules/openat-tests (Depends-on): Add progname.
11864         * modules/fdopendir-tests (Depends-on): Likewise.
11865         * tests/test-fchownat.c: Include progname.h.
11866         (main): Call set_program_name.
11867         * tests/test-fstatat.c: Include progname.h.
11868         (main): Call set_program_name.
11869         * tests/test-mkdirat.c: Include progname.h.
11870         (main): Call set_program_name.
11871         * tests/test-openat.c: Include progname.h.
11872         (main): Call set_program_name.
11873         * tests/test-unlinkat.c: Include progname.h.
11874         (main): Call set_program_name.
11875         * tests/test-fdopendir.c: Include progname.h.
11876         (main): Call set_program_name.
11877
11878 2011-06-18  Bruno Haible  <bruno@clisp.org>
11879
11880         Doc update.
11881         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11882         HP-UX.
11883         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11884
11885 2011-06-18  Bruno Haible  <bruno@clisp.org>
11886
11887         getcwd tests: Avoid compilation error on HP-UX 11.31.
11888         * modules/getcwd-tests (Depends-on): Add pathmax.
11889         * tests/test-getcwd.c: Include pathmax.h.
11890
11891 2011-06-18  Bruno Haible  <bruno@clisp.org>
11892
11893         isfinite, isinf: Fix link error on AIX 6 and 7.
11894         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11895         needed, also test the macro with a 'float' argument.
11896         * m4/isinf.m4 (gl_ISINF): Likewise.
11897
11898 2011-06-18  Bruno Haible  <bruno@clisp.org>
11899
11900         getloadavg: Don't clobber LIBS. Regression from previous commit.
11901         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11902         AC_CHECK_LIB from here...
11903         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11904         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11905         gl_func_getloadavg_done.
11906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11907
11908 2011-06-18  Bruno Haible  <bruno@clisp.org>
11909
11910         clean-temp: Improve documentation.
11911         * lib/clean-temp.h: Explain better how to use this module.
11912         Reported by John Darrington <john@darrington.wattle.id.au>.
11913
11914 2011-06-17  Bruno Haible  <bruno@clisp.org>
11915
11916         pread, pwrite: Avoid cc warning on AIX.
11917         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11918         (pwrite): Likewise.
11919
11920 2011-06-17  Bruno Haible  <bruno@clisp.org>
11921
11922         spawn-pipe tests: Fix link error.
11923         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11925
11926 2011-06-17  Bruno Haible  <bruno@clisp.org>
11927
11928         Tests: Remove unnecessary dependency.
11929         * modules/canonicalize-tests (Depends-on): Remove progname.
11930         * modules/chown-tests (Depends-on): Likewise.
11931         * modules/dirname-tests (Depends-on): Likewise.
11932         * modules/fdopendir-tests (Depends-on): Likewise.
11933         * modules/fdutimensat-tests (Depends-on): Likewise.
11934         * modules/hash-tests (Depends-on): Likewise.
11935         * modules/lchown-tests (Depends-on): Likewise.
11936         * modules/linkat-tests (Depends-on): Likewise.
11937         * modules/renameat-tests (Depends-on): Likewise.
11938         * modules/spawn-pipe-tests (Depends-on): Likewise.
11939         * modules/utimensat-tests (Depends-on): Likewise.
11940
11941 2011-06-17  Bruno Haible  <bruno@clisp.org>
11942
11943         spawn-pipe tests: Fix link error.
11944         * tests/test-spawn-pipe-child.c: Undefine fflush.
11945
11946 2011-06-17  Bruno Haible  <bruno@clisp.org>
11947
11948         Fix tests link errors.
11949         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11950         * modules/chown-tests (Makefile.am): Don't link test-chown with
11951         LIBINTL.
11952         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11953         LIBINTL.
11954         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11955         LIBINTL.
11956         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11957         LIBINTL.
11958
11959 2011-06-16  Bruno Haible  <bruno@clisp.org>
11960
11961         crypto/gc-sha1: Fix recent regression.
11962         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11963         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11964
11965         crypto/gc-md5: Fix recent regression.
11966         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11967
11968         crypto/gc-md4: Fix recent regression.
11969         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11970         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11971
11972         crypto/gc-arctwo: Fix recent regression.
11973         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11974         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11975
11976         crypto/gc-rijndael: Fix recent regression.
11977         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11978         (configure.ac): Invoke AC_LIBOBJ here.
11979         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11981
11982         crypto/gc-hmac-sha1: Fix recent regression.
11983         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11984         (configure.ac): Invoke AC_LIBOBJ here.
11985         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11987
11988         crypto/gc-hmac-md5: Fix recent regression.
11989         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11990         (configure.ac): Invoke AC_LIBOBJ here.
11991         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11993
11994         crypto/gc-des: Fix recent regression.
11995         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11996         (configure.ac): Invoke AC_LIBOBJ here.
11997         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11999
12000         crypto/gc-arcfour: Fix recent regression.
12001         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12002         (configure.ac): Invoke AC_LIBOBJ here.
12003         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12005
12006 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12009         After the 2011-05-21 change, this macro requires
12010         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12011         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12012
12013 2011-06-16  Bruno Haible  <bruno@clisp.org>
12014
12015         fprintftime: Move AC_LIBOBJ invocations to module description.
12016         * m4/fprintftime.m4: Remove file.
12017         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12018         (configure.ac): Remove gl_FPRINTFTIME call.
12019         (Makefile.am): Augment lib_SOURCES.
12020         Reported by Jim Meyering.
12021
12022 2011-06-16  Bruno Haible  <bruno@clisp.org>
12023
12024         tmpfile-safer: Finish 2011-05-23 commit.
12025         * m4/stdio-safer.m4: Really remove file.
12026         Reported by Jim Meyering.
12027
12028 2011-06-16  Bruno Haible  <bruno@clisp.org>
12029
12030         syntax-check: Fix typo.
12031         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12032         printf-posix.m4.
12033         Reported by Jim Meyering.
12034
12035 2011-06-13  Jim Meyering  <meyering@redhat.com>
12036
12037         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12038         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12039
12040 2011-05-23  Bruno Haible  <bruno@clisp.org>
12041
12042         yesno: Move AC_LIBOBJ invocations to module description.
12043         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12044         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12045
12046 2011-05-23  Bruno Haible  <bruno@clisp.org>
12047
12048         xstrtol: Move AC_LIBOBJ invocations to module description.
12049         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12050         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12051
12052 2011-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         xstrtold: Move AC_LIBOBJ invocations to module description.
12055         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12056         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12057
12058 2011-05-23  Bruno Haible  <bruno@clisp.org>
12059
12060         xstrtod: Move AC_LIBOBJ invocations to module description.
12061         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12062         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12063
12064 2011-05-23  Bruno Haible  <bruno@clisp.org>
12065
12066         xnanosleep: Move AC_LIBOBJ invocations to module description.
12067         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12068         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12069
12070 2011-05-23  Bruno Haible  <bruno@clisp.org>
12071
12072         xgetcwd: Move AC_LIBOBJ invocations to module description.
12073         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12074         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12075
12076 2011-05-23  Bruno Haible  <bruno@clisp.org>
12077
12078         xalloc: Move AC_LIBOBJ invocations to module description.
12079         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12080         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12081
12082 2011-05-23  Bruno Haible  <bruno@clisp.org>
12083
12084         write-any-file: Move AC_LIBOBJ invocations to module description.
12085         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12086         invocation.
12087         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12088
12089 2011-05-23  Bruno Haible  <bruno@clisp.org>
12090
12091         utimens: Move AC_LIBOBJ invocations to module description.
12092         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12093         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12094
12095 2011-05-23  Bruno Haible  <bruno@clisp.org>
12096
12097         utimecmp: Move AC_LIBOBJ invocations to module description.
12098         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12099         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12100
12101 2011-05-23  Bruno Haible  <bruno@clisp.org>
12102
12103         userspec: Move AC_LIBOBJ invocations to module description.
12104         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12105         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12106
12107 2011-05-23  Bruno Haible  <bruno@clisp.org>
12108
12109         unlinkdir: Move AC_LIBOBJ invocations to module description.
12110         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12111         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12112
12113 2011-05-23  Bruno Haible  <bruno@clisp.org>
12114
12115         unistd-safer: Move AC_LIBOBJ invocations to module description.
12116         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12117         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12118
12119 2011-05-23  Bruno Haible  <bruno@clisp.org>
12120
12121         tempname: Move AC_LIBOBJ invocations to module description.
12122         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12123         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12124
12125 2011-05-23  Bruno Haible  <bruno@clisp.org>
12126
12127         strftime: Move AC_LIBOBJ invocations to module description.
12128         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12129         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12130
12131 2011-05-23  Bruno Haible  <bruno@clisp.org>
12132
12133         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12134         * m4/stdlib-safer.m4: Remove file.
12135         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12136         (configure.ac): Remove gl_STDLIB_SAFER call.
12137         (Makefile.am): Augment lib_SOURCES.
12138
12139 2011-05-23  Bruno Haible  <bruno@clisp.org>
12140
12141         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12142         * m4/stdio-safer.m4: Remove file.
12143         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12144         (configure.ac): Remove gl_TMPFILE_SAFER call.
12145         (Makefile.am): Augment lib_SOURCES.
12146
12147 2011-05-23  Bruno Haible  <bruno@clisp.org>
12148
12149         popen-safer: Move AC_LIBOBJ invocations to module description.
12150         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12151         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12152         (configure.ac): Remove gl_POPEN_SAFER call.
12153         (Makefile.am): Augment lib_SOURCES.
12154
12155 2011-05-23  Bruno Haible  <bruno@clisp.org>
12156
12157         freopen-safer: Move AC_LIBOBJ invocations to module description.
12158         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12159         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12160         (configure.ac): Remove gl_FREOPEN_SAFER call.
12161         (Makefile.am): Augment lib_SOURCES.
12162
12163 2011-05-23  Bruno Haible  <bruno@clisp.org>
12164
12165         fopen-safer: Move AC_LIBOBJ invocations to module description.
12166         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12167         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12168         (configure.ac): Remove gl_FOPEN_SAFER call.
12169         (Makefile.am): Augment lib_SOURCES.
12170
12171 2011-05-23  Bruno Haible  <bruno@clisp.org>
12172
12173         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12174         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12175         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12176
12177 2011-05-23  Bruno Haible  <bruno@clisp.org>
12178
12179         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12180         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12181         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12186         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12187         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12188
12189 2011-05-23  Bruno Haible  <bruno@clisp.org>
12190
12191         settime: Move AC_LIBOBJ invocations to module description.
12192         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12193         * modules/settime (Makefile.am): Augment lib_SOURCES.
12194
12195 2011-05-23  Bruno Haible  <bruno@clisp.org>
12196
12197         savedir: Move AC_LIBOBJ invocations to module description.
12198         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12199         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12200
12201 2011-05-23  Bruno Haible  <bruno@clisp.org>
12202
12203         save-cwd: Move AC_LIBOBJ invocations to module description.
12204         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12205         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12206
12207 2011-05-23  Bruno Haible  <bruno@clisp.org>
12208
12209         same: Move AC_LIBOBJ invocations to module description.
12210         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12211         * modules/same (Makefile.am): Augment lib_SOURCES.
12212
12213 2011-05-23  Bruno Haible  <bruno@clisp.org>
12214
12215         safe-write: Move AC_LIBOBJ invocations to module description.
12216         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12217         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12218         instead of gl_SAFE_WRITE.
12219         (Makefile.am): Augment lib_SOURCES.
12220
12221 2011-05-23  Bruno Haible  <bruno@clisp.org>
12222
12223         safe-read: Move AC_LIBOBJ invocations to module description.
12224         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12225         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12226         of gl_SAFE_READ.
12227         (Makefile.am): Augment lib_SOURCES.
12228
12229 2011-05-23  Bruno Haible  <bruno@clisp.org>
12230
12231         safe-alloc: Move AC_LIBOBJ invocations to module description.
12232         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12233         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12234
12235 2011-05-23  Bruno Haible  <bruno@clisp.org>
12236
12237         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12238         * m4/rijndael.m4: Remove file.
12239         * modules/crypto/rijndael (Files): Remove it.
12240         (configure.ac): Remove gl_RIJNDAEL call.
12241         (Makefile.am): Augment lib_SOURCES.
12242
12243 2011-05-23  Bruno Haible  <bruno@clisp.org>
12244
12245         readtokens: Move AC_LIBOBJ invocations to module description.
12246         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12247         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12248
12249 2011-05-23  Bruno Haible  <bruno@clisp.org>
12250
12251         read-file: Move AC_LIBOBJ invocations to module description.
12252         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12253         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12254         of gl_FUNC_READ_FILE.
12255         (Makefile.am): Augment lib_SOURCES.
12256
12257 2011-05-23  Bruno Haible  <bruno@clisp.org>
12258
12259         quotearg: Move AC_LIBOBJ invocations to module description.
12260         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12261         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12262
12263 2011-05-23  Bruno Haible  <bruno@clisp.org>
12264
12265         quote: Move AC_LIBOBJ invocations to module description.
12266         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12267         * modules/quote (Makefile.am): Augment lib_SOURCES.
12268
12269 2011-05-23  Bruno Haible  <bruno@clisp.org>
12270
12271         posixver: Move AC_LIBOBJ invocations to module description.
12272         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12273         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12274
12275 2011-05-23  Bruno Haible  <bruno@clisp.org>
12276
12277         posixtm: Move AC_LIBOBJ invocations to module description.
12278         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12279         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         physmem: Move AC_LIBOBJ invocations to module description.
12284         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12285         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12290         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12291         invocation.
12292         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12293
12294 2011-05-23  Bruno Haible  <bruno@clisp.org>
12295
12296         mpsort: Move AC_LIBOBJ invocations to module description.
12297         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12298         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12299
12300 2011-05-23  Bruno Haible  <bruno@clisp.org>
12301
12302         modechange: Move AC_LIBOBJ invocations to module description.
12303         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12304         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12305
12306 2011-05-23  Bruno Haible  <bruno@clisp.org>
12307
12308         mkdir-p: Move AC_LIBOBJ invocations to module description.
12309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12310         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12311
12312 2011-05-23  Bruno Haible  <bruno@clisp.org>
12313
12314         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12315         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12316         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12317
12318 2011-05-23  Bruno Haible  <bruno@clisp.org>
12319
12320         mgetgroups: Move AC_LIBOBJ invocations to module description.
12321         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12322         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12323
12324 2011-05-23  Bruno Haible  <bruno@clisp.org>
12325
12326         memxor: Move AC_LIBOBJ invocations to module description.
12327         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12328         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12329
12330 2011-05-23  Bruno Haible  <bruno@clisp.org>
12331
12332         memcoll: Move AC_LIBOBJ invocations to module description.
12333         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12334         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12335
12336 2011-05-23  Bruno Haible  <bruno@clisp.org>
12337
12338         memcasecmp: Move AC_LIBOBJ invocations to module description.
12339         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12340         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12341
12342 2011-05-23  Bruno Haible  <bruno@clisp.org>
12343
12344         crypto/md5: Move AC_LIBOBJ invocations to module description.
12345         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12346         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12347
12348 2011-05-23  Bruno Haible  <bruno@clisp.org>
12349
12350         crypto/md4: Move AC_LIBOBJ invocations to module description.
12351         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12352         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12353
12354 2011-05-23  Bruno Haible  <bruno@clisp.org>
12355
12356         crypto/md2: Move AC_LIBOBJ invocations to module description.
12357         * m4/md2.m4: Remove file.
12358         * modules/crypto/md2 (Files): Remove it.
12359         (configure.ac): Remove gl_MD2 call.
12360         (Makefile.am): Augment lib_SOURCES.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         long-options: Move AC_LIBOBJ invocations to module description.
12365         * m4/long-options.m4: Remove file.
12366         * modules/long-options (Files): Remove it.
12367         (configure.ac): Remove gl_LONG_OPTIONS call.
12368         (Makefile.am): Augment lib_SOURCES.
12369
12370 2011-05-23  Bruno Haible  <bruno@clisp.org>
12371
12372         i-ring: Move AC_LIBOBJ invocations to module description.
12373         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12374         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12375
12376 2011-05-23  Bruno Haible  <bruno@clisp.org>
12377
12378         idcache: Move AC_LIBOBJ invocations to module description.
12379         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12380         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         human: Move AC_LIBOBJ invocations to module description.
12385         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12386         * modules/human (Makefile.am): Augment lib_SOURCES.
12387
12388 2011-05-23  Bruno Haible  <bruno@clisp.org>
12389
12390         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12391         * m4/hmac-sha1.m4: Remove file.
12392         * modules/crypto/hmac-sha1 (Files): Remove it.
12393         (configure.ac): Remove gl_HMAC_SHA1 call.
12394         (Makefile.am): Augment lib_SOURCES.
12395
12396 2011-05-23  Bruno Haible  <bruno@clisp.org>
12397
12398         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12399         * m4/hmac-md5.m4: Remove file.
12400         * modules/crypto/hmac-md5 (Files): Remove it.
12401         (configure.ac): Remove gl_HMAC_MD5 call.
12402         (Makefile.am): Augment lib_SOURCES.
12403
12404 2011-05-23  Bruno Haible  <bruno@clisp.org>
12405
12406         hash: Move AC_LIBOBJ invocations to module description.
12407         * m4/hash.m4: Remove file.
12408         * modules/hash (Files): Remove it.
12409         (configure.ac): Remove gl_HASH call.
12410         (Makefile.am): Augment lib_SOURCES.
12411
12412 2011-05-23  Bruno Haible  <bruno@clisp.org>
12413
12414         hard-locale: Move AC_LIBOBJ invocations to module description.
12415         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12416         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12417
12418 2011-05-23  Bruno Haible  <bruno@clisp.org>
12419
12420         getugroups: Move AC_LIBOBJ invocations to module description.
12421         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12422         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12423
12424 2011-05-23  Bruno Haible  <bruno@clisp.org>
12425
12426         gettime: Move AC_LIBOBJ invocations to module description.
12427         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12428         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12429
12430 2011-05-23  Bruno Haible  <bruno@clisp.org>
12431
12432         getndelim2: Move AC_LIBOBJ invocations to module description.
12433         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12434         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12435
12436 2011-05-23  Bruno Haible  <bruno@clisp.org>
12437
12438         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12439         * m4/gc-pbkdf2-sha1.m4: Remove file.
12440         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12441         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12442         (Makefile.am): Augment lib_SOURCES.
12443
12444 2011-05-23  Bruno Haible  <bruno@clisp.org>
12445
12446         fts: Move AC_LIBOBJ invocations to module description.
12447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12448         * modules/fts (configure.ac): ... to here.
12449
12450 2011-05-23  Bruno Haible  <bruno@clisp.org>
12451
12452         file-type: Move AC_LIBOBJ invocations to module description.
12453         * m4/file-type.m4: Remove file.
12454         * modules/file-type (Files): Remove it.
12455         (configure.ac): Remove gl_FILE_TYPE call.
12456         (Makefile.am): Augment lib_SOURCES.
12457
12458 2011-05-23  Bruno Haible  <bruno@clisp.org>
12459
12460         filenamecat*: Respect rules for use of AC_LIBOBJ.
12461         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12462         Remove AC_LIBOBJ invocation.
12463         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12464         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12465
12466 2011-05-23  Bruno Haible  <bruno@clisp.org>
12467
12468         filemode: Move AC_LIBOBJ invocations to module description.
12469         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12470         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12471
12472 2011-05-23  Bruno Haible  <bruno@clisp.org>
12473
12474         openat-safer: Move AC_LIBOBJ invocations to module description.
12475         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12476         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12477
12478 2011-05-23  Bruno Haible  <bruno@clisp.org>
12479
12480         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12481         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12482         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12483
12484 2011-05-23  Bruno Haible  <bruno@clisp.org>
12485
12486         exclude: Move AC_LIBOBJ invocations to module description.
12487         * m4/exclude.m4: Remove file.
12488         * modules/exclude (Files): Remove it.
12489         (configure.ac): Remove gl_EXCLUDE call.
12490         (Makefile.am): Augment lib_SOURCES.
12491
12492 2011-05-23  Bruno Haible  <bruno@clisp.org>
12493
12494         dirname*: Respect rules for use of AC_LIBOBJ.
12495         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12496         invocations.
12497         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12498         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12499
12500 2011-05-23  Bruno Haible  <bruno@clisp.org>
12501
12502         dirent-safer: Move AC_LIBOBJ invocations to module description.
12503         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12504         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12505
12506 2011-05-23  Bruno Haible  <bruno@clisp.org>
12507
12508         crypto/des: Move AC_LIBOBJ invocations to module description.
12509         * m4/des.m4: Remove file.
12510         * modules/crypto/des (Files): Remove it.
12511         (configure.ac): Remove gl_DES call.
12512         (Makefile.am): Augment lib_SOURCES.
12513
12514 2011-05-23  Bruno Haible  <bruno@clisp.org>
12515
12516         cycle-check: Move AC_LIBOBJ invocations to module description.
12517         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12518         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12519
12520 2011-05-23  Bruno Haible  <bruno@clisp.org>
12521
12522         c-strtold: Move AC_LIBOBJ invocations to module description.
12523         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12524         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12525
12526 2011-05-23  Bruno Haible  <bruno@clisp.org>
12527
12528         c-strtod: Move AC_LIBOBJ invocations to module description.
12529         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12530         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12531
12532 2011-05-23  Bruno Haible  <bruno@clisp.org>
12533
12534         crc: Move AC_LIBOBJ invocations to module description.
12535         * m4/crc.m4: Remove file.
12536         * modules/crc (Files): Remove it.
12537         (configure.ac): Remove gl_CRC call.
12538         (Makefile.am): Augment lib_SOURCES.
12539
12540 2011-05-23  Bruno Haible  <bruno@clisp.org>
12541
12542         close-stream: Move AC_LIBOBJ invocations to module description.
12543         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12544         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12545
12546 2011-05-23  Bruno Haible  <bruno@clisp.org>
12547
12548         closeout: Move AC_LIBOBJ invocations to module description.
12549         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12550         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         closein: Move AC_LIBOBJ invocations to module description.
12555         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12556         * modules/closein (Makefile.am): Augment lib_SOURCES.
12557
12558 2011-05-23  Bruno Haible  <bruno@clisp.org>
12559
12560         cloexec: Move AC_LIBOBJ invocations to module description.
12561         * m4/cloexec.m4: Remove file.
12562         * modules/cloexec (Files): Remove it.
12563         (configure.ac): Remove gl_CLOEXEC call.
12564         (Makefile.am): Augment lib_SOURCES.
12565
12566 2011-05-23  Bruno Haible  <bruno@clisp.org>
12567
12568         check-version: Move AC_LIBOBJ invocations to module description.
12569         * m4/check-version.m4: Remove file.
12570         * modules/check-version (Files): Remove it.
12571         (configure.ac): Remove gl_CHECK_VERSION call.
12572         (Makefile.am): Augment lib_SOURCES.
12573
12574 2011-05-23  Bruno Haible  <bruno@clisp.org>
12575
12576         chdir-safer: Move AC_LIBOBJ invocations to module description.
12577         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12578         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12579
12580 2011-05-23  Bruno Haible  <bruno@clisp.org>
12581
12582         canonicalize: Move AC_LIBOBJ invocations to module description.
12583         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12584         AC_LIBOBJ invocation.
12585         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12586
12587 2011-05-23  Bruno Haible  <bruno@clisp.org>
12588
12589         canon-host: Move AC_LIBOBJ invocations to module description.
12590         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12591         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12592         instead of gl_CANON_HOST.
12593         (Makefile.am): Augment lib_SOURCES.
12594
12595 2011-05-23  Bruno Haible  <bruno@clisp.org>
12596
12597         backupfile: Move AC_LIBOBJ invocations to module description.
12598         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12599         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12600
12601 2011-05-23  Bruno Haible  <bruno@clisp.org>
12602
12603         argmatch: Move AC_LIBOBJ invocations to module description.
12604         * m4/argmatch.m4: Remove file.
12605         * modules/argmatch (Files): Remove it.
12606         (configure.ac): Remove gl_ARGMATCH call.
12607         (Makefile.am): Augment lib_SOURCES.
12608
12609 2011-05-23  Bruno Haible  <bruno@clisp.org>
12610
12611         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12612         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12613         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12614
12615 2011-05-23  Bruno Haible  <bruno@clisp.org>
12616
12617         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12618         * m4/arcfour.m4: Remove file.
12619         * modules/crypto/arcfour (Files): Remove it.
12620         (configure.ac): Remove gl_ARCFOUR call.
12621         (Makefile.am): Augment lib_SOURCES.
12622
12623 2011-05-22  Bruno Haible  <bruno@clisp.org>
12624
12625         write: Move AC_LIBOBJ invocations to module description.
12626         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12627         * modules/write (configure.ac): ... to here.
12628
12629 2011-05-22  Bruno Haible  <bruno@clisp.org>
12630
12631         wmemset: Move AC_LIBOBJ invocations to module description.
12632         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12633         here...
12634         * modules/wmemset (configure.ac): ... to here.
12635
12636 2011-05-22  Bruno Haible  <bruno@clisp.org>
12637
12638         wmemmove: Move AC_LIBOBJ invocations to module description.
12639         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12640         here...
12641         * modules/wmemmove (configure.ac): ... to here.
12642
12643 2011-05-22  Bruno Haible  <bruno@clisp.org>
12644
12645         wmemcpy: Move AC_LIBOBJ invocations to module description.
12646         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12647         here...
12648         * modules/wmemcpy (configure.ac): ... to here.
12649
12650 2011-05-22  Bruno Haible  <bruno@clisp.org>
12651
12652         wmemcmp: Move AC_LIBOBJ invocations to module description.
12653         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12654         here...
12655         * modules/wmemcmp (configure.ac): ... to here.
12656
12657 2011-05-22  Bruno Haible  <bruno@clisp.org>
12658
12659         wmemchr: Move AC_LIBOBJ invocations to module description.
12660         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12661         here...
12662         * modules/wmemchr (configure.ac): ... to here.
12663
12664 2011-05-22  Bruno Haible  <bruno@clisp.org>
12665
12666         wcswidth: Move AC_LIBOBJ invocations to module description.
12667         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12668         here...
12669         * modules/wcswidth (configure.ac): ... to here.
12670
12671 2011-05-22  Bruno Haible  <bruno@clisp.org>
12672
12673         wcwidth: Respect rules for use of AC_LIBOBJ.
12674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12675         invocation from here...
12676         * modules/wcwidth (configure.ac): ... to here.
12677         (Depends-on): Update conditions.
12678
12679 2011-05-22  Bruno Haible  <bruno@clisp.org>
12680
12681         wctype: Move AC_LIBOBJ invocations to module description.
12682         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12683         invocation from here...
12684         * modules/wctype (configure.ac): ... to here.
12685         (Depends-on): Update conditions.
12686
12687 2011-05-22  Bruno Haible  <bruno@clisp.org>
12688
12689         wctrans: Move AC_LIBOBJ invocations to module description.
12690         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12691         invocation from here...
12692         * modules/wctrans (configure.ac): ... to here.
12693
12694 2011-05-22  Bruno Haible  <bruno@clisp.org>
12695
12696         wctomb: Move AC_LIBOBJ invocations to module description.
12697         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12698         invocations from here...
12699         * modules/wctomb (configure.ac): ... to here.
12700
12701 2011-05-22  Bruno Haible  <bruno@clisp.org>
12702
12703         wctob: Move AC_LIBOBJ invocations to module description.
12704         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12705         gl_PREREQ_WCTOB invocations from here...
12706         * modules/wctob (configure.ac): ... to here.
12707         (Depends-on): Update conditions.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12712         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12713         here...
12714         * modules/wcsxfrm (configure.ac): ... to here.
12715
12716 2011-05-22  Bruno Haible  <bruno@clisp.org>
12717
12718         wcstok: Move AC_LIBOBJ invocations to module description.
12719         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12720         * modules/wcstok (configure.ac): ... to here.
12721
12722 2011-05-22  Bruno Haible  <bruno@clisp.org>
12723
12724         wcsstr: Move AC_LIBOBJ invocations to module description.
12725         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12726         * modules/wcsstr (configure.ac): ... to here.
12727
12728 2011-05-22  Bruno Haible  <bruno@clisp.org>
12729
12730         wcsspn: Move AC_LIBOBJ invocations to module description.
12731         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12732         * modules/wcsspn (configure.ac): ... to here.
12733
12734 2011-05-22  Bruno Haible  <bruno@clisp.org>
12735
12736         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12737         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12738         gl_PREREQ_WCSRTOMBS invocations from here...
12739         * modules/wcsrtombs (configure.ac): ... to here.
12740
12741 2011-05-22  Bruno Haible  <bruno@clisp.org>
12742
12743         wcsrchr: Move AC_LIBOBJ invocations to module description.
12744         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12745         here...
12746         * modules/wcsrchr (configure.ac): ... to here.
12747
12748 2011-05-22  Bruno Haible  <bruno@clisp.org>
12749
12750         wcspbrk: Move AC_LIBOBJ invocations to module description.
12751         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12752         here...
12753         * modules/wcspbrk (configure.ac): ... to here.
12754
12755 2011-05-22  Bruno Haible  <bruno@clisp.org>
12756
12757         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12758         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12759         gl_PREREQ_WCSNRTOMBS invocations from here...
12760         * modules/wcsnrtombs (configure.ac): ... to here.
12761
12762 2011-05-22  Bruno Haible  <bruno@clisp.org>
12763
12764         wcsnlen: Move AC_LIBOBJ invocations to module description.
12765         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12766         here...
12767         * modules/wcsnlen (configure.ac): ... to here.
12768
12769 2011-05-22  Bruno Haible  <bruno@clisp.org>
12770
12771         wcsncpy: Move AC_LIBOBJ invocations to module description.
12772         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12773         here...
12774         * modules/wcsncpy (configure.ac): ... to here.
12775
12776 2011-05-22  Bruno Haible  <bruno@clisp.org>
12777
12778         wcsncmp: Move AC_LIBOBJ invocations to module description.
12779         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12780         here...
12781         * modules/wcsncmp (configure.ac): ... to here.
12782
12783 2011-05-22  Bruno Haible  <bruno@clisp.org>
12784
12785         wcsncat: Move AC_LIBOBJ invocations to module description.
12786         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12787         here...
12788         * modules/wcsncat (configure.ac): ... to here.
12789
12790 2011-05-22  Bruno Haible  <bruno@clisp.org>
12791
12792         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12793         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12794         from here...
12795         * modules/wcsncasecmp (configure.ac): ... to here.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         wcslen: Move AC_LIBOBJ invocations to module description.
12800         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12801         * modules/wcslen (configure.ac): ... to here.
12802
12803 2011-05-22  Bruno Haible  <bruno@clisp.org>
12804
12805         wcsdup: Move AC_LIBOBJ invocations to module description.
12806         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12807         * modules/wcsdup (configure.ac): ... to here.
12808
12809 2011-05-22  Bruno Haible  <bruno@clisp.org>
12810
12811         wcscspn: Move AC_LIBOBJ invocations to module description.
12812         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12813         here...
12814         * modules/wcscspn (configure.ac): ... to here.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         wcscpy: Move AC_LIBOBJ invocations to module description.
12819         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12820         * modules/wcscpy (configure.ac): ... to here.
12821
12822 2011-05-22  Bruno Haible  <bruno@clisp.org>
12823
12824         wcscoll: Move AC_LIBOBJ invocations to module description.
12825         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12826         here...
12827         * modules/wcscoll (configure.ac): ... to here.
12828
12829 2011-05-22  Bruno Haible  <bruno@clisp.org>
12830
12831         wcscmp: Move AC_LIBOBJ invocations to module description.
12832         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12833         * modules/wcscmp (configure.ac): ... to here.
12834
12835 2011-05-22  Bruno Haible  <bruno@clisp.org>
12836
12837         wcschr: Move AC_LIBOBJ invocations to module description.
12838         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12839         * modules/wcschr (configure.ac): ... to here.
12840
12841 2011-05-22  Bruno Haible  <bruno@clisp.org>
12842
12843         wcscat: Move AC_LIBOBJ invocations to module description.
12844         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12845         * modules/wcscat (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12850         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12851         here...
12852         * modules/wcscasecmp (configure.ac): ... to here.
12853
12854 2011-05-22  Bruno Haible  <bruno@clisp.org>
12855
12856         wcrtomb: Move AC_LIBOBJ invocations to module description.
12857         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12858         invocations from here...
12859         * modules/wcrtomb (configure.ac): ... to here.
12860
12861 2011-05-22  Bruno Haible  <bruno@clisp.org>
12862
12863         wcpncpy: Move AC_LIBOBJ invocations to module description.
12864         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12865         here...
12866         * modules/wcpncpy (configure.ac): ... to here.
12867
12868 2011-05-22  Bruno Haible  <bruno@clisp.org>
12869
12870         wcpcpy: Move AC_LIBOBJ invocations to module description.
12871         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12872         * modules/wcpcpy (configure.ac): ... to here.
12873
12874 2011-05-22  Bruno Haible  <bruno@clisp.org>
12875
12876         waitpid: Move AC_LIBOBJ invocations to module description.
12877         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12878         invocation from here...
12879         * modules/waitpid (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         utimensat: Move AC_LIBOBJ invocations to module description.
12884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12885         here...
12886         * modules/utimensat (configure.ac): ... to here.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         usleep: Move AC_LIBOBJ invocations to module description.
12891         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12892         here...
12893         * modules/usleep (configure.ac): ... to here.
12894
12895 2011-05-22  Bruno Haible  <bruno@clisp.org>
12896
12897         unlockpt: Move AC_LIBOBJ invocations to module description.
12898         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12899         gl_PREREQ_UNLOCKPT invocations from here...
12900         * modules/unlockpt (configure.ac): ... to here.
12901
12902 2011-05-22  Bruno Haible  <bruno@clisp.org>
12903
12904         unlink: Respect rules for use of AC_LIBOBJ.
12905         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12906         * modules/unlink (configure.ac): ... to here.
12907
12908 2011-05-22  Bruno Haible  <bruno@clisp.org>
12909
12910         uname: Move AC_LIBOBJ invocations to module description.
12911         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12913         here...
12914         * modules/uname (configure.ac): ... to here.
12915
12916 2011-05-22  Bruno Haible  <bruno@clisp.org>
12917
12918         ttyname_r: Move AC_LIBOBJ invocations to module description.
12919         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12920         gl_PREREQ_TTYNAME_R invocations from here...
12921         * modules/ttyname_r (configure.ac): ... to here.
12922
12923 2011-05-22  Bruno Haible  <bruno@clisp.org>
12924
12925         tsearch: Move AC_LIBOBJ invocations to module description.
12926         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12927         invocations from here...
12928         * modules/tsearch (configure.ac): ... to here.
12929
12930 2011-05-22  Bruno Haible  <bruno@clisp.org>
12931
12932         towctrans: Move AC_LIBOBJ invocations to module description.
12933         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12934         AC_LIBOBJ invocation from here...
12935         * modules/towctrans (configure.ac): ... to here.
12936
12937 2011-05-22  Bruno Haible  <bruno@clisp.org>
12938
12939         tmpfile: Move AC_LIBOBJ invocations to module description.
12940         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12941         invocations from here...
12942         * modules/tmpfile (configure.ac): ... to here.
12943
12944 2011-05-22  Bruno Haible  <bruno@clisp.org>
12945
12946         times: Move AC_LIBOBJ invocations to module description.
12947         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12948         * modules/times (configure.ac): ... to here.
12949
12950 2011-05-22  Bruno Haible  <bruno@clisp.org>
12951
12952         time_r: Move AC_LIBOBJ invocations to module description.
12953         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12954         invocations from here...
12955         * modules/time_r (configure.ac): ... to here.
12956
12957 2011-05-22  Bruno Haible  <bruno@clisp.org>
12958
12959         timegm: Move AC_LIBOBJ invocations to module description.
12960         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12961         invocations from here...
12962         * modules/timegm (configure.ac): ... to here.
12963
12964 2011-05-22  Bruno Haible  <bruno@clisp.org>
12965
12966         tcgetsid: Move AC_LIBOBJ invocations to module description.
12967         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12968         and gl_PREREQ_TCGETSID invocations from here...
12969         * modules/tcgetsid (configure.ac): ... to here.
12970         (Depends-on): Update conditions.
12971
12972 2011-05-22  Bruno Haible  <bruno@clisp.org>
12973
12974         symlinkat: Move AC_LIBOBJ invocations to module description.
12975         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12976         here...
12977         * modules/symlinkat (configure.ac): ... to here.
12978
12979 2011-05-22  Bruno Haible  <bruno@clisp.org>
12980
12981         symlink: Move AC_LIBOBJ invocations to module description.
12982         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12983         here...
12984         * modules/symlink (configure.ac): ... to here.
12985
12986 2011-05-22  Bruno Haible  <bruno@clisp.org>
12987
12988         strverscmp: Move AC_LIBOBJ invocations to module description.
12989         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12991         from here...
12992         * modules/strverscmp (configure.ac): ... to here.
12993
12994 2011-05-22  Bruno Haible  <bruno@clisp.org>
12995
12996         strtok_r: Move AC_LIBOBJ invocations to module description.
12997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12998         and gl_PREREQ_STRTOK_R invocations from here...
12999         * modules/strtok_r (configure.ac): ... to here.
13000         (Depends-on): Update conditions.
13001
13002 2011-05-22  Bruno Haible  <bruno@clisp.org>
13003
13004         strtoumax: Move AC_LIBOBJ invocations to module description.
13005         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13006         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13007         from here...
13008         * modules/strtoumax (configure.ac): ... to here.
13009
13010 2011-05-22  Bruno Haible  <bruno@clisp.org>
13011
13012         strtoimax: Move AC_LIBOBJ invocations to module description.
13013         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13015         from here...
13016         * modules/strtoimax (configure.ac): ... to here.
13017
13018 2011-05-22  Bruno Haible  <bruno@clisp.org>
13019
13020         strtoull: Move AC_LIBOBJ invocations to module description.
13021         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13023         from here...
13024         * modules/strtoull (configure.ac): ... to here.
13025
13026 2011-05-22  Bruno Haible  <bruno@clisp.org>
13027
13028         strtoll: Move AC_LIBOBJ invocations to module description.
13029         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13031         here...
13032         * modules/strtoll (configure.ac): ... to here.
13033
13034 2011-05-22  Bruno Haible  <bruno@clisp.org>
13035
13036         strtoul: Move AC_LIBOBJ invocations to module description.
13037         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13038         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13039         * modules/strtoul (configure.ac): ... to here.
13040
13041 2011-05-22  Bruno Haible  <bruno@clisp.org>
13042
13043         strtol: Move AC_LIBOBJ invocations to module description.
13044         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13045         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13046         * modules/strtol (configure.ac): ... to here.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         strtod: Move AC_LIBOBJ invocations to module description.
13051         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13052         invocations from here...
13053         * modules/strtod (configure.ac): ... to here.
13054
13055 2011-05-22  Bruno Haible  <bruno@clisp.org>
13056
13057         strstr*: Move AC_LIBOBJ invocations to module description.
13058         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13059         invocations from here...
13060         * modules/strstr-simple (configure.ac): ... to here.
13061         * modules/strstr (configure.ac): ... and here.
13062
13063 2011-05-22  Bruno Haible  <bruno@clisp.org>
13064
13065         strsignal: Move AC_LIBOBJ invocations to module description.
13066         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13067         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13068         * modules/strsignal (configure.ac): ... to here.
13069         (Depends-on): Update conditions.
13070
13071 2011-05-22  Bruno Haible  <bruno@clisp.org>
13072
13073         strsep: Move AC_LIBOBJ invocations to module description.
13074         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13076         here...
13077         * modules/strsep (configure.ac): ... to here.
13078
13079 2011-05-22  Bruno Haible  <bruno@clisp.org>
13080
13081         strptime: Move AC_LIBOBJ invocations to module description.
13082         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13083         gl_PREREQ_STRPTIME invocations from here...
13084         * modules/strptime (configure.ac): ... to here.
13085
13086 2011-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         strpbrk: Move AC_LIBOBJ invocations to module description.
13089         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13091         here...
13092         * modules/strpbrk (configure.ac): ... to here.
13093
13094 2011-05-22  Bruno Haible  <bruno@clisp.org>
13095
13096         strnlen: Move AC_LIBOBJ invocations to module description.
13097         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13098         invocations from here...
13099         * modules/strnlen (configure.ac): ... to here.
13100
13101 2011-05-22  Bruno Haible  <bruno@clisp.org>
13102
13103         strndup: Move AC_LIBOBJ invocations to module description.
13104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13105         invocations from here...
13106         * modules/strndup (configure.ac): ... to here.
13107         (Depends-on): Update conditions.
13108
13109 2011-05-22  Bruno Haible  <bruno@clisp.org>
13110
13111         strncat: Move AC_LIBOBJ invocations to module description.
13112         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13113         invocations from here...
13114         * modules/strncat (configure.ac): ... to here.
13115
13116 2011-05-22  Bruno Haible  <bruno@clisp.org>
13117
13118         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13119         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13120         invocations from here...
13121         * modules/strdup (configure.ac): ... to here.
13122         * modules/strdup-posix (configure.ac): ... and here.
13123
13124 2011-05-22  Bruno Haible  <bruno@clisp.org>
13125
13126         strcspn: Move AC_LIBOBJ invocations to module description.
13127         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13129         here...
13130         * modules/strcspn (configure.ac): ... to here.
13131
13132 2011-05-22  Bruno Haible  <bruno@clisp.org>
13133
13134         strchrnul: Move AC_LIBOBJ invocations to module description.
13135         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13136         gl_PREREQ_STRCHRNUL invocations from here...
13137         * modules/strchrnul (configure.ac): ... to here.
13138
13139 2011-05-22  Bruno Haible  <bruno@clisp.org>
13140
13141         strcasestr*: Move AC_LIBOBJ invocations to module description.
13142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13143         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13144         * modules/strcasestr-simple (configure.ac): ... to here.
13145         * modules/strcasestr (configure.ac): ... and here.
13146
13147 2011-05-22  Bruno Haible  <bruno@clisp.org>
13148
13149         strcase: Move AC_LIBOBJ invocations to module description.
13150         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13151         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13152         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13153         gl_PREREQ_STRNCASECMP invocations from here...
13154         * modules/strcase (configure.ac): ... to here.
13155
13156 2011-05-22  Bruno Haible  <bruno@clisp.org>
13157
13158         stpncpy: Move AC_LIBOBJ invocations to module description.
13159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13160         here...
13161         * modules/stpncpy (configure.ac): ... to here.
13162
13163 2011-05-22  Bruno Haible  <bruno@clisp.org>
13164
13165         stpcpy: Move AC_LIBOBJ invocations to module description.
13166         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13168         here...
13169         * modules/stpcpy (configure.ac): ... to here.
13170
13171 2011-05-21  Bruno Haible  <bruno@clisp.org>
13172
13173         stat: Move AC_LIBOBJ invocations to module description.
13174         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13175         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13176         here...
13177         * modules/stat (configure.ac): ... to here.
13178
13179 2011-05-21  Bruno Haible  <bruno@clisp.org>
13180
13181         sleep: Move AC_LIBOBJ invocations to module description.
13182         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13183         * modules/sleep (configure.ac): ... to here.
13184
13185 2011-05-21  Bruno Haible  <bruno@clisp.org>
13186
13187         signbit: Move AC_LIBOBJ invocations to module description.
13188         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13189         * modules/signbit (configure.ac): ... to here.
13190
13191 2011-05-21  Bruno Haible  <bruno@clisp.org>
13192
13193         sigprocmask: Move AC_LIBOBJ invocations to module description.
13194         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13195         gl_PREREQ_SIGPROMASK invocations from here...
13196         * modules/sigprocmask (configure.ac): ... to here.
13197
13198 2011-05-21  Bruno Haible  <bruno@clisp.org>
13199
13200         sigaction: Move AC_LIBOBJ invocations to module description.
13201         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13202         gl_PREREQ_SIGACTION invocations from here...
13203         * modules/sigaction (configure.ac): ... to here.
13204
13205 2011-05-21  Bruno Haible  <bruno@clisp.org>
13206
13207         sig2str: Move AC_LIBOBJ invocations to module description.
13208         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13210         here...
13211         * modules/sig2str (configure.ac): ... to here.
13212
13213 2011-05-21  Bruno Haible  <bruno@clisp.org>
13214
13215         setlocale: Move AC_LIBOBJ invocations to module description.
13216         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13217         gl_PREREQ_SETLOCALE invocations from here...
13218         * modules/setlocale (configure.ac): ... to here.
13219
13220 2011-05-21  Bruno Haible  <bruno@clisp.org>
13221
13222         unsetenv: Move AC_LIBOBJ invocations to module description.
13223         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13224         and gl_PREREQ_UNSETENV invocations from here...
13225         * modules/unsetenv (configure.ac): ... to here.
13226         (Depends-on): Update.
13227
13228 2011-05-21  Bruno Haible  <bruno@clisp.org>
13229
13230         setenv: Move AC_LIBOBJ invocations to module description.
13231         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13232         here...
13233         * modules/setenv (configure.ac): ... to here.
13234
13235 2011-05-21  Bruno Haible  <bruno@clisp.org>
13236
13237         selinux-h: Move AC_LIBOBJ invocations to module description.
13238         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13239         AC_LIBOBJ invocation from here...
13240         * modules/selinux-h (configure.ac): ... to here.
13241
13242 2011-05-21  Bruno Haible  <bruno@clisp.org>
13243
13244         select: Respect rules for use of AC_LIBOBJ.
13245         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13246         here...
13247         * modules/select (configure.ac): ... to here.
13248
13249 2011-05-21  Bruno Haible  <bruno@clisp.org>
13250
13251         scandir: Move AC_LIBOBJ invocations to module description.
13252         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13253         invocations from here...
13254         * modules/scandir (configure.ac): ... to here.
13255
13256 2011-05-21  Bruno Haible  <bruno@clisp.org>
13257
13258         rpmatch: Move AC_LIBOBJ invocations to module description.
13259         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13261         here...
13262         * modules/rpmatch (configure.ac): ... to here.
13263
13264 2011-05-21  Bruno Haible  <bruno@clisp.org>
13265
13266         rmdir: Respect rules for use of AC_LIBOBJ.
13267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13268         * modules/rmdir (configure.ac): ... to here.
13269
13270 2011-05-21  Bruno Haible  <bruno@clisp.org>
13271
13272         renameat: Move AC_LIBOBJ invocations to module description.
13273         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13274         here...
13275         * modules/renameat (configure.ac): ... to here.
13276
13277 2011-05-21  Bruno Haible  <bruno@clisp.org>
13278
13279         rename: Respect rules for use of AC_LIBOBJ.
13280         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13281         here...
13282         * modules/rename (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         remove: Move AC_LIBOBJ invocations to module description.
13287         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13288         here...
13289         * modules/remove (configure.ac): ... to here.
13290
13291 2011-05-21  Bruno Haible  <bruno@clisp.org>
13292
13293         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13294         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13295         macro.
13296         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13297         * modules/relocatable-lib (configure.ac): ... to here.
13298         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13299         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13300
13301 2011-05-21  Bruno Haible  <bruno@clisp.org>
13302
13303         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13304         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13305         here...
13306         * modules/relocatable-prog (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         regex: Move AC_LIBOBJ invocations to module description.
13311         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13312         invocations from here...
13313         * modules/regex (configure.ac): ... to here.
13314
13315 2011-05-21  Bruno Haible  <bruno@clisp.org>
13316
13317         realloc-*: Move AC_LIBOBJ invocations to module description.
13318         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13319         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13320         AC_LIBOBJ invocations from here...
13321         * modules/realloc-gnu (configure.ac): ... to here.
13322         * modules/realloc-posix (configure.ac): ... and here.
13323
13324 2011-05-21  Bruno Haible  <bruno@clisp.org>
13325
13326         readutmp: Move AC_LIBOBJ invocations to module description.
13327         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13328         * modules/readutmp (configure.ac): ... to here.
13329
13330 2011-05-21  Bruno Haible  <bruno@clisp.org>
13331
13332         readlinkat: Move AC_LIBOBJ invocations to module description.
13333         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13334         here...
13335         * modules/readlinkat (configure.ac): ... to here.
13336
13337 2011-05-21  Bruno Haible  <bruno@clisp.org>
13338
13339         readlink: Move AC_LIBOBJ invocations to module description.
13340         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13341         gl_PREREQ_READLINK invocations from here...
13342         * modules/readlink (configure.ac): ... to here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         readline: Move AC_LIBOBJ invocations to module description.
13347         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13348         gl_PREREQ_READLINE invocations from here...
13349         * modules/readline (configure.ac): ... to here.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         read: Move AC_LIBOBJ invocations to module description.
13354         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13355         * modules/read (configure.ac): ... to here.
13356
13357 2011-05-21  Bruno Haible  <bruno@clisp.org>
13358
13359         rawmemchr: Move AC_LIBOBJ invocations to module description.
13360         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13362         from here...
13363         * modules/rawmemchr (configure.ac): ... to here.
13364
13365 2011-05-21  Bruno Haible  <bruno@clisp.org>
13366
13367         random_r: Move AC_LIBOBJ invocations to module description.
13368         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13369         gl_PREREQ_RANDOM_R invocations from here...
13370         * modules/random_r (configure.ac): ... to here.
13371
13372 2011-05-21  Bruno Haible  <bruno@clisp.org>
13373
13374         pwrite: Move AC_LIBOBJ invocations to module description.
13375         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13376         * modules/pwrite (configure.ac): ... to here.
13377
13378 2011-05-21  Bruno Haible  <bruno@clisp.org>
13379
13380         putenv: Move AC_LIBOBJ invocations to module description.
13381         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13382         * modules/putenv (configure.ac): ... to here.
13383
13384 2011-05-21  Bruno Haible  <bruno@clisp.org>
13385
13386         login_tty: Move AC_LIBOBJ invocations to module description.
13387         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13388         * modules/login_tty (configure.ac): ... to here.
13389
13390 2011-05-21  Bruno Haible  <bruno@clisp.org>
13391
13392         openpty: Move AC_LIBOBJ invocations to module description.
13393         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13394         * modules/openpty (configure.ac): ... to here.
13395
13396 2011-05-21  Bruno Haible  <bruno@clisp.org>
13397
13398         forkpty: Move AC_LIBOBJ invocations to module description.
13399         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13400         * modules/forkpty (configure.ac): ... to here.
13401
13402 2011-05-21  Bruno Haible  <bruno@clisp.org>
13403
13404         ptsname: Move AC_LIBOBJ invocations to module description.
13405         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13406         invocations from here...
13407         * modules/ptsname (configure.ac): ... to here.
13408
13409 2011-05-21  Bruno Haible  <bruno@clisp.org>
13410
13411         pread: Move AC_LIBOBJ invocations to module description.
13412         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13413         * modules/pread (configure.ac): ... to here.
13414
13415 2011-05-21  Bruno Haible  <bruno@clisp.org>
13416
13417         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13418         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13419         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13420         * modules/posix_spawn (configure.ac): ... to here.
13421         * modules/posix_spawnp (configure.ac): ... and here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         popen: Move AC_LIBOBJ invocations to module description.
13426         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13427         invocations from here...
13428         * modules/popen (configure.ac): ... to here.
13429
13430 2011-05-21  Bruno Haible  <bruno@clisp.org>
13431
13432         poll: Move AC_LIBOBJ invocations to module description.
13433         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13434         invocations from here...
13435         * modules/poll (configure.ac): ... to here.
13436
13437 2011-05-21  Bruno Haible  <bruno@clisp.org>
13438
13439         pipe-posix: Move AC_LIBOBJ invocations to module description.
13440         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13441         * modules/pipe-posix (configure.ac): ... to here.
13442
13443 2011-05-21  Bruno Haible  <bruno@clisp.org>
13444
13445         openat: Respect rules for use of AC_LIBOBJ.
13446         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13447         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13448         * modules/openat (configure.ac): ... to here.
13449
13450 2011-05-21  Bruno Haible  <bruno@clisp.org>
13451
13452         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13453         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13454         invocation from here...
13455         * modules/obstack-printf (configure.ac): ... to here.
13456         * modules/obstack-printf-posix (configure.ac): ... and here.
13457
13458 2011-05-21  Bruno Haible  <bruno@clisp.org>
13459
13460         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13461         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13462         from here...
13463         * modules/nl_langinfo (configure.ac): ... to here.
13464
13465 2011-05-21  Bruno Haible  <bruno@clisp.org>
13466
13467         nanosleep: Move AC_LIBOBJ invocations to module description.
13468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13469         gl_PREREQ_NANOSLEEP invocations from here...
13470         * modules/nanosleep (configure.ac): ... to here.
13471
13472 2011-05-21  Bruno Haible  <bruno@clisp.org>
13473
13474         mountlist: Move AC_LIBOBJ invocations to module description.
13475         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13476         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13477         * modules/mountlist (configure.ac): ... to here.
13478
13479 2011-05-21  Bruno Haible  <bruno@clisp.org>
13480
13481         mktime: Respect rules for use of AC_LIBOBJ.
13482         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13483         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13484         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13485         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13486         * modules/mktime (configure.ac): ... to here.
13487         * modules/mktime-internal (configure.ac): ... and here.
13488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13489
13490 2011-05-21  Bruno Haible  <bruno@clisp.org>
13491
13492         mkstemps: Move AC_LIBOBJ invocations to module description.
13493         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13494         here...
13495         * modules/mkstemps (configure.ac): ... to here.
13496
13497 2011-05-21  Bruno Haible  <bruno@clisp.org>
13498
13499         mkstemp: Move AC_LIBOBJ invocations to module description.
13500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13501         gl_PREREQ_MKSTEMP invocations from here...
13502         * modules/mkstemp (configure.ac): ... to here.
13503
13504 2011-05-21  Bruno Haible  <bruno@clisp.org>
13505
13506         mkostemps: Move AC_LIBOBJ invocations to module description.
13507         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13508         here...
13509         * modules/mkostemps (configure.ac): ... to here.
13510
13511 2011-05-21  Bruno Haible  <bruno@clisp.org>
13512
13513         mkostemp: Move AC_LIBOBJ invocations to module description.
13514         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13515         gl_PREREQ_MKOSTEMP invocations from here...
13516         * modules/mkostemp (configure.ac): ... to here.
13517
13518 2011-05-21  Bruno Haible  <bruno@clisp.org>
13519
13520         mknod: Move AC_LIBOBJ invocations to module description.
13521         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13522         * modules/mknod (configure.ac): ... to here.
13523
13524 2011-05-21  Bruno Haible  <bruno@clisp.org>
13525
13526         mkfifoat: Move AC_LIBOBJ invocations to module description.
13527         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13528         here...
13529         * modules/mkfifoat (configure.ac): ... to here.
13530
13531 2011-05-21  Bruno Haible  <bruno@clisp.org>
13532
13533         mkfifo: Respect rules for use of AC_LIBOBJ.
13534         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13535         here...
13536         * modules/mkfifo (configure.ac): ... to here.
13537
13538 2011-05-21  Bruno Haible  <bruno@clisp.org>
13539
13540         mkdtemp: Move AC_LIBOBJ invocations to module description.
13541         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13542         invocations from here...
13543         * modules/mkdtemp (configure.ac): ... to here.
13544
13545 2011-05-21  Bruno Haible  <bruno@clisp.org>
13546
13547         mkdir: Move AC_LIBOBJ invocations to module description.
13548         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13549         * modules/mkdir (configure.ac): ... to here.
13550
13551 2011-05-21  Bruno Haible  <bruno@clisp.org>
13552
13553         memset: Move AC_LIBOBJ invocations to module description.
13554         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13555         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13556         here...
13557         * modules/memset (configure.ac): ... to here.
13558
13559 2011-05-21  Bruno Haible  <bruno@clisp.org>
13560
13561         memrchr: Move AC_LIBOBJ invocations to module description.
13562         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13563         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13564         here...
13565         * modules/memrchr (configure.ac): ... to here.
13566
13567 2011-05-21  Bruno Haible  <bruno@clisp.org>
13568
13569         mempcpy: Move AC_LIBOBJ invocations to module description.
13570         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13571         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13572         here...
13573         * modules/mempcpy (configure.ac): ... to here.
13574
13575 2011-05-21  Bruno Haible  <bruno@clisp.org>
13576
13577         memmove: Move AC_LIBOBJ invocations to module description.
13578         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13580         here...
13581         * modules/memmove (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         memmem*: Move AC_LIBOBJ invocations to module description.
13586         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13587         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13588         here...
13589         (gl_FUNC_MEMMEM): ... and here...
13590         * modules/memmem-simple (configure.ac): ... to here.
13591         * modules/memmem (configure.ac): ... and here.
13592
13593 2011-05-21  Bruno Haible  <bruno@clisp.org>
13594
13595         memcpy: Move AC_LIBOBJ invocations to module description.
13596         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13598         here...
13599         * modules/memcpy (configure.ac): ... to here.
13600
13601 2011-05-21  Bruno Haible  <bruno@clisp.org>
13602
13603         memcmp: Simplify autoconf macro.
13604         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13605         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13606         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13607
13608 2011-05-21  Bruno Haible  <bruno@clisp.org>
13609
13610         memcmp: Move AC_LIBOBJ invocations to module description.
13611         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13612         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13613         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13614         * modules/memcmp (configure.ac): ... to here.
13615         (Depends-on): Update conditions.
13616
13617 2011-05-21  Bruno Haible  <bruno@clisp.org>
13618
13619         memchr: Respect rules for use of AC_LIBOBJ.
13620         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13621         invocations from here...
13622         * modules/memchr (configure.ac): ... to here.
13623
13624 2011-05-21  Bruno Haible  <bruno@clisp.org>
13625
13626         mbtowc: Move AC_LIBOBJ invocations to module description.
13627         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13628         invocations from here...
13629         * modules/mbtowc (configure.ac): ... to here.
13630
13631 2011-05-21  Bruno Haible  <bruno@clisp.org>
13632
13633         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13634         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13635         gl_PREREQ_MBSRTOWCS invocations from here...
13636         * modules/mbsrtowcs (configure.ac): ... to here.
13637
13638 2011-05-21  Bruno Haible  <bruno@clisp.org>
13639
13640         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13641         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13642         gl_PREREQ_MBSNRTOWCS invocations from here...
13643         * modules/mbsnrtowcs (configure.ac): ... to here.
13644
13645 2011-05-21  Bruno Haible  <bruno@clisp.org>
13646
13647         mbsinit: Move AC_LIBOBJ invocations to module description.
13648         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13649         invocations from here...
13650         * modules/mbsinit (configure.ac): ... to here.
13651
13652 2011-05-21  Bruno Haible  <bruno@clisp.org>
13653
13654         mbrlen: Move AC_LIBOBJ invocations to module description.
13655         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13656         invocations from here...
13657         * modules/mbrlen (configure.ac): ... to here.
13658
13659 2011-05-21  Bruno Haible  <bruno@clisp.org>
13660
13661         mbrtowc: Respect rules for use of AC_LIBOBJ.
13662         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13663         invocations from here...
13664         * modules/mbrtowc (configure.ac): ... to here.
13665
13666 2011-05-21  Bruno Haible  <bruno@clisp.org>
13667
13668         malloc-*: Move AC_LIBOBJ invocations to module description.
13669         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13670         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13671         AC_LIBOBJ invocations from here...
13672         * modules/malloc-gnu (configure.ac): ... to here.
13673         * modules/malloc-posix (configure.ac): ... and here.
13674
13675 2011-05-21  Bruno Haible  <bruno@clisp.org>
13676
13677         lstat, openat: Respect rules for use of AC_LIBOBJ.
13678         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13679         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13680         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13681         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13682         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13683         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13684         here.
13685         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13686
13687 2011-05-21  Bruno Haible  <bruno@clisp.org>
13688
13689         lseek: Move AC_LIBOBJ invocations to module description.
13690         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13691         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13692         * modules/lseek (configure.ac): ... to here.
13693
13694 2011-05-21  Bruno Haible  <bruno@clisp.org>
13695
13696         linkat: Move AC_LIBOBJ invocations to module description.
13697         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13698         here...
13699         * modules/linkat (configure.ac): ... to here.
13700
13701 2011-05-21  Bruno Haible  <bruno@clisp.org>
13702
13703         link: Respect rules for use of AC_LIBOBJ.
13704         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13705         * modules/link (configure.ac): ... to here.
13706
13707 2011-05-21  Bruno Haible  <bruno@clisp.org>
13708
13709         lchown: Move AC_LIBOBJ invocations to module description.
13710         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13711         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13712         * modules/lchown (configure.ac): ... to here.
13713
13714 2011-05-21  Bruno Haible  <bruno@clisp.org>
13715
13716         iswctype: Move AC_LIBOBJ invocations to module description.
13717         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13718         here...
13719         * modules/iswctype (configure.ac): ... to here.
13720
13721 2011-05-21  Bruno Haible  <bruno@clisp.org>
13722
13723         iswblank: Move AC_LIBOBJ invocations to module description.
13724         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13725         here...
13726         * modules/iswblank (configure.ac): ... to here.
13727
13728 2011-05-21  Bruno Haible  <bruno@clisp.org>
13729
13730         atanl: Move AC_LIBOBJ invocations to module description.
13731         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13732         * modules/atanl (configure.ac): ... to here.
13733
13734 2011-05-21  Bruno Haible  <bruno@clisp.org>
13735
13736         acosl: Move AC_LIBOBJ invocations to module description.
13737         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13738         * modules/acosl (configure.ac): ... to here.
13739
13740 2011-05-21  Bruno Haible  <bruno@clisp.org>
13741
13742         asinl: Respect rules for use of AC_LIBOBJ.
13743         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13744         * modules/asinl (configure.ac): ... to here.
13745
13746 2011-05-21  Bruno Haible  <bruno@clisp.org>
13747
13748         tanl: Move AC_LIBOBJ invocations to module description.
13749         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13750         * modules/tanl (configure.ac): ... to here.
13751
13752 2011-05-21  Bruno Haible  <bruno@clisp.org>
13753
13754         cosl: Move AC_LIBOBJ invocations to module description.
13755         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13756         * modules/cosl (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         sinl: Move AC_LIBOBJ invocations to module description.
13761         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13762         * modules/sinl (configure.ac): ... to here.
13763
13764 2011-05-21  Bruno Haible  <bruno@clisp.org>
13765
13766         logl: Move AC_LIBOBJ invocations to module description.
13767         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13768         * modules/logl (configure.ac): ... to here.
13769
13770 2011-05-21  Bruno Haible  <bruno@clisp.org>
13771
13772         expl: Move AC_LIBOBJ invocations to module description.
13773         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13774         * modules/expl (configure.ac): ... to here.
13775
13776 2011-05-21  Bruno Haible  <bruno@clisp.org>
13777
13778         roundl: Move AC_LIBOBJ invocations to module description.
13779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13780         * modules/roundl (configure.ac): ... to here.
13781
13782 2011-05-21  Bruno Haible  <bruno@clisp.org>
13783
13784         round: Move AC_LIBOBJ invocations to module description.
13785         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13786         * modules/round (configure.ac): ... to here.
13787
13788 2011-05-21  Bruno Haible  <bruno@clisp.org>
13789
13790         roundf: Move AC_LIBOBJ invocations to module description.
13791         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13792         * modules/roundf (configure.ac): ... to here.
13793
13794 2011-05-21  Bruno Haible  <bruno@clisp.org>
13795
13796         truncl: Move AC_LIBOBJ invocations to module description.
13797         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13798         * modules/truncl (configure.ac): ... to here.
13799
13800 2011-05-21  Bruno Haible  <bruno@clisp.org>
13801
13802         trunc: Move AC_LIBOBJ invocations to module description.
13803         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13804         * modules/trunc (configure.ac): ... to here.
13805
13806 2011-05-21  Bruno Haible  <bruno@clisp.org>
13807
13808         truncf: Move AC_LIBOBJ invocations to module description.
13809         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13810         * modules/truncf (configure.ac): ... to here.
13811
13812 2011-05-21  Bruno Haible  <bruno@clisp.org>
13813
13814         ceill: Move AC_LIBOBJ invocations to module description.
13815         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13816         * modules/ceill (configure.ac): ... to here.
13817
13818 2011-05-21  Bruno Haible  <bruno@clisp.org>
13819
13820         ceil: Move AC_LIBOBJ invocations to module description.
13821         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13822         * modules/ceil (configure.ac): ... to here.
13823
13824 2011-05-21  Bruno Haible  <bruno@clisp.org>
13825
13826         ceilf: Move AC_LIBOBJ invocations to module description.
13827         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13828         * modules/ceilf (configure.ac): ... to here.
13829
13830 2011-05-21  Bruno Haible  <bruno@clisp.org>
13831
13832         floorl: Respect rules for use of AC_LIBOBJ.
13833         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13834         * modules/floorl (configure.ac): ... to here.
13835
13836 2011-05-21  Bruno Haible  <bruno@clisp.org>
13837
13838         floor: Respect rules for use of AC_LIBOBJ.
13839         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13840         * modules/floor (configure.ac): ... to here.
13841
13842 2011-05-21  Bruno Haible  <bruno@clisp.org>
13843
13844         floorf: Move AC_LIBOBJ invocations to module description.
13845         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13846         * modules/floorf (configure.ac): ... to here.
13847
13848 2011-05-20  Bruno Haible  <bruno@clisp.org>
13849
13850         sqrtl: Respect rules for use of AC_LIBOBJ.
13851         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13852         * modules/sqrtl (configure.ac): ... to here.
13853
13854 2011-05-20  Bruno Haible  <bruno@clisp.org>
13855
13856         ldexpl: Respect rules for use of AC_LIBOBJ.
13857         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13858         * modules/ldexpl (configure.ac): ... to here.
13859
13860 2011-05-20  Bruno Haible  <bruno@clisp.org>
13861
13862         frexpl*: Respect rules for use of AC_LIBOBJ.
13863         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13864         invocation from here...
13865         * modules/frexpl (configure.ac): ... to here.
13866         * modules/frexpl-nolibm (configure.ac): ... and here.
13867
13868 2011-05-20  Bruno Haible  <bruno@clisp.org>
13869
13870         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13871         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13872         invocation from here...
13873         * modules/frexp (configure.ac): ... to here.
13874         * modules/frexp-nolibm (configure.ac): ... and here.
13875
13876 2011-05-20  Bruno Haible  <bruno@clisp.org>
13877
13878         isnan: Respect rules for use of AC_LIBOBJ.
13879         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13880         invocations here.
13881         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13882         REPLACE_ISNAN.
13883         * modules/isnand (configure.ac): Likewise.
13884         * modules/isnanl (configure.ac): Likewise.
13885
13886 2011-05-20  Bruno Haible  <bruno@clisp.org>
13887
13888         isnanl*: Respect rules for use of AC_LIBOBJ.
13889         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13890         invocation from here...
13891         * modules/isnanl (configure.ac): ... to here.
13892         * modules/isnanl-nolibm (configure.ac): ... and here.
13893
13894 2011-05-20  Bruno Haible  <bruno@clisp.org>
13895
13896         isnand*: Move AC_LIBOBJ invocations to module description.
13897         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13898         invocation from here...
13899         * modules/isnand (configure.ac): ... to here.
13900         * modules/isnand-nolibm (configure.ac): ... and here.
13901
13902 2011-05-20  Bruno Haible  <bruno@clisp.org>
13903
13904         isnanf*: Move AC_LIBOBJ invocations to module description.
13905         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13906         invocation from here...
13907         * modules/isnanf (configure.ac): ... to here.
13908         * modules/isnanf-nolibm (configure.ac): ... and here.
13909
13910 2011-05-20  Bruno Haible  <bruno@clisp.org>
13911
13912         isnan*: Separate the AC_LIBOBJ invocations.
13913         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13914         AC_LIBOBJ invocation.
13915         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13916         here.
13917         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13918         AC_LIBOBJ invocation.
13919         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13920         here.
13921         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13922         AC_LIBOBJ invocation.
13923         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13924         here.
13925         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13926
13927 2011-05-08  Bruno Haible  <bruno@clisp.org>
13928
13929         isinf: Move AC_LIBOBJ invocations to module description.
13930         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13931         * modules/isinf (configure.ac): ... to here.
13932
13933 2011-05-08  Bruno Haible  <bruno@clisp.org>
13934
13935         isfinite: Move AC_LIBOBJ invocations to module description.
13936         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13937         * modules/isfinite (configure.ac): ... to here.
13938
13939 2011-05-08  Bruno Haible  <bruno@clisp.org>
13940
13941         isblank: Move AC_LIBOBJ invocations to module description.
13942         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13943         here...
13944         * modules/isblank (configure.ac): ... to here.
13945
13946 2011-05-08  Bruno Haible  <bruno@clisp.org>
13947
13948         isapipe: Move AC_LIBOBJ invocations to module description.
13949         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13950         gl_PREREQ_ISAPIPE invocations from here...
13951         * modules/isapipe (configure.ac): ... to here.
13952         (Depends-on): Update condition.
13953
13954 2011-05-08  Bruno Haible  <bruno@clisp.org>
13955
13956         ioctl: Move AC_LIBOBJ invocations to module description.
13957         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13958         invocations from here...
13959         * modules/ioctl (configure.ac): ... to here.
13960         (Depends-on): Update condition.
13961
13962 2011-05-08  Bruno Haible  <bruno@clisp.org>
13963
13964         imaxdiv: Move AC_LIBOBJ invocations to module description.
13965         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13966         invocations from here...
13967         * modules/imaxdiv (configure.ac): ... to here.
13968
13969 2011-05-08  Bruno Haible  <bruno@clisp.org>
13970
13971         imaxabs: Move AC_LIBOBJ invocations to module description.
13972         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13973         invocations from here...
13974         * modules/imaxabs (configure.ac): ... to here.
13975
13976 2011-05-08  Bruno Haible  <bruno@clisp.org>
13977
13978         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13980         AC_LIBOBJ invocations from here...
13981         * modules/getaddrinfo (configure.ac): ... to here.
13982         (Depends-on): Add conditions.
13983
13984 2011-05-08  Bruno Haible  <bruno@clisp.org>
13985
13986         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13987         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13988         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13989         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13990         (gl_PREREQ_INET_PTON): ... from here.
13991         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13992         gl_PREREQ_INET_PTON here.
13993         (Depends-on): Update condition.
13994
13995 2011-05-08  Bruno Haible  <bruno@clisp.org>
13996
13997         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13998         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13999         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14000         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14001         (gl_PREREQ_INET_NTOP): ... from here.
14002         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14003         gl_PREREQ_INET_NTOP here.
14004         (Depends-on): Update condition.
14005
14006 2011-05-08  Bruno Haible  <bruno@clisp.org>
14007
14008         iconv_open: Move AC_LIBOBJ invocations to module description.
14009         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14010         AC_LIBOBJ invocations from here...
14011         * modules/iconv_open (configure.ac): ... to here.
14012
14013 2011-05-08  Bruno Haible  <bruno@clisp.org>
14014
14015         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14016         If module 'iconv_open' is among the main modules and module
14017         'iconv_open-utf' is among the tests dependencies, then
14018         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14019         return the special iconv_t values. Therefore iconv() and iconv_close()
14020         must support these special iconv_t values, already in lib, not only in
14021         tests.
14022         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14023         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14024         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14025         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14026         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14027         (Depends-on): Add the dependencies of iconv_open-utf.
14028         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14029         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14030         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14031
14032 2011-05-08  Bruno Haible  <bruno@clisp.org>
14033
14034         group-member: Move AC_LIBOBJ invocations to module description.
14035         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14036         gl_PREREQ_GROUP_MEMBER invocations from here...
14037         * modules/group-member (configure.ac): ... to here.
14038
14039 2011-05-08  Bruno Haible  <bruno@clisp.org>
14040
14041         grantpt: Move AC_LIBOBJ invocations to module description.
14042         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14043         invocations from here...
14044         * modules/grantpt (configure.ac): ... to here.
14045
14046 2011-05-08  Bruno Haible  <bruno@clisp.org>
14047
14048         glob: Move AC_LIBOBJ invocations to module description.
14049         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14050         from here...
14051         * modules/glob (configure.ac): ... to here.
14052
14053 2011-05-08  Bruno Haible  <bruno@clisp.org>
14054
14055         getusershell: Move AC_LIBOBJ invocations to module description.
14056         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14057         Move AC_LIBOBJ invocation from here...
14058         * modules/getusershell (configure.ac): ... to here.
14059         (Depends-on): Update condition.
14060
14061 2011-05-08  Bruno Haible  <bruno@clisp.org>
14062
14063         gettimeofday: Move AC_LIBOBJ invocations to module description.
14064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14065         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14066         gl_PREREQ_GETTIMEOFDAY invocations from here...
14067         * modules/gettimeofday (configure.ac): ... to here.
14068
14069 2011-05-08  Bruno Haible  <bruno@clisp.org>
14070
14071         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14072         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14073         just gl_FUNC_TZSET.
14074         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14075         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14077         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14078
14079 2011-05-08  Bruno Haible  <bruno@clisp.org>
14080
14081         getsubopt: Move AC_LIBOBJ invocations to module description.
14082         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14083         gl_PREREQ_GETSUBOPT invocations from here...
14084         * modules/getsubopt (configure.ac): ... to here.
14085
14086 2011-05-08  Bruno Haible  <bruno@clisp.org>
14087
14088         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14089         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14090         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14091         * modules/getpass-gnu (configure.ac): ... to here.
14092
14093 2011-05-08  Bruno Haible  <bruno@clisp.org>
14094
14095         getpass: Move AC_LIBOBJ invocations to module description.
14096         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14097         gl_PREREQ_GETPASS invocations from here...
14098         * modules/getpass (configure.ac): ... to here.
14099
14100 2011-05-08  Bruno Haible  <bruno@clisp.org>
14101
14102         getpagesize: Move AC_LIBOBJ invocations to module description.
14103         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14104         from here...
14105         * modules/getpagesize (configure.ac): ... to here.
14106
14107 2011-05-08  Bruno Haible  <bruno@clisp.org>
14108
14109         getopt: Move AC_LIBOBJ invocations to module description.
14110         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14111         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14112         invocations from here...
14113         * modules/getopt-gnu (configure.ac): ... to here.
14114         * modules/getopt-posix (configure.ac): ... and here.
14115         (Depends-on): Update condition.
14116
14117 2011-05-08  Bruno Haible  <bruno@clisp.org>
14118
14119         getopt, argp: Respect rules for use of AC_LIBOBJ.
14120         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14121         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14122         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14123         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14124
14125 2011-05-08  Bruno Haible  <bruno@clisp.org>
14126
14127         getlogin_r: Move AC_LIBOBJ invocations to module description.
14128         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14129         gl_PREREQ_GETLOGIN_R invocations from here...
14130         * modules/getlogin_r (configure.ac): ... to here.
14131
14132 2011-05-08  Bruno Haible  <bruno@clisp.org>
14133
14134         getlogin: Move AC_LIBOBJ invocations to module description.
14135         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14136         here...
14137         * modules/getlogin (configure.ac): ... to here.
14138
14139 2011-05-08  Bruno Haible  <bruno@clisp.org>
14140
14141         getloadavg: Move AC_LIBOBJ invocations to module description.
14142         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14143         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14144         * modules/getloadavg (configure.ac): ... to here.
14145
14146 2011-05-08  Bruno Haible  <bruno@clisp.org>
14147
14148         gethrxtime: Move AC_LIBOBJ invocations to module description.
14149         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14150         LIB_GETHRXTIME from here...
14151         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14152         invocations from here...
14153         * modules/gethrxtime (configure.ac): ... to here.
14154
14155 2011-05-08  Bruno Haible  <bruno@clisp.org>
14156
14157         gethostname: Move AC_LIBOBJ invocations to module description.
14158         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14159         gl_PREREQ_GETHOSTNAME invocations from here...
14160         * modules/gethostname (configure.ac): ... to here.
14161
14162 2011-05-08  Bruno Haible  <bruno@clisp.org>
14163
14164         getgroups: Move AC_LIBOBJ invocations to module description.
14165         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14166         here...
14167         * modules/getgroups (configure.ac): ... to here.
14168
14169 2011-05-08  Bruno Haible  <bruno@clisp.org>
14170
14171         getdtablesize: Move AC_LIBOBJ invocations to module description.
14172         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14173         invocation from here...
14174         * modules/getdtablesize (configure.ac): ... to here.
14175
14176 2011-05-08  Bruno Haible  <bruno@clisp.org>
14177
14178         getdomainname: Move AC_LIBOBJ invocations to module description.
14179         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14180         gl_PREREQ_GETDOMAINNAME invocations from here...
14181         * modules/getdomainname (configure.ac): ... to here.
14182
14183 2011-05-08  Bruno Haible  <bruno@clisp.org>
14184
14185         getline: Move AC_LIBOBJ invocations to module description.
14186         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14187         invocations from here...
14188         * modules/getline (configure.ac): ... to here.
14189
14190 2011-05-08  Bruno Haible  <bruno@clisp.org>
14191
14192         getline: Simplify.
14193         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14194         It's already handled through the module dependency.
14195
14196 2011-05-08  Bruno Haible  <bruno@clisp.org>
14197
14198         getdelim: Move AC_LIBOBJ invocations to module description.
14199         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14200         and gl_PREREQ_GETDELIM invocations from here...
14201         * modules/getdelim (configure.ac): ... to here.
14202         (Depends-on): Fix condition.
14203
14204 2011-05-08  Bruno Haible  <bruno@clisp.org>
14205
14206         getcwd: Move AC_LIBOBJ invocations to module description.
14207         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14208         invocations from here...
14209         * modules/getcwd (configure.ac): ... to here.
14210
14211 2011-05-08  Bruno Haible  <bruno@clisp.org>
14212
14213         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14214         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14215         here...
14216         * modules/getcwd-lgpl (configure.ac): ... to here.
14217
14218 2011-05-07  Bruno Haible  <bruno@clisp.org>
14219
14220         crypto/gc: Move AC_LIBOBJ invocations to module description.
14221         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14222         * modules/crypto/gc (configure.ac): ... to here.
14223
14224 2011-05-07  Bruno Haible  <bruno@clisp.org>
14225
14226         fwriting: Move AC_LIBOBJ invocations to module description.
14227         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14228         here...
14229         * modules/fwriting (configure.ac): ... to here.
14230
14231 2011-05-07  Bruno Haible  <bruno@clisp.org>
14232
14233         fwritable: Move AC_LIBOBJ invocations to module description.
14234         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14235         here...
14236         * modules/fwritable (configure.ac): ... to here.
14237
14238 2011-05-07  Bruno Haible  <bruno@clisp.org>
14239
14240         futimens: Move AC_LIBOBJ invocations to module description.
14241         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14242         here...
14243         * modules/futimens (configure.ac): ... to here.
14244
14245 2011-05-07  Bruno Haible  <bruno@clisp.org>
14246
14247         ftruncate: Move AC_LIBOBJ invocations to module description.
14248         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14249         gl_PREREQ_FTRUNCATE invocations from here...
14250         * modules/ftruncate (configure.ac): ... to here.
14251
14252 2011-05-07  Bruno Haible  <bruno@clisp.org>
14253
14254         fsync: Move AC_LIBOBJ invocations to module description.
14255         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14256         invocations from here...
14257         * modules/fsync (configure.ac): ... to here.
14258
14259 2011-05-07  Bruno Haible  <bruno@clisp.org>
14260
14261         fsusage: Move AC_LIBOBJ invocations to module description.
14262         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14263         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14264         * modules/fsusage (configure.ac): ... to here.
14265
14266 2011-05-07  Bruno Haible  <bruno@clisp.org>
14267
14268         freopen: Move AC_LIBOBJ invocations to module description.
14269         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14270         invocations from here...
14271         * modules/freopen (configure.ac): ... to here.
14272
14273 2011-05-07  Bruno Haible  <bruno@clisp.org>
14274
14275         free: Move AC_LIBOBJ invocations to module description.
14276         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14277         invocations from here...
14278         * modules/free (configure.ac): ... to here.
14279
14280 2011-05-07  Bruno Haible  <bruno@clisp.org>
14281
14282         freadable: Move AC_LIBOBJ invocations to module description.
14283         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14284         here...
14285         * modules/freadable (configure.ac): ... to here.
14286
14287 2011-05-07  Bruno Haible  <bruno@clisp.org>
14288
14289         fpurge: Move AC_LIBOBJ invocations to module description.
14290         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14291         invocations from here...
14292         * modules/fpurge (configure.ac): ... to here.
14293
14294 2011-05-07  Bruno Haible  <bruno@clisp.org>
14295
14296         fpending: Move AC_LIBOBJ invocations to module description.
14297         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14298         gl_FUNC_FPENDING.
14299         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14300         invocations from here...
14301         * modules/fpending (configure.ac): ... to here.
14302
14303 2011-05-07  Bruno Haible  <bruno@clisp.org>
14304
14305         fopen: Move AC_LIBOBJ invocations to module description.
14306         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14307         invocations from here...
14308         * modules/fopen (configure.ac): ... to here.
14309
14310 2011-05-07  Bruno Haible  <bruno@clisp.org>
14311
14312         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14313         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14314         gl_FUNC_FNMATCH_POSIX.
14315         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14316         invocations from here...
14317         * modules/fnmatch (configure.ac): ... to here.
14318         * modules/fnmatch-gnu (configure.ac): ... and here.
14319
14320 2011-05-07  Bruno Haible  <bruno@clisp.org>
14321
14322         flock: Move AC_LIBOBJ invocations to module description.
14323         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14324         invocations from here...
14325         * modules/flock (configure.ac): ... to here.
14326
14327 2011-05-07  Bruno Haible  <bruno@clisp.org>
14328
14329         fileblocks: Move AC_LIBOBJ invocations to module description.
14330         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14331         gl_PREREQ_FILEBLOCKS invocations from here...
14332         * modules/fileblocks (configure.ac): ... to here.
14333
14334 2011-05-06  Bruno Haible  <bruno@clisp.org>
14335
14336         fflush: Move AC_LIBOBJ invocations to module description.
14337         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14338         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14339         invocations from here...
14340         * modules/fflush (configure.ac): ... to here.
14341
14342 2011-05-06  Bruno Haible  <bruno@clisp.org>
14343
14344         fdopendir: Move AC_LIBOBJ invocations to module description.
14345         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14346         here...
14347         * modules/fdopendir (configure.ac): ... to here.
14348         (Depends-on): Improve conditions.
14349
14350 2011-05-06  Bruno Haible  <bruno@clisp.org>
14351
14352         _Exit: Move AC_LIBOBJ invocations to module description.
14353         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14354         invocations from here...
14355         * modules/_Exit (configure.ac): ... to here.
14356
14357 2011-05-21  Bruno Haible  <bruno@clisp.org>
14358
14359         euidaccess: Respect rules for use of AC_LIBOBJ.
14360         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14362         from here...
14363         * modules/euidaccess (configure.ac): ... to here.
14364
14365 2011-05-06  Bruno Haible  <bruno@clisp.org>
14366
14367         error: Move AC_LIBOBJ invocations to module description.
14368         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14369         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14370         invocations from here...
14371         * modules/error (configure.ac): ... to here.
14372
14373 2011-05-06  Bruno Haible  <bruno@clisp.org>
14374
14375         duplocale: Move AC_LIBOBJ invocations to module description.
14376         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14377         gl_PREREQ_DUPLOCALE invocations from here...
14378         * modules/duplocale (configure.ac): ... to here.
14379
14380 2011-05-05  Bruno Haible  <bruno@clisp.org>
14381
14382         dirfd: Move AC_LIBOBJ invocations to module description.
14383         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14384         gl_FUNC_DIRFD.
14385         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14386         here...
14387         * modules/dirfd (configure.ac): ... to here.
14388         (Depends-on): Fix condition.
14389
14390 2011-05-05  Bruno Haible  <bruno@clisp.org>
14391
14392         chown: Respect rules for use of AC_LIBOBJ.
14393         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14394         * modules/chown (configure.ac): ... to here.
14395
14396 2011-05-05  Bruno Haible  <bruno@clisp.org>
14397
14398         chdir-long: Move AC_LIBOBJ invocations to module description.
14399         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14400         gl_PREREQ_CHDIR_LONG invocations from here...
14401         * modules/chdir-long (configure.ac): ... to here.
14402
14403 2011-05-05  Bruno Haible  <bruno@clisp.org>
14404
14405         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14406         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14407         from here...
14408         * modules/canonicalize-lgpl (configure.ac): ... to here.
14409
14410 2011-05-05  Bruno Haible  <bruno@clisp.org>
14411
14412         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14413         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14414         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14415         REPLACE_CALLOC.
14416         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14417         * modules/calloc-gnu (configure.ac): Likewise.
14418
14419 2011-05-05  Bruno Haible  <bruno@clisp.org>
14420
14421         btowc: Move AC_LIBOBJ invocations to module description.
14422         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14423         invocations from here...
14424         * modules/btowc (configure.ac): ... to here.
14425
14426 2011-05-21  Bruno Haible  <bruno@clisp.org>
14427
14428         atexit: Move AC_LIBOBJ invocations to module description.
14429         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14431         here...
14432         * modules/atexit (configure.ac): ... to here.
14433
14434 2011-05-05  Bruno Haible  <bruno@clisp.org>
14435
14436         atoll: Move AC_LIBOBJ invocations to module description.
14437         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14438         invocations from here...
14439         * modules/atoll (configure.ac): ... to here.
14440
14441 2011-05-05  Bruno Haible  <bruno@clisp.org>
14442
14443         argz: Move AC_LIBOBJ invocations to module description.
14444         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14445         * modules/argz (configure.ac): ... to here.
14446
14447 2011-05-05  Bruno Haible  <bruno@clisp.org>
14448
14449         alphasort: Move AC_LIBOBJ invocations to module description.
14450         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14451         gl_PREREQ_ALPHASORT invocations from here...
14452         * modules/alphasort (configure.ac): ... to here.
14453
14454 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14455
14456         verify: new macro verify_expr; verify_true deprecated
14457         * NEWS: Mention this.
14458         * doc/verify.texi (Compile-time Assertions): Document this.
14459         * lib/verify.h (verify_true): Deprecate.
14460         (verify_expr): New macro.
14461         * tests/test-verify.c (function): Test verify_expr.
14462
14463 2011-06-14  Jim Meyering  <meyering@redhat.com>
14464
14465         init.sh: give more portable redirection-related advice in a comment
14466         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14467         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14468         for lots of discussion.  Stefano Lattarini suggested the solution
14469         of putting "9>&2" after the command.  Reported by Bruno Haible.
14470
14471 2011-06-13  Bruno Haible  <bruno@clisp.org>
14472
14473         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14475         'none'.
14476
14477 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         ftoastr: use strtof only if HAVE_STRTOF
14480         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14482         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14483         * modules/ftoastr (configure.ac): Check for strtof.
14484
14485 2011-06-13  Bruno Haible  <bruno@clisp.org>
14486
14487         gnulib-tool: Addendum to 2011-06-08 commit.
14488         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14489         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14490
14491 2011-06-13  Bruno Haible  <bruno@clisp.org>
14492
14493         fseeko: Provide a non-inline replacement of fseek().
14494         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14495         * modules/fseeko (Depends-on): Add fseek.
14496         * modules/fseek (License): Change to LGPLv2+.
14497
14498 2011-06-13  Bruno Haible  <bruno@clisp.org>
14499
14500         ftello: Provide a non-inline replacement of ftell().
14501         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14502         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14503         not have ftello() (such as on mingw).
14504         * modules/ftello (Depends-on): Add ftell.
14505         * modules/ftell (License): Change to LGPLv2+.
14506
14507 2011-05-07  Bruno Haible  <bruno@clisp.org>
14508
14509         ftell: Move AC_LIBOBJ invocations to module description.
14510         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14511         * modules/ftell (configure.ac): ... to here.
14512
14513 2011-05-07  Bruno Haible  <bruno@clisp.org>
14514
14515         ftello: Respect rules for use of AC_LIBOBJ.
14516         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14517         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14518         here...
14519         * modules/ftello (configure.ac): ... to here.
14520
14521 2011-05-07  Bruno Haible  <bruno@clisp.org>
14522
14523         fseeko: Simplify.
14524         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14525         (gl_FUNC_FSEEKO): Inline it here.
14526
14527 2011-05-07  Bruno Haible  <bruno@clisp.org>
14528
14529         fseek: Move AC_LIBOBJ invocations to module description.
14530         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14531         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14532         * modules/fseek (configure.ac): ... to here.
14533
14534 2011-05-07  Bruno Haible  <bruno@clisp.org>
14535
14536         fseek: Respect rules for use of AC_LIBOBJ.
14537         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14538         here...
14539         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14540
14541 2011-05-07  Bruno Haible  <bruno@clisp.org>
14542
14543         fseeko: Respect rules for use of AC_LIBOBJ.
14544         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14545         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14546         here...
14547         * modules/fseeko (configure.ac): ... to here.
14548
14549 2011-06-13  Bruno Haible  <bruno@clisp.org>
14550
14551         gnulib-tool: Allow comments in the 'Depends-on' section.
14552         * doc/gnulib.texi (Module description): Mention comment syntax in the
14553         Depends-on section.
14554         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14555
14556 2011-06-13  Bruno Haible  <bruno@clisp.org>
14557
14558         file-set.h: guard __attibute__ use, now that it's not always defined
14559         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14560         versions that support it.  This fixes a coreutils build failure with
14561         the vendor cc on HP-UX 11.31.
14562
14563 2011-06-12  Bruno Haible  <bruno@clisp.org>
14564
14565         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14566         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14567         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14568         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14569         (acl, aclsort): New declarations.
14570         (aclv_nontrivial): New declaration.
14571         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14572         (file_has_acl): Read also the second kind of HP-UX ACLs.
14573         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14574         kind of HP-UX ACLs if the first kind fails.
14575         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14576         second kind of HP-UX ACLs.
14577         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14578         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14579         agree.
14580         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14581         hpuxjfs.
14582         Handle hpuxjfs.
14583         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14584         hpuxjfs.
14585         Handle hpuxjfs.
14586         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14587         (func_test_same_acls): Use both lsacl and getacl.
14588         Handle hpuxjfs.
14589         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14590         (func_test_same_acls): Use both lsacl and getacl.
14591         Handle hpuxjfs.
14592
14593 2011-06-12  Bruno Haible  <bruno@clisp.org>
14594
14595         acl: Complete the 2010-08-10 fix.
14596         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14597         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14598         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14599         explicitly.
14600         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14601         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14602
14603 2011-06-12  Bruno Haible  <bruno@clisp.org>
14604
14605         spawn-pipe tests: Comments.
14606         * tests/test-spawn-pipe-child.c (main): Update comment.
14607         Reported by James Youngman <jay@gnu.org>.
14608
14609 2011-06-11  James Youngman  <jay@gnu.org>
14610
14611         New module 'stat-size'.
14612         * modules/stat-size: New module.  Provides macros for accessing
14613         file size information in instances of struct stat.  Depends on the
14614         fileblocks module because it calls st_blocks.
14615         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14616         * doc/gnulib.texi: Include stat-size.texi.
14617         * doc/stat-size.texi: Documentation for this module.
14618         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14619         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14620         AC_STRUCT_ST_BLOCKS.
14621
14622 2011-06-09  Bruno Haible  <bruno@clisp.org>
14623
14624         thread: Support pthreads-win32.
14625         * lib/glthread/thread.h (gl_thread_self): Define differently on
14626         pthreads-win32.
14627         (gl_null_thread): New declaration.
14628         (gl_thread_self_pointer): New macro.
14629         * lib/glthread/thread.c (gl_null_thread): New constant.
14630         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14631         gl_thread_self.
14632         * tests/test-tls.c: Likewise.
14633         Suggested by Paul Eggert. Reported by Eric Blake.
14634
14635 2011-06-09  Bruno Haible  <bruno@clisp.org>
14636
14637         thread: Fix confusion between NULL and 0.
14638         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14639         Reported by Paul Eggert.
14640
14641 2011-06-09  Bruno Haible  <bruno@clisp.org>
14642
14643         spawn-pipe tests: Avoid test failure on HP-UX 11.
14644         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14645         is closed.
14646
14647 2011-06-09  Bruno Haible  <bruno@clisp.org>
14648
14649         acl tests: Fix compilation error on HP-UX 11.
14650         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14651
14652 2011-06-09  Bruno Haible  <bruno@clisp.org>
14653
14654         rmdir: Avoid test failure on HP-UX 10.20.
14655         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14656         EEXIST.
14657
14658 2011-06-08  Eric Blake  <eblake@redhat.com>
14659
14660         perror: fix test on mingw
14661         * modules/perror-tests (Depends-on): Add dup2.
14662
14663         strerror_r-posix: fix on MacOS
14664         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14665         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14666         logic bug.
14667         * lib/strerror_r.c (strerror_r): Fix the bug.
14668         * lib/strerror.c (strerror): Likewise.
14669         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14670         problem.
14671         * doc/posix-functions/strerror.texi (strerror): Likewise.
14672         * doc/posix-functions/perror.texi (perror): Likewise.
14673         * tests/test-strerror.c (main): Enhance test.
14674         * tests/test-strerror_r.c (main): Likewise.
14675
14676 2011-06-08  Bruno Haible  <bruno@clisp.org>
14677
14678         gnulib-tool: Better isolation between different gnulib-tool invocations.
14679         * gnulib-tool: New option --witness-c-macro.
14680         (witness_c_macro): New variable.
14681         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14682         AM_CPPFLAGS define it as a C macro.
14683         (func_emit_tests_Makefile_am): Likewise.
14684         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14685         read it from there.
14686         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14687         m4_define, not AC_DEFUN.
14688         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14689         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14690         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14691         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14692         s|...|...|, to substitute the values of the GNULIB_* module indicator
14693         variables.
14694         * modules/dirent (Makefile.am): Likewise.
14695         * modules/fcntl-h (Makefile.am): Likewise.
14696         * modules/iconv-h (Makefile.am): Likewise.
14697         * modules/langinfo (Makefile.am): Likewise.
14698         * modules/locale (Makefile.am): Likewise.
14699         * modules/math (Makefile.am): Likewise.
14700         * modules/netdb (Makefile.am): Likewise.
14701         * modules/poll-h (Makefile.am): Likewise.
14702         * modules/pty (Makefile.am): Likewise.
14703         * modules/search (Makefile.am): Likewise.
14704         * modules/signal (Makefile.am): Likewise.
14705         * modules/spawn (Makefile.am): Likewise.
14706         * modules/stdio (Makefile.am): Likewise.
14707         * modules/stdlib (Makefile.am): Likewise.
14708         * modules/string (Makefile.am): Likewise.
14709         * modules/sys_ioctl (Makefile.am): Likewise.
14710         * modules/sys_select (Makefile.am): Likewise.
14711         * modules/sys_socket (Makefile.am): Likewise.
14712         * modules/sys_stat (Makefile.am): Likewise.
14713         * modules/sys_times (Makefile.am): Likewise.
14714         * modules/sys_utsname (Makefile.am): Likewise.
14715         * modules/sys_wait (Makefile.am): Likewise.
14716         * modules/termios (Makefile.am): Likewise.
14717         * modules/time (Makefile.am): Likewise.
14718         * modules/unistd (Makefile.am): Likewise.
14719         * modules/wchar (Makefile.am): Likewise.
14720
14721 2011-06-08  Eric Blake  <eblake@redhat.com>
14722
14723         strerror: simplify replacement
14724         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14725         * modules/strerror (configure.ac): No prereqs needed here...
14726         * modules/strerror-override (configure.ac): ...but this needs it.
14727         (Files): Add file for needed prereq macro.
14728
14729 2011-06-08  Bruno Haible  <bruno@clisp.org>
14730
14731         strerror_r-posix: Tweaks.
14732         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14733         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14734         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14735         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14736         (gl_FUNC_STRERROR_R): ... to here.
14737         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14738
14739 2011-06-07  Eric Blake  <eblake@redhat.com>
14740
14741         perror: document fixed bugs
14742         * doc/posix-functions/perror.texi (perror): Document recent
14743         patches.
14744
14745 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14746
14747         stat-time: get_stat_birthtime failure is better-defined
14748         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14749         return a timestamp whose tv_sec and tv_nsec values are both -1.
14750         Previously, the spec said only that the tv_nsec value was negative.
14751         This upward-compatible change simplifies GNU tar a bit.
14752
14753 2011-06-07  Eric Blake  <eblake@redhat.com>
14754
14755         strerror_r-posix: work around cygwin 1.7.9
14756         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14757         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14758         bug without replacing strerror_r.
14759         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14760         strerror_r is buggy, but without requiring strerror_r compilation.
14761         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14762
14763         test-perror: relax test to ignore cygwin bug
14764         * tests/test-perror2.c (main): Relax test on requiring detection
14765         of stream errors, and use unbuffered stream.
14766         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14767         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14768         * doc/posix-functions/fputc.texi (fputc): Likewise.
14769         * doc/posix-functions/fputs.texi (fputs): Likewise.
14770         * doc/posix-functions/fputws.texi (fputws): Likewise.
14771         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14772         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14773         * doc/posix-functions/getopt.texi (getopt): Likewise.
14774         * doc/posix-functions/perror.texi (perror): Likewise.
14775         * doc/posix-functions/printf.texi (printf): Likewise.
14776         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14777         * doc/posix-functions/psignal.texi (psignal): Likewise.
14778         * doc/posix-functions/putc.texi (putc): Likewise.
14779         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14780         Likewise.
14781         * doc/posix-functions/putchar.texi (putchar): Likewise.
14782         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14783         Likewise.
14784         * doc/posix-functions/puts.texi (puts): Likewise.
14785         * doc/posix-functions/putwc.texi (putwc): Likewise.
14786         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14787         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14788         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14789         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14790         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14791         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14792         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14793         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14794
14795 2011-05-22  Bruno Haible  <bruno@clisp.org>
14796
14797         strerror: Move AC_LIBOBJ invocations to module description.
14798         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14799         gl_PREREQ_STRERROR invocations from here...
14800         * modules/strerror (configure.ac): ... to here.
14801
14802 2011-05-21  Bruno Haible  <bruno@clisp.org>
14803
14804         perror: Use common idiom.
14805         * modules/perror (configure.ac): Reorder statements.
14806
14807 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14808
14809         tests: fix usage message in 'mktempd_'
14810         * tests/init.sh (mktempd_): In the usage message, use literal
14811         'mktempd_', not '$ME' (which is even undefined), as the name of
14812         the subroutine.
14813
14814 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14815
14816         tests init: new function 'fatal_', for hard errors
14817         Before this patch, the only way offered by tests/init.sh to
14818         properly signal a hard error was the `framework_failure_'
14819         function.  But the error message issued by that function,
14820         as its name would suggest, refers to a set-up failure in the
14821         testsuite, while hard errors can obviously also be due to
14822         other reasons.  The best way to fix this inconsistency is to
14823         introduce a new function with a more general error message.
14824         * tests/init.sh (fatal_): New function.
14825
14826 2011-06-06  Eric Blake  <eblake@redhat.com>
14827
14828         canonicalize-lgpl: use common idiom
14829         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14830         over newer POSIX -Rf.
14831         Reported by Bruno Haible.
14832
14833         canonicalize-lgpl: work around AIX realpath bug
14834         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14835         * doc/posix-functions/realpath.texi (realpath): Document it.
14836         Reported by Bruno Haible.
14837
14838         strerror: work around FreeBSD bug
14839         * lib/strerror.c (strerror): Special case 0.
14840         Reported by Bruno Haible.
14841
14842         strerror-override: avoid bloating errno module
14843         * modules/errno (Files, configure.ac): Move replacement strings...
14844         * modules/strerror-override: ...to new module.
14845         * modules/strerror (Depends-on): Add strerror-override.
14846         * modules/strerror_r-posix (Depends-on): Likewise.
14847         * MODULES.html.sh: Document new module.
14848         Reported by Bruno Haible.
14849
14850 2011-06-06  Bruno Haible  <bruno@clisp.org>
14851
14852         spawn-pipe tests: Rename program.
14853         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14854         * tests/test-spawn-pipe-child.c: Update comment.
14855         * tests/test-spawn-pipe.sh: Update.
14856         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14857
14858         spawn-pipe tests: Link the child program only against libc.
14859         * tests/test-spawn-pipe-child.c: New file, extracted from
14860         tests/test-spawn-pipe.c.
14861         (main): Expect only one argument.
14862         (is_open): New function, copied from tests/test-pipe.c.
14863         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14864         (child_main): Remove function.
14865         (test_pipe): Pass only one argument to the child program.
14866         (main): Remove child process code. Expect the child program's name as
14867         first argument.
14868         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14869         argument.
14870         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14871         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14872         test-spawn-pipe-child against no libraries.
14873
14874 2011-06-06  Bruno Haible  <bruno@clisp.org>
14875
14876         careadlinkat: Avoid mismatch between ssize_t and int.
14877         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14878         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14879
14880 2011-06-06  Jim Meyering  <meyering@redhat.com>
14881
14882         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14883         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14884         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14885
14886 2011-06-05  Bruno Haible  <bruno@clisp.org>
14887
14888         ansi-c++-opt: Interoperability with libtool.
14889         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14890         set the variable to "no", not to ":".
14891         * NEWS: Mention the change.
14892
14893 2011-06-05  Bruno Haible  <bruno@clisp.org>
14894
14895         acl: Fix test failure on AIX 7.
14896         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14897         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14898
14899 2011-06-05  Bruno Haible  <bruno@clisp.org>
14900
14901         pipe-filter-ii: Fix test failure on AIX and IRIX.
14902         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14903         with EAGAIN, retry with a smaller buffer size.
14904
14905 2011-06-05  Bruno Haible  <bruno@clisp.org>
14906
14907         localename: Fix link dependencies.
14908         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14909         * modules/localename-tests (Makefile.am): Link test-localename with
14910         $(LIBTHREAD).
14911
14912 2011-06-05  Bruno Haible  <bruno@clisp.org>
14913
14914         error: Avoid gcc warning.
14915         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14916
14917 2011-06-05  Bruno Haible  <bruno@clisp.org>
14918
14919         unsetenv: Avoid gcc warning.
14920         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14921
14922 2011-06-05  Bruno Haible  <bruno@clisp.org>
14923
14924         setenv: Avoid gcc warning.
14925         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14926
14927 2011-06-05  Bruno Haible  <bruno@clisp.org>
14928
14929         sys_select: Ensure memset is declared also on AIX 7.
14930         * lib/sys_select.in.h: Include <string.h> also on AIX.
14931         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14932         self-contained also on AIX 7.1.
14933
14934 2011-06-04  Jim Meyering  <meyering@redhat.com>
14935
14936         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14937         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14938         function name, "error".
14939         (_gl_translatable_diag_func_re): New configurable variable.
14940
14941 2011-06-04  Bruno Haible  <bruno@clisp.org>
14942
14943         getopt: Avoid gcc warning.
14944         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14945
14946 2011-06-04  Bruno Haible  <bruno@clisp.org>
14947
14948         strerror_r: Fix comments.
14949         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14950         commit.
14951
14952 2011-06-04  Bruno Haible  <bruno@clisp.org>
14953
14954         perror: Fix compilation error.
14955         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14956         Undefine fprintf, not sprintf.
14957         * modules/perror (Depends-on): Remove intprops, verify.
14958
14959 2011-06-04  Bruno Haible  <bruno@clisp.org>
14960
14961         setlocale: Enable replacement on Cygwin 1.5.
14962         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14963         Cygwin 1.5.x.
14964         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14965         LC_CTYPE category also exists on Cygwin 1.5.x.
14966
14967 2011-06-04  Bruno Haible  <bruno@clisp.org>
14968
14969         strerror-override: Don't disable symbol renamings.
14970         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14971         * lib/strerror-override.c: Include config.h.
14972         (strerror_override): Don't undefine.
14973
14974 2011-06-03  Bruno Haible  <bruno@clisp.org>
14975
14976         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14977         * lib/localename.h: Update copyright header.
14978         * lib/localename.c: Likewise.
14979         * lib/relocatable.h: Likewise.
14980         * lib/relocatable.c: Likewise.
14981
14982 2011-06-02  Bruno Haible  <bruno@clisp.org>
14983
14984         doc: Fix a module name.
14985         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14986
14987 2011-06-02  Bruno Haible  <bruno@clisp.org>
14988
14989         pipe2: Remove dependency on 'nonblocking' module.
14990         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14991         O_NONBLOCK is defined by gnulib.
14992         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14993         is zero.
14994         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14995         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14996         defined by gnulib.
14997         (get_nonblocking_flag): New function.
14998         (main): Test O_NONBLOCK flag only if it is nonzero.
14999         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15000
15001 2011-06-03  Jim Meyering  <meyering@redhat.com>
15002
15003         maint: three new prohibit-header-without-use rules
15004         Prohibit use of cloexec.h, posixver.h, same.h without use.
15005         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15006         (sc_prohibit_posixver_without_use): Likewise.
15007         (sc_prohibit_same_without_use): Likewise.
15008
15009 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15010
15011         allocator: 'die' routine is now given requested size
15012         * lib/allocator.h (struct allocator.die): New size arg.
15013         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15014         If the actual problem is an ssize_t limitation, not a size_t or
15015         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15016
15017 2011-06-01  Eric Blake  <eblake@redhat.com>
15018
15019         strerror: drop strerror_r dependency
15020         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15021         * lib/strerror-override.c (strerror_override): ...to new file.
15022         * lib/strerror-override.h: Add prototype.
15023         * lib/strerror-impl.h: Delete.
15024         * lib/strerror.c (strerror): New implementation.
15025         * modules/errno (Files): Add new files.
15026         (configure.ac): Compile new file as appropriate.
15027         * modules/strerror (Files): Drop unused file.
15028         (Depends-on): Drop strerror_r-posix.
15029         * MODULES.html.sh: Document strerror_r-posix.
15030         Requested by Sam Steingold.
15031
15032         perror: call strerror_r directly
15033         * modules/perror (Files): Drop strerror-impl.h.
15034         * lib/perror.c (perror): Use our own stack buffer, rather than
15035         calling a wrapper that uses static storage.
15036         * doc/posix-functions/perror.texi (perror): Document a limitation
15037         of our replacement.
15038
15039         strerror_r: fix includes for FreeBSD
15040         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15041         since we use abort on some platforms.
15042         Reported by Matthias Bolte.
15043
15044 2011-05-31  Bruno Haible  <bruno@clisp.org>
15045
15046         Fix link errors in tests: openat-die uses gettext-h.
15047         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15048         against $(LIBINTL).
15049         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15050         against $(LIBINTL).
15051         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15052         $(LIBINTL).
15053         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15054         against $(LIBINTL).
15055         * modules/linkat-tests (Makefile.am): Link test-linkat against
15056         $(LIBINTL).
15057         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15058         $(LIBINTL).
15059         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15060         against $(LIBINTL).
15061         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15062         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15063         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15064         $(LIBINTL).
15065         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15066         $(LIBINTL).
15067         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15068         $(LIBINTL).
15069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15070
15071 2011-05-31  Bruno Haible  <bruno@clisp.org>
15072
15073         Fix link errors in tests: wait-process uses gettext-h.
15074         * modules/nonblocking-pipe-tests (Makefile.am): Set
15075         test_nonblocking_pipe_main_LDADD.
15076         * modules/nonblocking-socket-tests (Makefile.am): Link
15077         test-nonblocking-socket-main against $(LIBINTL).
15078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15079
15080 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15081
15082         assert-h: work around 'verify' incompatibility
15083         * lib/verify.h: Use @...@ directives, not ifdef.
15084         * modules/assert-h (assert.h): Implement the directives.
15085         (assert.h): Substitute the symbol-prefix more consistently.
15086
15087 2011-05-29  Jim Meyering  <meyering@redhat.com>
15088
15089         trim: remove three superfluous assignments
15090         * lib/trim.c (trim2): Remove three superfluous assignments
15091         and correct brace positioning.
15092
15093 2011-05-29  Bruno Haible  <bruno@clisp.org>
15094
15095         wctype-h: Avoid namespace pollution on Solaris 2.6.
15096         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15097         identifiers.
15098         * doc/posix-headers/wctype.texi: Mention the problem.
15099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15100
15101 2011-05-28  Jim Meyering  <meyering@redhat.com>
15102
15103         parse-datetime.y: accommodate -Wstrict-overflow
15104         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15105         placate -Wstrict-overflow.
15106
15107         trim: avoid a warning from -O2 -Wstrict-overflow
15108         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15109
15110 2011-05-29  Bruno Haible  <bruno@clisp.org>
15111
15112         gnulib-tool: Fix bug in yesterday's commit.
15113         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15114         twice.
15115
15116 2011-05-29  Bruno Haible  <bruno@clisp.org>
15117
15118         Allow multiple gnulib generated include files to be combined.
15119         * gnulib-tool (func_compute_include_guard_prefix): New function.
15120         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15121         ${gl_include_guard_prefix} references.
15122         (func_import, func_create_testdir): Invoke
15123         func_compute_include_guard_prefix.
15124         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15125         * lib/ctype.in.h: Likewise.
15126         * lib/dirent.in.h: Likewise.
15127         * lib/errno.in.h: Likewise.
15128         * lib/fcntl.in.h: Likewise.
15129         * lib/float.in.h: Likewise.
15130         * lib/getopt.in.h: Likewise.
15131         * lib/iconv.in.h: Likewise.
15132         * lib/langinfo.in.h: Likewise.
15133         * lib/locale.in.h: Likewise.
15134         * lib/math.in.h: Likewise.
15135         * lib/netdb.in.h: Likewise.
15136         * lib/netinet_in.in.h: Likewise.
15137         * lib/poll.in.h: Likewise.
15138         * lib/pthread.in.h: Likewise.
15139         * lib/pty.in.h: Likewise.
15140         * lib/sched.in.h: Likewise.
15141         * lib/se-selinux.in.h: Likewise.
15142         * lib/search.in.h: Likewise.
15143         * lib/signal.in.h: Likewise.
15144         * lib/spawn.in.h: Likewise.
15145         * lib/stdarg.in.h: Likewise.
15146         * lib/stddef.in.h: Likewise.
15147         * lib/stdint.in.h: Likewise.
15148         * lib/stdio.in.h: Likewise.
15149         * lib/stdlib.in.h: Likewise.
15150         * lib/string.in.h: Likewise.
15151         * lib/strings.in.h: Likewise.
15152         * lib/sys_file.in.h: Likewise.
15153         * lib/sys_ioctl.in.h: Likewise.
15154         * lib/sys_select.in.h: Likewise.
15155         * lib/sys_socket.in.h: Likewise.
15156         * lib/sys_stat.in.h: Likewise.
15157         * lib/sys_time.in.h: Likewise.
15158         * lib/sys_times.in.h: Likewise.
15159         * lib/sys_uio.in.h: Likewise.
15160         * lib/sys_utsname.in.h: Likewise.
15161         * lib/sys_wait.in.h: Likewise.
15162         * lib/sysexits.in.h: Likewise.
15163         * lib/termios.in.h: Likewise.
15164         * lib/time.in.h: Likewise.
15165         * lib/unistd.in.h: Likewise.
15166         * lib/wchar.in.h: Likewise.
15167         * lib/wctype.in.h: Likewise.
15168         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15169         * modules/ctype (Makefile.am): Likewise.
15170         * modules/dirent (Makefile.am): Likewise.
15171         * modules/errno (Makefile.am): Likewise.
15172         * modules/fcntl-h (Makefile.am): Likewise.
15173         * modules/float (Makefile.am): Likewise.
15174         * modules/getopt-posix (Makefile.am): Likewise.
15175         * modules/iconv-h (Makefile.am): Likewise.
15176         * modules/langinfo (Makefile.am): Likewise.
15177         * modules/locale (Makefile.am): Likewise.
15178         * modules/math (Makefile.am): Likewise.
15179         * modules/netdb (Makefile.am): Likewise.
15180         * modules/netinet_in (Makefile.am): Likewise.
15181         * modules/poll-h (Makefile.am): Likewise.
15182         * modules/pthread (Makefile.am): Likewise.
15183         * modules/pty (Makefile.am): Likewise.
15184         * modules/sched (Makefile.am): Likewise.
15185         * modules/search (Makefile.am): Likewise.
15186         * modules/selinux-h (Makefile.am): Likewise.
15187         * modules/signal (Makefile.am): Likewise.
15188         * modules/spawn (Makefile.am): Likewise.
15189         * modules/stdarg (Makefile.am): Likewise.
15190         * modules/stddef (Makefile.am): Likewise.
15191         * modules/stdint (Makefile.am): Likewise.
15192         * modules/stdio (Makefile.am): Likewise.
15193         * modules/stdlib (Makefile.am): Likewise.
15194         * modules/string (Makefile.am): Likewise.
15195         * modules/strings (Makefile.am): Likewise.
15196         * modules/sys_file (Makefile.am): Likewise.
15197         * modules/sys_ioctl (Makefile.am): Likewise.
15198         * modules/sys_select (Makefile.am): Likewise.
15199         * modules/sys_socket (Makefile.am): Likewise.
15200         * modules/sys_stat (Makefile.am): Likewise.
15201         * modules/sys_time (Makefile.am): Likewise.
15202         * modules/sys_times (Makefile.am): Likewise.
15203         * modules/sys_uio (Makefile.am): Likewise.
15204         * modules/sys_utsname (Makefile.am): Likewise.
15205         * modules/sys_wait (Makefile.am): Likewise.
15206         * modules/sysexits (Makefile.am): Likewise.
15207         * modules/termios (Makefile.am): Likewise.
15208         * modules/time (Makefile.am): Likewise.
15209         * modules/unistd (Makefile.am): Likewise.
15210         * modules/wchar (Makefile.am): Likewise.
15211         * modules/wctype-h (Makefile.am): Likewise.
15212         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15213
15214 2011-05-29  Bruno Haible  <bruno@clisp.org>
15215
15216         assert-h: Allow multiple gnulib generated replacements to coexist.
15217         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15218
15219 2011-05-29  Bruno Haible  <bruno@clisp.org>
15220
15221         argp: Allow coexistence with strerror_r-posix module.
15222         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15223         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15224         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15225         not the glibc signature.
15226
15227 2011-05-28  Bruno Haible  <bruno@clisp.org>
15228
15229         gnulib-tool: Alternative structure of testdirs, similar to --import.
15230         * gnulib-tool: New option --single-configure.
15231         (func_usage): Document it.
15232         (single_configure): New variable.
15233         (func_modules_transitive_closure_separately,
15234         func_modules_transitive_closure_separately,
15235         func_determine_use_libtests, func_modules_add_dummy_separately,
15236         func_modules_to_filelist_separately): New functions, extracted from
15237         func_import.
15238         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15239         (func_import): Use the new functions.
15240         (func_create_testdir): Set final_modules. Handle $single_configure =
15241         true case.
15242
15243 2011-05-28  Bruno Haible  <bruno@clisp.org>
15244
15245         getloadavg: Remove an unreliable safety check.
15246         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15247         getloadavg.c is in place.
15248         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15249         Reported by Sam Steingold <sds@gnu.org>.
15250
15251 2011-05-28  Bruno Haible  <bruno@clisp.org>
15252
15253         doc: Cleanup yet another file produced by texinfo.tex.
15254         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15255
15256 2011-05-28  Bruno Haible  <bruno@clisp.org>
15257
15258         Finish the conditional dependencies mechanism.
15259         * gnulib-tool: New option --no-conditional-dependencies.
15260         (func_usage): Document it. Don't mark --conditional-dependencies as
15261         experimental.
15262         (cond_dependencies): The possible values can now be true, false, empty.
15263         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15264         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15265         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15266
15267 2011-05-28  Bruno Haible  <bruno@clisp.org>
15268
15269         doc: Use a recent texinfo.tex.
15270         * doc/Makefile (tex_opts): New variable.
15271         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15272
15273 2011-05-28  Jim Meyering  <meyering@redhat.com>
15274
15275         intprops.h: adjust comment to match code change
15276         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15277         only once, it *may* have side effects.  Also fix an unrelated typo.
15278         (_GL_INT_SIGNED): Likewise.
15279
15280 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15281
15282         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15283
15284 2011-05-26  Bruno Haible  <bruno@clisp.org>
15285
15286         mbsrchr: Avoid collision with system function on Interix.
15287         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15288         Reported by Markus Duft <mduft@gentoo.org>.
15289
15290 2011-05-15  James Youngman  <jay@gnu.org>
15291
15292         getopt: for ambiguous options, enumerate the possibilities.
15293         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15294         the ambiguous options when an ambiguous prefix is given. This was
15295         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15296         glibc change was
15297         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15298
15299 2011-05-25  Eric Blake  <eblake@redhat.com>
15300
15301         getcwd: work around mingw bug
15302         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15303         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15304         Reported by Matthias Bolte.
15305
15306 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15307
15308         test-intprops: disable -Wtype-limits diagnostics
15309         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15310         diagnostics.  Otherwise, the integer overflow macros generate many
15311         diagnostics.  Reported by Jim Meyering in
15312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15313
15314         intprops: shorten, to pacify gcc -Woverlength-strings
15315         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15316         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15317         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15318         likely to run afoul of C compiler limits for string constant lengths.
15319         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15320
15321 2011-05-24  Eric Blake  <eblake@redhat.com>
15322
15323         docs: document recently fixed glibc printf bug
15324         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15325         * doc/posix-functions/printf.texi (printf): Likewise.
15326         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15327         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15328
15329         closein-tests: convert to init.sh
15330         * modules/closein-tests (Files): Add init.sh
15331         * tests/test-closein.sh Use it.
15332
15333         yesno-tests: convert to init.sh
15334         * modules/yesno-tests (Files): Add init.sh.
15335         * tests/test-yesno.sh: Use it.
15336
15337         atexit-tests: ensure reliable exit status
15338         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15339         Reported by Bruno Haible.
15340
15341 2011-05-24  Bruno Haible  <bruno@clisp.org>
15342
15343         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15344         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15345         gl_PREREQ_STRERROR_R invocations from here...
15346         * modules/strerror_r-posix (configure.ac): ... to here.
15347
15348 2011-05-24  Eric Blake  <eblake@redhat.com>
15349
15350         strerror_r: fix missing header
15351         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15352
15353         strerror_r: fix AIX test failures
15354         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15355         ERANGE failure.
15356
15357         strerror_r: fix Solaris test failures
15358         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15359         failures.
15360         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15361
15362         strerror_r: enforce POSIX recommendations
15363         * lib/strerror_r.c (safe_copy): New helper method.
15364         (strerror_r): Guarantee a non-empty string.
15365         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15366         recent POSIX rulings and to match our strerror guarantees.
15367         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15368
15369 2011-05-24  Jim Meyering  <meyering@redhat.com>
15370
15371         test-perror2.c: avoid warning about unused variable
15372         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15373
15374 2011-05-24  Eric Blake  <eblake@redhat.com>
15375
15376         perror: avoid spurious test failure on HP-UX
15377         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15378
15379         tests: fix logic bug in init.sh
15380         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15381         shell.
15382
15383 2011-05-24  Jim Meyering  <meyering@redhat.com>
15384
15385         utimensat: do not reference an out-of-scope buffer
15386         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15387         declared in an inner scope, yet "times" would be dereferenced outside
15388         the scope in which "ts" was valid.
15389         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15390         of ts[2] "out/up", so that the use of aliased "times" (via
15391         "times = ts;") does not end up referencing an out-of-scope "ts"
15392
15393         opendir-safer.c: don't clobber errno; don't close negative FD
15394         * lib/opendir-safer.c (opendir_safer):
15395         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15396         file descriptor, and more importantly, don't clobber the
15397         offending errno value with EINVAL.  Before, upon failure
15398         of dup_safer, we would pass the negative file descriptor to
15399         fdopendir, which would clobber errno.
15400
15401 2011-05-23  Bruno Haible  <bruno@clisp.org>
15402
15403         idcache: Fix module description.
15404         * modules/idcache (Include): Set to "idcache.h".
15405
15406 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15407
15408         gnulib-tool: fix portability problem with MacOS sed
15409         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15410         before the "}".  Problem reported by Leo in
15411         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15412         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15413         sed_extract_condition1, sed_extract_condition2.
15414
15415 2011-05-23  Bruno Haible  <bruno@clisp.org>
15416
15417         hash: Simplify autoconf macro.
15418         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15419
15420 2011-05-23  Bruno Haible  <bruno@clisp.org>
15421
15422         getugroups: Fix module description.
15423         * modules/getugroups (Include): Set to "getugroups.h".
15424
15425 2011-05-23  Bruno Haible  <bruno@clisp.org>
15426
15427         linkat: Simplify autoconf macro.
15428         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15429
15430 2011-05-23  Bruno Haible  <bruno@clisp.org>
15431             Eric Blake  <eblake@redhat.com>
15432
15433         linkat, renameat: Update dependencies.
15434         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15435         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15436         symlinkat.
15437
15438 2011-05-23  Jim Meyering  <meyering@redhat.com>
15439
15440         maint.mk: more tight_scope improvements
15441         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15442         (_gl_TS_headers): Define only in if-0'd block.
15443         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15444         sometimes we must *not* use it.  Adjust uses accordingly.
15445         (sc_tight_scope): Use much simpler grep-based test to determine
15446         whether we skip this rule.
15447
15448         maint.mk: generalize/improve the tight-scope rule
15449         * top/maint.mk: Emit a warning when the test is skipped.
15450         (_gl_TS_dir): Add $(srcdir)/ prefix.
15451         (_gl_TS_function_match): Simplify, rather than trying
15452         to enumerate common types.  Otherwise, it would fail to match an
15453         "extern unsigned char const *" declaration in idutils.
15454         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15455         a way to support use of that type of macro.
15456         (_gl_TS_var_match): Simplify regexp.
15457         (_gl_TS_obj_files): New configurable variable.
15458         (_gl_TS_headers): Likewise.
15459
15460 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         verify: fix bug when gnulib <assert.h> is also included
15463         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15464         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15465         Perhaps there's a better way, but this fixes the immediate problem.
15466         Problem reported by Bruno Haible in
15467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15468
15469 2011-05-22  Bruno Haible  <bruno@clisp.org>
15470
15471         xgetcwd: Simplify autoconf macro.
15472         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15473
15474 2011-05-22  Bruno Haible  <bruno@clisp.org>
15475
15476         New module 'mktime-internal'.
15477         * modules/mktime-internal: New file.
15478         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15479         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15480         mktime_internal as a C macro if libc has __mktime_internal.
15481         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15482         conditions.
15483         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15484
15485 2011-05-22  Bruno Haible  <bruno@clisp.org>
15486
15487         timegm: Correct mktime replacement statements.
15488         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15489         defining mktime as a C macro. This completes a 2009-07-28 commit.
15490
15491 2011-05-22  Bruno Haible  <bruno@clisp.org>
15492
15493         timegm: Simplify autoconf macro.
15494         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15495
15496 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         clock-time: change to LGPLv2+.
15499         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15500         BSD-like but we have no mark for that; this is good enough for now.
15501
15502 2011-05-21  Bruno Haible  <bruno@clisp.org>
15503
15504         strerror_r: Fix comments.
15505         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15506
15507 2011-05-21  Bruno Haible  <bruno@clisp.org>
15508
15509         relocatable-prog-wrapper: Fix possible link error.
15510         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15511         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15512         (gl_FUNC_SETENV): ... to here.
15513         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15514         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15515
15516 2011-05-21  Bruno Haible  <bruno@clisp.org>
15517
15518         relocatable-prog-wrapper: Assume strerror() exists.
15519         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15520         m4/strerror.m4.
15521         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15522         * lib/relocwrapper.c: Remove mention of strerror module.
15523         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15524         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15525         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15526         C macro.
15527
15528 2011-05-21  Bruno Haible  <bruno@clisp.org>
15529
15530         select: Simplify replacement idiom.
15531         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15532         Win32 platforms.
15533         * lib/sys_select.in.h (select): Simplify accordingly.
15534         * modules/select (Depends-on): Likewise.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         mkdir-p: Simplify autoconf macro.
15539         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15540         gl_FUNC_LCHOWN.
15541
15542 2011-05-21  Eric Blake  <eblake@redhat.com>
15543
15544         strerror_r: avoid clobbering strerror on cygwin
15545         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15546         fall back instead to sys_errlist.
15547         * modules/strerror (configure.ac): Add witness.
15548         * tests/test-strerror_r.c (main): Enhance test.
15549         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15550         * tests/test-perror2.c (main): Free memory before exit.
15551
15552 2011-05-21  Bruno Haible  <bruno@clisp.org>
15553
15554         mkdtemp: Use gnulib naming conventions.
15555         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15556         * modules/mkdtemp (configure.ac): Update.
15557
15558 2011-05-20  Eric Blake  <eblake@redhat.com>
15559
15560         strerror_r: avoid corrupting errno on Solaris
15561         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15562         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15563
15564         strerror_r: avoid compiler warning
15565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15566
15567         strerror_r: simplify AIX code
15568         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15569
15570         test-perror: avoid spurious failure on FreeBSD
15571         * modules/perror-tests (Depends-on): Add strerror, now that
15572         strerror_r no longer pulls it in.
15573
15574 2011-05-20  Bruno Haible  <bruno@clisp.org>
15575
15576         strerror_r-posix: Remove unused dependencies.
15577         * modules/strerror_r-posix (Depends-on): Remove strerror.
15578         Reported by Eric Blake.
15579
15580 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15581
15582         intprops: remove assumption about A|B representation
15583         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15584         is a valid integer if both A and B are.  Although this is true for
15585         all known practical hosts, the C standard doesn't guarantee it,
15586         and the code need not assume it.  Also, this change may work around
15587         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15589
15590 2011-05-20  Eric Blake  <eblake@redhat.com>
15591
15592         perror: work around FreeBSD bug
15593         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15594         is broken.  Move AC_LIBOBJ...
15595         * modules/perror (configure.ac): Here.
15596         * doc/posix-functions/perror.texi (perror): Document this.
15597         * tests/test-perror2.c (main): Enhance test.
15598
15599         test-perror: check for strerror interactions
15600         * tests/macros.h (STREQ): Add macro.
15601         * modules/perror-tests (Files): Add second test.
15602         * tests/test-perror2.c (main): New file.
15603         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15604
15605         test-perror: rewrite to use init script
15606         * modules/perror-tests (Files): Add init.sh.
15607         * tests/test-perror.sh: Use temporary directory.
15608
15609 2011-05-20  Jim Meyering  <meyering@redhat.com>
15610
15611         maint: replace misused "a" with "an"
15612         * doc/intprops.texi: "a integer"
15613         * doc/regex.texi: "a explanation"
15614         * lib/alignof.h: "a object"
15615         * lib/argmatch.h: "a explanation"
15616         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15617         * lib/stdint.in.h: "a integer"
15618         * lib/userspec.c: "a owner"
15619         * doc/gnulib.texi: Fix "a idea", and reword.
15620
15621 2011-05-19  Jim Meyering  <meyering@redhat.com>
15622
15623         maint: correct misuse of "a" and "an"
15624         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15625         * lib/argp-help.c: "an docum...": s/an/a/
15626         * lib/argp-parse.c: "An vector": s/An/A/
15627         * lib/execute.c: "an native": s/an/a/
15628         * lib/spawn-pipe.c: Likewise.
15629         * lib/gc.h: "an Gc_rc": s/an/a/
15630         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15631         * lib/fts.c: "an stat.st_dev": s/an/a/
15632
15633 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15634
15635         intprops-tests: work around HP-UX 11.23 cc bug with constants
15636         * tests/test-intprops.c (VERIFY): New macro.
15637         (main): Use it, instead of verify, to work around the compiler bug; see
15638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15639
15640         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15641         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15642         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15643         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15644         (_GL_REMAINDER_OVERFLOW): Use it.
15645
15646         intprops-tests: revert unsigned part of previous change
15647         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15648         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15649         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15651
15652 2011-05-19  Bruno Haible  <bruno@clisp.org>
15653
15654         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15655         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15656         strerror_r() returned without filling the buffer.
15657         Reported by Eric Blake.
15658
15659 2011-05-19  Eric Blake  <eblake@redhat.com>
15660
15661         strerror_r: guarantee unchanged errno
15662         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15663         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15664         failure.
15665         * tests/test-strerror_r.c (main): Enhance test.
15666
15667 2011-05-19  Bruno Haible  <bruno@clisp.org>
15668
15669         strerror_r: Reorder #if blocks.
15670         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15671         for consistency with the previous commit.
15672
15673 2011-05-19  Bruno Haible  <bruno@clisp.org>
15674
15675         perror: Avoid clobbering the strerror buffer when possible.
15676         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15677         * lib/strerror.c: Include it.
15678         * modules/strerror (Files): Add lib/strerror-impl.h.
15679         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15680         (my_strerror): New function, defined through lib/strerror-impl.h.
15681         (perror): Use it instead of strerror.
15682         * modules/perror (Files): Add lib/strerror-impl.h.
15683         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15684
15685 2011-05-19  Eric Blake  <eblake@redhat.com>
15686
15687         strerror_r: fix on newer cygwin
15688         * lib/strerror_r.c (strerror_r): Cygwin now has
15689         __xpg_strerror_r, use it.
15690
15691 2011-05-19  Bruno Haible  <bruno@clisp.org>
15692
15693         strerror_r: Avoid clobbering the strerror buffer when possible.
15694         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15695         (sys_nerr, sys_errlist): New declarations.
15696         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15697         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15698         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15699
15700 2011-05-19  Bruno Haible  <bruno@clisp.org>
15701
15702         strerror_r: Fix test failure on mingw.
15703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15704         EXTEND_STRERROR_R.
15705         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15706         macros from errno.in.h instead.
15707
15708 2011-05-19  Eric Blake  <eblake@redhat.com>
15709
15710         strerror: relax test for Solaris
15711         * tests/test-strerror.c (main): Permit Solaris behavior.
15712         * tests/test-strerror_r.c (main): Likewise.
15713
15714         strerror: enforce POSIX ruling on strerror(0)
15715         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15716         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15717         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15718         * doc/posix-functions/strerror.texi (strerror): Document it.
15719         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15720         * tests/test-strerror.c (main): Strengthen test.
15721         * tests/test-strerror_r.c (main): Likewise.
15722
15723 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15724
15725         intprop-tests: port to older and more-pedantic compilers
15726         * modules/intprops-tests (Files): Add tests/macros.h.
15727         * tests/test-intprops.c: Include macros.h.
15728         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15729         it's no longer documented to expand to an integer constant expression.
15730         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15731         argument is floating point, as it's no longer documented to expand
15732         to an integer constant expression in that case.
15733         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15734         compiler bugs reported by Bruno Haible.  See
15735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15736         (U0, U1): New constants, to work around the same bugs.  Also,
15737         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15738
15739         intprops: work around C compiler bugs
15740         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15741         bug in Sun C 5.11 2010/08/13 and other compilers; see
15742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15743
15744         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15745         * doc/intprops.texi (Integer Type Determination): Fix
15746         documentation for TYPE_IS_INTEGER: it returns an constant
15747         expression, not an integer constant expression.  Fix doc for
15748         TYPE_SIGNED: it returns an integer constant expression only if its
15749         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15750         hardly worth documented that way....)
15751
15752 2011-05-18  Bruno Haible  <bruno@clisp.org>
15753
15754         strerror_r: Avoid clobbering the strerror buffer when possible.
15755         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15756         Handle gnulib defined errno values here. When strerror() returns NULL
15757         or an empty string, return EINVAL.
15758         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15759         gnulib defined errno values here.
15760         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15761
15762 2011-05-18  Eric Blake  <eblake@redhat.com>
15763
15764         fnmatch: avoid compiler warning
15765         * lib/fnmatch_loop.c (FCT): Use correct type.
15766         Reported by Matthias Bolte.
15767
15768 2011-05-13  Jim Meyering  <meyering@redhat.com>
15769
15770         maint.mk: three new prohibit_<HDR>_without_use rules
15771         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15772         (sc_prohibit_stdio-safer_without_use): Likewise.
15773         (sc_prohibit_xfreopen_without_use): Likewise.
15774
15775 2011-05-17  Jim Meyering  <meyering@redhat.com>
15776
15777         announce-gen: fail if the NEWS delta is empty
15778         If there's nothing noteworthy in NEWS, then either you forgot
15779         or you shouldn't be releasing.
15780         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15781
15782 2011-05-17  Pádraig Brady <P@draigBrady.com>
15783
15784         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15785         reserved symbols starting with double underscore from the check.
15786
15787 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15788
15789         intprops: add doc
15790         * doc/intprops.texi: New file, documenting intprops.
15791         * doc/gnulib.texi (Particular Modules): Include it.
15792
15793         verify: add doc to gnulib manual and fix example
15794         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15795         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15796         (Compile-time Assertions): Fix example so it can't overflow.
15797
15798 2011-05-17  Jim Meyering  <meyering@redhat.com>
15799
15800         warnings.m4: don't usurp save_CPPFLAGS variable name
15801         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15802
15803         doc: fix typo
15804         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15805
15806 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15807             Bruno Haible  <bruno@clisp.org>
15808
15809         doc: Tweak recent change.
15810         * README (Portability guidelines): Tweak new text.
15811         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15812         Interix 6.1.
15813
15814 2011-05-16  Eric Blake  <eblake@redhat.com>
15815
15816         inttypes: avoid autoconf warning
15817         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15818         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15819
15820 2011-05-16  Sam Steingold <sds@gnu.org>
15821         and Eric Blake  <eblake@redhat.com>
15822
15823         vc-list-files: accept multiple directory operands
15824         * build-aux/vc-list-files: Iterate over all remaining operands.
15825
15826 2011-05-16  Bruno Haible  <bruno@clisp.org>
15827
15828         Fix confusion regarding deprecated modules.
15829         * modules/calloc (Status, Notice): Mark module as deprecated, not
15830         obsolete.
15831         * modules/fnmatch-posix (Status, Notice): Likewise.
15832         * modules/getdate (Status, Notice): Likewise.
15833         * modules/getopt (Status, Notice): Likewise.
15834         * modules/malloc (Status, Notice): Likewise.
15835         * modules/pipe (Status, Notice): Likewise.
15836         * modules/realloc (Status, Notice): Likewise.
15837         * modules/rename-dest-slash (Status, Notice): Likewise.
15838         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15839         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15840         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15841         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15842         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15843
15844 2011-05-16  Bruno Haible  <bruno@clisp.org>
15845
15846         doc: List the target platforms.
15847         * doc/gnulib-intro.texi (Target Platforms): New section.
15848         * doc/gnulib.texi (Introduction): Update menu.
15849         * README (Portability guidelines): Refer to the new section. Update
15850         statement about oldest supported environment. Remove rationale why
15851         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15852         unportable C89 function.
15853         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15854         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15855
15856 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15857
15858         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15859
15860 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15861
15862         intprops-tests: new module
15863         * modules/intprops-tests, tests/test-intprops.c: New files.
15864
15865         intprops: add safe, portable integer overflow checking
15866         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15867         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15868         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15869         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15870         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15871         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15872         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15873         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15874         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15875         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15876         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15877
15878 2011-05-12  James Youngman  <jay@gnu.org>
15879
15880         Add a test for glibc's Bugzilla bug #12378.
15881         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15882         doesn't allow the literal matching of a lone "[" (which is
15883         required by POSIX).
15884         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15885
15886 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15887
15888         Sync glibc change fixing Bugzilla bug #12378.
15889         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15890         beginning and fall back to matching as normal character if the
15891         string ends before the matching ']' is found.  This is what POSIX
15892         requires.
15893
15894 2011-05-13  Eric Blake  <eblake@redhat.com>
15895
15896         getcwd-lgpl: relax test for FreeBSD
15897         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15898         issue.
15899         * tests/test-getcwd-lgpl.c (main): Relax test.
15900         Reported by Matthias Bolte.
15901
15902 2011-05-11  Eric Blake  <eblake@redhat.com>
15903
15904         test-fflush: silence compiler warning
15905         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15906
15907 2011-05-11  Bruno Haible  <bruno@clisp.org>
15908
15909         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15910         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15911         * modules/canonicalize (Depends-on): Add 'nocrash'.
15912         * modules/canonicalize-lgpl (Depends-on): Likewise.
15913         * doc/posix-functions/realpath.texi: Update platforms list.
15914         Reported by Ryan Schmidt <ryandesign@macports.org>.
15915
15916 2011-05-11  Bruno Haible  <bruno@clisp.org>
15917
15918         group-member: Declare function in <unistd.h>.
15919         * lib/unistd.in.h (group_member): New declaration.
15920         * lib/group-member.h: Remove file.
15921         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15922         * tests/test-unistd-c++.cc: Check signature of group_member.
15923         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15924         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15925         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15926         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15927         HAVE_GROUP_MEMBER.
15928         * modules/group-member (Files): Remove lib/group-member.h.
15929         (Depends-on): Add unistd. Specify conditions.
15930         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15931         (Include): Change to <unistd.h>.
15932         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15933         HAVE_GROUP_MEMBER.
15934         * NEWS: Mention the change.
15935         * lib/euidaccess.c: Don't include group-member.h.
15936
15937 2011-05-11  Bruno Haible  <bruno@clisp.org>
15938
15939         group-member: Document module.
15940         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15941         module.
15942
15943 2011-05-11  Bruno Haible  <bruno@clisp.org>
15944
15945         fclose: Fix mistake earlier today.
15946         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15947
15948 2011-05-11  Eric Blake  <eblake@redhat.com>
15949
15950         fclose: preserve fflush errors
15951         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15952         Reported by Jim Meyering.
15953
15954         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15955         * build-aux/bootstrap (check_versions): When no specific version
15956         is required, merely check that the app produces an exit status
15957         that indicates its existence.
15958
15959         maint.mk: drop redundant check
15960         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15961         the same but better.
15962
15963 2011-05-11  Bruno Haible  <bruno@clisp.org>
15964
15965         fclose: Fix possible link error.
15966         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15967         unregister_shadow_fd. Improve comments.
15968         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15969         Eric Blake.
15970
15971 2011-05-11  Jim Meyering  <meyering@redhat.com>
15972
15973         maint.mk: improve "can not" detection and generalize rule name
15974         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15975         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15976         Use the same technique as in sc_prohibit_doubled_word, so that
15977         we recognize "can not" also when the words are separated by a newline.
15978         Suggested by Eric Blake.
15979         (perl_filename_lineno_text_): Define.  Factored out of...
15980         (prohibit_doubled_word_): ...here.  Use the new definition.
15981         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15982         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15983         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15984
15985 2011-05-10  Eric Blake  <eblake@redhat.com>
15986
15987         fclose: avoid double close race when possible
15988         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15989         all but WINDOWS_SOCKETS.
15990
15991 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15992
15993         openat: correct new comment
15994         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15995
15996 2011-05-10  Jim Meyering  <meyering@redhat.com>
15997
15998         openat: add comments
15999         * lib/openat-proc.c (openat_proc_name): Add comments,
16000         mostly from Eric Blake.
16001
16002 2011-05-09  Eric Blake  <eblake@redhat.com>
16003
16004         openat: reduce syscalls in first probe of /proc
16005         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16006         be a directory.  Simplify the probe for .. bugs.
16007         * modules/openat (Depends-on): Drop same-inode.
16008         Reported by Bastien ROUCARIES.
16009
16010 2011-05-09  Jim Meyering  <meyering@redhat.com>
16011
16012         maint.mk: change semantics/name of tight_scope variables
16013         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16014         Rename variables to align with semantics that make them more useful.
16015
16016         maint.mk: tweak new rule's name not to impinge
16017         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16018         (sc_tight_scope): Use new rule name rather than $@-0.
16019
16020         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16021         * top/maint.mk (sc_tight_scope): New rule.
16022         (sc_tight_scope-0): New rule, ifdef'd out.
16023         (_gl_TS_dir): Default.
16024         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16025         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16026
16027 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16028
16029         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16030         Haible <bruno@clisp.org>.
16031
16032 2011-05-08  Bruno Haible  <bruno@clisp.org>
16033
16034         Comments.
16035         * m4/isnanf.m4: Add comment.
16036         * m4/isnanl.m4: Likewise.
16037
16038 2011-05-08  Bruno Haible  <bruno@clisp.org>
16039
16040         glob: Remove obsolete macro.
16041         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16042
16043 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         intprops: Sun C 5.11 supports __typeof__
16046         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16047         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16048         which is new.
16049         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16050
16051         intprops: switch to usual gnulib indenting and naming
16052         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16053         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16054
16055         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16056
16057 2011-05-08  Jim Meyering  <meyering@redhat.com>
16058
16059         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16060         * top/maint.mk (release-prep): Use make's --no-print-directory
16061         option when generating the announcement.  This eliminates the
16062         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16063         generated announcement template.
16064
16065 2011-05-08  Bruno Haible  <bruno@clisp.org>
16066
16067         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16068         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16069         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16070
16071 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16072
16073         ignore-value, verify: Omit include files from lib_SOURCES.
16074         * modules/ignore-value, modules/verify (Makefile.am):
16075         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16076         that leads Automake to duplicate use of am__objects_... variables
16077         in Makefile.in.  See
16078         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16079
16080 2011-05-07  Bruno Haible  <bruno@clisp.org>
16081
16082         fclose: Simplify autoconf macro.
16083         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16084         defined.
16085
16086 2011-05-07  Bruno Haible  <bruno@clisp.org>
16087
16088         canonicalize-lgpl: Fix autoconf macro ordering bug.
16089         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16090         gl_STDLIB_H_DEFAULTS.
16091
16092 2011-05-06  Eric Blake  <eblake@redhat.com>
16093
16094         maintainer-makefile: make sc_po_check easier to tune
16095         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16096         to probe for strings, such as an alternate location for gnulib.
16097
16098         fclose: guarantee behavior on seekable stdin
16099         * modules/fclose (Depends-on): Add fflush.
16100         * doc/posix-functions/fclose.texi (fclose): Document this.
16101         * tests/test-fclose.c (main): Make test for this unconditional.
16102
16103 2011-05-06  Bruno Haible  <bruno@clisp.org>
16104
16105         fflush, fpurge: Relicense under LGPLv2+.
16106         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16107         * modules/fpurge (License): Likewise.
16108         With permission from Eric Blake and Jim Meyering.
16109         Suggested by Eric Blake.
16110
16111 2011-05-06  Karl Berry  <karl@gnu.org>
16112
16113         * MODULES.html.sh (func_all_modules): remove exit.
16114
16115 2011-05-06  Jim Meyering  <meyering@redhat.com>
16116
16117         maint.mk: use info-gnu@ as the default only for a stable release
16118         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16119         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16120         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16121         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16122
16123 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16124
16125         assert-h: new module, which supports C1X-style static_assert
16126         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16127         * lib/verify.h: Revamp so that this can be copied into assert.h,
16128         while retaining the ability to use it standalone as before.
16129         Rename private identifiers so as not to encroach on the
16130         standard C namespace, since this is now used by assert.h.
16131         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16132         the old verify_true.
16133         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16134         the old verify_true.  Use _GL_VERIFY_TYPE.
16135         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16136         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16137         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16138         defined when this file is copied into the replacement assert.h.
16139         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16140         and _Static_assert is not built in.
16141         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16142         defined, and use the new macros mentioned above.
16143         * doc/posix-headers/assert.texi: Document this.
16144
16145 2011-05-05  Bruno Haible  <bruno@clisp.org>
16146
16147         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16148         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16149         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16150         gl_REPLACE_FCLOSE here.
16151         * modules/fflush (Depends-on): Remove fclose.
16152         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16153         combination with module 'fclose'.
16154
16155 2011-05-05  Bruno Haible  <bruno@clisp.org>
16156
16157         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16158         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16159         gl_FUNC_FFLUSH.
16160         (gl_FUNC_FFLUSH): Use it.
16161         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16162         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16163         gl_REPLACE_FSEEKO here.
16164
16165 2011-05-05  Bruno Haible  <bruno@clisp.org>
16166
16167         tzset: Relicense under LGPL.
16168         * modules/tzset (License): Change to LGPL.
16169         No agreement needed; it's a no-op.
16170
16171         strtoimax, strtoumax: Relicense under LGPL.
16172         * modules/strtoimax (License): Change to LGPL.
16173         * modules/strtoumax (License): Likewise.
16174         With permission from Jim Meyering, Paul Eggert:
16175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16177
16178         getgroups: Relicense under LGPL.
16179         * modules/getgroups (License): Change to LGPL.
16180         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16184
16185         nanosleep: Relicense under LGPL.
16186         * modules/nanosleep (License): Change to LGPL.
16187         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16188         Haible:
16189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16193
16194         futimens: Relicense under LGPL.
16195         * modules/futimens (License): Change to LGPL.
16196         With permission from Eric Blake:
16197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16198
16199         fflush: Relicense under LGPL.
16200         * modules/fflush (License): Change to LGPL.
16201         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16205
16206         tmpfile: Relicense under LGPL.
16207         * modules/tmpfile (License): Change to LGPL.
16208         With permission from Ben Pfaff:
16209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16210
16211         isfinite: Relicense under LGPL.
16212         * modules/isfinite (License): Change to LGPL.
16213         With permission from Ben Pfaff, Bruno Haible:
16214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16216
16217         acosl..tanl: Relicense under LGPL.
16218         * modules/acosl (License): Change to LGPL.
16219         * modules/asinl (License): Likewise.
16220         * modules/atanl (License): Likewise.
16221         * modules/cosl (License): Likewise.
16222         * modules/expl (License): Likewise.
16223         * modules/logl (License): Likewise.
16224         * modules/sinl (License): Likewise.
16225         * modules/sqrtl (License): Likewise.
16226         * modules/tanl (License): Likewise.
16227         Source code originally from glibc and Paolo Bonzini. Agreements:
16228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16230
16231 2011-05-05  Bruno Haible  <bruno@clisp.org>
16232
16233         signal: Define sighandler_t.
16234         * lib/signal.in.h (sighandler_t): New type.
16235         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16236         whether sighandler_t is defined.
16237         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16238         * modules/signal (Depends-on): Add extensions.
16239         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16240         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16241         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16242
16243 2011-05-05  Eric Blake  <eblake@redhat.com>
16244
16245         maint: remove useless REPLACE_*_H macros
16246         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16247         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16248         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16249         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16250         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16251         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16252         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16253         * m4/btowc.m4: Update callers.
16254         * m4/dirfd.m4: Likewise.
16255         * m4/duplocale.m4: Likewise.
16256         * m4/fchdir.m4: Likewise.
16257         * m4/fdopendir.m4: Likewise.
16258         * m4/inet_ntop.m4: Likewise.
16259         * m4/inet_pton.m4: Likewise.
16260         * m4/ioctl.m4: Likewise.
16261         * m4/mbrlen.m4: Likewise.
16262         * m4/mbrtowc.m4: Likewise.
16263         * m4/mbsinit.m4: Likewise.
16264         * m4/mbsnrtowcs.m4: Likewise.
16265         * m4/mbsrtowcs.m4: Likewise.
16266         * m4/poll.m4: Likewise.
16267         * m4/setlocale.m4: Likewise.
16268         * m4/wcrtomb.m4: Likewise.
16269         * m4/wcsnrtombs.m4: Likewise.
16270         * m4/wcsrtombs.m4: Likewise.
16271         * m4/wctob.m4: Likewise.
16272         * m4/wcwidth.m4: Likewise.
16273         * modules/posix_spawn: Likewise.
16274         * modules/posix_spawn_file_actions_addclose: Likewise.
16275         * modules/posix_spawn_file_actions_adddup2: Likewise.
16276         * modules/posix_spawn_file_actions_addopen: Likewise.
16277         * modules/posix_spawn_file_actions_destroy: Likewise.
16278         * modules/posix_spawn_file_actions_init: Likewise.
16279         * modules/posix_spawnattr_destroy: Likewise.
16280         * modules/posix_spawnattr_getflags: Likewise.
16281         * modules/posix_spawnattr_getpgroup: Likewise.
16282         * modules/posix_spawnattr_getschedparam: Likewise.
16283         * modules/posix_spawnattr_getschedpolicy: Likewise.
16284         * modules/posix_spawnattr_getsigdefault: Likewise.
16285         * modules/posix_spawnattr_getsigmask: Likewise.
16286         * modules/posix_spawnattr_init: Likewise.
16287         * modules/posix_spawnattr_setflags: Likewise.
16288         * modules/posix_spawnattr_setpgroup: Likewise.
16289         * modules/posix_spawnattr_setschedparam: Likewise.
16290         * modules/posix_spawnattr_setschedpolicy: Likewise.
16291         * modules/posix_spawnattr_setsigdefault: Likewise.
16292         * modules/posix_spawnattr_setsigmask: Likewise.
16293         * modules/posix_spawnp: Likewise.
16294
16295 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16296
16297         Add option to do-release-commit-and-tag to specify branch.
16298         * build-aux/do-release-commit-and-tag: Add --branch.
16299
16300 2011-05-03  Bruno Haible  <bruno@clisp.org>
16301
16302         Avoid unnecessary compilation units, through conditional dependencies.
16303         * modules/accept (Depends-on): Add conditions to the dependencies.
16304         * modules/acosl (Depends-on): Likewise.
16305         * modules/argz (Depends-on): Likewise.
16306         * modules/asinl (Depends-on): Likewise.
16307         * modules/atanl (Depends-on): Likewise.
16308         * modules/atoll (Depends-on): Likewise.
16309         * modules/bind (Depends-on): Likewise.
16310         * modules/btowc (Depends-on): Likewise.
16311         * modules/canonicalize-lgpl (Depends-on): Likewise.
16312         * modules/ceil (Depends-on): Likewise.
16313         * modules/ceilf (Depends-on): Likewise.
16314         * modules/ceill (Depends-on): Likewise.
16315         * modules/chdir-long (Depends-on): Likewise.
16316         * modules/chown (Depends-on): Likewise.
16317         * modules/close (Depends-on): Likewise.
16318         * modules/connect (Depends-on): Likewise.
16319         * modules/cosl (Depends-on): Likewise.
16320         * modules/dirfd (Depends-on): Likewise.
16321         * modules/dprintf (Depends-on): Likewise.
16322         * modules/dprintf-posix (Depends-on): Likewise.
16323         * modules/error (Depends-on): Likewise.
16324         * modules/euidaccess (Depends-on): Likewise.
16325         * modules/expl (Depends-on): Likewise.
16326         * modules/faccessat (Depends-on): Likewise.
16327         * modules/fchdir (Depends-on): Likewise.
16328         * modules/fclose (Depends-on): Likewise.
16329         * modules/fcntl (Depends-on): Likewise.
16330         * modules/fdopendir (Depends-on): Likewise.
16331         * modules/fflush (Depends-on): Likewise.
16332         * modules/floor (Depends-on): Likewise.
16333         * modules/floorf (Depends-on): Likewise.
16334         * modules/floorl (Depends-on): Likewise.
16335         * modules/fnmatch (Depends-on): Likewise.
16336         * modules/fopen (Depends-on): Likewise.
16337         * modules/fprintf-posix (Depends-on): Likewise.
16338         * modules/frexp (Depends-on): Likewise.
16339         * modules/frexp-nolibm (Depends-on): Likewise.
16340         * modules/frexpl (Depends-on): Likewise.
16341         * modules/frexpl-nolibm (Depends-on): Likewise.
16342         * modules/fseek (Depends-on): Likewise.
16343         * modules/fsusage (Depends-on): Likewise.
16344         * modules/ftell (Depends-on): Likewise.
16345         * modules/ftello (Depends-on): Likewise.
16346         * modules/futimens (Depends-on): Likewise.
16347         * modules/getcwd (Depends-on): Likewise.
16348         * modules/getcwd-lgpl (Depends-on): Likewise.
16349         * modules/getdelim (Depends-on): Likewise.
16350         * modules/getdomainname (Depends-on): Likewise.
16351         * modules/getgroups (Depends-on): Likewise.
16352         * modules/gethostname (Depends-on): Likewise.
16353         * modules/getline (Depends-on): Likewise.
16354         * modules/getlogin_r (Depends-on): Likewise.
16355         * modules/getopt-posix (Depends-on): Likewise.
16356         * modules/getpeername (Depends-on): Likewise.
16357         * modules/getsockname (Depends-on): Likewise.
16358         * modules/getsockopt (Depends-on): Likewise.
16359         * modules/getsubopt (Depends-on): Likewise.
16360         * modules/getusershell (Depends-on): Likewise.
16361         * modules/glob (Depends-on): Likewise.
16362         * modules/grantpt (Depends-on): Likewise.
16363         * modules/iconv_open (Depends-on): Likewise.
16364         * modules/iconv_open-utf (Depends-on): Likewise.
16365         * modules/inet_ntop (Depends-on): Likewise.
16366         * modules/inet_pton (Depends-on): Likewise.
16367         * modules/ioctl (Depends-on): Likewise.
16368         * modules/isapipe (Depends-on): Likewise.
16369         * modules/isfinite (Depends-on): Likewise.
16370         * modules/isinf (Depends-on): Likewise.
16371         * modules/lchown (Depends-on): Likewise.
16372         * modules/ldexpl (Depends-on): Likewise.
16373         * modules/link (Depends-on): Likewise.
16374         * modules/linkat (Depends-on): Likewise.
16375         * modules/listen (Depends-on): Likewise.
16376         * modules/logl (Depends-on): Likewise.
16377         * modules/lstat (Depends-on): Likewise.
16378         * modules/mbrlen (Depends-on): Likewise.
16379         * modules/mbrtowc (Depends-on): Likewise.
16380         * modules/mbsinit (Depends-on): Likewise.
16381         * modules/mbsnrtowcs (Depends-on): Likewise.
16382         * modules/mbsrtowcs (Depends-on): Likewise.
16383         * modules/mbtowc (Depends-on): Likewise.
16384         * modules/memcmp (Depends-on): Likewise.
16385         * modules/mkdir (Depends-on): Likewise.
16386         * modules/mkdtemp (Depends-on): Likewise.
16387         * modules/mkfifo (Depends-on): Likewise.
16388         * modules/mkfifoat (Depends-on): Likewise.
16389         * modules/mknod (Depends-on): Likewise.
16390         * modules/mkostemp (Depends-on): Likewise.
16391         * modules/mkostemps (Depends-on): Likewise.
16392         * modules/mkstemp (Depends-on): Likewise.
16393         * modules/mkstemps (Depends-on): Likewise.
16394         * modules/mktime (Depends-on): Likewise.
16395         * modules/nanosleep (Depends-on): Likewise.
16396         * modules/open (Depends-on): Likewise.
16397         * modules/openat (Depends-on): Likewise.
16398         * modules/perror (Depends-on): Likewise.
16399         * modules/poll (Depends-on): Likewise.
16400         * modules/popen (Depends-on): Likewise.
16401         * modules/posix_spawn (Depends-on): Likewise.
16402         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16403         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16404         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16405         * modules/posix_spawnp (Depends-on): Likewise.
16406         * modules/pread (Depends-on): Likewise.
16407         * modules/printf-posix (Depends-on): Likewise.
16408         * modules/ptsname (Depends-on): Likewise.
16409         * modules/putenv (Depends-on): Likewise.
16410         * modules/pwrite (Depends-on): Likewise.
16411         * modules/readline (Depends-on): Likewise.
16412         * modules/readlink (Depends-on): Likewise.
16413         * modules/readlinkat (Depends-on): Likewise.
16414         * modules/recv (Depends-on): Likewise.
16415         * modules/recvfrom (Depends-on): Likewise.
16416         * modules/regex (Depends-on): Likewise.
16417         * modules/remove (Depends-on): Likewise.
16418         * modules/rename (Depends-on): Likewise.
16419         * modules/renameat (Depends-on): Likewise.
16420         * modules/rmdir (Depends-on): Likewise.
16421         * modules/round (Depends-on): Likewise.
16422         * modules/roundf (Depends-on): Likewise.
16423         * modules/roundl (Depends-on): Likewise.
16424         * modules/rpmatch (Depends-on): Likewise.
16425         * modules/select (Depends-on): Likewise.
16426         * modules/send (Depends-on): Likewise.
16427         * modules/sendto (Depends-on): Likewise.
16428         * modules/setenv (Depends-on): Likewise.
16429         * modules/setlocale (Depends-on): Likewise.
16430         * modules/setsockopt (Depends-on): Likewise.
16431         * modules/shutdown (Depends-on): Likewise.
16432         * modules/sigaction (Depends-on): Likewise.
16433         * modules/signbit (Depends-on): Likewise.
16434         * modules/sigprocmask (Depends-on): Likewise.
16435         * modules/sinl (Depends-on): Likewise.
16436         * modules/sleep (Depends-on): Likewise.
16437         * modules/snprintf (Depends-on): Likewise.
16438         * modules/snprintf-posix (Depends-on): Likewise.
16439         * modules/socket (Depends-on): Likewise.
16440         * modules/sprintf-posix (Depends-on): Likewise.
16441         * modules/sqrtl (Depends-on): Likewise.
16442         * modules/stat (Depends-on): Likewise.
16443         * modules/strchrnul (Depends-on): Likewise.
16444         * modules/strdup-posix (Depends-on): Likewise.
16445         * modules/strerror (Depends-on): Likewise.
16446         * modules/strerror_r-posix (Depends-on): Likewise.
16447         * modules/strndup (Depends-on): Likewise.
16448         * modules/strnlen (Depends-on): Likewise.
16449         * modules/strptime (Depends-on): Likewise.
16450         * modules/strsep (Depends-on): Likewise.
16451         * modules/strsignal (Depends-on): Likewise.
16452         * modules/strstr-simple (Depends-on): Likewise.
16453         * modules/strtod (Depends-on): Likewise.
16454         * modules/strtoimax (Depends-on): Likewise.
16455         * modules/strtok_r (Depends-on): Likewise.
16456         * modules/strtoumax (Depends-on): Likewise.
16457         * modules/symlink (Depends-on): Likewise.
16458         * modules/symlinkat (Depends-on): Likewise.
16459         * modules/tanl (Depends-on): Likewise.
16460         * modules/tcgetsid (Depends-on): Likewise.
16461         * modules/tmpfile (Depends-on): Likewise.
16462         * modules/trunc (Depends-on): Likewise.
16463         * modules/truncf (Depends-on): Likewise.
16464         * modules/truncl (Depends-on): Likewise.
16465         * modules/uname (Depends-on): Likewise.
16466         * modules/unlink (Depends-on): Likewise.
16467         * modules/unlockpt (Depends-on): Likewise.
16468         * modules/unsetenv (Depends-on): Likewise.
16469         * modules/usleep (Depends-on): Likewise.
16470         * modules/utimensat (Depends-on): Likewise.
16471         * modules/vasprintf (Depends-on): Likewise.
16472         * modules/vdprintf (Depends-on): Likewise.
16473         * modules/vdprintf-posix (Depends-on): Likewise.
16474         * modules/vfprintf-posix (Depends-on): Likewise.
16475         * modules/vprintf-posix (Depends-on): Likewise.
16476         * modules/vsnprintf (Depends-on): Likewise.
16477         * modules/vsnprintf-posix (Depends-on): Likewise.
16478         * modules/vsprintf-posix (Depends-on): Likewise.
16479         * modules/wcrtomb (Depends-on): Likewise.
16480         * modules/wcscasecmp (Depends-on): Likewise.
16481         * modules/wcscspn (Depends-on): Likewise.
16482         * modules/wcsdup (Depends-on): Likewise.
16483         * modules/wcsncasecmp (Depends-on): Likewise.
16484         * modules/wcsnrtombs (Depends-on): Likewise.
16485         * modules/wcspbrk (Depends-on): Likewise.
16486         * modules/wcsrtombs (Depends-on): Likewise.
16487         * modules/wcsspn (Depends-on): Likewise.
16488         * modules/wcsstr (Depends-on): Likewise.
16489         * modules/wcstok (Depends-on): Likewise.
16490         * modules/wcswidth (Depends-on): Likewise.
16491         * modules/wctob (Depends-on): Likewise.
16492         * modules/wctomb (Depends-on): Likewise.
16493         * modules/wctype (Depends-on): Likewise.
16494         * modules/wcwidth (Depends-on): Likewise.
16495         * modules/write (Depends-on): Likewise.
16496
16497 2011-05-03  Bruno Haible  <bruno@clisp.org>
16498
16499         Support for conditional dependencies.
16500         * doc/gnulib.texi (Module description): Document the syntax of
16501         conditional dependencies.
16502         * gnulib-tool: New option --conditional-dependencies.
16503         (func_usage): Document it.
16504         (cond_dependencies): New variable.
16505         (func_get_automake_snippet_conditional,
16506         func_get_automake_snippet_unconditional): New functions, extracted from
16507         func_get_automake_snippet.
16508         (func_get_automake_snippet): Use them.
16509         (sed_first_32_chars): New variable.
16510         (func_module_shellfunc_name): New function.
16511         (func_module_shellvar_name): New function.
16512         (func_module_conditional_name): New function.
16513         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16514         func_cond_module_condition): New functions.
16515         (func_modules_transitive_closure): Add support for conditional
16516         dependencies.
16517         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16518         conditional automake snippet in an automake conditional.
16519         (func_emit_autoconf_snippets): Emit shell functions that contain the
16520         code for conditional modules.
16521         (func_import, func_create_testdir): Update specification.
16522
16523 2011-05-03  Eric Blake  <eblake@redhat.com>
16524
16525         test-getaddrinfo: report error information
16526         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16527
16528 2011-05-03  Jim Meyering  <meyering@redhat.com>
16529
16530         bootstrap: avoid build failure when $GZIP is set
16531         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16532         program name.  If defined at all, it is supposed to list gzip options.
16533         Reported by Alan Curry in http://debbugs.gnu.org/8609
16534
16535 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16536
16537         readme-release: new module with release instructions
16538         * modules/readme-release: New module.
16539         * top/README-release: New file, from coreutils, grep, diffutils.
16540         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16541
16542 2011-05-02  Eric Blake  <eblake@redhat.com>
16543
16544         fflush: also replace fclose when fixing fflush
16545         * modules/fflush (Depends-on): Add fclose.
16546         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16547         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16548         memstreams with no backing fd.
16549         * doc/posix-functions/fclose.texi (fclose): Document the use of
16550         fflush module to fix the bug.
16551         * tests/test-fclose.c (main): Relax test when fclose is used in
16552         isolation.
16553
16554         fclose: add some tests
16555         * modules/fclose-tests: New test module.
16556         * tests/test-fclose.c: New file.
16557         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16558
16559         fclose: reduced dependencies
16560         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16561         simpler lseek.
16562         * lib/fclose.c (rpl_fclose): Likewise.
16563         Reported by Simon Josefsson.
16564
16565         exit: drop remaining clients
16566         * modules/argmatch (Depends-on): Replace exit with stdlib.
16567         * modules/copy-file (Depends-on): Likewise.
16568         * modules/execute (Depends-on): Likewise.
16569         * modules/exitfail (Depends-on): Likewise.
16570         * modules/obstack (Depends-on): Likewise.
16571         * modules/pagealign_alloc (Depends-on): Likewise.
16572         * modules/pipe-filter-gi (Depends-on): Likewise.
16573         * modules/pipe-filter-ii (Depends-on): Likewise.
16574         * modules/savewd (Depends-on): Likewise.
16575         * modules/spawn-pipe (Depends-on): Likewise.
16576         * modules/wait-process (Depends-on): Likewise.
16577         * modules/xsetenv (Depends-on): Likewise.
16578         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16579         * modules/git-merge-changelog (Depends-on): Likewise.
16580         * modules/long-options (Depends-on): Likewise.
16581         * modules/pt_chown (Depends-on): Likewise.
16582         * modules/sysexits (Depends-on): Likewise.
16583
16584         freading: relax license from LGPLv3+ to LGPLv2+
16585         * modules/freading (License): Relax LGPL version.
16586
16587 2011-05-02  Bruno Haible  <bruno@clisp.org>
16588
16589         fchdir: Remove unused dependencies.
16590         * modules/fchdir (Depends-on): Remove include_next.
16591
16592 2011-05-02  Bruno Haible  <bruno@clisp.org>
16593
16594         gnulib-tool: Refactor.
16595         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16596         from func_emit_autoconf_snippets.
16597         (func_emit_autoconf_snippets): Use it.
16598
16599 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16600
16601         * NEWS: Document removal of 'exit'.
16602         * modules/exit: Remove file.
16603
16604 2011-05-01  Bruno Haible  <bruno@clisp.org>
16605
16606         Update DEPENDENCIES.
16607         * DEPENDENCIES (gettext): Recommend the newest release.
16608         Reported by Simon Josefsson.
16609
16610 2011-05-01  Bruno Haible  <bruno@clisp.org>
16611
16612         gnulib-tool: Reduce code duplication.
16613         * gnulib-tool (func_emit_autoconf_snippets): New function.
16614         (func_import, func_create_testdir): Use it.
16615
16616 2011-04-30  Eric Blake  <eblake@redhat.com>
16617
16618         fclose: don't fail on non-seekable input stream
16619         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16620         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16621         since fflush is allowed to fail in that case.
16622
16623 2011-04-30  Bruno Haible  <bruno@clisp.org>
16624
16625         dup3: cleanup
16626         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16627
16628 2011-04-30  Bruno Haible  <bruno@clisp.org>
16629
16630         netdb: Make it work in C++ mode.
16631         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16632         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16633         module.
16634         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16635         gl_MODULE_INDICATOR_FOR_TESTS.
16636         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16637         * modules/netdb-c++-tests: New file.
16638         * tests/test-netdb-c++.cc: New file.
16639
16640 2011-04-30  Bruno Haible  <bruno@clisp.org>
16641
16642         New modules 'vfscanf', 'vscanf'.
16643         * modules/vfscanf: New file.
16644         * modules/vscanf: New file.
16645         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16646         here.
16647         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16648         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16649
16650 2011-04-30  Bruno Haible  <bruno@clisp.org>
16651
16652         passfd: Add comments.
16653         * lib/passfd.c: Add comments about platforms.
16654
16655 2011-04-30  Bruno Haible  <bruno@clisp.org>
16656
16657         sys_uio: Make <sys/uio.h> self-contained.
16658         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16659         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16660
16661 2011-04-30  Bruno Haible  <bruno@clisp.org>
16662
16663         sys_socket: Ensure 'struct iovec' definition.
16664         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16665         <sys/socket.h>.
16666         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16667
16668 2011-04-30  Bruno Haible  <bruno@clisp.org>
16669
16670         sys_uio: Protect definition of 'struct iovec'.
16671         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16672         it as a C struct.
16673
16674 2011-04-30  Bruno Haible  <bruno@clisp.org>
16675
16676         manywarnings: fix indentation
16677         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16678
16679 2011-04-30  Pádraig Brady <P@draigBrady.com>
16680
16681         manywarnings: add -Wno-missing-field-initializers if needed.
16682         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16683         option if it's needed to allow initialization with { 0, }
16684
16685 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16686
16687         announce-gen: cosmetic improvement
16688         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16689
16690 2011-04-29  Jim Meyering  <meyering@redhat.com>
16691
16692         vc-list-files: indent with spaces, not TABs
16693         * build-aux/vc-list-files: Convert leading TABs to spaces,
16694         to match the style of most other files in gnulib.
16695
16696         announce-gen: indent with spaces, not TABs
16697         * build-aux/announce-gen: Convert all TABs to spaces, to match
16698         the style of most other files in gnulib.
16699
16700 2011-04-29  Eric Blake  <eblake@redhat.com>
16701
16702         quotearg: avoid uninitialized variable use
16703         * lib/quotearg.c (quoting_options_from_style): Initialize
16704         remaining fields, and ensure that custom styles are only used via
16705         quoting_options rather than quoting_style.
16706
16707 2011-04-29  Jim Meyering  <meyering@redhat.com>
16708
16709         maint.mk: remove unused VC-tag variable
16710         * top/maint.mk (VC-tag): Remove unused variable.
16711
16712 2011-04-29  Bruno Haible  <bruno@clisp.org>
16713
16714         netdb: fix gai_strerror replacements
16715         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16716         * modules/netdb: Substitute it.
16717
16718 2011-04-29  Jim Meyering  <meyering@redhat.com>
16719
16720         test-getcwd.c: avoid new set-but-not-used warning
16721         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16722         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16723         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16724         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16725
16726         test-hash.c: avoid a new shadowing warning
16727         * tests/test-hash.c (main): Don't shadow "dup".
16728
16729 2011-04-28  Eric Blake  <eblake@redhat.com>
16730
16731         getaddrinfo: fix gai_strerror signature
16732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16733         and work around mingw with UNICODE defined.
16734         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16735         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16736         * modules/netdb (Makefile.am): Substitute it.
16737         * lib/netdb.in.h (gai_strerror): Declare replacement.
16738         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16739         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16740         the fix.
16741
16742         getsockopt: avoid compiler warning
16743         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16744         Reported by Matthias Bolte.
16745
16746         tests: drop unused link dependency
16747         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16748         * modules/dirent-safer-tests (Makefile.am): Likewise.
16749         * modules/fdopendir-tests (Makefile.am): Likewise.
16750         * modules/mkfifoat-tests (Makefile.am): Likewise.
16751         * modules/openat-safer-tests (Makefile.am): Likewise.
16752         * modules/openat-tests (Makefile.am): Likewise.
16753         * modules/readlinkat-tests (Makefile.am): Likewise.
16754         * modules/symlinkat-tests (Makefile.am): Likewise.
16755         * modules/linkat-tests (Makefile.am): Likewise.
16756         (Depends-on): Switch to filenamecat-lgpl.
16757         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16758         LIBINTL.
16759         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16760         * tests/test-linkat.c (main): Don't require xalloc.
16761
16762         hash, mgetgroups: drop xalloc dependency
16763         * lib/hash.c (includes): Adjust includes.
16764         * lib/mgetgroups.c (includes): Likewise.
16765         (xgetgroups): Move...
16766         * lib/xgetgroups.c: ...to new file.
16767         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16768         * modules/xgetgroups: New file, split from...
16769         * modules/mgetgroups: ...here.
16770         (Depends-on): Add xalloc-oversized.
16771         * modules/hash (Depends-on): Likewise.
16772         * modules/hash-tests (Depends-on): Drop xalloc.
16773         (test_hash_LDADD): Drop unused library.
16774         * tests/test-hash.c (main): Break xalloc dependency.
16775         (includes): Drop unused include.
16776
16777         xalloc-oversized: new module
16778         * modules/xalloc-oversized: New module.
16779         * modules/xalloc (Depends-on): Add it.
16780         * lib/xalloc.h (xalloc_oversized): Move...
16781         * lib/xalloc-oversized.h: ...into new file.
16782
16783         utimecmp: drop dependency on xmalloc
16784         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16785         due to memory pressure.
16786         * modules/utimecmp (Depends-on): Drop xalloc.
16787
16788 2011-04-27  Eric Blake  <eblake@redhat.com>
16789
16790         getcwd: fix mingw bugs
16791         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16792         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16793         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16794
16795 2011-04-27  Bruno Haible  <bruno@clisp.org>
16796
16797         mkstemps: Ensure declaration on MacOS X 10.5.
16798         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16799         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16800         MacOS X.
16801
16802 2011-04-27  Bruno Haible  <bruno@clisp.org>
16803
16804         mkstemp: More documentation.
16805         * doc/posix-functions/mkstemp.texi: Document header file problem on
16806         MacOS X.
16807
16808 2011-04-27  Bruno Haible  <bruno@clisp.org>
16809
16810         mkstemp: Tweak configure message when cross-compiling.
16811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16812         result as a guess.
16813
16814 2011-04-27  Bruno Haible  <bruno@clisp.org>
16815
16816         clean-temp: Clarify what it does.
16817         * lib/clean-temp.h: Add more comments.
16818         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16819         module.
16820         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16821         * doc/glibc-functions/mkstemps.texi: Likewise.
16822         * doc/glibc-functions/mkostemps.texi: Likewise.
16823
16824 2011-04-27  Eric Blake  <eblake@redhat.com>
16825
16826         fchdir: avoid extra chdir and fix test
16827         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16828         getcwd-lgpl.
16829         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16830         have to be canonical.
16831         (canonicalize_file_name): Drop unused macro.
16832         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16833
16834         filenamecat-lgpl: fix licence
16835         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16836         when it was first created.
16837
16838         linkat, renameat: add missing dependency
16839         * modules/linkat (Depends-on): Require getcwd-lgpl.
16840         * modules/renameat (Depends-on): Likewise.
16841
16842         tests: reduce dependencies
16843         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16844         * tests/test-renameat.c (main): Likewise.
16845         * modules/linkat-tests (Depends-on): Relax dependency.
16846         * modules/renameat-tests (Depends-on): Likewise.
16847         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16848         dependency explicit.
16849
16850         save-cwd: reduce default dependency
16851         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16852         * lib/save-cwd.c: Update comments.
16853         * NEWS: Document the semantic change.
16854
16855         getcwd: enhance tests
16856         * tests/test-getcwd-lgpl.c: New file, taken from...
16857         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16858         repeat long path stress tests from m4 probe.
16859         * modules/getcwd-lgpl-tests: New module.
16860         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16861         * m4/getcwd-abort-bug.m4: Update comment.
16862         * m4/getcwd-path-max.m4: Likewise.
16863
16864         getcwd-lgpl: new module
16865         * modules/getcwd-lgpl: New module.
16866         * lib/getcwd-lgpl.c: New file.
16867         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16868         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16869         * modules/getcwd (configure.ac): Set C witness.
16870         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16871
16872         getcwd: tweak comments
16873         * m4/getcwd-abort-bug.m4: Fix comments.
16874         * m4/getcwd-path-max.m4: Likewise.
16875         * m4/getcwd.m4: Likewise.
16876
16877 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16878         and Eric Blake  <eblake@redhat.com>
16879
16880         mkstemp: replace if system version uses wrong permissions
16881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16882         read/write mode bits set in file created by mkstemp.
16883         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16884
16885 2011-04-27  Eric Blake  <eblake@redhat.com>
16886
16887         passfd: avoid compiler warning
16888         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16889         Reported by Laine Stump.
16890
16891 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16892
16893         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16894         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16895
16896 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16897         and Eric Blake  <eblake@redhat.com>
16898
16899         mkstemp: mention clean-temp module
16900         * lib/mkstemp.c: Add comment.
16901         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16902
16903 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16904
16905         inttypes: also provide default values for 32-bit tests
16906         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16907         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16908
16909 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16910
16911         strtoumax: remove dependency on strtoimax
16912         This is like the strtoull change of yesterday.
16913         * modules/strtoumax (Files): Add lib/strtoimax.c.
16914         (Depends-on): Remove strtoimax and add verify.
16915
16916         inttypes-incomplete: new module
16917         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16918         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16919         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16920         of gl_INTTYPES_H.
16921         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16922         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16923         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16924         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16925         * modules/strtoumax, modules/xstrtol (Depends-on):
16926         Depend on inttypes-incomplete, not inttypes.
16927         * modules/inttypes-incomplete: New module, containing the contents
16928         of the old modules/inttypes module, except that the Files: section
16929         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16930         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16931         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16932         (Depends-on): Depend only on inttypes-incomplete.
16933         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16934
16935         inttypes: omit now-redundant strtoimax and strtoumax work
16936         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16937         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16938
16939         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16940         This supports apps that need pointers to strtoimax and strtoumax,
16941         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16942         nonexistent functions.  See
16943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16944         et seq.
16945         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16946         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16947         a macro.
16948         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16949
16950 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16951
16952         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16953
16954 2011-04-25  Bruno Haible  <bruno@clisp.org>
16955
16956         strtol, strtoul: Mark modules as obsolete.
16957         * modules/strtol (Status, Notice): New sections.
16958         * modules/strtoul (Status, Notice): New sections.
16959
16960 2011-04-25  Bruno Haible  <bruno@clisp.org>
16961
16962         strtod: Remove check for strtod, unless supporting old platforms.
16963         * modules/strtod-obsolete: New file.
16964         * m4/strtod-obsolete.m4: New file.
16965         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16966         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16967         * modules/strtod (Depends-on): Add strtod-obsolete.
16968         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16969
16970 2011-04-25  Bruno Haible  <bruno@clisp.org>
16971
16972         strcase: Make module obsolete.
16973         * modules/strcase (Status, Notice): New sections.
16974
16975 2011-04-25  Bruno Haible  <bruno@clisp.org>
16976
16977         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16978         * modules/dup2-obsolete: New file.
16979         * m4/dup2-obsolete.m4: New file.
16980         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16981         gl_FUNC_DUP2_OBSOLETE is not also defined.
16982         * modules/dup2 (Depends-on): Add dup2-obsolete.
16983         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16984
16985 2011-04-25  Bruno Haible  <bruno@clisp.org>
16986
16987         strnlen: Avoid memchr related link error on old obsolete platforms.
16988         * modules/memchr-obsolete: New file.
16989         * m4/memchr-obsolete.m4: New file.
16990         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16991         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16992         * modules/memchr (Depends-on): Add memchr-obsolete.
16993         * modules/strnlen (Depends-on): Likewise.
16994         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16995
16996 2011-04-25  Jim Meyering  <meyering@redhat.com>
16997
16998         maint.mk: makefile_at_at_check extend and clean up
16999         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17000         in addition to */Makefile.am.
17001         Exempt legitimate uses of @VAR@ notation, e.g.,
17002         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17003         Remove obsolete coreutils-specific comment.
17004         Prompted by discussion here:
17005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17006
17007 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17008
17009         strtoul: remove dependency on strtol
17010         This is so that 'configure' need not check for strtol merely because
17011         the application needs strtoul.
17012         * modules/strtoul (Files): Add lib/strtol.c.
17013         (Depends-on): Remove strtol.
17014
17015         strtoull: remove dependency on strtoul
17016         This is like the strtoll change.
17017         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17018         (Depends-on): Remove strtoul.
17019
17020         strtoll: remove dependency on strtol
17021         This is so that 'configure' need not check for strtol merely because
17022         the application needs strtoll.
17023         * modules/strtoll (Files): Add lib/strtol.c.
17024         (Depends-on): Remove strtol.
17025
17026 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17027
17028         inttypes: Move some configure check to module 'imaxdiv'.
17029         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17030         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17031         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17032
17033 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17034
17035         inttypes: Move some configure check to module 'imaxabs'.
17036         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17037         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17038         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17039
17040 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17041
17042         inttypes: Remove configure tests that are not needed since 2009-12-31.
17043         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17044         gl_cv_header_working_inttypes_h.
17045
17046 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         * modules/strnlen (Depends-on): Remove memchr.
17049         The strnlen implementation doesn't need the memchr module's fixes; see
17050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17051
17052         strtol: remove dependency on wchar
17053         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17054         * modules/strtol (Depends-on): Remove wchar.
17055
17056 2011-04-21  Eric Blake  <eblake@redhat.com>
17057
17058         passfd: fix test regression on Linux
17059         * modules/passfd-tests (configure.ac): Correct socketpair check.
17060
17061         passfd: speed up configure and drop unused code
17062         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17063         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17064         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17065         Instead of probing at configure for unix_scm_rights_bsd44_way,
17066         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17067         check to a struct member probe.
17068         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17069         (sendfd, recvfd): Update preprocessor checks.
17070         * modules/passfd (Files): Reflect rename, and drop unused file.
17071         (Depends-on): Drop unused dependency.
17072
17073         passfd: allow compilation on mingw
17074         * modules/sys_socket (Depends-on): Add sys_uio.
17075         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17076         iovec and a minimal struct msghdr.
17077         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17078         * tests/test-sys_socket.c (main): Enhance test.
17079         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17080         guaranteed to provide what we need.
17081         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17082         * modules/passfd-tests (Depends-on): Add sys_wait.
17083         * tests/test-passfd.c (main): Skip test on mingw, for now.
17084         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17085         partial 'struct msghdr' implementation.
17086
17087         sys_uio: new module
17088         * modules/sys_uio: New module.
17089         * modules/sys_uio-tests: Likewise.
17090         * lib/sys_uio.in.h: New file.
17091         * m4/sys_uio_h.m4: Likewise.
17092         * tests/test-sys_uio.c: Likewise.
17093         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17094         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17095
17096 2011-04-20  Jim Meyering  <meyering@redhat.com>
17097
17098         useless-if-before-free: avoid false-positive
17099         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17100         disjunct so that it too requires a terminating ";".  Without that,
17101         this script would identify as useless one statement from gcc that
17102         was not:
17103           if (aligned_ptr)
17104             free (((void **) aligned_ptr) [-1]);
17105
17106 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17107
17108         doc: update users.txt.
17109         * users.txt: Add barcode.
17110
17111 2011-04-19  Bruno Haible  <bruno@clisp.org>
17112
17113         ioctl: Remove link dependency on native Windows.
17114         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17115         (gl_close_fn, gl_ioctl_fn): New types.
17116         (struct fd_hook): Renamed from struct close_hook. Change type of
17117         private_close_fn field. Add private_ioctl_fn field.
17118         (close_hook_fn): Add parameter for primary close method.
17119         (execute_close_hooks, execute_all_close_hooks): Likewise.
17120         (ioctl_hook_fn): New type.
17121         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17122         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17123         argument.
17124         (unregister_fd_hook): Renamed from unregister_close_hook.
17125         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17126         Don't include <unistd.h>.
17127         (close): Remove undef.
17128         (anchor): Update.
17129         (execute_close_hooks): Add argument for primary close method.
17130         (execute_all_close_hooks): Likewise.
17131         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17132         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17133         argument. Allow each argument to be NULL.
17134         (unregister_fd_hook): Renamed from unregister_close_hook.
17135         * lib/close.c (rpl_close): Pass 'close' function pointer to
17136         execute_all_close_hooks.
17137         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17138         (primary_ioctl): New function.
17139         (ioctl): Don't call ioctlsocket here. Instead, call
17140         execute_all_ioctl_hooks.
17141         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17142         close method.
17143         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17144         (fd_sockets_hook): Renamed from close_sockets_hook.
17145         (gl_sockets_startup, gl_sockets_cleanup): Update.
17146         * modules/fd-hook: Renamed from modules/close-hook. Update.
17147         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17148         * modules/sockets (Depends-on): Likewise.
17149         * modules/ioctl (Depends-on): Add fd-hook.
17150         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17151         GNULIB_SOCKET.
17152
17153 2011-04-19  Bruno Haible  <bruno@clisp.org>
17154
17155         Move the support of O_NONBLOCK in open() to the 'open' module.
17156         * modules/nonblocking (Depends-on): Remove 'open'.
17157         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17158         gl_cv_have_open_O_NONBLOCK.
17159         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17160         O_NONBLOCK support.
17161         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17162
17163 2011-04-17  Bruno Haible  <bruno@clisp.org>
17164
17165         pipe2: Simplify code.
17166         * lib/pipe2.c (pipe2): Reduce code duplication.
17167
17168 2011-04-17  Bruno Haible  <bruno@clisp.org>
17169
17170         nonblocking: Add comment.
17171         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17172
17173 2011-04-17  Bruno Haible  <bruno@clisp.org>
17174
17175         nonblocking: Add tests for sockets.
17176         * tests/test-nonblocking-socket.sh: New file.
17177         * tests/test-nonblocking-socket-main.c: New file.
17178         * tests/test-nonblocking-socket-child.c: New file.
17179         * tests/test-nonblocking-socket.h: New file.
17180         * tests/socket-server.h: New file.
17181         * tests/socket-client.h: New file.
17182         * modules/nonblocking-socket-tests: New file.
17183         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17184
17185 2011-04-17  Bruno Haible  <bruno@clisp.org>
17186
17187         nonblocking: Add tests for pipes.
17188         * tests/test-nonblocking-pipe.sh: New file.
17189         * tests/test-nonblocking-pipe-main.c: New file.
17190         * tests/test-nonblocking-pipe-child.c: New file.
17191         * tests/test-nonblocking-pipe.h: New file.
17192         * tests/test-nonblocking-writer.h: New file.
17193         * tests/test-nonblocking-reader.h: New file.
17194         * tests/test-nonblocking-misc.h: New file.
17195         * modules/nonblocking-pipe-tests: New file.
17196         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17197
17198 2011-04-16  Bruno Haible  <bruno@clisp.org>
17199
17200         gettext: Clarify the needed programmer actions.
17201         * modules/gettext (Notice): New field.
17202         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17203
17204 2011-04-16  Bruno Haible  <bruno@clisp.org>
17205
17206         strchrnul: Tweak last commit.
17207         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17208         bug.
17209         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17210         as in _GL_FUNCDECL_SYS.
17211         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17212         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17213
17214 2011-04-15  Eric Blake  <eblake@redhat.com>
17215
17216         strchrnul: work around cygwin bug
17217         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17218         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17220         * modules/string (Makefile.am): Substitute it.
17221         * lib/string.in.h (strchrnul): Use it.
17222
17223 2011-04-15  Bruno Haible  <bruno@clisp.org>
17224
17225         Don't require lib/stdio-write.c when only module 'stdio' is used.
17226         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17227         invocation.
17228         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17229
17230 2011-04-14  Bruno Haible  <bruno@clisp.org>
17231
17232         Support non-blocking pipe I/O in read() on native Windows.
17233         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17234         (read): New declaration.
17235         * lib/read.c: New file.
17236         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17237         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17238         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17239         vscanf): New declarations.
17240         * lib/stdio-read.c: New file.
17241         * m4/read.m4: New file.
17242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17243         REPLACE_READ.
17244         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17245         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17246         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17247         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17248         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17249         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17250         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17251         * modules/read: New file.
17252         * modules/nonblocking (Files): Add lib/stdio-read.c.
17253         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17254         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17255         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17256         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17257         * modules/pread (Depends-on): Add read.
17258         * modules/safe-read (Depends-on): Likewise.
17259         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17260         gets, scanf, vfscanf, vscanf): Verify signatures.
17261         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17262         problem with non-blocking pipes.
17263         * doc/posix-functions/fgetc.texi: Likewise.
17264         * doc/posix-functions/fgets.texi: Likewise.
17265         * doc/posix-functions/fread.texi: Likewise.
17266         * doc/posix-functions/fscanf.texi: Likewise.
17267         * doc/posix-functions/getc.texi: Likewise.
17268         * doc/posix-functions/getchar.texi: Likewise.
17269         * doc/posix-functions/gets.texi: Likewise.
17270         * doc/posix-functions/scanf.texi: Likewise.
17271         * doc/posix-functions/vfscanf.texi: Likewise.
17272         * doc/posix-functions/vscanf.texi: Likewise.
17273
17274 2011-04-14  Bruno Haible  <bruno@clisp.org>
17275
17276         Support non-blocking pipe I/O in write() on native Windows.
17277         * lib/write.c (rpl_write): Split a write request that failed merely
17278         because the byte count was larger than the pipe buffer's size.
17279         * doc/posix-functions/write.texi: Mention the problem with large byte
17280         counts.
17281
17282 2011-04-14  Bruno Haible  <bruno@clisp.org>
17283
17284         wchar: Ensure that wchar_t gets defined on uClibc.
17285         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17286         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17287
17288 2011-04-13  Bruno Haible  <bruno@clisp.org>
17289
17290         safe-write, full-read: Avoid unnecessary compilation units.
17291         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17292         (Depends-on): Remove safe-read. Add ssize_t.
17293         * modules/full-read (Files): Add lib/full-write.c.
17294         (Depends-on): Add full-write.
17295
17296 2011-04-13  Bruno Haible  <bruno@clisp.org>
17297
17298         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17299         * modules/pwrite (Depends-on): Add 'write'.
17300
17301 2011-04-13  Bruno Haible  <bruno@clisp.org>
17302
17303         Support non-blocking pipe I/O in write() on native Windows.
17304         * lib/unistd.in.h (write): Enable replacement also if
17305         GNULIB_UNISTD_H_NONBLOCKING is 1.
17306         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17307         (rpl_write): When failing to write on a non-blocking pipe, change
17308         errno from ENOSPC to EAGAIN.
17309         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17310         putchar, puts, vfprintf, vprintf): Enable replacement also if
17311         GNULIB_STDIO_H_NONBLOCKING is 1.
17312         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17313         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17314         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17315         CALL_WITH_SIGPIPE_EMULATION.
17316         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17317         * m4/nonblocking.m4: New file.
17318         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17319         for non-blocking I/O support.
17320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17321         GNULIB_UNISTD_H_NONBLOCKING.
17322         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17323         required for non-blocking I/O support.
17324         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17325         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17326         lib/stdio-write.c, m4/asm-underscore.m4.
17327         (Depends-on): Add stdio, unistd.
17328         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17329         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17330         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17331         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17332         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17333         problem with non-blocking pipes.
17334         * doc/posix-functions/fputc.texi: Likewise.
17335         * doc/posix-functions/fputs.texi: Likewise.
17336         * doc/posix-functions/fwrite.texi: Likewise.
17337         * doc/posix-functions/printf.texi: Likewise.
17338         * doc/posix-functions/putc.texi: Likewise.
17339         * doc/posix-functions/putchar.texi: Likewise.
17340         * doc/posix-functions/puts.texi: Likewise.
17341         * doc/posix-functions/vfprintf.texi: Likewise.
17342         * doc/posix-functions/vprintf.texi: Likewise.
17343         * doc/posix-functions/write.texi: Likewise.
17344
17345 2011-04-10  Jim Meyering  <meyering@redhat.com>
17346
17347         maint.mk: prohibit doubled words
17348         Detect them also when they're separated by a newline.
17349         There are 3 ways to customize it:
17350           - disable the test on a per file basis, as usual with rules using
17351             $(VC_LIST_EXCEPT)
17352           - replace the default doubled-word-selecting regexp (affects all files)
17353           - ignore a particular file-vs-doubled-word match
17354         I nearly used that last one to ignore the "is is" match in
17355         coreutils' NEWS file, since the text was "ls -is is ..."
17356         To do that, I would have added this line to cfg.mk:
17357           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17358         but it would have ignored any "is is" match in NEWS.
17359         Low probability, but still...
17360         Instead, I changed the text, slightly:
17361           -  ls -is is now consistent with ls -lis in ignoring values returned
17362           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17363         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17364         (prohibit_doubled_word_): Define.
17365         (sc_prohibit_doubled_word): New rule.
17366         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17367
17368 2011-04-10  Jim Meyering  <meyering@redhat.com>
17369
17370         maint: fix doubled-word typo in comment
17371         * m4/gethostname.m4: s/is is/it is/
17372         * m4/getdomainname.m4: Likewise.
17373
17374 2011-04-10  Jim Meyering  <meyering@redhat.com>
17375
17376         maint: remove doubled word: s/it it/it/
17377         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17378
17379 2011-04-10  Jim Meyering  <meyering@redhat.com>
17380
17381         maint.mk: remove useless semicolon and backslash
17382         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17383         semicolon and backslash.
17384
17385 2011-04-10  Bruno Haible  <bruno@clisp.org>
17386
17387         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17388         * modules/stdint-tests (Depends-on): Add wchar.
17389
17390 2011-04-10  Jim Meyering  <meyering@redhat.com>
17391
17392         maint: remove doubled words in comments, e.g., s/a a/a/
17393         * lib/strptime.c (day_of_the_week): s/the the/the/
17394         * tests/test-chown.h (test_chown): s/a a/a/
17395
17396         test-chown.h: correct a cast
17397         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17398         when the destination is a stat.st_gid.
17399
17400 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17401
17402         getaddrinfo: Fix test for sa_len member.
17403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17404         include <sys/types.h> before <sys/socket.h>.
17405
17406 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17407
17408         maint: change "can not" to "cannot"
17409         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17410         boundaries.
17411
17412 2011-04-09  Jim Meyering  <meyering@redhat.com>
17413
17414         maint: change "a a" to "a"
17415         * tests/test-lchown.h (test_lchown): s/a a/a/
17416
17417         maint.mk: prohibit \<the the\>
17418         * top/maint.mk (sc_prohibit_the_the): New rule.
17419
17420         maint: fix "the the" in comment
17421         * lib/count-one-bits.h: s/the the/the/
17422
17423         maint: change "can not" to "cannot"
17424         But do not change the occurrences in maintain.texi or in
17425         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17426         * doc/gnulib-tool.texi: s/can not/cannot/
17427         * doc/posix-functions/accept.texi (accept): Likewise.
17428         * doc/posix-functions/socket.texi (socket): Likewise.
17429         * lib/mbrtowc.c: Likewise.
17430
17431         maint.mk: prohibit use of "can not"
17432         * top/maint.mk (sc_prohibit_can_not): New rule.
17433         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17434
17435 2011-04-09  Bruno Haible  <bruno@clisp.org>
17436
17437         careadlinkat: Guard against misuse of careadlinkatcwd.
17438         * lib/careadlinkat.c: Include <stdlib.h>.
17439         (careadlinkatcwd): Check that the fd argument is as expected.
17440
17441 2011-04-09  Bruno Haible  <bruno@clisp.org>
17442
17443         careadlinkat: Use common coding style.
17444         * lib/careadlinkat.c: Move gnulib includes after system includes.
17445
17446 2011-04-09  Bruno Haible  <bruno@clisp.org>
17447
17448         careadlinkat: Clarify specification.
17449         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17450         (careadlinkatcwd): Add comment.
17451         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17452
17453 2011-04-09  Bruno Haible  <bruno@clisp.org>
17454
17455         areadlinkat: Avoid link error on many platforms.
17456         * modules/areadlinkat (Depends-on): Add areadlink.
17457
17458 2011-04-09  Bruno Haible  <bruno@clisp.org>
17459
17460         allocator, careadlinkat: Fix double-inclusion guard.
17461         * lib/allocator.h: Fix double-inclusion guard.
17462         * lib/careadlinkat.h: Likewise.
17463
17464 2011-04-09  Bruno Haible  <bruno@clisp.org>
17465
17466         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17467         * lib/relocwrapper.c: Update dependencies hierarchy.
17468         * build-aux/install-reloc: Update list of files to be compiled.
17469         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17470         lib/allocator.[hc].
17471
17472 2011-04-08  Eric Blake  <eblake@redhat.com>
17473
17474         strftime: silence gnulib-tool warning
17475         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17476
17477 2011-04-08  Bruno Haible  <bruno@clisp.org>
17478
17479         verify: Fix syntax error with GCC 4.6 in C++ mode.
17480         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17481         (HAVE_STATIC_ASSERT): New macro.
17482         (verify_true, verify): Use 'static_assert' if it is supported and
17483         '_Static_assert' is not supported.
17484
17485 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17486
17487         allocator: New module.
17488         * modules/allocator, lib/allocator.c: New files.
17489         * lib/allocator.h (stdlib_allocator): New decl.
17490         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17491         Remove.  Do not include <stdlib.h>.
17492         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17493         * modules/careadlinkat (Files): Remove lib/allocator.h.
17494         (Depends-on): Add allocator.
17495
17496         stdlib: let modules use system malloc, realloc
17497         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17498         if !_GL_USE_STDLIB_ALLOC.
17499         (malloc, realloc): Limit this change to a smaller scope.
17500
17501         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17502         (malloc, realloc): Don't #undef; no longer needed.
17503         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17504         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17505         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17506         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17507         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17508         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17509         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17510         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17511
17512         careadlinkat: rename members to avoid problem
17513         * lib/allocator.h (struct allocator): Rename members from
17514         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17515         and realloc are #define'd.  Reported by Eric Blake in
17516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17517         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17518
17519 2011-04-08  Eric Blake  <eblake@redhat.com>
17520
17521         nonblocking: reduce dependency
17522         * tests/test-nonblocking.c: Only test sockets when in use.
17523         * modules/nonblocking-tests (Depends-on): Drop socket.
17524         (Makefile.am): Link even if sockets are not present.
17525         * modules/pipe2-tests (Makefile.am): Likewise.
17526         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17527
17528         pipe2: fix O_NONBLOCK support on mingw
17529         * modules/pipe2 (Depends-on): Add nonblocking.
17530         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17531         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17532         * tests/test-nonblocking.c (main): Likewise.
17533         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17534
17535         fcntl-h: fix O_ACCMODE on cygwin
17536         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17537         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17538
17539         pipe-filter: drop O_NONBLOCK workarounds
17540         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17541         * modules/pipe-filter-ii (Depends-on): Likewise.
17542         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17543
17544         nonblocking: provide O_NONBLOCK for mingw
17545         * modules/nonblocking (Depends-on): Add open.
17546         (configure.ac): Set new witness macro.
17547         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17548         * modules/fcntl-h (Makefile.am): Substitute it.
17549         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17550         nonblocking module is in use.
17551         * lib/nonblocking.c: Adjust portability test.
17552         * lib/open.c (open): Don't let native open see gnulib flag.
17553         * tests/test-fcntl-h.c (main): Enhance test.
17554         * tests/test-open.h (test_open): Likewise.
17555         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17556
17557         careadlinkat: fix compilation error on mingw
17558         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17559         within struct allocator.
17560
17561 2011-04-06  Eric Blake  <eblake@redhat.com>
17562
17563         binary-io: relicense under LGPLv2+
17564         * modules/binary-io (License): Relax to LGPLv2+.
17565         Requested for libvirt, and required by pipe2.
17566
17567 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         verify: use _Static_assert if available
17570         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17571         (verify_true, verify): Use it if available.  This generates better
17572         diagnostics with GCC 4.6.0 and later.
17573
17574 2011-04-05  Bruno Haible  <bruno@clisp.org>
17575
17576         Remove leftover generated .h files after config.status changed.
17577
17578         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17579         GL_GENERATE_ALLOCA_H.
17580         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17581         GL_GENERATE_ALLOCA_H evaluates to false.
17582
17583         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17584         GL_GENERATE_ARGZ_H.
17585         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17586         evaluates to false.
17587
17588         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17589         GL_GENERATE_BYTESWAP_H.
17590         * modules/byteswap (Makefile.am): Remove byteswap.h if
17591         GL_GENERATE_BYTESWAP_H evaluates to false.
17592
17593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17594         GL_GENERATE_ERRNO_H.
17595         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17596         evaluates to false.
17597
17598         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17599         GL_GENERATE_FLOAT_H.
17600         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17601         evaluates to false.
17602
17603         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17604         GL_GENERATE_FNMATCH_H.
17605         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17606         GL_GENERATE_FNMATCH_H evaluates to false.
17607
17608         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17609         GL_GENERATE_GLOB_H.
17610         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17611         evaluates to false.
17612
17613         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17614         automake conditional GL_GENERATE_ICONV_H.
17615         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17616         evaluates to false.
17617
17618         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17619         GL_GENERATE_NETINET_IN_H.
17620         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17621         GL_GENERATE_NETINET_IN_H evaluates to false.
17622
17623         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17624         conditional GL_GENERATE_PTHREAD_H.
17625         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17626         * modules/pthread (Makefile.am): Remove pthread.h if
17627         GL_GENERATE_PTHREAD_H evaluates to false.
17628
17629         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17630         GL_GENERATE_SCHED_H.
17631         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17632         evaluates to false.
17633
17634         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17635         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17636         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17637         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17638
17639         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17640         GL_GENERATE_STDARG_H.
17641         * modules/stdarg (Makefile.am): Remove stdarg.h if
17642         GL_GENERATE_STDARG_H evaluates to false.
17643
17644         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17645         GL_GENERATE_STDBOOL_H.
17646         * modules/stdbool (Makefile.am): Remove stdbool.h if
17647         GL_GENERATE_STDBOOL_H evaluates to false.
17648
17649         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17650         conditional GL_GENERATE_STDDEF_H.
17651         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17652         * modules/stddef (Makefile.am): Remove stddef.h if
17653         GL_GENERATE_STDDEF_H evaluates to false.
17654
17655         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17656         GL_GENERATE_STDINT_H.
17657         * modules/stdint (Makefile.am): Remove stdint.h if
17658         GL_GENERATE_STDINT_H evaluates to false.
17659
17660         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17661         GL_GENERATE_SYSEXITS_H.
17662         * modules/sysexits (Makefile.am): Remove sysexits.h if
17663         GL_GENERATE_SYSEXITS_H evaluates to false.
17664
17665         Reported by Karl Berry and Ralf Wildenhues.
17666
17667 2011-04-05  Bruno Haible  <bruno@clisp.org>
17668
17669         Ensure to rebuild generated .h files when config.status has changed.
17670         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17671         config.status.
17672         * modules/ctype (Makefile.am): Likewise.
17673         * modules/dirent (Makefile.am): Likewise.
17674         * modules/errno (Makefile.am): Likewise.
17675         * modules/fcntl-h (Makefile.am): Likewise.
17676         * modules/float (Makefile.am): Likewise.
17677         * modules/getopt-posix (Makefile.am): Likewise.
17678         * modules/glob (Makefile.am): Likewise.
17679         * modules/iconv-h (Makefile.am): Likewise.
17680         * modules/inttypes (Makefile.am): Likewise.
17681         * modules/langinfo (Makefile.am): Likewise.
17682         * modules/locale (Makefile.am): Likewise.
17683         * modules/math (Makefile.am): Likewise.
17684         * modules/netdb (Makefile.am): Likewise.
17685         * modules/netinet_in (Makefile.am): Likewise.
17686         * modules/poll-h (Makefile.am): Likewise.
17687         * modules/pthread (Makefile.am): Likewise.
17688         * modules/pty (Makefile.am): Likewise.
17689         * modules/sched (Makefile.am): Likewise.
17690         * modules/search (Makefile.am): Likewise.
17691         * modules/selinux-h (Makefile.am): Likewise.
17692         * modules/signal (Makefile.am): Likewise.
17693         * modules/spawn (Makefile.am): Likewise.
17694         * modules/stdarg (Makefile.am): Likewise.
17695         * modules/stdbool (Makefile.am): Likewise.
17696         * modules/stddef (Makefile.am): Likewise.
17697         * modules/stdint (Makefile.am): Likewise.
17698         * modules/stdio (Makefile.am): Likewise.
17699         * modules/stdlib (Makefile.am): Likewise.
17700         * modules/string (Makefile.am): Likewise.
17701         * modules/strings (Makefile.am): Likewise.
17702         * modules/sys_file (Makefile.am): Likewise.
17703         * modules/sys_ioctl (Makefile.am): Likewise.
17704         * modules/sys_select (Makefile.am): Likewise.
17705         * modules/sys_socket (Makefile.am): Likewise.
17706         * modules/sys_stat (Makefile.am): Likewise.
17707         * modules/sys_time (Makefile.am): Likewise.
17708         * modules/sys_times (Makefile.am): Likewise.
17709         * modules/sys_utsname (Makefile.am): Likewise.
17710         * modules/sys_wait (Makefile.am): Likewise.
17711         * modules/sysexits (Makefile.am): Likewise.
17712         * modules/termios (Makefile.am): Likewise.
17713         * modules/time (Makefile.am): Likewise.
17714         * modules/unistd (Makefile.am): Likewise.
17715         * modules/wchar (Makefile.am): Likewise.
17716         * modules/wctype-h (Makefile.am): Likewise.
17717         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17718
17719 2011-04-05  Bruno Haible  <bruno@clisp.org>
17720
17721         pipe2: Relicense under LGPLv2+.
17722         * modules/pipe2 (License): Change to LGPLv2+.
17723         Requested by Eric Blake, for libvirt.
17724
17725 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17726
17727         bootstrap: compute gnulib_extra_files after updating build_aux
17728         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17729         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17730
17731 2011-04-05  Eric Blake  <eblake@redhat.com>
17732
17733         bootstrap: preserve git whitelist item sorting
17734         * build-aux/bootstrap (sort_patterns): New function.
17735         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17736
17737 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17738
17739         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17740         sc_space_tab check.
17741
17742 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17743
17744         areadlink, areadlinkat: rewrite in terms of careadlinkat
17745         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17746         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17747         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17748         (malloc, realloc): Remove #undefs.
17749         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17750         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17751         readlink, ssize_t, stdint, unistd.
17752         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17753         areadlink, stdint.
17754
17755         careadlinkat: new module
17756         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17757         * modules/careadlinkat: New files, written by me with
17758         a review and feedback from Ben Pfaff in
17759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17760
17761 2011-04-01  Bruno Haible  <bruno@clisp.org>
17762
17763         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17764         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17765         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17766         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17767         Reported by Bruce Korb <bruce.korb@gmail.com>.
17768
17769 2011-04-01  Bruno Haible  <bruno@clisp.org>
17770
17771         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17772         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17773         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17774         * modules/wcpcpy (Depends-on): Add extensions.
17775         * modules/wcpncpy (Depends-on): Likewise.
17776         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17777         systems.
17778         * doc/posix-functions/wcpncpy.texi: Likewise.
17779         * doc/posix-functions/wcwidth.texi: Likewise.
17780
17781 2011-03-31  Eric Blake  <eblake@redhat.com>
17782
17783         nonblocking: fix mingw test failures
17784         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17785         non-blocking flag on regular file.
17786         (get_nonblocking_flag): Set errno on invalid fd.
17787         * tests/test-nonblocking.c (main): Avoid test failure on
17788         directories if fchdir is not active.
17789         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17790
17791 2011-03-31  Bruno Haible  <bruno@clisp.org>
17792
17793         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17794         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17795         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17796         Reported by Simon Josefsson <simon@josefsson.org>.
17797
17798 2011-03-31  Bruno Haible  <bruno@clisp.org>
17799         and Eric Blake  <eblake@redhat.com>
17800
17801         nonblocking: new module
17802         * modules/nonblocking: New module.
17803         * modules/nonblocking-tests: Likewise.
17804         * lib/nonblocking.h: New file.
17805         * lib/nonblocking.c: Likewise.
17806         * tests/test-nonblocking.c: New test.
17807         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17808
17809 2011-03-30  Bruno Haible  <bruno@clisp.org>
17810
17811         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17812         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17813         instead of 'printf' format for GCC >= 4.4.
17814         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17815         (fprintf, printf, vfprintf, vprintf): Declare with
17816         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17817         the system's vfprintf() function.
17818         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17819
17820 2011-03-30  Eric Blake  <eblake@redhat.com>
17821
17822         passfd: fix scoping bug
17823         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17824         before sendmsg/recvmsg.
17825
17826         passfd: standardize coding conventions
17827         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17828         can be learned at compile time.
17829         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17830         ifdefs.
17831         (sendfd, recvfd): Follow gnulib code conventions.
17832
17833         passfd: fix incorrect sendmsg arguments
17834         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17835         incorrect msg_controllen value.
17836         * modules/passfd-tests (Depends-on): Check for alarm.
17837         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17838         Reported by Bastien ROUCARIES.
17839
17840 2011-03-30  Bruno Haible  <bruno@clisp.org>
17841
17842         c-strcasestr: Relicense under LGPLv2+.
17843         * modules/c-strcasestr (License): Change to LGPLv2+.
17844         Requested by Eric Blake, for libvirt.
17845
17846 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17847
17848         * users.txt: Add libidn2.  Fix libtasn1 link.
17849
17850 2011-03-30  Jim Meyering  <meyering@redhat.com>
17851
17852         tests: readlink* ("",... fails with EINVAL on newer kernels
17853         readlink and readlinkat have typically failed with ENOENT for
17854         the invalid, empty file name,  "".  However, with the advent
17855         of linux-2.6.39, they fail with EINVAL.
17856         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17857         when operating on the empty file name.
17858         * tests/test-readlink.h (test_readlink): Likewise.
17859
17860 2011-03-29  Bruno Haible  <bruno@clisp.org>
17861
17862         Relicense some modules under LGPLv2+, for libidn2.
17863         * modules/array-mergesort (License): Change to LGPLv2+.
17864         * modules/c-strcaseeq (License): Likewise.
17865         * modules/striconveh (License): Likewise.
17866         * modules/striconveha (License): Likewise.
17867         * modules/uniconv/base (License): Likewise.
17868         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17869         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17870         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17871         * modules/unictype/base (License): Likewise.
17872         * modules/unictype/bidiclass-of (License): Likewise.
17873         * modules/unictype/category-M (License): Likewise.
17874         * modules/unictype/category-none (License): Likewise.
17875         * modules/unictype/category-of (License): Likewise.
17876         * modules/unictype/category-test (License): Likewise.
17877         * modules/unictype/category-test-withtable (License): Likewise.
17878         * modules/unictype/combining-class (License): Likewise.
17879         * modules/unictype/joiningtype-of (License): Likewise.
17880         * modules/unictype/scripts (License): Likewise.
17881         * modules/uninorm/base (License): Likewise.
17882         * modules/uninorm/canonical-decomposition (License): Likewise.
17883         * modules/uninorm/composition (License): Likewise.
17884         * modules/uninorm/decompose-internal (License): Likewise.
17885         * modules/uninorm/decomposition-table (License): Likewise.
17886         * modules/uninorm/nfc (License): Likewise.
17887         * modules/uninorm/nfd (License): Likewise.
17888         * modules/uninorm/u32-normalize (License): Likewise.
17889         * modules/unistr/base (License): Likewise.
17890         * modules/unistr/u32-cpy (License): Likewise.
17891         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17892         * modules/unistr/u32-to-u8 (License): Likewise.
17893         * modules/unistr/u32-uctomb (License): Likewise.
17894         * modules/unistr/u8-check (License): Likewise.
17895         * modules/unistr/u8-mblen (License): Likewise.
17896         * modules/unistr/u8-mbtouc (License): Likewise.
17897         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17898         * modules/unistr/u8-mbtoucr (License): Likewise.
17899         * modules/unistr/u8-prev (License): Likewise.
17900         * modules/unistr/u8-strlen (License): Likewise.
17901         * modules/unistr/u8-to-u32 (License): Likewise.
17902         * modules/unistr/u8-uctomb (License): Likewise.
17903         * modules/unitypes (License): Likewise.
17904         Requested by Simon Josefsson.
17905
17906 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17907
17908         lib-symbol-visibility: Add a notice.
17909         * modules/lib-symbol-visibility (Notice): New field.
17910
17911 2011-03-29  Bruno Haible  <bruno@clisp.org>
17912
17913         getaddrinfo: Doc fix.
17914         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17915         section "fixed in Gnulib".
17916
17917 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17918
17919         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17920         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17921
17922 2011-03-26  Bruno Haible  <bruno@clisp.org>
17923
17924         unictype/property-byname: Reduce the number of load-time relocations.
17925         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17926         (UC_PROPERTY_INDEX_*): New enumeration values.
17927         (uc_property_byname): Convert an index from the lookup table to an
17928         uc_property_t.
17929         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17930         values.
17931
17932 2011-03-26  Bruno Haible  <bruno@clisp.org>
17933
17934         unictype/property-byname: Allow omitted word separators and aliases.
17935         * lib/unictype/pr_byname.gperf: Add property names without word
17936         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17937         for 'space'.
17938
17939 2011-03-26  Bruno Haible  <bruno@clisp.org>
17940
17941         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17942         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17943         also hyphens to space.
17944         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17945         without spaces.
17946         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17947
17948 2011-03-26  Bruno Haible  <bruno@clisp.org>
17949
17950         unictype/joiningtype-byname: Recognize long names as well.
17951         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17952         a long name.
17953         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17954         unictype/joiningtype_byname.h.
17955         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17956         * lib/unictype/joiningtype_byname.gperf: New file.
17957         * modules/unictype/joiningtype-byname (Files): Add
17958         lib/unictype/joiningtype_byname.gperf.
17959         (Depends-on): Add gperf.
17960         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17961         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17962         long names.
17963
17964         Tests for module 'unictype/joiningtype-longname'.
17965         * modules/unictype/joiningtype-longname-tests: New file.
17966         * tests/unictype/test-joiningtype_longname.c: New file.
17967
17968         New module 'unictype/joiningtype-longname'.
17969         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17970         * lib/unictype/joiningtype_longname.c: New file.
17971         * modules/unictype/joiningtype-longname: New file.
17972         * modules/unictype/joiningtype-all (Depends-on): Add
17973         unictype/joiningtype-longname.
17974
17975 2011-03-26  Bruno Haible  <bruno@clisp.org>
17976
17977         unictype/bidiclass-byname: Recognize long names as well.
17978         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17979         name.
17980         * lib/unictype/bidi_byname.c: Include <string.h>,
17981         unictype/bidi_byname.h.
17982         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17983         * lib/unictype/bidi_byname.gperf: New file.
17984         * modules/unictype/bidiclass-byname (Files): Add
17985         lib/unictype/bidi_byname.gperf.
17986         (Depends-on): Add gperf.
17987         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17988         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17989         long names.
17990
17991         Tests for module 'unictype/bidiclass-longname'.
17992         * modules/unictype/bidiclass-longname-tests: New file.
17993         * tests/unictype/test-bidi_longname.c: New file.
17994
17995         New module 'unictype/bidiclass-longname'.
17996         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17997         * lib/unictype/bidi_longname.c: New file.
17998         * modules/unictype/bidiclass-longname: New file.
17999         * modules/unictype/bidiclass-all (Depends-on): Add
18000         unictype/bidiclass-longname.
18001
18002 2011-03-26  Bruno Haible  <bruno@clisp.org>
18003
18004         unictype/bidi*: Rename modules.
18005         * modules/unictype/bidiclass-all: Renamed from
18006         modules/unictype/bidicategory-all.
18007         * modules/unictype/bidiclass-name: Renamed from
18008         modules/unictype/bidiclass-name.
18009         (Description): Update.
18010         * modules/unictype/bidiclass-name-tests: Renamed from
18011         modules/unictype/bidicategory-name-tests.
18012         * modules/unictype/bidiclass-byname: Renamed from
18013         modules/unictype/bidicategory-byname.
18014         (Description): Update.
18015         * modules/unictype/bidiclass-byname-tests: Renamed from
18016         modules/unictype/bidicategory-byname-tests.
18017         * modules/unictype/bidiclass-of: Renamed from
18018         modules/unictype/bidicategory-of.
18019         (Description): Update.
18020         * modules/unictype/bidiclass-of-tests: Renamed from
18021         modules/unictype/bidicategory-of-tests.
18022         * modules/unictype/bidiclass-test: Renamed from
18023         modules/unictype/bidicategory-test.
18024         (Description): Update.
18025         * modules/unictype/bidiclass-test-tests: Renamed from
18026         modules/unictype/bidicategory-test-tests.
18027         * modules/unictype/bidicategory-all: New file, a simple redirection.
18028         * modules/unictype/bidicategory-name: Likewise.
18029         * modules/unictype/bidicategory-byname: Likewise.
18030         * modules/unictype/bidicategory-of: Likewise.
18031         * modules/unictype/bidicategory-test: Likewise.
18032         * modules/unictype/property-bidi-* (Dependencies): Update.
18033         * lib/unictype/bidi_*.c: Update comment.
18034
18035 2011-03-26  Bruno Haible  <bruno@clisp.org>
18036
18037         unictype/bidi*: Rename functions, part 2.
18038         * modules/unictype/bidicategory-name (configure.ac): Update required
18039         libunistring version.
18040         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18041
18042 2011-03-25  Bruno Haible  <bruno@clisp.org>
18043
18044         New module 'unictype/combining-class-all'.
18045         * modules/unictype/combining-class-all: New file.
18046
18047         Tests for module 'unictype/combining-class-byname'.
18048         * modules/unictype/combining-class-byname-tests: New file.
18049         * tests/unictype/test-combiningclass_byname.c: New file.
18050
18051         New module 'unictype/combining-class-byname'.
18052         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18053         * lib/unictype/combiningclass_byname.c: New file.
18054         * lib/unictype/combiningclass_byname.gperf: New file.
18055         * modules/unictype/combining-class-byname: New file.
18056
18057         Tests for module 'unictype/combining-class-longname'.
18058         * modules/unictype/combining-class-longname-tests: New file.
18059         * tests/unictype/test-combiningclass_longname.c: New file.
18060
18061         New module 'unictype/combining-class-longname'.
18062         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18063         * lib/unictype/combiningclass_longname.c: New file.
18064         * modules/unictype/combining-class-longname: New file.
18065
18066         Tests for module 'unictype/combining-class-name'.
18067         * modules/unictype/combining-class-name-tests: New file.
18068         * tests/unictype/test-combiningclass_name.c: New file.
18069
18070         New module 'unictype/combining-class-name'.
18071         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18072         * lib/unictype/combiningclass_name.c: New file.
18073         * modules/unictype/combining-class-name: New file.
18074
18075 2011-03-25  Bruno Haible  <bruno@clisp.org>
18076
18077         unictype/combining-class: Rename source files.
18078         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18079         of unictype/combining.h.
18080         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18081         Update.
18082         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18083         * modules/unictype/combining-class (Description): Fix.
18084         (Files, Makefile.am): Update.
18085         * tests/unictype/test-combiningclass.c: Renamed from
18086         tests/unictype/test-combining.c.
18087         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18088
18089 2011-03-25  Bruno Haible  <bruno@clisp.org>
18090
18091         unictype: Update list of canonical combining classes.
18092         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18093
18094 2011-03-25  Bruno Haible  <bruno@clisp.org>
18095
18096         unictype/category-byname: Recognize long names as well.
18097         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18098         a long name.
18099         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18100         unictype/categ_byname.h.
18101         (UC_CATEGORY_INDEX_*): New enumeration values.
18102         (uc_general_category_byname): Use uc_general_category_lookup and
18103         convert from index to value.
18104         * lib/unictype/categ_byname.gperf: New file.
18105         * modules/unictype/category-byname (Files): Add
18106         lib/unictype/categ_byname.gperf.
18107         (Depends-on): Add gperf.
18108         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18109         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18110         long names.
18111
18112         Tests for module 'unictype/category-longname'.
18113         * modules/unictype/category-longname-tests: New file.
18114         * tests/unictype/test-categ_longname.c: New file.
18115
18116         New module 'unictype/category-longname'.
18117         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18118         * lib/unictype/categ_longname.c: New file.
18119         * modules/unictype/category-longname: New file.
18120         * modules/unictype/category-all (Depends-on): Add it.
18121
18122 2011-03-25  Bruno Haible  <bruno@clisp.org>
18123
18124         Tests for module 'unictype/category-LC'.
18125         * modules/unictype/category-LC-tests: New file.
18126         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18127
18128         New module 'unictype/category-LC'.
18129         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18130         (UC_CATEGORY_LC): New declaration.
18131         (UC_CASED_LETTER): New macro.
18132         * lib/gen-uni-tables.c (is_category_LC): New function.
18133         (output_categories): Also handle category LC.
18134         (UC_CATEGORY_MASK_LC): New enumeration value.
18135         (general_category_byname): Also handle category LC.
18136         * lib/unictype/categ_LC.c: New file.
18137         * lib/unictype/categ_LC.h: New file, automatically generated.
18138         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18139         category LC.
18140         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18141         * modules/unictype/category-LC: New file.
18142         * modules/unictype/category-byname (Depends-on): Add
18143         unictype/category-LC.
18144         * modules/unictype/category-all (Depends-on): Likewise.
18145
18146 2011-03-25  Eric Blake  <eblake@redhat.com>
18147
18148         xmalloc: revert yesterday's regression
18149         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18150         realloc's underlying behavior (allowing allocation of zero-size
18151         objects, especially if malloc-gnu is also in use).
18152
18153 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18154
18155         maint.mk: add missing version to VC-tag
18156         * top/maint.mk: git tag was missing actual tag name; add it.
18157
18158         valgrind: do leak checking, and exit with code 1 on error (not 0)
18159         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18160         to VALGRIND.
18161
18162 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18163
18164         posix-modules: say what it does.
18165         * posix-modules: Add a line to the --help output saying what it does.
18166
18167 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18168
18169         xmalloc: Do not leak if underlying realloc is C99 compatible.
18170         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18171         This avoids a leak on C99-based systems.  See
18172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18173
18174 2011-03-24  Eric Blake  <eblake@redhat.com>
18175
18176         realloc: document portability problem
18177         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18178         passing 0 size to realloc.
18179
18180 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18181
18182         doc: update users.txt
18183         * users.txt: Add cvsps, tmpwatch
18184
18185 2011-03-23  Matt Rice  <ratmice@gmail.com>
18186
18187         doc: update users.txt
18188         * users.txt: Add gdb.
18189
18190 2011-03-23  Jim Meyering  <meyering@redhat.com>
18191
18192         doc: update users.txt
18193         Looking through matches up to the following URL (there are still
18194         several more pages), I found several projects that use gnulib:
18195         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18196         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18197         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18198
18199 2011-03-22  Bruno Haible  <bruno@clisp.org>
18200
18201         unictype/bidi*: Rename functions.
18202         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18203         uc_bidi_class, uc_is_bidi_class): New declarations.
18204         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18205         uc_bidi_category_byname.
18206         (uc_bidi_category_byname): New function.
18207         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18208         u_bidi_category_name.
18209         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18210         (uc_bidi_category_name): New function.
18211         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18212         uc_bidi_category.
18213         (uc_bidi_category): New function.
18214         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18215         uc_is_bidi_category. Invoke uc_bidi_class.
18216         (uc_is_bidi_category): New function.
18217         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18218         instead of uc_bidi_category_byname.
18219         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18220         instead of uc_bidi_category_name.
18221         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18222         uc_bidi_category.
18223         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18224         instead of uc_is_bidi_category.
18225
18226 2011-03-21  Bruno Haible  <bruno@clisp.org>
18227
18228         New module 'unictype/joininggroup-all'.
18229         * modules/unictype/joininggroup-all: New file.
18230
18231         Tests for module 'unictype/joininggroup-of'.
18232         * modules/unictype/joininggroup-of-tests: New file.
18233         * tests/unictype/test-joininggroup_of.c: New file.
18234         * tests/unictype/test-joininggroup_of.h: New file, automatically
18235         generated by gen-uni-tables.
18236
18237         New module 'unictype/joininggroup-of'.
18238         * modules/unictype/joininggroup-of: New file.
18239         * lib/unictype/joininggroup_of.c: New file.
18240         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18241         gen-uni-tables.
18242
18243         Tests for module 'unictype/joininggroup-byname'.
18244         * modules/unictype/joininggroup-byname-tests: New file.
18245         * tests/unictype/test-joininggroup_byname.c: New file.
18246
18247         New module 'unictype/joininggroup-byname'.
18248         * modules/unictype/joininggroup-byname: New file.
18249         * lib/unictype/joininggroup_byname.c: New file.
18250         * lib/unictype/joininggroup_byname.gperf: New file.
18251
18252         Tests for module 'unictype/joininggroup-name'.
18253         * modules/unictype/joininggroup-name-tests: New file.
18254         * tests/unictype/test-joininggroup_name.c: New file.
18255
18256         New module 'unictype/joininggroup-name'.
18257         * modules/unictype/joininggroup-name: New file.
18258         * lib/unictype/joininggroup_name.c: New file.
18259         * lib/unictype/joininggroup_name.h: New file.
18260
18261         New module 'unictype/joiningtype-all'.
18262         * modules/unictype/joiningtype-all: New file.
18263
18264         Tests for module 'unictype/joiningtype-of'.
18265         * modules/unictype/joiningtype-of-tests: New file.
18266         * tests/unictype/test-joiningtype_of.c: New file.
18267         * tests/unictype/test-joiningtype_of.h: New file, automatically
18268         generated by gen-uni-tables.
18269
18270         New module 'unictype/joiningtype-of'.
18271         * modules/unictype/joiningtype-of: New file.
18272         * lib/unictype/joiningtype_of.c: New file.
18273         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18274         gen-uni-tables.
18275
18276         Tests for module 'unictype/joiningtype-byname'.
18277         * modules/unictype/joiningtype-byname-tests: New file.
18278         * tests/unictype/test-joiningtype_byname.c: New file.
18279
18280         New module 'unictype/joiningtype-byname'.
18281         * modules/unictype/joiningtype-byname: New file.
18282         * lib/unictype/joiningtype_byname.c: New file.
18283
18284         Tests for module 'unictype/joiningtype-name'.
18285         * modules/unictype/joiningtype-name-tests: New file.
18286         * tests/unictype/test-joiningtype_name.c: New file.
18287
18288         New module 'unictype/joiningtype-name'.
18289         * modules/unictype/joiningtype-name: New file.
18290         * lib/unictype/joiningtype_name.c: New file.
18291
18292         unictype: Add support for Arabic shaping properties.
18293         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18294         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18295         declarations.
18296         (UC_JOINING_GROUP_*): New enumeration values.
18297         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18298         declarations.
18299         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18300         (unicode_joining_type): New variable.
18301         (UC_JOINING_GROUP_*): New enumeration values.
18302         (unicode_joining_group): New variable.
18303         (fill_arabicshaping, joining_type_as_c_identifier,
18304         output_joining_type_test, output_joining_type,
18305         joining_group_as_c_identifier, output_joining_group_test,
18306         output_joining_group): New functions.
18307         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18308         fill_arabicshaping and output_joining_type_test, output_joining_type,
18309         output_joining_group_test, output_joining_group.
18310         Reported by Simon Josefsson.
18311
18312 2011-03-21  Jim Meyering  <meyering@redhat.com>
18313
18314         strftime: fix a bug in yesterday's change
18315         * lib/strftime.c (add): Accommodate width's initial value of -1.
18316         Otherwise, nstrftime would copy uninitialized data into
18317         the result buffer.
18318
18319 2011-03-21  Jim Meyering  <meyering@redhat.com>
18320
18321         tests: add strftime-tests module
18322         * tests/test-strftime.c: New file.
18323         * modules/strftime-tests: New module.
18324
18325 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18326
18327         strftime: don't assume a byte count fits in 'int'
18328         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18329         found this problem by static analysis, using gcc -Wstrict-overflow
18330         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18331         on an integer overflow having undefined behavior, but it turns out
18332         that the argument is a size, which might not fit in 'int' anyway,
18333
18334 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18335
18336         stdio: don't require ignore_value around fwrite
18337
18338         This patch works around libc bug 11959
18339         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18340         Without this patch, applications must often write
18341         ignore_value (fwrite (...)) even though the ignore_value is
18342         not helpful here.  It's common to write many objects, using
18343         fwrite/printf/etc., and then use ferror to detect output error.
18344
18345         I considered making this patch optional, but decided against it,
18346         because libc is obviously being inconsistent here: there is no
18347         reason libc should insist that user code must inspect fwrite
18348         return's value without also insisting that it inspect printf's,
18349         putchar's, etc.  If user code wants to have a strict style where
18350         all these functions' values are checked (so that ferror need not
18351         be checked), we could add support for that style in a new gnulib
18352         module, but in the meantime it's better to be consistent and to
18353         support common usage.
18354
18355         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18356         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18357         that we are compiling in checking mode, and if not C++, and
18358         if not already wrapping fwrite for some other reason.
18359         (fwrite): #define to rpl_fwrite if the latter is defined.
18360
18361 2011-03-20  Bruno Haible  <bruno@clisp.org>
18362
18363         verror: Fix compilation error introduced on 2011-02-13.
18364         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18365         instead of __attribute__.
18366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18367
18368 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18369             Bruno Haible  <bruno@clisp.org>
18370
18371         socklen: do not depend on sys_socket
18372         While trying to modify Emacs to use gnulib's socklen module,
18373         I discovered a circular dependency: socklen depends on sys_socket
18374         and vice versa.  Emacs can use socklen, but it does not need
18375         sys_socket because it has its own substitute for sys/socket.h.
18376         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18377         gl_TYPE_SOCKLEN_T.
18378         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18379         gl_PREREQ_SYS_H_SOCKET.
18380         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18381         gl_PREREQ_SYS_H_SOCKET.
18382         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18383         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18384         * modules/socklen (Depends-on): Do not depend on sys_socket.
18385         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18386
18387 2011-03-20  Jim Meyering  <meyering@redhat.com>
18388
18389         maint.mk: sort file names *after* new transformation
18390         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18391         prefix would have led to an unwarranted failure in GNU parted.
18392         Sort after that transformation.
18393
18394 2011-03-19  Jim Meyering  <meyering@redhat.com>
18395
18396         maint.mk: fix po-file syntax-check rule
18397         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18398         Patch by Bruno Haible.
18399
18400 2011-03-19  Bruno Haible  <bruno@clisp.org>
18401
18402         socklen: Update comment.
18403         * m4/socklen.m4: Update comment about platforms.
18404
18405 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18406             Bruno Haible  <bruno@clisp.org>
18407
18408         inet_ntop, inet_pton: Simplify.
18409         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18410         documented to provide socklen_t and we already depend on sys_socket.
18411         * modules/inet_pton (Depends-on): Likewise.
18412         * lib/arpa_inet.in.h: Adjust comment.
18413
18414 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18415             Bruno Haible  <bruno@clisp.org>
18416
18417         netdb: Simplify.
18418         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18419         documented to provide socklen_t and we already depend on sys_socket.
18420         * lib/netdb.in.h: Adjust comment.
18421
18422 2011-03-19  Bruno Haible  <bruno@clisp.org>
18423
18424         sys_socket, netdb: Document problem with socklen_t.
18425         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18426         platforms.
18427         * doc/posix-headers/netdb.texi: Likewise.
18428
18429 2011-03-18  Eric Blake  <eblake@redhat.com>
18430
18431         maint.mk: let po check work in VPATH build
18432         * top/maint.mk (po_file): Allow cfg.mk override.
18433         (sc_po_check): Allow VPATH use.
18434         Reported by Jiri Denemark.
18435
18436 2011-03-16  Jim Meyering  <meyering@redhat.com>
18437
18438         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18439         Before, you would have had to create one .x-sc_ file per rule in order
18440         to exempt offending files.  Now, you may instead use a Make variable --
18441         usually defined in cfg.mk -- whose name identifies the affected rule.
18442         * top/maint.mk (_sc_excl): Define.
18443         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18444         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18445
18446 2011-03-13  Bruno Haible  <bruno@clisp.org>
18447
18448         ignore-value tests: Avoid warnings.
18449         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18450         empty for gcc < 3.4.
18451
18452 2011-03-13  Bruno Haible  <bruno@clisp.org>
18453
18454         passfd: Fix link error on Solaris.
18455         * modules/passfd (Description): Correct.
18456         (Depends-on): Add socketlib.
18457         (Link): New section.
18458         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18459
18460 2011-03-13  Bruno Haible  <bruno@clisp.org>
18461
18462         passfd: Fix link error on AIX 5.2.
18463         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18464
18465 2011-03-13  Bruno Haible  <bruno@clisp.org>
18466
18467         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18468         * lib/sys_socket.in.h: Include <stddef.h>.
18469         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18470         CMSG_FIRSTHDR. Remove unused variable.
18471
18472 2011-03-13  Bruno Haible  <bruno@clisp.org>
18473
18474         passfd: Fix compilation error on OpenBSD.
18475         * lib/passfd.c: Include <sys/uio.h>.
18476
18477 2011-03-13  Bruno Haible  <bruno@clisp.org>
18478
18479         passfd test: Fix warnings.
18480         * tests/test-passfd.c: Include <sys/wait.h>.
18481         (main): Fix typo.
18482
18483 2011-03-13  Bruno Haible  <bruno@clisp.org>
18484
18485         passfd module, part 4, tweaks.
18486         * tests/test-passfd.c: Reorder includes.
18487         (main): Fix perror and printf calls.
18488
18489 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18490
18491         passfd module, part 4.
18492         * modules/passfd-tests: New file.
18493         * tests/test-passfd.c: New file.
18494
18495 2011-03-13  Jim Meyering  <meyering@redhat.com>
18496
18497         Makefile: rely on GNU make; derive syntax-check rule names
18498         Rather than requiring that each sc_ rule be listed as a dependent
18499         of "check", use features of GNU make to derive the list.
18500         * Makefile (syntax-check-rules): Define.
18501         (check): Depend on the new variable, not the hard-coded list.
18502
18503 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18504             Bruno Haible  <bruno@clisp.org>
18505
18506         passfd module, part 3.
18507         * lib/passfd.h (recvfd): Add a flags argument.
18508         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18509         (recvfd): Add a flags argument.
18510         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18511         exists.
18512         * modules/passfd (Depends-on): Add cloexec.
18513         Suggested by Eric Blake.
18514
18515 2011-03-13  Bruno Haible  <bruno@clisp.org>
18516
18517         passfd module, part 2, tweaks.
18518         * modules/passfd (Files): Reorder.
18519         (Depends-on): Remove errno.
18520         (Include): Remove <sys/socket.h>, <sys/un.h>.
18521         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18522         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18523         specification header. Include <sys/socket.h> always. Don't include
18524         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18525         (sendfd): Clarify that it sets errno when it fails.
18526         (recvfd): Fix specification.
18527
18528 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18529
18530         passfd module, part 2.
18531         * modules/passfd: New file.
18532         * lib/passfd.h: New file.
18533         * lib/passfd.c: New file.
18534
18535 2011-03-12  Bruno Haible  <bruno@clisp.org>
18536
18537         wcswidth, mbswidth: Avoid integer overflow.
18538         * lib/wcswidth.c: Include <limits.h>.
18539         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18540         * lib/mbswidth.c: Include <limits.h>.
18541         (mbsnwidth): Avoid 'int' overflow.
18542         Reported by Jim Meyering.
18543
18544 2011-03-12  Bruno Haible  <bruno@clisp.org>
18545
18546         futimens, utimensat: Avoid endless recursion on Solaris 10.
18547         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18548         Solaris.
18549         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18550         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18551
18552 2011-03-11  Jim Meyering  <meyering@redhat.com>
18553
18554         maint.mk: relax a regexp to accommodate other formatting styles
18555         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18556         between "ngettext" and the following "(".
18557
18558 2011-03-11  Pádraig Brady <P@draigBrady.com>
18559
18560         maint.mk: suppress a false positive warning
18561         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18562         diagnostics are marked with ngettext.
18563
18564 2011-03-10  Eric Blake  <eblake@redhat.com>
18565
18566         wchar: add explicit dependencies, for Tru64
18567         * modules/mbmemcasecoll (Depends-on): Add wchar.
18568         * modules/mbtowc (Depends-on): Likewise.
18569         * modules/vasnprintf (Depends-on): Likewise.
18570         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18571         * modules/wctomb (Depends-on): Likewise.
18572         Reported by Peter O'Gorman.
18573
18574 2011-03-08  Bruno Haible  <bruno@clisp.org>
18575
18576         passfd module, part 1, tweaks.
18577         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18578         Improve indentation. Improve AC_MSG_CHECKING messages.
18579         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18580         gl_SOCKET_FAMILIES.
18581
18582 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18583
18584         passfd module, part 1.
18585         * m4/afunix.m4: New file.
18586         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18587         sockets.
18588
18589 2011-03-08  Bruno Haible  <bruno@clisp.org>
18590
18591         regex-quote: New API.
18592         * lib/regex-quote.h: Include <stdbool.h>.
18593         (struct regex_quote_spec): New type.
18594         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18595         New declarations.
18596         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18597         'const struct regex_quote_spec *' argument.
18598         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18599         (pcre_special): New constant.
18600         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18601         New functions.
18602         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18603         'const struct regex_quote_spec *' argument.
18604         * modules/regex-quote (Depends-on): Add stdbool.
18605         * tests/test-regex-quote.c (check): Update for new API. Add test for
18606         anchored results.
18607         * NEWS: Mention the API change.
18608         Reported by Reuben Thomas and Eric Blake.
18609
18610 2011-03-06  Bruno Haible  <bruno@clisp.org>
18611
18612         regex-quote: Fix creation of POSIX extended regular expressions.
18613         * lib/regex-quote.c (ere_special): Add grouping and alternation
18614         operators.
18615
18616 2011-03-05  Bruno Haible  <bruno@clisp.org>
18617
18618         doc: Improve doc regarding autopoint vs. gnulib.
18619         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18620         disable autopoint while running autoreconf.
18621         Suggested by Ralf Wildenhues.
18622
18623 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18624
18625         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18626         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18627
18628 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18629
18630         parse-duration: remove xalloc.h dependency
18631         * lib/parse-duration.c (parse_period): handle NULL return from
18632         strdup instead of calling xstrdup().
18633         * modules/parse-duration: remove "xalloc" dependency
18634
18635 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18636
18637         bootstrap: honor m4_base when running aclocal
18638         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18639
18640 2011-03-02  Jim Meyering  <meyering@redhat.com>
18641
18642         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18643         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18644         on request from Matt Booth.
18645
18646 2011-03-01  Eric Blake  <eblake@redhat.com>
18647
18648         test-link: work on Hurd
18649         * tests/test-link.h (test_link): Hurd rejects linking directories
18650         with EISDIR instead of the POSIX-mandated EPERM.
18651
18652 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18653
18654         stdio: simplify by moving files to printf-posix, sigpipe
18655         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18656         since this symbol is needed only if printf is replaced.
18657         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18658         Require gl_ASM_SYMBOL_PREFIX.
18659         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18660         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18661         (Depends-on): Add 'raise'.
18662         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18663         * modules/stdio (Files): Remove lib/stdio-write.c,
18664         m4/asm-underscore.m4.
18665         (Depends-on): Remove 'raise'.
18666
18667         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18668         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18669         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18670         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18671
18672 2011-02-28  Bruno Haible  <bruno@clisp.org>
18673
18674         localcharset: Assume ANSI C behaviour of free().
18675         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18676         calling free().
18677         Suggested by Simon Josefsson <simon@josefsson.org>.
18678
18679 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18680             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18681             Bruno Haible  <bruno@clisp.org>  (tiny change)
18682
18683         On Cygwin, use /proc file system instead of win32 API.
18684         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18685         Win32 file names.
18686         (DllMain): Simplify by removing Cygwin specific code.
18687         (find_shared_library_fullname): Use Linux specific implementation also
18688         for Cygwin.
18689         (get_shared_library_fullname): Update accordingly.
18690         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18691         Win32 file names.
18692         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18693         Cygwin specific code.
18694
18695 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18696             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18697
18698         Fix OpenMP flag detection for various Fortran compilers.
18699         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18700         OpenMP-conditional compilation construct, to force compile
18701         failure with missing OpenMP flag.
18702         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18703
18704 2011-02-25  Eric Blake  <eblake@redhat.com>
18705
18706         strstr: expand test coverage
18707         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18708         compilation.
18709         * tests/test-memmem.c (main): Duplicate tests.
18710         * tests/test-strcasestr.c (main): Likewise.
18711         * tests/test-c-strcasestr.c (main): Likewise.
18712
18713 2011-02-25  Jim Meyering  <meyering@redhat.com>
18714
18715         maint.mk: detect missing-NL-at-EOF, too
18716         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18717         it also detects when a file lacks a newline at EOF.
18718         (require_exactly_one_NL_at_EOF_): Renamed from
18719         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18720         since people may well have .x-sc_... file names tied to the
18721         existing name.  Suggested by Eric Blake.
18722
18723 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18724
18725         dirname: move m4/dos.m4 functionality into lib/dosname.h
18726
18727         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18728         extracts symbols from it, puts them into config.h; but it's much
18729         easier to use the symbols directly.  filename.h already does this,
18730         but it disagrees with dos.m4 in some respects.  This patch
18731         introduces a different include file dosname.h that packages up
18732         dos.m4, and then later we can work on merging filename.h and
18733         dosname.h.  Applications that need only the easy-to-configure
18734         symbols should consider including dosname.h rather than dirname.h.
18735         * NEWS: Mention incompatible changes.
18736         * m4/dos.m4: Remove.
18737         * lib/dosname.h, modules/dosname: New files.
18738         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18739         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18740         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18741         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18742         Include dosname.h, not dirname.h.
18743         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18744         Include dosname.h, for definitions of symbols like ISSLASH
18745         that used to be in config.h.
18746         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18747         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18748         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18749         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18750         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18751         * modules/rmdir (Files): Likewise.
18752         * modules/stat (Files): Likewise.
18753         * modules/unlink (Files): Likewise.
18754         * modules/dirname-lgpl (Depends-on): Add dosname.
18755         * modules/lstat (Depends-on): Likewise.
18756         * modules/openat (Depends-on): Likewise.
18757         * modules/rmdir (Depends-on): Likewise.
18758         * modules/savewd (Depends-on): Likewise.
18759         * modules/stat (Depends-on): Likewise.
18760         * modules/unlink (Depends-on): Likewise.
18761         * modules/openat (Depends-on): Remove dirname-lgpl.
18762         * modules/savewd (Depends-on): Likewise.
18763         * tests/test-dirname.c: Do not use removed symbols like
18764         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18765         the remaining symbols, e.g., ISSLASH ('\\').
18766
18767 2011-02-25  Eric Blake  <eblake@redhat.com>
18768
18769         strstr: revert patches that introduced bug and pessimization
18770         * lib/str-two-way.h: Add another reference.
18771         (two_way_short_needle, two_way_long_needle): Revert changes from
18772         2011-02-24; they pessimize search speed.
18773         (critical_factorization): Partially revert changes from
18774         2010-06-22; they violate the requirement that the left half of the
18775         needle be smaller than the period of the needle.
18776
18777 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18778
18779         filenamecat: remove unnecessary dependency on dirname-lgpl
18780         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18781         is no direct dependency, just an indirect one via filenamecat-lgpl.
18782
18783         remove: remove unnecessary use of m4/dos.m4
18784         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18785         * modules/remove (FILES): Remove m4/dos.m4.
18786
18787         * lib/openat-proc.c: Don't include dirname.h; not needed.
18788
18789         backupfile: remove unnecessary use of m4/dos.m4
18790         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18791         of its symbols are used by the backupfile code.  backupfile.c does
18792         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18793         for the rare case of programs that want all their backup file
18794         names to live within 8+3 limits, and dos.m4 doesn't address that.
18795         * modules/backupfile (Files): Remove m4/dos.m4.
18796
18797 2011-02-24  Jim Meyering  <meyering@redhat.com>
18798
18799         strstr: fix a bug whereby strstr would mistakenly return NULL
18800         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18801         in period calculation.
18802         (two_way_long_needle): Likewise.
18803         The original problem was reported by Mike Stump in
18804         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18805         Ralf Wildenhues provided the short needle and haystack.
18806         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18807         Add a more involved test to trigger the bug in two_way_long_needle.
18808
18809 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18810
18811         gnulib-tool: remove use of bold display in help screen
18812         * gnulib-tool (func_usage): Do not use bold display anymore in the
18813         help screen.  That was just meant to be a temporary emphasis for a
18814         backward-incompatible change.
18815
18816 2011-02-23  Bruno Haible  <bruno@clisp.org>
18817
18818         Fix misindentation of preprocessor directives.
18819         * lib/argp-namefrob.h: Reindent preprocessor directives.
18820         * lib/getopt_int.h (struct _getopt_data): Likewise.
18821         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18822         * lib/vasnprintf.c (decode_long_double): Likewise.
18823         * tests/test-argmatch.c: Insert blank lines, for clarity.
18824         * tests/test-exclude.c: Likewise.
18825
18826 2011-02-22  Bruno Haible  <bruno@clisp.org>
18827
18828         ioctl: Fix for MacOS X in 64-bit mode.
18829         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18830         value.
18831         Suggested by Eric Blake.
18832         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18833
18834 2011-02-22  Jim Meyering  <meyering@redhat.com>
18835
18836         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18837         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18838         in lib/.
18839
18840 2011-02-22  Eric Blake  <eblake@redhat.com>
18841
18842         maint: avoid any CDPATH issue
18843         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18844
18845         maint: adjust cpp indentation for my modules, as well
18846         * Makefile (sc_cpp_indent_check): Add my name.
18847         * lib/fbufmode.c: Filter through cppi.
18848         * lib/fpurge.c: Likewise.
18849         * lib/freadable.c: Likewise.
18850         * lib/freading.c: Likewise.
18851         * lib/fwritable.c: Likewise.
18852         * lib/fwriting.c: Likewise.
18853         * lib/sigaction.c: Likewise.
18854
18855 2011-02-22  Jim Meyering  <meyering@redhat.com>
18856
18857         maint: adjust cpp indentation to reflect nesting depth
18858         I.e., in a block of code that begins with an unnested "#if",
18859         put one space between the "#" in column 1 and following token.
18860         For example,
18861         -#include <sys/vfs.h>
18862         +# include <sys/vfs.h>
18863         Do this only in .c files that are part of a module I maintain.
18864         * lib/linkat.c: Filter through cppi.
18865         * lib/nanosleep.c: Likewise.
18866         * lib/openat.c: Likewise.
18867         * lib/openat-die.c: Likewise.
18868         * lib/dup3.c: Likewise.
18869         * lib/fchownat.c: Likewise.
18870         * lib/flock.c: Likewise.
18871         * lib/fsync.c: Likewise.
18872         * lib/fts.c: Likewise.
18873         * lib/getpass.c: Likewise.
18874         * lib/gettimeofday.c: Likewise.
18875         * lib/userspec.c: Likewise.
18876         * Makefile (sc_cpp_indent_check): New rule, to check this.
18877
18878 2011-02-22  Bruno Haible  <bruno@clisp.org>
18879
18880         New module 'wctomb'.
18881         * lib/stdlib.in.h (wctomb): New declaration.
18882         * lib/wctomb.c: New file.
18883         * lib/wctomb-impl.h: New file.
18884         * m4/wctomb.m4: New file.
18885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18886         REPLACE_WCTOMB.
18887         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18888         REPLACE_WCTOMB.
18889         * modules/wctomb: New file.
18890         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18891         * doc/posix-functions/wctomb.texi: Mention the new module.
18892         * modules/wctob (Depends-on): Add wctomb.
18893
18894 2011-02-22  Bruno Haible  <bruno@clisp.org>
18895
18896         New module 'mbtowc'.
18897         * lib/stdlib.in.h (mbtowc): New declaration.
18898         * lib/mbtowc.c: New file.
18899         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18900         * m4/mbtowc.m4: New file.
18901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18902         REPLACE_MBTOWC.
18903         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18904         REPLACE_MBTOWC.
18905         * modules/mbtowc: New file.
18906         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18907         * doc/posix-functions/mbtowc.texi: Mention the new module.
18908         * modules/btowc (Depends-on): Add mbtowc.
18909
18910 2011-02-22  Bruno Haible  <bruno@clisp.org>
18911
18912         wcrtomb: Add more tests for native Windows platforms.
18913         * tests/test-wcrtomb-w32-1.sh: New file.
18914         * tests/test-wcrtomb-w32-2.sh: New file.
18915         * tests/test-wcrtomb-w32-3.sh: New file.
18916         * tests/test-wcrtomb-w32-4.sh: New file.
18917         * tests/test-wcrtomb-w32-5.sh: New file.
18918         * tests/test-wcrtomb-w32.c: New file.
18919         * modules/wcrtomb-tests (Files): Add them.
18920         (Makefile.am): Arrange to run these tests.
18921         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18922         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18923
18924 2011-02-20  Bruno Haible  <bruno@clisp.org>
18925
18926         wcrtomb: Enhance test.
18927         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18928
18929 2011-02-20  Bruno Haible  <bruno@clisp.org>
18930
18931         mbrtowc: Tiny optimization.
18932         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18933
18934 2011-02-20  Jim Meyering  <meyering@redhat.com>
18935
18936         test-exclude.c: remove unmatched #endif
18937         * tests/test-exclude.c: Remove stray #endif, left over from
18938         the change of a week ago.
18939
18940 2011-02-19  Jim Meyering  <meyering@redhat.com>
18941
18942         git-version-gen: skip "-dirty" check when appropriate
18943         * build-aux/git-version-gen: Don't run any git commands when the
18944         version string comes from .tarball-version.  Prior to this, we
18945         would run git update-index --refresh even from a just-unpacked
18946         tarball directory, and that could affect a .git/ directory in a
18947         parent of the build directory.  Reported by Mike Frysinger.
18948
18949 2011-02-19  Bruno Haible  <bruno@clisp.org>
18950
18951         unictype/property-byname: Reduce the size of the 'data' segment.
18952         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18953
18954 2011-02-19  Bruno Haible  <bruno@clisp.org>
18955
18956         unictype/scripts: Reduce the size of the 'data' segment.
18957         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18958         '%pic'.
18959         * lib/unictype/scripts_byname.gperf: Regenerated.
18960
18961 2011-02-19  Bruno Haible  <bruno@clisp.org>
18962
18963         stdint: Update documentation.
18964         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18965
18966 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18967
18968         stdint: omit redundant check for wchar.h
18969         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18970         always tests whether wchar.h exists, so remove the now-redundant test.
18971
18972 2011-02-18  Bruno Haible  <bruno@clisp.org>
18973
18974         stdint: Cut dependency to module 'wchar'.
18975         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18976         include the necessary prerequisites.
18977         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18978         * modules/stdint (Depends-on): Remove wchar.
18979         (Makefile.am): Substitute HAVE_WCHAR_H.
18980         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18981
18982 2011-02-18  Eric Blake  <eblake@redhat.com>
18983
18984         longlong: skip, rather than fail, on cross-compilation
18985         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18986         when cross-compiling; regression from 2011-02-16.
18987
18988 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18989
18990         * NEWS: Mention 2011-02-08 change to stdlib.
18991
18992 2011-02-17  Bruno Haible  <bruno@clisp.org>
18993
18994         getloadavg: Add comments about platforms.
18995         * m4/getloadavg.m4: Add comment.
18996         * lib/getloadavg.c: Likewise.
18997
18998 2011-02-17  Bruno Haible  <bruno@clisp.org>
18999
19000         getloadavg: Fix link error on Solaris 2.6.
19001         * modules/getloadavg (Link): New section.
19002         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19003         linking test-getloadavg.
19004         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19005         getloadavg.
19006
19007 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19010         It was 'int', but this doesn't match the IRIX 6.5 manual.
19011         Suggested by Bruno Haible in
19012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19013
19014 2011-02-17  Bruno Haible  <bruno@clisp.org>
19015
19016         havelib: Fix comments.
19017         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19018         change.
19019
19020 2011-02-17  Bruno Haible  <bruno@clisp.org>
19021
19022         havelib: Update config.rpath.
19023         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19024
19025 2011-02-17  Bruno Haible  <bruno@clisp.org>
19026
19027         getloadavg test: Add some plausibility checks.
19028         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19029         is improbable.
19030
19031 2011-02-16  Eric Blake  <eblake@redhat.com>
19032
19033         maintainer-makefile: make syntax-check a no-op from tarballs
19034         * top/maint.mk (no-vc-detected): New rule.
19035         (local-checks-available): Use it to avoid hanging if someone tries
19036         'make syntax-check' from a tarball.  Also append to any non-syntax
19037         checks already defined in cfg.mk.
19038
19039 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19040
19041         longlong: tune, particularly for common case of c99
19042
19043         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19044         or running anything if c99, or if unsigned long long int does not
19045         work.  In either case, we know the answer without further tests.
19046         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19047         it at most once, and use its results for both long long int and
19048         unsigned long long int.  This is more likely to be efficient in
19049         the common case where the program wants to check for both long
19050         long int and unsigned long long int.
19051         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19052         since the answer is already known.
19053
19054 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19055
19056         getloadavg: set errno
19057         * lib/getloadavg.c: Set errno when returning -1.  If no other
19058         error number looks appropriate, set it to ENOSYS if the getloadavg
19059         looks like it can't possibly ever work, ENOTSUP otherwise.
19060         Suggested by Bruno Haible in
19061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19062
19063         getloadavg: trim unused parts and speed up 'configure'
19064         * NEWS: Document this.
19065         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19066         always compiled if getloadavg is absent.
19067         Move test code to ...
19068         * tests/test-getloadavg.c: New file, containing previous
19069         contents of test from lib/getloadavg.c.  It also contains
19070         suggestions by Bruno Haible in
19071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19072         * modules/getloadavg-tests: New file.
19073         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19074         Do tests in the same order as they're needed for getloadavg.c.
19075         Omit setgid-related tests that generate symbols KMEM_GROUP,
19076         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19077         Do only the tests that are needed to see whether the system has
19078         getloadavg, moving the other tests into ...
19079         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19080         NLIST_NAME_UNION; nobody should be using it.  Do not define
19081         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19082         relevant, as the user of this module shouldn't care how getloadavg
19083         is implemented.
19084
19085         getloadavg: omit unused var
19086         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19087
19088 2011-02-15  Jim Meyering  <meyering@redhat.com>
19089
19090         doc: update users.txt
19091         * users.txt: Update iwhd's URL.
19092
19093 2011-02-13  Bruno Haible  <bruno@clisp.org>
19094
19095         Consistent macro naming for macros that use GCC __attribute__.
19096         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19097         _ATTRIBUTE_NONNULL_.
19098         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19099         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19100         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19101         ATTRIBUTE_DEPRECATED.
19102         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19103         ATTRIBUTE_NORETURN.
19104         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19105         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19106         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19107         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19108         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19109         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19110         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19111         ATTRIBUTE_SENTINEL.
19112         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19113         ATTRIBUTE_RETURN_CHECK.
19114         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19115         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19116         ATTRIBUTE_NORETURN.
19117         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19118         Reported by Paul Eggert.
19119
19120 2011-02-13  Bruno Haible  <bruno@clisp.org>
19121
19122         Don't interfere with a program's definition of __attribute__.
19123         * lib/argp.h (__attribute__): Remove definition.
19124         (_GL_ATTRIBUTE_FORMAT): New macro.
19125         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19126         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19127         (_GL_ATTRIBUTE_FORMAT): New macro.
19128         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19129         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19130         GCC 3 or newer.
19131         * lib/error.h (__attribute__): Remove definition.
19132         (_GL_ATTRIBUTE_FORMAT): New macro.
19133         (error, error_at_line): Use it.
19134         * lib/hash.h (__attribute__): Remove definition.
19135         (ATTRIBUTE_WUR): Update definition. Define always.
19136         * lib/openat.h (__attribute__): Remove definition.
19137         (ATTRIBUTE_NORETURN): Update definition. Define always.
19138         * lib/sigpipe-die.h (__attribute__): Remove definition.
19139         (ATTRIBUTE_NORETURN): Update definition. Define always.
19140         * lib/vasnprintf.h (__attribute__): Remove definition.
19141         (_GL_ATTRIBUTE_FORMAT): New macro.
19142         (asnprintf, vasnprintf): Use it.
19143         * lib/xalloc.h (__attribute__): Remove definition.
19144         (ATTRIBUTE_NORETURN): Update definition. Define always.
19145         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19146         * lib/xmemdup0.h (__attribute__): Remove definition.
19147         (ATTRIBUTE_NORETURN): Update definition. Define always.
19148         * lib/xprintf.h (__attribute__): Remove definition.
19149         (_GL_ATTRIBUTE_FORMAT): New macro.
19150         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19151         * lib/xstrtol.h (__attribute__): Remove definition.
19152         (ATTRIBUTE_NORETURN): Update definition. Define always.
19153         * lib/xvasprintf.h (__attribute__): Remove definition.
19154         (_GL_ATTRIBUTE_FORMAT): New macro.
19155         (xasprintf, xvasprintf): Use it.
19156         * tests/test-argmatch.c (__attribute__): Remove definition.
19157         (ATTRIBUTE_NORETURN): Update definition. Define always.
19158         * tests/test-exclude.c (__attribute__): Remove definition.
19159         (ATTRIBUTE_NORETURN): Update definition. Define always.
19160         Reported by Paul Eggert.
19161
19162 2011-02-13  Bruno Haible  <bruno@clisp.org>
19163
19164         mbrtowc: Add more tests for native Windows platforms.
19165         * tests/test-mbrtowc-w32-1.sh: New file.
19166         * tests/test-mbrtowc-w32-2.sh: New file.
19167         * tests/test-mbrtowc-w32-3.sh: New file.
19168         * tests/test-mbrtowc-w32-4.sh: New file.
19169         * tests/test-mbrtowc-w32-5.sh: New file.
19170         * tests/test-mbrtowc-w32.c: New file.
19171         * modules/mbrtowc-tests (Files): Add them.
19172         (Makefile.am): Arrange to run these tests.
19173         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19174         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19175
19176 2011-02-13  Bruno Haible  <bruno@clisp.org>
19177
19178         mbrtowc: Work around native Windows bug.
19179         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19180         guess when no suitable locale for testing was found.
19181         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19182
19183 2011-02-13  Bruno Haible  <bruno@clisp.org>
19184
19185         mbsinit: Work around mingw bug.
19186         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19187         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19188         Windows.
19189         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19190
19191 2011-02-13  Bruno Haible  <bruno@clisp.org>
19192
19193         mbsinit: Don't crash for a NULL argument.
19194         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19195         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19196
19197 2011-02-13  Bruno Haible  <bruno@clisp.org>
19198
19199         Don't interfere with a program's definition of __attribute__.
19200         * lib/stdio.in.h (__attribute__): Remove definition.
19201         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19202         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19203         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19204         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19205         * lib/string.in.h (__attribute__): Remove definition.
19206         Reported by Paul Eggert.
19207
19208 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19209
19210         stdlib: don't get in the way of non-GCC __attribute__
19211         See thread starting at
19212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19213         Revert previous stdlib change, installing the following instead:
19214         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19215         to get in the way of a non-GCC compiler that supports __attribute__.
19216         (_GL_ATTRIBUTE_RETURN): New macro.
19217         (_Exit): Use it instead of __attribute__.
19218
19219 2011-02-12  Bruno Haible  <bruno@clisp.org>
19220
19221         quotearg test: Avoid test failure on mingw.
19222         * tests/test-quotearg.sh: Convert the locale identifier from native
19223         Windows syntax to Unix syntax.
19224
19225 2011-02-12  Bruno Haible  <bruno@clisp.org>
19226
19227         setlocale: Prefer gnulib's override over libintl's override.
19228         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19229         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19230         GNULIB_defined_setlocale is set.
19231
19232 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19233
19234         stdlib: support non-GCC __attribute__
19235
19236         Fix a serious and tricky problem encountered when attempting to
19237         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19238         5.5, but it crashed due to memory corruption on Solaris 10 with
19239         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19240         bits that are otherwise zero.  This tagging is optional inside
19241         Emacs but is preferred and is used when __attribute__ ((__aligned
19242         (8))) works, as it does with both recent-enough GCC and with Sun C
19243         5.11.  However, Sun C 5.11 is not GCC and does not #define
19244         __GNUC__ and __GNUC_MINOR__.
19245
19246         When I added the getloadavg module to Emacs, it brought in
19247         stdlib.in.h, which contained this fragment:
19248
19249            #ifndef __attribute__
19250            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19251            #  define __attribute__(Spec)   /* empty */
19252            # endif
19253            #endif
19254
19255         When files that include <stdlib.h> were compiled with Sun C 5.11,
19256         the above code disabled __attribute__ ((__aligned (8))), which
19257         caused variables to not be properly aligned, which eventually led
19258         to the pointer corruption mentioned above.  (This was a bit hard
19259         to diagnose, unfortunately.)
19260
19261         Several "#define __attribute__(X) /* empty */" code snippets need
19262         to be eradicated from Gnulib to work with non-GCC compilers that
19263         support __attribute__.  The Autoconf way to do this is to test for
19264         each kind of attribute that we want support for, and selectively
19265         enable that in source code.
19266
19267         Fix this problem just for stdlib.h, by adding a test for the
19268         __noreturn__ attribute, and change stdlib.in.h to use that test
19269         when needed.  This technique can be easily generalized to the
19270         other *.in.h files and attributes, and a similar technique can be
19271         used for *.h and *.c files.  This patch is enough to solve the
19272         problem for Emacs + getloadavg, and I thought I'd publish it for
19273         feedback before undertaking further, similar fixes in other
19274         modules.
19275
19276         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19277         because it's not needed for stdlib.h.  It merely substitutes the
19278         value directly into stdlib.h.  We may well need to #define it, or
19279         similar symbols, for other modules, but it's nice to also have an
19280         option to not #define it for applications like Emacs that do not
19281         need it.
19282
19283         * lib/stdlib.in.h (__attribute__): Do not #define.
19284         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19285         be defined only if the _Exit module is also used.
19286         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19288         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19289         platforms.
19290         * modules/_Exit (Files): Add m4/attribute.m4.
19291         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19292         * m4/attribute.m4: New file.
19293
19294 2011-02-12  Bruno Haible  <bruno@clisp.org>
19295
19296         wcsrtombs: Work around bug on native Windows.
19297         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19298         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19299         instead of len.
19300         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19301
19302 2011-02-12  Bruno Haible  <bruno@clisp.org>
19303
19304         mbsrtowcs: Work around bug on native Windows.
19305         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19306         against mingw bug.
19307         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19308
19309 2011-02-12  Bruno Haible  <bruno@clisp.org>
19310
19311         Avoid setlocale bugs in tests.
19312         * modules/btowc (Dependencies): Add setlocale.
19313         * modules/c-strcase (Dependencies): Likewise.
19314         * modules/mbmemcasecmp (Dependencies): Likewise.
19315         * modules/mbmemcasecoll (Dependencies): Likewise.
19316         * modules/mbrtowc (Dependencies): Likewise.
19317         * modules/mbscasecmp (Dependencies): Likewise.
19318         * modules/mbscasestr (Dependencies): Likewise.
19319         * modules/mbschr (Dependencies): Likewise.
19320         * modules/mbscspn (Dependencies): Likewise.
19321         * modules/mbsinit (Dependencies): Likewise.
19322         * modules/mbsncasecmp (Dependencies): Likewise.
19323         * modules/mbsnrtowcs (Dependencies): Likewise.
19324         * modules/mbspbrk (Dependencies): Likewise.
19325         * modules/mbspcasecmp (Dependencies): Likewise.
19326         * modules/mbsrchr (Dependencies): Likewise.
19327         * modules/mbsrtowcs (Dependencies): Likewise.
19328         * modules/mbsspn (Dependencies): Likewise.
19329         * modules/mbsstr (Dependencies): Likewise.
19330         * modules/nl_langinfo (Dependencies): Likewise.
19331         * modules/quotearg (Dependencies): Likewise.
19332         * modules/unicase/locale-language (Dependencies): Likewise.
19333         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19334         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19335         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19336         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19337         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19338         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19339         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19340         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19341         * modules/vasnprintf-posix (Dependencies): Likewise.
19342         * modules/wcrtomb (Dependencies): Likewise.
19343         * modules/wcsnrtombs (Dependencies): Likewise.
19344         * modules/wcsrtombs (Dependencies): Likewise.
19345
19346 2011-02-12  Bruno Haible  <bruno@clisp.org>
19347
19348         setlocale: Workaround native Windows bug.
19349         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19350         succeeds but sets LC_CTYPE to "C", report a failure.
19351         * tests/test-setlocale2.sh: New file.
19352         * tests/test-setlocale2.c: New file.
19353         * modules/setlocale-tests (Files): Add the new files.
19354         (Makefile.am): Enable test-setlocale2.sh test.
19355         * doc/posix-functions/setlocale.texi: Mention workaround.
19356
19357 2011-02-11  Bruno Haible  <bruno@clisp.org>
19358
19359         Tests for module 'setlocale'.
19360         * modules/setlocale-tests: New file.
19361         * tests/test-setlocale1.sh: New file.
19362         * tests/test-setlocale1.c: New file.
19363
19364         New module 'setlocale'.
19365         * lib/locale.in.h (setlocale): New declaration.
19366         * lib/setlocale.c: New file, based on
19367         gettext/gettext-runtime/intl/setlocale.c.
19368         * m4/setlocale.m4: New file.
19369         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19370         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19371         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19372         REPLACE_SETLOCALE.
19373         * modules/setlocale: New file.
19374         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19375         * doc/posix-functions/setlocale.texi: Mention the new module.
19376
19377 2011-02-11  Bruno Haible  <bruno@clisp.org>
19378
19379         Prepare for locale dependent tests on mingw.
19380         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19381         because it has the wrong locale encoding.
19382         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19383         French_France.1252 instead of "fr".
19384         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19385         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19386         because it has the wrong locale encoding.
19387         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19388         native Windows, try Turkish_Turkey.65001.
19389         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19390         Chinese_China.54936.
19391
19392         Prepare for locale dependent tests on mingw.
19393         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19394         differently.
19395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19396         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19399
19400 2011-02-11  Eric Blake  <eblake@redhat.com>
19401
19402         strptime: avoid compiler warnings
19403         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19404         compiler warnings about dead code.
19405         Reported by Daniel P. Berrange.
19406
19407 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19408
19409         doc: update users.txt
19410         * users.txt: Add rcs.
19411
19412 2011-02-10  John W. Eaton  <jwe@gnu.org>
19413
19414         doc: update users.txt
19415         * users.txt: Add octave.
19416
19417 2011-02-10  Jim Meyering  <meyering@redhat.com>
19418
19419         doc: update users.txt
19420         * users.txt: Add iwhd.
19421
19422 2011-02-09  Bruno Haible  <bruno@clisp.org>
19423
19424         gnulib-tool: Make copyright notice adjustment more robust.
19425         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19426         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19427         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19428         License".
19429         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19430
19431 2011-02-06  Bruno Haible  <bruno@clisp.org>
19432
19433         New module 'towctrans'.
19434         * modules/towctrans: New file.
19435         * lib/wctype.in.h (towctrans): New declaration.
19436         * lib/towctrans.c: New file.
19437         * lib/towctrans-impl.h: New file.
19438         * m4/towctrans.m4: New file.
19439         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19440         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19441         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19442         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19443         * doc/posix-functions/towctrans.texi: Mention the new module.
19444
19445 2011-02-06  Bruno Haible  <bruno@clisp.org>
19446
19447         New module 'wctrans'.
19448         * modules/wctrans: New file.
19449         * lib/wctype.in.h (wctrans): New declaration.
19450         * lib/wctrans.c: New file.
19451         * lib/wctrans-impl.h: New file.
19452         * m4/wctrans.m4: New file.
19453         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19454         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19455         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19456         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19457         * doc/posix-functions/wctrans.texi: Mention the new module.
19458
19459 2011-02-06  Bruno Haible  <bruno@clisp.org>
19460
19461         New module 'iswctype'.
19462         * modules/iswctype: New file.
19463         * lib/wctype.in.h (iswctype): New declaration.
19464         * lib/iswctype.c: New file.
19465         * lib/iswctype-impl.h: New file.
19466         * m4/iswctype.m4: New file.
19467         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19468         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19469         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19470         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19471         * doc/posix-functions/iswctype.texi: Mention the new module and the
19472         HP-UX 11.00 problem.
19473
19474 2011-02-06  Bruno Haible  <bruno@clisp.org>
19475
19476         New module 'wctype'.
19477         * modules/wctype: Change to represent the wctype() substitute.
19478         * lib/wctype.in.h (wctype): New declaration.
19479         * lib/wctype.c: New file.
19480         * lib/wctype-impl.h: New file.
19481         * m4/wctype.m4: New file.
19482         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19483         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19484         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19485         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19486         * doc/posix-functions/wctype.texi: Mention the new module and the
19487         HP-UX 11.00 problem.
19488
19489 2011-02-06  Bruno Haible  <bruno@clisp.org>
19490
19491         wctype-h: Ensure wctype_t and wctrans_t are defined.
19492         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19493         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19494         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19495         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19496         HAVE_WCTRANS_T.
19497         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19498
19499 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         flock: fix license typo
19502
19503         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19504         omitted.
19505
19506 2011-02-08  Bruno Haible  <bruno@clisp.org>
19507
19508         Split large sed scripts, for HP-UX sed.
19509         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19510         to avoid HP-UX limit of 99 commands, in the near future.
19511         * modules/stdlib (Makefile.am): Likewise.
19512         * modules/unistd (Makefile.am): Likewise.
19513         * modules/wchar (Makefile.am): Likewise.
19514         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19515         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19517
19518 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19519             Bruno Haible  <bruno@clisp.org>
19520
19521         stdlib: improve random_r modularization
19522         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19523         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19524         you also need the random_r module to get this material right.
19525         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19526         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19527         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19528
19529 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19530
19531         stdlib: don't depend on stdint
19532         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19533         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19534         be independent of whether stdint.h is needed.
19535         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19536         here, instead of ...
19537         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19538         struct random_data should be using the random_r module, not just
19539         the stdlib module (which wouldn't make sense: what package needs
19540         just struct random_data without also needing random_r?).
19541         * modules/stdlib (Depends-on): Remove stdint.
19542
19543         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19544         See the thread rooted at
19545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19546         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19547         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19548         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19549         __VMS)); previously it was always included (via fcntl--.h).
19550         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19551         hand; this is good enough for load averages.  Also, do not use
19552         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19553         flags directly if available and don't bother otherwise.  (Packages
19554         that need the extra reliability should use the modules that define
19555         these flags on older platforms that lack them.)
19556         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19557         fcntl-safer.
19558
19559 2011-02-08  Jim Meyering  <meyering@redhat.com>
19560
19561         di-set.h, ino-map.h: add multiple-inclusion guard
19562         Technically, the guard is required only for ino-map.h, due to its
19563         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19564         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19565         * lib/ino-map.h: Likewise.
19566
19567 2011-02-06  Bruno Haible  <bruno@clisp.org>
19568
19569         iswblank: Ensure declaration on glibc systems.
19570         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19571         * modules/iswblank (Dependencies): Add 'extensions'.
19572         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19573
19574 2011-02-06  Bruno Haible  <bruno@clisp.org>
19575
19576         New module 'iswblank'.
19577         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19578         * modules/iswblank: New file.
19579         * modules/wctype-h (Files): Remove lib/iswblank.c.
19580         (Makefile.am): Substitute GNULIB_ISWBLANK.
19581         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19582         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19583         (gl_WCTYPE_H_DEFAULTS): New macro.
19584         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19585         * modules/iswblank-tests: New file.
19586         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19587         * tests/test-wctype-h.c (main): Remove iswblank tests.
19588         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19589         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19590         of 'wctype-h'.
19591         * NEWS: Mention the change.
19592         * modules/mbchar (Depends-on): Add iswblank.
19593
19594 2011-02-08  Bruno Haible  <bruno@clisp.org>
19595
19596         di-set tests: Refactor.
19597         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19598         unnecessary includes.
19599         (ASSERT): Remove macro.
19600         (main): Make C90 compliant by avoiding variable declaration after
19601         statement.
19602         * modules/di-set-tests (Files): Add tests/macros.h.
19603
19604 2011-02-08  Bruno Haible  <bruno@clisp.org>
19605
19606         ino-map tests: Refactor.
19607         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19608         unnecessary includes.
19609         (ASSERT): Remove macro.
19610         (main): Make C90 compliant by avoiding variable declaration after
19611         statement.
19612         * modules/ino-map-tests (Files): Add tests/macros.h.
19613
19614 2011-02-08  Jim Meyering  <meyering@redhat.com>
19615
19616         di-set: add "const" to a cast
19617         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19618         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19619
19620 2011-02-06  Bruno Haible  <bruno@clisp.org>
19621
19622         Rename module 'wctype' to 'wctype-h'.
19623         * modules/wctype-h: Renamed from modules/wctype.
19624         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19625         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19626         (Files, Depends-on, Makefile.am): Update.
19627         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19628         (Files, Makefile.am): Update.
19629         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19630         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19631         * doc/posix-headers/wctype.texi: Update.
19632         * doc/posix-functions/iswalnum.texi: Update.
19633         * doc/posix-functions/iswalpha.texi: Update.
19634         * doc/posix-functions/iswblank.texi: Update.
19635         * doc/posix-functions/iswcntrl.texi: Update.
19636         * doc/posix-functions/iswdigit.texi: Update.
19637         * doc/posix-functions/iswgraph.texi: Update.
19638         * doc/posix-functions/iswlower.texi: Update.
19639         * doc/posix-functions/iswprint.texi: Update.
19640         * doc/posix-functions/iswpunct.texi: Update.
19641         * doc/posix-functions/iswspace.texi: Update.
19642         * doc/posix-functions/iswupper.texi: Update.
19643         * doc/posix-functions/iswxdigit.texi: Update.
19644         * doc/posix-functions/towlower.texi: Update.
19645         * doc/posix-functions/towupper.texi: Update.
19646         * NEWS: Mention the change.
19647         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19648         * modules/mbchar (Dependencies): Likewise.
19649         * modules/mbswidth (Dependencies): Likewise.
19650         * modules/quotearg (Dependencies): Likewise.
19651         * modules/regex (Dependencies): Likewise.
19652         * modules/wcscasecmp (Dependencies): Likewise.
19653         * modules/wcsncasecmp (Dependencies): Likewise.
19654         * modules/wcwidth (Dependencies): Likewise.
19655
19656 2011-02-06  Bruno Haible  <bruno@clisp.org>
19657
19658         New module 'wcswidth'.
19659         * modules/wcswidth: New file.
19660         * lib/wchar.in.h (wcswidth): New declaration.
19661         * lib/wcswidth.c: New file.
19662         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19663         * m4/wcswidth.m4: New file.
19664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19666         REPLACE_WCSWIDTH.
19667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19668         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19669         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19670         * doc/posix-functions/wcswidth.texi: Mention the new module.
19671
19672 2011-02-06  Bruno Haible  <bruno@clisp.org>
19673
19674         New module 'wcstok'.
19675         * modules/wcstok: New file.
19676         * lib/wchar.in.h (wcstok): New declaration.
19677         * lib/wcstok.c: New file.
19678         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19679         * m4/wcstok.m4: New file.
19680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19683         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19684         * doc/posix-functions/wcstok.texi: Mention the new module.
19685
19686 2011-02-06  Bruno Haible  <bruno@clisp.org>
19687
19688         New module 'wcsstr'.
19689         * modules/wcsstr: New file.
19690         * lib/wchar.in.h (wcsstr): New declaration.
19691         * lib/wcsstr.c: New file.
19692         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19693         * m4/wcsstr.m4: New file.
19694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19697         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19698         * doc/posix-functions/wcsstr.texi: Mention the new module.
19699
19700 2011-02-06  Bruno Haible  <bruno@clisp.org>
19701
19702         New module 'wcspbrk'.
19703         * modules/wcspbrk: New file.
19704         * lib/wchar.in.h (wcspbrk): New declaration.
19705         * lib/wcspbrk.c: New file.
19706         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19707         * m4/wcspbrk.m4: New file.
19708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19711         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19712         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19713
19714 2011-02-06  Bruno Haible  <bruno@clisp.org>
19715
19716         New module 'wcsspn'.
19717         * modules/wcsspn: New file.
19718         * lib/wchar.in.h (wcsspn): New declaration.
19719         * lib/wcsspn.c: New file.
19720         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19721         * m4/wcsspn.m4: New file.
19722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19725         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19726         * doc/posix-functions/wcsspn.texi: Mention the new module.
19727
19728 2011-02-06  Bruno Haible  <bruno@clisp.org>
19729
19730         New module 'wcscspn'.
19731         * modules/wcscspn: New file.
19732         * lib/wchar.in.h (wcscspn): New declaration.
19733         * lib/wcscspn.c: New file.
19734         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19735         * m4/wcscspn.m4: New file.
19736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19739         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19740         * doc/posix-functions/wcscspn.texi: Mention the new module.
19741
19742 2011-02-06  Bruno Haible  <bruno@clisp.org>
19743
19744         New module 'wcsrchr'.
19745         * modules/wcsrchr: New file.
19746         * lib/wchar.in.h (wcsrchr): New declaration.
19747         * lib/wcsrchr.c: New file.
19748         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19749         * m4/wcsrchr.m4: New file.
19750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19753         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19754         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19755
19756 2011-02-06  Bruno Haible  <bruno@clisp.org>
19757
19758         New module 'wcschr'.
19759         * modules/wcschr: New file.
19760         * lib/wchar.in.h (wcschr): New declaration.
19761         * lib/wcschr.c: New file.
19762         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19763         * m4/wcschr.m4: New file.
19764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19767         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19768         * doc/posix-functions/wcschr.texi: Mention the new module.
19769
19770 2011-02-06  Bruno Haible  <bruno@clisp.org>
19771
19772         New module 'wcsdup'.
19773         * modules/wcsdup: New file.
19774         * lib/wchar.in.h (wcsdup): New declaration.
19775         * lib/wcsdup.c: New file.
19776         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19777         * m4/wcsdup.m4: New file.
19778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19781         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19782         * doc/posix-functions/wcsdup.texi: Mention the new module.
19783
19784 2011-02-06  Bruno Haible  <bruno@clisp.org>
19785
19786         New module 'wcsxfrm'.
19787         * modules/wcsxfrm: New file.
19788         * lib/wchar.in.h (wcsxfrm): New declaration.
19789         * lib/wcsxfrm.c: New file.
19790         * lib/wcsxfrm-impl.h: New file.
19791         * m4/wcsxfrm.m4: New file.
19792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19795         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19796         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19797
19798 2011-02-06  Bruno Haible  <bruno@clisp.org>
19799
19800         New module 'wcscoll'.
19801         * modules/wcscoll: New file.
19802         * lib/wchar.in.h (wcscoll): New declaration.
19803         * lib/wcscoll.c: New file.
19804         * lib/wcscoll-impl.h: New file.
19805         * m4/wcscoll.m4: New file.
19806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19809         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19810         * doc/posix-functions/wcscoll.texi: Mention the new module.
19811
19812 2011-02-06  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'wcsncasecmp'.
19815         * modules/wcsncasecmp: New file.
19816         * lib/wchar.in.h (wcsncasecmp): New declaration.
19817         * lib/wcsncasecmp.c: New file.
19818         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19819         * m4/wcsncasecmp.m4: New file.
19820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19823         HAVE_WCSNCASECMP.
19824         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19825         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19826
19827 2011-02-06  Bruno Haible  <bruno@clisp.org>
19828
19829         New module 'wcscasecmp'.
19830         * modules/wcscasecmp: New file.
19831         * lib/wchar.in.h (wcscasecmp): New declaration.
19832         * lib/wcscasecmp.c: New file.
19833         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19834         * m4/wcscasecmp.m4: New file.
19835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19838         HAVE_WCSCASECMP.
19839         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19840         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19841
19842 2011-02-05  Bruno Haible  <bruno@clisp.org>
19843
19844         New module 'wcsncmp'.
19845         * modules/wcsncmp: New file.
19846         * lib/wchar.in.h (wcsncmp): New declaration.
19847         * lib/wcsncmp.c: New file.
19848         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19849         * m4/wcsncmp.m4: New file.
19850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19853         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19854         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19855
19856 2011-02-05  Bruno Haible  <bruno@clisp.org>
19857
19858         New module 'wcscmp'.
19859         * modules/wcscmp: New file.
19860         * lib/wchar.in.h (wcscmp): New declaration.
19861         * lib/wcscmp.c: New file.
19862         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19863         * m4/wcscmp.m4: New file.
19864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19867         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19868         * doc/posix-functions/wcscmp.texi: Mention the new module.
19869
19870 2011-02-05  Bruno Haible  <bruno@clisp.org>
19871
19872         New module 'wcsncat'.
19873         * modules/wcsncat: New file.
19874         * lib/wchar.in.h (wcsncat): New declaration.
19875         * lib/wcsncat.c: New file.
19876         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19877         * m4/wcsncat.m4: New file.
19878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19881         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19882         * doc/posix-functions/wcsncat.texi: Mention the new module.
19883
19884 2011-02-05  Bruno Haible  <bruno@clisp.org>
19885
19886         New module 'wcscat'.
19887         * modules/wcscat: New file.
19888         * lib/wchar.in.h (wcscat): New declaration.
19889         * lib/wcscat.c: New file.
19890         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19891         * m4/wcscat.m4: New file.
19892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19895         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19896         * doc/posix-functions/wcscat.texi: Mention the new module.
19897
19898 2011-02-05  Bruno Haible  <bruno@clisp.org>
19899
19900         New module 'wcpncpy'.
19901         * modules/wcpncpy: New file.
19902         * lib/wchar.in.h (wcpncpy): New declaration.
19903         * lib/wcpncpy.c: New file.
19904         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19905         * m4/wcpncpy.m4: New file.
19906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19908         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19909         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19910         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19911
19912 2011-02-05  Bruno Haible  <bruno@clisp.org>
19913
19914         New module 'wcsncpy'.
19915         * modules/wcsncpy: New file.
19916         * lib/wchar.in.h (wcsncpy): New declaration.
19917         * lib/wcsncpy.c: New file.
19918         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19919         * m4/wcsncpy.m4: New file.
19920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19923         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19924         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19925
19926 2011-02-05  Bruno Haible  <bruno@clisp.org>
19927
19928         New module 'wcpcpy'.
19929         * modules/wcpcpy: New file.
19930         * lib/wchar.in.h (wcpcpy): New declaration.
19931         * lib/wcpcpy.c: New file.
19932         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19933         * m4/wcpcpy.m4: New file.
19934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19936         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19937         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19938         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19939
19940 2011-02-05  Bruno Haible  <bruno@clisp.org>
19941
19942         New module 'wcscpy'.
19943         * modules/wcscpy: New file.
19944         * lib/wchar.in.h (wcscpy): New declaration.
19945         * lib/wcscpy.c: New file.
19946         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19947         * m4/wcscpy.m4: New file.
19948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19951         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19952         * doc/posix-functions/wcscpy.texi: Mention the new module.
19953
19954 2011-02-05  Bruno Haible  <bruno@clisp.org>
19955
19956         New module 'wcsnlen'.
19957         * modules/wcsnlen: New file.
19958         * lib/wchar.in.h (wcsnlen): New declaration.
19959         * lib/wcsnlen.c: New file.
19960         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19961         * m4/wcsnlen.m4: New file.
19962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19965         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19966         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19967
19968 2011-02-05  Bruno Haible  <bruno@clisp.org>
19969
19970         New module 'wcslen'.
19971         * modules/wcslen: New file.
19972         * lib/wchar.in.h (wcslen): New declaration.
19973         * lib/wcslen.c: New file.
19974         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19975         * m4/wcslen.m4: New file.
19976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19979         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19980         * doc/posix-functions/wcslen.texi: Mention the new module.
19981
19982 2011-02-05  Bruno Haible  <bruno@clisp.org>
19983
19984         New module 'wmemset'.
19985         * modules/wmemset: New file.
19986         * lib/wchar.in.h (wmemset): New declaration.
19987         * lib/wmemset.c: New file.
19988         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19989         * m4/wmemset.m4: New file.
19990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19992         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19993         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19994         * doc/posix-functions/wmemset.texi: Mention the new module.
19995
19996 2011-02-05  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'wmemmove'.
19999         * modules/wmemmove: New file.
20000         * lib/wchar.in.h (wmemmove): New declaration.
20001         * lib/wmemmove.c: New file.
20002         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20003         * m4/wmemmove.m4: New file.
20004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20006         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20007         HAVE_WMEMMOVE.
20008         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20009         * doc/posix-functions/wmemmove.texi: Mention the new module.
20010
20011 2011-02-05  Bruno Haible  <bruno@clisp.org>
20012
20013         New module 'wmemcpy'.
20014         * modules/wmemcpy: New file.
20015         * lib/wchar.in.h (wmemcpy): New declaration.
20016         * lib/wmemcpy.c: New file.
20017         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20018         * m4/wmemcpy.m4: New file.
20019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20021         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20022         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20023         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20024
20025 2011-02-05  Bruno Haible  <bruno@clisp.org>
20026
20027         New module 'wmemcmp'.
20028         * modules/wmemcmp: New file.
20029         * lib/wchar.in.h (wmemcmp): New declaration.
20030         * lib/wmemcmp.c: New file.
20031         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20032         * m4/wmemcmp.m4: New file.
20033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20035         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20036         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20037         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20038
20039 2011-02-07  Jim Meyering  <meyering@redhat.com>
20040
20041         di-set, ino-map: new modules, from coreutils
20042         * lib/di-set.c: New file.
20043         * lib/di-set.h: Likewise.
20044         * lib/ino-map.c: Likewise.
20045         * lib/ino-map.h: Likewise.
20046         * modules/di-set: Likewise.
20047         * modules/di-set-tests: Likewise.
20048         * modules/ino-map: Likewise.
20049         * modules/ino-map-tests: Likewise.
20050         * tests/test-di-set.c: Likewise.
20051         * tests/test-ino-map.c: Likewise.
20052
20053 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20054
20055         getloadavg: merge minor changes from Emacs
20056
20057         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20058         (getloadavg): Use memset, not bzero.
20059
20060         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20061         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20062         clash (bug#86).
20063
20064 2010-11-14  Bruno Haible  <bruno@clisp.org>
20065
20066         Allow multiple gnulib generated replacements to coexist.
20067         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20068         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20069         * lib/langinfo.in.h (nl_item): Likewise.
20070         * lib/math.in.h (_NaN, NAN): Likewise.
20071         * lib/netdb.in.h (struct addrinfo): Likewise.
20072         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20073         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20074         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20075         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20076         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20077         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20078         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20079         pthread_mutexattr_init, pthread_mutexattr_settype,
20080         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20081         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20082         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20083         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20084         * lib/sched.in.h (struct sched_param): Likewise.
20085         * lib/se-selinux.in.h (security_class_t, security_context_t,
20086         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20087         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20088         lsetfilecon, fsetfilecon, security_check_context,
20089         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20090         Likewise.
20091         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20092         Likewise.
20093         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20094         _gl_function_taking_int_returning_void_t, union sigval,
20095         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20096         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20097         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20098         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20099         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20100         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20101         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20102         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20103         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20104         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20105         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20106         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20107         socklen_t, rpl_fd_isset): Likewise.
20108         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20109         * lib/sys_time.in.h (struct timeval): Likewise.
20110         * lib/sys_times.in.h (struct tms): Likewise.
20111         * lib/sys_utsname.in.h (struct utsname):
20112         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20113         * lib/unistd.in.h (getpagesize): Likewise.
20114         * lib/wchar.in.h (mbstate_t): Likewise.
20115         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20116         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20117         towlower, towupper): Likewise.
20118         Reported by Sam Steingold <sds@gnu.org>.
20119
20120 2011-02-05  Eric Blake  <eblake@redhat.com>
20121
20122         unsetenv: work around Haiku issues
20123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20124         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20125
20126 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20127
20128         libposix: avoid calling error() within libposix
20129         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20130         is defined.
20131
20132 2011-02-05  Eric Blake  <eblake@redhat.com>
20133
20134         strerror_r-posix: port to cygwin
20135         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20136         implementation.
20137         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20138         * tests/test-strerror_r.c (main): Fix test.
20139         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20140         issue.
20141
20142 2011-02-05  Bruno Haible  <bruno@clisp.org>
20143
20144         New module 'wmemchr'.
20145         * modules/wmemchr: New file.
20146         * lib/wchar.in.h (wmemchr): New declaration.
20147         * lib/wmemchr.c: New file.
20148         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20149         * m4/wmemchr.m4: New file.
20150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20152         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20153         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20154         * doc/posix-functions/wmemchr.texi: Mention the new module.
20155
20156 2011-02-04  Eric Blake  <eblake@redhat.com>
20157
20158         fdopendir: detect FreeBSD bug
20159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20160         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20161
20162 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20163
20164         stdbool: do not define HAVE_STDBOOL_H
20165         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20166         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20167         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20168         imported from the latest Autoconf git.  It was motivated by Emacs,
20169         which uses gnulib but does not need HAVE_STDBOOL_H.
20170
20171 2011-02-04  Bruno Haible  <bruno@clisp.org>
20172
20173         wcsnrtombs: Prepare for new module wwcsnrtombs.
20174         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20175         * lib/wcsnrtombs.c: Include it.
20176         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20177
20178         wcsrtombs: Prepare for new module wwcsrtombs.
20179         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20180         * lib/wcsrtombs.c: Include it.
20181         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20182
20183         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20184         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20185         * lib/mbsnrtowcs.c: Include it.
20186         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20187
20188         mbsrtowcs: Prepare for new module mbsrtowwcs.
20189         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20190         * lib/mbsrtowcs.c: Include it.
20191         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20192
20193 2011-02-04  Bruno Haible  <bruno@clisp.org>
20194
20195         vasnprintf: Reduce use of malloc for small format strings.
20196         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20197         (arguments): Add room for the first 7 arguments.
20198         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20199         (char_directives, u8_directives, u16_directives, u32_directives): Add
20200         room for the first 7 directives.
20201         * lib/printf-parse.c: Include <string.h>.
20202         (PRINTF_PARSE): Change memory handling code so that it uses the first
20203         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20204         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20205         Reported by Pádraig Brady <P@draigbrady.com>.
20206
20207 2011-01-31  Eric Blake  <eblake@redhat.com>
20208
20209         dup2: work around Haiku bug
20210         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20211         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20212         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20213         * tests/test-dup2.c (main): Enhance test.
20214
20215 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20216
20217         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20218         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20219         declared by eglibc 2.11.2.
20220         * lib/stdio.in.h: Likewise.
20221
20222 2011-01-31  Eric Blake  <eblake@redhat.com>
20223
20224         ignore-value: add missing test dependency
20225         * tests/test-ignore-value.c: Revert previous change; stdio.h
20226         provides off_t.
20227         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20228
20229 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20230
20231         mktime: clarify long_int width checking
20232         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20233         the top level, to make it clearer that the assumption about
20234         long_int width is being checked.  See
20235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20236
20237 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20238
20239         ignore-value: Fix self-test.
20240         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20241
20242 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         TYPE_MAXIMUM: avoid theoretically undefined behavior
20245         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20246         negative number, which the C Standard says has undefined behavior.
20247         In practice this is not a problem, but might as well do it by the book.
20248         Reported by Rich Felker and Eric Blake; see
20249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20250         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20251         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20253         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20254         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20255         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20256
20257         mktime: #undef mktime before #defining it
20258         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20259
20260         mktime: systematically normalize tm_isdst comparisons
20261         * lib/mktime.c (isdst_differ): New function.
20262         (__mktime_internal): Use it systematically for all isdst comparisons.
20263         This completes the fix for libc BZ #6723, and removes the need for
20264         normalizing tm_isdst.  See
20265         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20266         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20267
20268         mktime: fix some integer overflow issues and sidestep the rest
20269
20270         This was prompted by a bug report by Benjamin Lindner for MinGW
20271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20272         His bug is due to signed integer overflow (0 - INT_MIN), and I
20273         I scanned through mktime.c looking for other integer overflow
20274         problems, fixing all the bugs I found.
20275
20276         Although the C Standard says the resulting code is still not safe
20277         in the presence of integer overflow, in practice it should be good
20278         enough for all real-world two's-complement implementations, except
20279         for debugging environments that deliberately trap on integer
20280         overflow (e.g., gcc -ftrapv).
20281
20282         * lib/mktime.c (WRAPV): New macro.
20283         (SHR): Also check that long_int and time_t shift right in the
20284         usual way, before using the fast-but-unportable method.
20285         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20286         used.  The code already assumed two's complement, so there's
20287         no need to test for alternatives.  All uses removed.
20288         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20289         the C standard.  Problem reported by Rich Felker in
20290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20291         (twos_complement_arithmetic): Also check long_int and time_t.
20292         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20293         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20294         (__mktime_internal): Avoid integer overflow with unary subtraction
20295         in two instances where -1 - X is an adequate replacement for -X,
20296         since the calculations are approximate.
20297
20298 2011-01-29  Eric Blake  <eblake@redhat.com>
20299
20300         mktime: avoid infinite loop
20301         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20302         type; behavior is still undefined but portable to all known targets.
20303         Reported by Rich Felker.
20304
20305 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20306
20307         rename, unlink, same-inode: Relicense.
20308         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20309         * modules/unlink (License): Likewise.
20310         * modules/same-inode (License): Likewise.
20311
20312 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20313
20314         mktime: avoid problems on NetBSD 5 / i386
20315         * lib/mktime.c (long_int): New type.  This works around a problem
20316         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20317         but time_t is 64 bits, and where I expect the existing code is
20318         wrong in some cases.
20319         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20320         (ydhms_diff): Bring back the compile-time check for wide-enough
20321         year and yday.
20322
20323         mktime: fix misspelling in comment
20324         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20325         This merges all recent glibc changes of importance.
20326
20327 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20328
20329         move-if-change: cope with concurrent mv of identical file.
20330         * build-aux/move-if-change (CMPPROG): Accept environment
20331         variable as an override for `cmp'.
20332         (usage): Document CMPPROG.
20333         Adjust comparison to drop stdout.  Cope with failure of mv if
20334         the target file exists and is identical to the source, for
20335         parallel builds.
20336         Report from H.J. Lu against binutils in PR binutils/12283.
20337
20338 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20339
20340         * users.txt: Mention sharutils.
20341
20342 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20343
20344         * users.txt: Mention OATH Toolkit.
20345
20346 2011-01-27  Bruno Haible  <bruno@clisp.org>
20347
20348         Prepare for supporting FreeBSD 10.
20349         * build-aux/config.libpath: Remove handling of freebsd1*.
20350
20351 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20352
20353         Prepare for supporting FreeBSD 10.
20354         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20355         match FreeBSD 10.0.
20356
20357 2011-01-27  Bruno Haible  <bruno@clisp.org>
20358
20359         vma-iter, get-rusage-as: Add OpenBSD support.
20360         * modules/vma-iter (configure.ac): Test for mquery.
20361         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20362         * lib/vma-iter.c: Include <sys/mman.h>.
20363         (vma_iterate): Add an implementation based on mquery().
20364         * lib/resource-ext.h (get_rusage_as): Update comments.
20365         * lib/get-rusage-as.c: Likewise.
20366         * lib/get-rusage-data.c: Likewise.
20367
20368 2011-01-26  Karl Berry  <karl@gnu.org>
20369
20370         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20371         variables to make it easier to override the makeinfo program used.
20372
20373 2011-01-26  Eric Blake  <eblake@redhat.com>
20374
20375         fcntl: work around Haiku F_DUPFD bugs
20376         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20377         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20378         cloexec bit on duplication.
20379         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20380
20381 2011-01-26  Bruno Haible  <bruno@clisp.org>
20382
20383         Enable memory leak tests on AIX.
20384         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20385         * tests/test-fprintf-posix3.c (main): Likewise.
20386
20387 2011-01-26  Bruno Haible  <bruno@clisp.org>
20388
20389         Tests for module 'get-rusage-data'.
20390         * modules/get-rusage-data-tests: New file.
20391         * tests/test-get-rusage-data.c: New file.
20392
20393         New module 'get-rusage-data'.
20394         * lib/resource-ext.h (get_rusage_data): New declaration.
20395         * lib/get-rusage-data.c: New file.
20396         * modules/get-rusage-data: New file.
20397
20398 2011-01-25  Bruno Haible  <bruno@clisp.org>
20399
20400         get-rusage-as: Allow for easier testing.
20401         * lib/resource-ext.h (get_rusage_as): Add comment.
20402         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20403         (main): New function for interactive testing.
20404
20405 2011-01-25  Bruno Haible  <bruno@clisp.org>
20406
20407         vma-iter: Treat Haiku like BeOS.
20408         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20409         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20410
20411 2011-01-25  Eric Blake  <eblake@redhat.com>
20412
20413         c-stack: fix regression on cygwin when libsigsegv is present
20414         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20415
20416 2011-01-24  Bruno Haible  <bruno@clisp.org>
20417
20418         vma-iter: Avoid empty intervals.
20419         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20420         on an empty interval.
20421
20422 2011-01-24  Jim Meyering  <meyering@redhat.com>
20423
20424         u64: remove unnecessary #include
20425         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20426
20427 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20428
20429         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20430         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20431
20432 2011-01-23  Bruno Haible  <bruno@clisp.org>
20433
20434         New module 'vma-iter'.
20435         * lib/vma-iter.h: New file.
20436         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20437         * modules/vma-iter: New file.
20438         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20439         for get_rusage_as_via_iterator.
20440         (vma_iterate_callback): New function.
20441         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20442         * modules/get-rusage-as (Depends-on): Add vma-iter.
20443
20444 2011-01-23  Bruno Haible  <bruno@clisp.org>
20445
20446         uninorm: Tweak includes.
20447         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20448         Reported by Jim Meyering.
20449
20450 2011-01-23  Bruno Haible  <bruno@clisp.org>
20451
20452         get-rusage-as: Improve on NetBSD.
20453         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20454         /proc, like on FreeBSD.
20455
20456 2011-01-23  Jim Meyering  <meyering@redhat.com>
20457
20458         xreadlink.h: remove unnecessary #include
20459         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20460
20461         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20462         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20463
20464 2011-01-23  Bruno Haible  <bruno@clisp.org>
20465
20466         get-rusage-as: Fix bug.
20467         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20468         original limit when aborting the first loop.
20469
20470 2011-01-23  Bruno Haible  <bruno@clisp.org>
20471
20472         wctype: Ensure valid C syntax.
20473         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20474         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20475
20476 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20480         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20481         as they are needed only for configure's test case.
20482         This removes two unnecessary symbols from config.h.
20483
20484         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20485         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20487         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20488         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20489         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20490         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20491         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20492         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20493         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20494         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20496         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20497         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20498         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20499         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20500         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20501         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20502
20503 2011-01-21  Eric Blake  <eblake@redhat.com>
20504
20505         maintainer-makefile: work with older git for submodule check
20506         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20507         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20508         Reported by Matthias Bolte.
20509
20510         bootstrap: minor portability fixes
20511         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20512         (usage): Omit leading capital and trailing . on help phrases, per
20513         GNU Coding Standards.
20514         (check_versions, top level): Prefix messages with script name.
20515
20516 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20517
20518         bootstrap: support --no-git option
20519         * build-aux/bootstrap: Add --no-git option, to be used when
20520         --gnulib-srcdir points to the exact desired checkout.
20521
20522 2011-01-21  Eric Blake  <eblake@redhat.com>
20523
20524         strerror_r-posix: work with glibc 2.13
20525         * lib/strerror_r.c (strerror_r): Fix return type.
20526
20527 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20528             Bruno Haible  <bruno@clisp.org>
20529
20530         uN_strstr: New unit tests.
20531         * modules/unistr/u8-strstr-tests: New file.
20532         * modules/unistr/u16-strstr-tests: New file.
20533         * modules/unistr/u32-strstr-tests: New file.
20534         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20535         * tests/unistr/test-u8-strstr.c: New file.
20536         * tests/unistr/test-u16-strstr.c: New file.
20537         * tests/unistr/test-u32-strstr.c: New file.
20538
20539 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         Make uN_strstr functions O(n) worst-case.
20543         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20544         16-bit and 32-bit unit cases, use the unibyte algorithm from
20545         lib/mbsstr.c.
20546         * lib/unistr/u8-strstr.c: Include <string.h>.
20547         (UNIT_IS_UINT8_T): New macro.
20548         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20549         (U_STRLEN, U_STRNLEN): New macros.
20550         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20551         (U_STRLEN, U_STRNLEN): New macros.
20552         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20553         (configure.ac): Update required libunistring version.
20554         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20555         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20556         malloca.
20557         (configure.ac): Update required libunistring version.
20558         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20559         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20560         malloca.
20561         (configure.ac): Update required libunistring version.
20562
20563 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20564             Bruno Haible  <bruno@clisp.org>
20565
20566         Prepare for faster uN_strstr functions.
20567         * lib/str-kmp.h: Support definable UNITs.
20568         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20569         needle_len argument.
20570         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20571         * lib/mbscasestr.c (mbscasestr): Likewise.
20572
20573 2011-01-21  Pádraig Brady <P@draigBrady.com>
20574
20575         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20576         * tests/test-malloca.c (main): Unset the environment variable
20577         to greatly speed up the test.
20578         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20579         * modules/malloca-tests: Depend on unsetenv.
20580
20581 2011-01-21  Pádraig Brady <P@draigBrady.com>
20582
20583         ignore-value: remove stdint dependency
20584         * lib/ignore-value.h: Remove <stdint.h>
20585         * modules/ignore-value: Remove stdint dependency.
20586
20587 2011-01-21  Jim Meyering  <meyering@redhat.com>
20588
20589         maint.mk: adjust variable name to be consistent with other gl_ vars
20590         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20591         to be lower case.
20592
20593 2011-01-20  Jim Meyering  <meyering@redhat.com>
20594
20595         maint.mk: make "check" depend on public-submodule-commit by default
20596         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20597
20598 2011-01-20  Bruno Haible  <bruno@clisp.org>
20599
20600         mbfile, mbiter: Complete change from 2008-12-21.
20601         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20602         * m4/mbiter.m4 (gl_MBITER): Likewise.
20603
20604 2011-01-20  Jim Meyering  <meyering@redhat.com>
20605
20606         init.sh: insert space between each function name and "()"
20607         * tests/init.sh: Make it a little easier to see that a function's
20608         name is "warn_", and not "warn" when looking at the first part of
20609         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20610
20611 2011-01-20  Jim Meyering  <meyering@redhat.com>
20612
20613         mountlist: clean up code formatting
20614         * lib/mountlist.c (read_file_system_list): Split a long line,
20615         correct bracing style, use NULL in place of "(struct statfs *)0",
20616         don't parenthesize return value, add spaces around "=" and after
20617         ";-in-for-stmt".
20618
20619 2011-01-14  Markus Duft <mduft@gentoo.org>
20620
20621         mountlist: add support for Interix
20622         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20623         Apply statvfs to all entries of /dev/fs.
20624         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20625         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20626
20627 2011-01-20  Jim Meyering  <meyering@redhat.com>
20628
20629         maint.mk: improve the public-submodule-commit rule
20630         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20631         to suppress printing of its commands... unless V=1.
20632         Add git submodule's --quiet option to suppress printing of e.g.,
20633         "Entering gnulib" output.
20634         "cd" into $(srcdir) before running git submodule.
20635
20636 2011-01-20  Bruno Haible  <bruno@clisp.org>
20637
20638         include_next: Fix bug introduced on 2011-01-18.
20639         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20640         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20641         ac_cv_header_... variable if the second argument is not 'check'.
20642         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20643         gl_NEXT_HEADERS_INTERNAL.
20644
20645 2011-01-20  Bruno Haible  <bruno@clisp.org>
20646
20647         Allow the user to avoid the GNULIB_TEST_* macros.
20648         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20649         Suggested by Paul Eggert.
20650
20651 2011-01-14  Jim Meyering  <meyering@redhat.com>
20652
20653         bootstrap: avoid failure when there is no .gitmodules file
20654         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20655         has been assigned to, even when its value is the empty string.
20656         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20657         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20658         Reported by John W. Eaton <jwe@gnu.org>.
20659
20660 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20661
20662         assume <ctype.h>, ..., <time.h> exist
20663         For years gnulib has been assuming the existence of the headers
20664         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20665         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20666         them, since they don't appear to be needed.
20667         * README (Portability guidelines): Document this.
20668         * lib/flock.c: Assume <fcntl.h> exists.
20669         * lib/regex_internal.h: Assume <locale.h> exists.
20670         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20672         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20673         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20674         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20675         * m4/regex.m4 (gl_REGEX): Likewise.
20676         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20677         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20678         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20679         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20680         * tests/test-argp.c: Likewise.
20681         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20682
20683         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20684         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20685         AA_APPLE_UNIVERSAL_BUILD.  See
20686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20687         * NEWS: Document this.
20688
20689 2011-01-19  Eric Blake  <eblake@redhat.com>
20690
20691         c-stack: assume stack overflow if SA_SIGINFO unsupported
20692         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20693         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20694         sigaction will work.
20695         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20696         behavior match Linux.
20697         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20698
20699         stdbool-tests: accomodate Haiku
20700         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20701
20702         binary-io: fix O_TEXT on Haiku
20703         * modules/binary-io (Depends-on): Add fcntl-h.
20704         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20705         than blindly undefining O_TEXT.
20706         Reported by Scott McCreary.
20707
20708 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20709
20710         include_next: do not check for standard headers like stddef.h
20711
20712         I found this problem when modifying Emacs to use gnulib.
20713         I noticed that it added HAVE_STDDEF_H to config.h, even though
20714         gnulib always assumes <stddef.h> exists as per README and this
20715         symbol is unnecessary.
20716         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20717         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20718         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20719         faster for headers like stddef.h that are known to exist.
20720         (gl_CHECK_NEXT_HEADERS): Use it.
20721         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20722         rather than gl_CHECK_NEXT_HEADERS.
20723         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20724         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20725
20726 2011-01-18  Eric Blake  <eblake@redhat.com>
20727
20728         ansi-c++-opt: skip C++ dependency style if C++ is unused
20729         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20730         tests when we know C++ compilation is not desired.
20731         Reported by Scott McCreary.
20732
20733 2011-01-18  Bruno Haible  <bruno@clisp.org>
20734
20735         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20736         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20737         (main): Perform test also when getrlimit and setrlimit don't exist or
20738         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20739         limiting the address space size using setrlimit, compare the address
20740         space size before and after the the test.
20741         * tests/test-dprintf-posix2.c: Likewise.
20742         * tests/test-fprintf-posix3.sh: Update skip messages.
20743         * tests/test-dprintf-posix2.sh: Likewise.
20744         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20745         * modules/dprintf-posix-tests (Depends-on): Likewise.
20746         Reported by Bruce Korb <bkorb@gnu.org> and
20747         Gary V. Vaughan <gary@gnu.org>.
20748
20749 2011-01-18  Bruno Haible  <bruno@clisp.org>
20750
20751         get-rusage-as: Improvement for Cygwin.
20752         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20753         areas that are merely reserved.
20754
20755 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20756
20757         strftime: remove dependencies on multibyte modules
20758
20759         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20760         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20761         only if __osf__ is defined, and I suspect OSF doesn't need these
20762         other modules.  If my guess is wrong, we'll need to come up with a
20763         variant of strftime that doesn't need the multibyte modules.
20764
20765         I discovered this problem when attempting modify Emacs to use the
20766         strftime module.  With the previous gnulib, this caused Emacs to
20767         need 31 new files, ranging from lib/config.charset to
20768         m4/wint_t.m4.  This was overkill and I expect would be offputting
20769         to the Emacs maintainers.  After this change, only 6 new files are
20770         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20771         stdbool.m4, and tm_gmtoff.m4.
20772
20773         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20774         Suggested by Bruno Haible in
20775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20776         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20777         and do not check for wchar.h.
20778         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20779         (Depends-on): Remove mbrlen, mbsinit, wchar.
20780
20781 2011-01-18  Bruno Haible  <bruno@clisp.org>
20782
20783         Tests for module 'get-rusage-as'.
20784         * modules/get-rusage-as-tests: New file.
20785         * tests/test-get-rusage-as.c: New file.
20786
20787         New module 'get-rusage-as'.
20788         * modules/get-rusage-as: New file.
20789         * lib/resource-ext.h: New file.
20790         * lib/get-rusage-as.c: New file.
20791
20792 2011-01-17  Eric Blake  <eblake@redhat.com>
20793
20794         sigaction: relax license from LGPLv3+ to LGPLv2+
20795         * modules/sigaction (License): Relax to LGPLv2+.
20796
20797 2011-01-14  Bruno Haible  <bruno@clisp.org>
20798
20799         filemode: Make function declarations usable in C++ mode.
20800         * lib/filemode.h: Enclose function declarations in extern "C" block.
20801         Reported by John W. Eaton <jwe@gnu.org>.
20802
20803 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20804
20805         save-cwd: no longer include "xgetcwd.h"
20806         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20807         This avoids a compilation failure in projects that use save-cwd
20808         without also using the xgetcwd module.
20809
20810 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20811
20812         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20813         This is so that a program like Emacs, which needs only dtoastr,
20814         does not have to bother with distributing and compiling ftoastr
20815         and ldtoastr.
20816         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20817         * modules/dtoastr, modules/ldtoastr: New files.
20818         * modules/ftoastr: Now works just for 'float'.
20819         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20820         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20821         dtoastr.c, ldtoastr.c.
20822
20823 2011-01-11  Jim Meyering  <meyering@redhat.com>
20824
20825         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20826         There is no need to work around the lack of the fchdir function,
20827         since gnulib can now provide a replacement when required.
20828         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20829         * modules/save-cwd (Depends-on): Add fchdir.
20830
20831 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20832
20833         openat, save-cwd: avoid xmalloc
20834
20835         This removes a direct (but undocumented) dependency of openat on
20836         xalloc, along with an indirect dependency via save-cwd.  It also
20837         removes a dependency of save-cwd on xgetcwd, and thereby
20838         indirectly on xalloc.  This change causes the openat substitute
20839         to fall back on save_cwd when memory is tight, and for save_cwd to
20840         fail instead of dying when memory is tight, but that's good enough.
20841         Problem and initial idea for fix reported by Bastien Roucaries in
20842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20843
20844         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20845         xalloc.h (for xmalloc).
20846         (openat_proc_name): Use malloc, not xmalloc.
20847         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20848         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20849
20850         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20851         This avoids heap allocation for file names whose lengths are in
20852         the range 512..1023, with the upper bound increasing to at most
20853         4031 depending on the platform's PATH_MAX.  (We do not want
20854         pathmax.h here as it might supply a non-constant PATH_MAX.)
20855         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20856         Perhaps they should be moved to malloca.h?
20857         (OPENAT_BUFFER_SIZE): Use them.
20858
20859 2011-01-10  Bruno Haible  <bruno@clisp.org>
20860
20861         doc: Update users.txt.
20862         * users.txt: Add recutils.
20863
20864 2011-01-09  Karl Berry  <karl@gnu.org>
20865
20866         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20867
20868         * doc/configmake.texi: New file.
20869         * doc/gnulib.texi: Include it.
20870         * modules/configmake: Move documentation from here.
20871
20872 2011-01-09  Bruno Haible  <bruno@clisp.org>
20873
20874         Update to Unicode 6.0.0.
20875         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20876         (get_lbp): Update for Unicode 6.0.0.
20877         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20878         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20879         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20880         U+11001, U+11038..U+11046. Remove U+06DE.
20881         (uc_width): Fix bounds of planes.
20882         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20883         lib/uniwidth/width.c.
20884         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20885         trailing whitespace removed.
20886         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20887         without comments, but with the original copyright notice.
20888         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20889         * lib/unicase/ignorable.h: Likewise.
20890         * lib/unicase/tocasefold.h: Likewise.
20891         * lib/unicase/tolower.h: Likewise.
20892         * lib/unicase/totitle.h: Likewise.
20893         * lib/unicase/toupper.h: Likewise.
20894         * lib/unictype/bidi_of.h: Likewise.
20895         * lib/unictype/blocks.h: Likewise.
20896         * lib/unictype/categ_C.h: Likewise.
20897         * lib/unictype/categ_Cn.h: Likewise.
20898         * lib/unictype/categ_L.h: Likewise.
20899         * lib/unictype/categ_Ll.h: Likewise.
20900         * lib/unictype/categ_Lm.h: Likewise.
20901         * lib/unictype/categ_Lo.h: Likewise.
20902         * lib/unictype/categ_Lu.h: Likewise.
20903         * lib/unictype/categ_M.h: Likewise.
20904         * lib/unictype/categ_Mc.h: Likewise.
20905         * lib/unictype/categ_Me.h: Likewise.
20906         * lib/unictype/categ_Mn.h: Likewise.
20907         * lib/unictype/categ_N.h: Likewise.
20908         * lib/unictype/categ_Nd.h: Likewise.
20909         * lib/unictype/categ_No.h: Likewise.
20910         * lib/unictype/categ_P.h: Likewise.
20911         * lib/unictype/categ_Po.h: Likewise.
20912         * lib/unictype/categ_S.h: Likewise.
20913         * lib/unictype/categ_Sc.h: Likewise.
20914         * lib/unictype/categ_Sk.h: Likewise.
20915         * lib/unictype/categ_Sm.h: Likewise.
20916         * lib/unictype/categ_So.h: Likewise.
20917         * lib/unictype/categ_of.h: Likewise.
20918         * lib/unictype/combining.h: Likewise.
20919         * lib/unictype/ctype_alnum.h: Likewise.
20920         * lib/unictype/ctype_alpha.h: Likewise.
20921         * lib/unictype/ctype_graph.h: Likewise.
20922         * lib/unictype/ctype_lower.h: Likewise.
20923         * lib/unictype/ctype_print.h: Likewise.
20924         * lib/unictype/ctype_punct.h: Likewise.
20925         * lib/unictype/ctype_upper.h: Likewise.
20926         * lib/unictype/decdigit.h: Likewise.
20927         * lib/unictype/digit.h: Likewise.
20928         * lib/unictype/numeric.h: Likewise.
20929         * lib/unictype/pr_alphabetic.h: Likewise.
20930         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20931         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20932         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20933         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20934         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20935         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20936         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20937         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20938         * lib/unictype/pr_case_ignorable.h: Likewise.
20939         * lib/unictype/pr_cased.h: Likewise.
20940         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20941         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20942         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20943         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20944         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20945         * lib/unictype/pr_combining.h: Likewise.
20946         * lib/unictype/pr_composite.h: Likewise.
20947         * lib/unictype/pr_currency_symbol.h: Likewise.
20948         * lib/unictype/pr_decimal_digit.h: Likewise.
20949         * lib/unictype/pr_deprecated.h: Likewise.
20950         * lib/unictype/pr_format_control.h: Likewise.
20951         * lib/unictype/pr_grapheme_base.h: Likewise.
20952         * lib/unictype/pr_grapheme_extend.h: Likewise.
20953         * lib/unictype/pr_grapheme_link.h: Likewise.
20954         * lib/unictype/pr_id_continue.h: Likewise.
20955         * lib/unictype/pr_id_start.h: Likewise.
20956         * lib/unictype/pr_ideographic.h: Likewise.
20957         * lib/unictype/pr_lowercase.h: Likewise.
20958         * lib/unictype/pr_math.h: Likewise.
20959         * lib/unictype/pr_numeric.h: Likewise.
20960         * lib/unictype/pr_other_alphabetic.h: Likewise.
20961         * lib/unictype/pr_other_id_continue.h: Likewise.
20962         * lib/unictype/pr_other_math.h: Likewise.
20963         * lib/unictype/pr_punctuation.h: Likewise.
20964         * lib/unictype/pr_sentence_terminal.h: Likewise.
20965         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20966         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20967         * lib/unictype/pr_unified_ideograph.h: Likewise.
20968         * lib/unictype/pr_uppercase.h: Likewise.
20969         * lib/unictype/pr_xid_continue.h: Likewise.
20970         * lib/unictype/pr_xid_start.h: Likewise.
20971         * lib/unictype/scripts.h: Likewise.
20972         * lib/unictype/scripts_byname.gperf: Likewise.
20973         * lib/unictype/sy_java_ident.h: Likewise.
20974         * lib/unigbrk/gbrkprop.h: Likewise.
20975         * lib/unilbrk/lbrkprop1.h: Likewise.
20976         * lib/unilbrk/lbrkprop2.h: Likewise.
20977         * lib/uninorm/decomposition-table2.h: Likewise.
20978         * lib/uniwbrk/wbrkprop.h: Likewise.
20979         * tests/unicase/test-cased.c: Likewise.
20980         * tests/unicase/test-ignorable.c: Likewise.
20981         * tests/unicase/test-uc_tolower.c: Likewise.
20982         * tests/unicase/test-uc_totitle.c: Likewise.
20983         * tests/unicase/test-uc_toupper.c: Likewise.
20984         * tests/unictype/test-categ_C.c: Likewise.
20985         * tests/unictype/test-categ_Cn.c: Likewise.
20986         * tests/unictype/test-categ_L.c: Likewise.
20987         * tests/unictype/test-categ_Ll.c: Likewise.
20988         * tests/unictype/test-categ_Lm.c: Likewise.
20989         * tests/unictype/test-categ_Lo.c: Likewise.
20990         * tests/unictype/test-categ_Lu.c: Likewise.
20991         * tests/unictype/test-categ_M.c: Likewise.
20992         * tests/unictype/test-categ_Mc.c: Likewise.
20993         * tests/unictype/test-categ_Me.c: Likewise.
20994         * tests/unictype/test-categ_Mn.c: Likewise.
20995         * tests/unictype/test-categ_N.c: Likewise.
20996         * tests/unictype/test-categ_Nd.c: Likewise.
20997         * tests/unictype/test-categ_No.c: Likewise.
20998         * tests/unictype/test-categ_P.c: Likewise.
20999         * tests/unictype/test-categ_Po.c: Likewise.
21000         * tests/unictype/test-categ_S.c: Likewise.
21001         * tests/unictype/test-categ_Sc.c: Likewise.
21002         * tests/unictype/test-categ_Sk.c: Likewise.
21003         * tests/unictype/test-categ_Sm.c: Likewise.
21004         * tests/unictype/test-categ_So.c: Likewise.
21005         * tests/unictype/test-ctype_alnum.c: Likewise.
21006         * tests/unictype/test-ctype_alpha.c: Likewise.
21007         * tests/unictype/test-ctype_graph.c: Likewise.
21008         * tests/unictype/test-ctype_lower.c: Likewise.
21009         * tests/unictype/test-ctype_print.c: Likewise.
21010         * tests/unictype/test-ctype_punct.c: Likewise.
21011         * tests/unictype/test-ctype_upper.c: Likewise.
21012         * tests/unictype/test-decdigit.h: Likewise.
21013         * tests/unictype/test-digit.h: Likewise.
21014         * tests/unictype/test-numeric.h: Likewise.
21015         * tests/unictype/test-pr_alphabetic.c: Likewise.
21016         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21017         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21018         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21019         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21020         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21021         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21022         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21023         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21024         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21025         * tests/unictype/test-pr_cased.c: Likewise.
21026         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21027         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21028         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21029         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21030         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21031         * tests/unictype/test-pr_combining.c: Likewise.
21032         * tests/unictype/test-pr_composite.c: Likewise.
21033         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21034         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21035         * tests/unictype/test-pr_deprecated.c: Likewise.
21036         * tests/unictype/test-pr_format_control.c: Likewise.
21037         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21038         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21039         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21040         * tests/unictype/test-pr_id_continue.c: Likewise.
21041         * tests/unictype/test-pr_id_start.c: Likewise.
21042         * tests/unictype/test-pr_ideographic.c: Likewise.
21043         * tests/unictype/test-pr_lowercase.c: Likewise.
21044         * tests/unictype/test-pr_math.c: Likewise.
21045         * tests/unictype/test-pr_numeric.c: Likewise.
21046         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21047         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21048         * tests/unictype/test-pr_other_math.c: Likewise.
21049         * tests/unictype/test-pr_punctuation.c: Likewise.
21050         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21051         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21052         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21053         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21054         * tests/unictype/test-pr_uppercase.c: Likewise.
21055         * tests/unictype/test-pr_xid_continue.c: Likewise.
21056         * tests/unictype/test-pr_xid_start.c: Likewise.
21057         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21058         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21059         changes.
21060         * lib/unictype/categ_Cc.h: Likewise.
21061         * lib/unictype/categ_Cf.h: Likewise.
21062         * lib/unictype/categ_Co.h: Likewise.
21063         * lib/unictype/categ_Cs.h: Likewise.
21064         * lib/unictype/categ_Lt.h: Likewise.
21065         * lib/unictype/categ_Nl.h: Likewise.
21066         * lib/unictype/categ_Pc.h: Likewise.
21067         * lib/unictype/categ_Pd.h: Likewise.
21068         * lib/unictype/categ_Pe.h: Likewise.
21069         * lib/unictype/categ_Pf.h: Likewise.
21070         * lib/unictype/categ_Pi.h: Likewise.
21071         * lib/unictype/categ_Ps.h: Likewise.
21072         * lib/unictype/categ_Z.h: Likewise.
21073         * lib/unictype/categ_Zl.h: Likewise.
21074         * lib/unictype/categ_Zp.h: Likewise.
21075         * lib/unictype/categ_Zs.h: Likewise.
21076         * lib/unictype/ctype_blank.h: Likewise.
21077         * lib/unictype/ctype_cntrl.h: Likewise.
21078         * lib/unictype/ctype_digit.h: Likewise.
21079         * lib/unictype/ctype_space.h: Likewise.
21080         * lib/unictype/ctype_xdigit.h: Likewise.
21081         * lib/unictype/mirror.h: Likewise.
21082         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21083         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21084         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21085         * lib/unictype/pr_bidi_control.h: Likewise.
21086         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21087         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21088         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21089         * lib/unictype/pr_bidi_pdf.h: Likewise.
21090         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21091         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21092         * lib/unictype/pr_dash.h: Likewise.
21093         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21094         * lib/unictype/pr_diacritic.h: Likewise.
21095         * lib/unictype/pr_extender.h: Likewise.
21096         * lib/unictype/pr_hex_digit.h: Likewise.
21097         * lib/unictype/pr_hyphen.h: Likewise.
21098         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21099         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21100         * lib/unictype/pr_ignorable_control.h: Likewise.
21101         * lib/unictype/pr_iso_control.h: Likewise.
21102         * lib/unictype/pr_join_control.h: Likewise.
21103         * lib/unictype/pr_left_of_pair.h: Likewise.
21104         * lib/unictype/pr_line_separator.h: Likewise.
21105         * lib/unictype/pr_logical_order_exception.h: Likewise.
21106         * lib/unictype/pr_non_break.h: Likewise.
21107         * lib/unictype/pr_not_a_character.h: Likewise.
21108         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21109         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21110         * lib/unictype/pr_other_id_start.h: Likewise.
21111         * lib/unictype/pr_other_lowercase.h: Likewise.
21112         * lib/unictype/pr_other_uppercase.h: Likewise.
21113         * lib/unictype/pr_paired_punctuation.h: Likewise.
21114         * lib/unictype/pr_paragraph_separator.h: Likewise.
21115         * lib/unictype/pr_pattern_syntax.h: Likewise.
21116         * lib/unictype/pr_pattern_white_space.h: Likewise.
21117         * lib/unictype/pr_private_use.h: Likewise.
21118         * lib/unictype/pr_quotation_mark.h: Likewise.
21119         * lib/unictype/pr_radical.h: Likewise.
21120         * lib/unictype/pr_soft_dotted.h: Likewise.
21121         * lib/unictype/pr_space.h: Likewise.
21122         * lib/unictype/pr_titlecase.h: Likewise.
21123         * lib/unictype/pr_variation_selector.h: Likewise.
21124         * lib/unictype/pr_white_space.h: Likewise.
21125         * lib/unictype/pr_zero_width.h: Likewise.
21126         * lib/unictype/sy_c_ident.h: Likewise.
21127         * lib/unictype/sy_c_whitespace.h: Likewise.
21128         * lib/unictype/sy_java_whitespace.h: Likewise.
21129         * lib/uninorm/composition-table.gperf: Likewise.
21130         * lib/uninorm/decomposition-table1.h: Likewise.
21131         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21132         LB8.
21133         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21134         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21135         * modules/unictype/*: Bump version number of expected libunistring
21136         version.
21137
21138 2011-01-09  Bruno Haible  <bruno@clisp.org>
21139
21140         Update to Unicode 5.2.0.
21141         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21142         trailing whitespace removed.
21143
21144 2011-01-09  Bruno Haible  <bruno@clisp.org>
21145
21146         New Unicode character properties, from Unicode 5.2.0.
21147         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21148         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21149         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21150         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21151         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21152         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21153         uc_is_property_cased, uc_is_property_case_ignorable,
21154         uc_is_property_changes_when_lowercased,
21155         uc_is_property_changes_when_uppercased,
21156         uc_is_property_changes_when_titlecased,
21157         uc_is_property_changes_when_casefolded,
21158         uc_is_property_changes_when_casemapped): New declarations.
21159         * lib/unictype/pr_byname.gperf: Add the new properties.
21160         * modules/unictype/property-byname (Depends-on): Depend on the new
21161         properties modules.
21162         * modules/unictype/property-all (Depends-on): Likewise.
21163         * MODULES.html.sh (Unicode string functions): Add
21164         unictype/property-case-ignorable, unictype/property-cased,
21165         unictype/property-changes-when-casefolded,
21166         unictype/property-changes-when-casemapped,
21167         unictype/property-changes-when-lowercased,
21168         unictype/property-changes-when-titlecased,
21169         unictype/property-changes-when-uppercased.
21170
21171         New module 'unictype/property-changes-when-casemapped'.
21172         * modules/unictype/property-changes-when-casemapped: New file.
21173         * lib/unictype/pr_changes_when_casemapped.c: New file.
21174         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21175         generated by gen-uni-tables.
21176         * modules/unictype/property-changes-when-casemapped-tests: New file.
21177         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21178         automatically generated by gen-uni-tables.
21179
21180         New module 'unictype/property-changes-when-casefolded'.
21181         * modules/unictype/property-changes-when-casefolded: New file.
21182         * lib/unictype/pr_changes_when_casefolded.c: New file.
21183         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21184         generated by gen-uni-tables.
21185         * modules/unictype/property-changes-when-casefolded-tests: New file.
21186         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21187         automatically generated by gen-uni-tables.
21188
21189         New module 'unictype/property-changes-when-titlecased'.
21190         * modules/unictype/property-changes-when-titlecased: New file.
21191         * lib/unictype/pr_changes_when_titlecased.c: New file.
21192         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21193         generated by gen-uni-tables.
21194         * modules/unictype/property-changes-when-titlecased-tests: New file.
21195         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21196         automatically generated by gen-uni-tables.
21197
21198         New module 'unictype/property-changes-when-uppercased'.
21199         * modules/unictype/property-changes-when-uppercased: New file.
21200         * lib/unictype/pr_changes_when_uppercased.c: New file.
21201         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21202         generated by gen-uni-tables.
21203         * modules/unictype/property-changes-when-uppercased-tests: New file.
21204         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21205         automatically generated by gen-uni-tables.
21206
21207         New module 'unictype/property-changes-when-lowercased'.
21208         * modules/unictype/property-changes-when-lowercased: New file.
21209         * lib/unictype/pr_changes_when_lowercased.c: New file.
21210         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21211         generated by gen-uni-tables.
21212         * modules/unictype/property-changes-when-lowercased-tests: New file.
21213         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21214         automatically generated by gen-uni-tables.
21215
21216         New module 'unictype/property-case-ignorable'.
21217         * modules/unictype/property-case-ignorable: New file.
21218         * lib/unictype/pr_case_ignorable.c: New file.
21219         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21220         by gen-uni-tables.
21221         * modules/unictype/property-case-ignorable-tests: New file.
21222         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21223         generated by gen-uni-tables.
21224
21225         New module 'unictype/property-cased'.
21226         * modules/unictype/property-cased: New file.
21227         * lib/unictype/pr_cased.c: New file.
21228         * lib/unictype/pr_cased.h: New file, automatically generated by
21229         gen-uni-tables.
21230         * modules/unictype/property-cased-tests: New file.
21231         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21232         gen-uni-tables.
21233
21234 2011-01-09  Bruno Haible  <bruno@clisp.org>
21235
21236         Update to Unicode 5.2.0.
21237         * lib/gen-uni-tables.c (output_predicate, output_category,
21238         output_combclass, output_bidi_category, output_decimal_digit_test,
21239         output_decimal_digit, output_digit_test, output_digit,
21240         output_numeric_test, output_numeric, output_mirror, output_scripts,
21241         output_scripts_byname, output_blocks, output_ident_category): Fix
21242         comment header.
21243         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21244         get_wbp.
21245         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21246         items.
21247         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21248         Changes_When_Lowercased, Changes_When_Uppercased,
21249         Changes_When_Titlecased, Changes_When_Casefolded,
21250         Changes_When_Casemapped.
21251         (is_property_alphabetic, is_property_default_ignorable_code_point):
21252         Update for Unicode 5.2.0.
21253         (is_property_cased, is_property_case_ignorable,
21254         is_property_changes_when_lowercased,
21255         is_property_changes_when_uppercased,
21256         is_property_changes_when_titlecased,
21257         is_property_changes_when_casefolded,
21258         is_property_changes_when_casemapped): New functions.
21259         (output_properties): Output also the properties cased, case_ignorable,
21260         changes_when_lowercased, changes_when_uppercased,
21261         changes_when_titlecased, changes_when_casefolded,
21262         changes_when_casemapped.
21263         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21264         Unicode TR#11 revision 17 -> 19.
21265         (LBP_CP): New enumeration value.
21266         (LBP_*): Adjust values accordingly.
21267         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21268         TR#14 revision 22 -> 24.
21269         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21270         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21271         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21272         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21273         is_WBP_MIDLETTER.
21274         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21275         the code1 and code2 of each composition rule.
21276         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21277         * lib/unicase/ignorable.h: Likewise.
21278         * lib/unicase/tocasefold.h: Likewise.
21279         * lib/unicase/tolower.h: Likewise.
21280         * lib/unicase/totitle.h: Likewise.
21281         * lib/unicase/toupper.h: Likewise.
21282         * lib/unictype/bidi_of.h: Likewise.
21283         * lib/unictype/blocks.h: Likewise.
21284         * lib/unictype/categ_C.h: Likewise.
21285         * lib/unictype/categ_Cf.h: Likewise.
21286         * lib/unictype/categ_Cn.h: Likewise.
21287         * lib/unictype/categ_L.h: Likewise.
21288         * lib/unictype/categ_Ll.h: Likewise.
21289         * lib/unictype/categ_Lm.h: Likewise.
21290         * lib/unictype/categ_Lo.h: Likewise.
21291         * lib/unictype/categ_Lu.h: Likewise.
21292         * lib/unictype/categ_M.h: Likewise.
21293         * lib/unictype/categ_Mc.h: Likewise.
21294         * lib/unictype/categ_Mn.h: Likewise.
21295         * lib/unictype/categ_N.h: Likewise.
21296         * lib/unictype/categ_Nd.h: Likewise.
21297         * lib/unictype/categ_Nl.h: Likewise.
21298         * lib/unictype/categ_No.h: Likewise.
21299         * lib/unictype/categ_P.h: Likewise.
21300         * lib/unictype/categ_Pd.h: Likewise.
21301         * lib/unictype/categ_Po.h: Likewise.
21302         * lib/unictype/categ_S.h: Likewise.
21303         * lib/unictype/categ_Sc.h: Likewise.
21304         * lib/unictype/categ_So.h: Likewise.
21305         * lib/unictype/categ_of.h: Likewise.
21306         * lib/unictype/combining.h: Likewise.
21307         * lib/unictype/ctype_alnum.h: Likewise.
21308         * lib/unictype/ctype_alpha.h: Likewise.
21309         * lib/unictype/ctype_graph.h: Likewise.
21310         * lib/unictype/ctype_lower.h: Likewise.
21311         * lib/unictype/ctype_print.h: Likewise.
21312         * lib/unictype/ctype_punct.h: Likewise.
21313         * lib/unictype/ctype_upper.h: Likewise.
21314         * lib/unictype/decdigit.h: Likewise.
21315         * lib/unictype/digit.h: Likewise.
21316         * lib/unictype/numeric.h: Likewise.
21317         * lib/unictype/pr_alphabetic.h: Likewise.
21318         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21319         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21320         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21321         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21322         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21323         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21324         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21325         * lib/unictype/pr_combining.h: Likewise.
21326         * lib/unictype/pr_composite.h: Likewise.
21327         * lib/unictype/pr_currency_symbol.h: Likewise.
21328         * lib/unictype/pr_dash.h: Likewise.
21329         * lib/unictype/pr_decimal_digit.h: Likewise.
21330         * lib/unictype/pr_deprecated.h: Likewise.
21331         * lib/unictype/pr_diacritic.h: Likewise.
21332         * lib/unictype/pr_extender.h: Likewise.
21333         * lib/unictype/pr_grapheme_base.h: Likewise.
21334         * lib/unictype/pr_grapheme_extend.h: Likewise.
21335         * lib/unictype/pr_grapheme_link.h: Likewise.
21336         * lib/unictype/pr_id_continue.h: Likewise.
21337         * lib/unictype/pr_id_start.h: Likewise.
21338         * lib/unictype/pr_ideographic.h: Likewise.
21339         * lib/unictype/pr_ignorable_control.h: Likewise.
21340         * lib/unictype/pr_logical_order_exception.h: Likewise.
21341         * lib/unictype/pr_lowercase.h: Likewise.
21342         * lib/unictype/pr_numeric.h: Likewise.
21343         * lib/unictype/pr_other_alphabetic.h: Likewise.
21344         * lib/unictype/pr_punctuation.h: Likewise.
21345         * lib/unictype/pr_sentence_terminal.h: Likewise.
21346         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21347         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21348         * lib/unictype/pr_unified_ideograph.h: Likewise.
21349         * lib/unictype/pr_uppercase.h: Likewise.
21350         * lib/unictype/pr_xid_continue.h: Likewise.
21351         * lib/unictype/pr_xid_start.h: Likewise.
21352         * lib/unictype/pr_zero_width.h: Likewise.
21353         * lib/unictype/scripts.h: Likewise.
21354         * lib/unictype/scripts_byname.gperf: Likewise.
21355         * lib/unictype/sy_java_ident.h: Likewise.
21356         * lib/unigbrk/gbrkprop.h: Likewise.
21357         * lib/unilbrk/lbrkprop1.h: Likewise.
21358         * lib/unilbrk/lbrkprop2.h: Likewise.
21359         * lib/unilbrk/lbrktables.h: Likewise.
21360         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21361         LBP_CP. Implement rule LB30.
21362         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21363         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21364         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21365         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21366         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21367         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21368         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21369         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21370         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21371         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21372         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21373         bits instead of 16 bits in the code1 and code2 of each composition
21374         rule.
21375         (uc_composition): Update for Unicode 5.2.0.
21376         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21377         * lib/uninorm/decomposition-table2.h: Likewise.
21378         * lib/uniwbrk/wbrkprop.h: Likewise.
21379         * tests/unicase/test-cased.c: Likewise.
21380         * tests/unicase/test-ignorable.c: Likewise.
21381         * tests/unicase/test-uc_tolower.c: Likewise.
21382         * tests/unicase/test-uc_totitle.c: Likewise.
21383         * tests/unicase/test-uc_toupper.c: Likewise.
21384         * tests/unictype/test-categ_C.c: Likewise.
21385         * tests/unictype/test-categ_Cf.c: Likewise.
21386         * tests/unictype/test-categ_Cn.c: Likewise.
21387         * tests/unictype/test-categ_L.c: Likewise.
21388         * tests/unictype/test-categ_Ll.c: Likewise.
21389         * tests/unictype/test-categ_Lm.c: Likewise.
21390         * tests/unictype/test-categ_Lo.c: Likewise.
21391         * tests/unictype/test-categ_Lu.c: Likewise.
21392         * tests/unictype/test-categ_M.c: Likewise.
21393         * tests/unictype/test-categ_Mc.c: Likewise.
21394         * tests/unictype/test-categ_Mn.c: Likewise.
21395         * tests/unictype/test-categ_N.c: Likewise.
21396         * tests/unictype/test-categ_Nd.c: Likewise.
21397         * tests/unictype/test-categ_Nl.c: Likewise.
21398         * tests/unictype/test-categ_No.c: Likewise.
21399         * tests/unictype/test-categ_P.c: Likewise.
21400         * tests/unictype/test-categ_Pd.c: Likewise.
21401         * tests/unictype/test-categ_Po.c: Likewise.
21402         * tests/unictype/test-categ_S.c: Likewise.
21403         * tests/unictype/test-categ_Sc.c: Likewise.
21404         * tests/unictype/test-categ_So.c: Likewise.
21405         * tests/unictype/test-ctype_alnum.c: Likewise.
21406         * tests/unictype/test-ctype_alpha.c: Likewise.
21407         * tests/unictype/test-ctype_graph.c: Likewise.
21408         * tests/unictype/test-ctype_lower.c: Likewise.
21409         * tests/unictype/test-ctype_print.c: Likewise.
21410         * tests/unictype/test-ctype_punct.c: Likewise.
21411         * tests/unictype/test-ctype_upper.c: Likewise.
21412         * tests/unictype/test-decdigit.h: Likewise.
21413         * tests/unictype/test-digit.h: Likewise.
21414         * tests/unictype/test-numeric.h: Likewise.
21415         * tests/unictype/test-pr_alphabetic.c: Likewise.
21416         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21417         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21418         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21419         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21420         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21421         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21422         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21423         * tests/unictype/test-pr_combining.c: Likewise.
21424         * tests/unictype/test-pr_composite.c: Likewise.
21425         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21426         * tests/unictype/test-pr_dash.c: Likewise.
21427         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21428         * tests/unictype/test-pr_deprecated.c: Likewise.
21429         * tests/unictype/test-pr_diacritic.c: Likewise.
21430         * tests/unictype/test-pr_extender.c: Likewise.
21431         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21432         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21433         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21434         * tests/unictype/test-pr_id_continue.c: Likewise.
21435         * tests/unictype/test-pr_id_start.c: Likewise.
21436         * tests/unictype/test-pr_ideographic.c: Likewise.
21437         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21438         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21439         * tests/unictype/test-pr_lowercase.c: Likewise.
21440         * tests/unictype/test-pr_numeric.c: Likewise.
21441         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21442         * tests/unictype/test-pr_punctuation.c: Likewise.
21443         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21444         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21445         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21446         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21447         * tests/unictype/test-pr_uppercase.c: Likewise.
21448         * tests/unictype/test-pr_xid_continue.c: Likewise.
21449         * tests/unictype/test-pr_xid_start.c: Likewise.
21450         * tests/unictype/test-pr_zero_width.c: Likewise.
21451         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21452         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21453         changed behaviour: line breaking is now disallowed between a letter
21454         or '=' and '('.
21455         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21456         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21457         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21458         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21459         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21460         lib/uniwidth/width.c.
21461         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21462         without comments, but with the original copyright notice.
21463         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21464         changes.
21465         * lib/unictype/categ_Cc.h: Likewise.
21466         * lib/unictype/categ_Co.h: Likewise.
21467         * lib/unictype/categ_Cs.h: Likewise.
21468         * lib/unictype/categ_Lt.h: Likewise.
21469         * lib/unictype/categ_Me.h: Likewise.
21470         * lib/unictype/categ_Pc.h: Likewise.
21471         * lib/unictype/categ_Pe.h: Likewise.
21472         * lib/unictype/categ_Pf.h: Likewise.
21473         * lib/unictype/categ_Pi.h: Likewise.
21474         * lib/unictype/categ_Ps.h: Likewise.
21475         * lib/unictype/categ_Sk.h: Likewise.
21476         * lib/unictype/categ_Sm.h: Likewise.
21477         * lib/unictype/categ_Z.h: Likewise.
21478         * lib/unictype/categ_Zl.h: Likewise.
21479         * lib/unictype/categ_Zp.h: Likewise.
21480         * lib/unictype/categ_Zs.h: Likewise.
21481         * lib/unictype/ctype_blank.h: Likewise.
21482         * lib/unictype/ctype_cntrl.h: Likewise.
21483         * lib/unictype/ctype_digit.h: Likewise.
21484         * lib/unictype/ctype_space.h: Likewise.
21485         * lib/unictype/ctype_xdigit.h: Likewise.
21486         * lib/unictype/mirror.h: Likewise.
21487         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21488         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21489         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21490         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21491         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21492         * lib/unictype/pr_bidi_control.h: Likewise.
21493         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21494         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21495         * lib/unictype/pr_bidi_pdf.h: Likewise.
21496         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21497         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21498         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21499         * lib/unictype/pr_format_control.h: Likewise.
21500         * lib/unictype/pr_hex_digit.h: Likewise.
21501         * lib/unictype/pr_hyphen.h: Likewise.
21502         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21503         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21504         * lib/unictype/pr_iso_control.h: Likewise.
21505         * lib/unictype/pr_join_control.h: Likewise.
21506         * lib/unictype/pr_left_of_pair.h: Likewise.
21507         * lib/unictype/pr_line_separator.h: Likewise.
21508         * lib/unictype/pr_math.h: Likewise.
21509         * lib/unictype/pr_non_break.h: Likewise.
21510         * lib/unictype/pr_not_a_character.h: Likewise.
21511         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21512         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21513         * lib/unictype/pr_other_id_continue.h: Likewise.
21514         * lib/unictype/pr_other_id_start.h: Likewise.
21515         * lib/unictype/pr_other_lowercase.h: Likewise.
21516         * lib/unictype/pr_other_math.h: Likewise.
21517         * lib/unictype/pr_other_uppercase.h: Likewise.
21518         * lib/unictype/pr_paired_punctuation.h: Likewise.
21519         * lib/unictype/pr_paragraph_separator.h: Likewise.
21520         * lib/unictype/pr_pattern_syntax.h: Likewise.
21521         * lib/unictype/pr_pattern_white_space.h: Likewise.
21522         * lib/unictype/pr_private_use.h: Likewise.
21523         * lib/unictype/pr_quotation_mark.h: Likewise.
21524         * lib/unictype/pr_radical.h: Likewise.
21525         * lib/unictype/pr_soft_dotted.h: Likewise.
21526         * lib/unictype/pr_space.h: Likewise.
21527         * lib/unictype/pr_titlecase.h: Likewise.
21528         * lib/unictype/pr_variation_selector.h: Likewise.
21529         * lib/unictype/pr_white_space.h: Likewise.
21530         * lib/unictype/sy_c_ident.h: Likewise.
21531         * lib/unictype/sy_c_whitespace.h: Likewise.
21532         * lib/unictype/sy_java_whitespace.h: Likewise.
21533         * modules/uni*/*: Bump version number of expected libunistring version.
21534         Reported by Simon Josefsson.
21535
21536 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21537
21538         useless-if-before-free: fix typo in --help and make the internal,
21539         automatic version date update process work once again.
21540         --help output contained a NUL character instead of the
21541         backslash-zero that was intended.  Also, the "must lie within
21542         the first 8 lines" line is on line 9, and hence not getting
21543         automatically updated.
21544         * build-aux/useless-if-before-free: Fix the former by adding a
21545         backslash, and the latter by condensing the three lines of what-it-does
21546         to a single line, leaving one line of slack for the future.
21547
21548 2011-01-09  Bruno Haible  <bruno@clisp.org>
21549
21550         uniwidth/width: Fix width of U+1D173..U+1D17A.
21551         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21552         symbolic_width, output_width_property_test): New functions.
21553         (main): Invoke output_nonspacing_property, output_width_property_test.
21554         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21555         U+1D173..U+1D17A.
21556         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21557         1.
21558         * modules/uniwidth/*: Bump version number of expected libunistring
21559         version.
21560         * modules/unilbrk/*: Likewise.
21561
21562 2011-01-08  Bruno Haible  <bruno@clisp.org>
21563
21564         uninorm tests: Preserve copyright of Unicode data file.
21565         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21566         Mention modifications.
21567
21568 2011-01-08  Bruno Haible  <bruno@clisp.org>
21569
21570         gen-uni-tables: Prepare for Unicode 5.2.0.
21571         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21572         (debug_output_lbp, output_lbp): Update.
21573
21574 2011-01-08  Bruno Haible  <bruno@clisp.org>
21575
21576         unilbrk: Clarify gen-uni-tables.c code.
21577         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21578         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21579         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21580
21581 2011-01-07  Bruno Haible  <bruno@clisp.org>
21582
21583         strtod: Restore errno when successfully parsing Infinity or NaN.
21584         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21585         restore the original errno.
21586
21587 2011-01-07  Bruno Haible  <bruno@clisp.org>
21588
21589         remove test: Avoid failure on HP-UX 11.
21590         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21591
21592 2011-01-07  Bruno Haible  <bruno@clisp.org>
21593
21594         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21595         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21596         error code.
21597
21598 2011-01-07  Pádraig Brady <P@draigBrady.com>
21599
21600         ignore-value: fixup comments, and add Eric Blake
21601         as an author since he rewrote the macros.
21602         * lib/ignore-value.h (ignore_value):  State that
21603         we now support aggregates.  Also specify exactly
21604         when the GCC warn_unused_result feature was added.
21605
21606 2011-01-06  Eric Blake  <eblake@redhat.com>
21607
21608         ignore-value: support aggregate types
21609         * lib/ignore-value.h (ignore_value): Provide separate gcc
21610         definition.
21611         * modules/ignore-value-tests: New test module.
21612         * tests/test-ignore-value.c: New test.
21613
21614         maint.mk: improve sc_prohibit_strcmp regex
21615         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21616         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21617         definition of STRNEQ.
21618
21619         signal: work around Haiku issue with SIGBUS
21620         * lib/siglist.h: Add comment.
21621         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21622         strsignal's favoring of SIGSEGV.
21623         * tests/test-signal.c (main): Avoid test failure.
21624         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21625         Reported by Scott McCreary.
21626
21627         maint.mk: add pre-release check to ensure submodule commits are public
21628         * top/maint.mk (public-submodule-commit): New rule.
21629         (submodule-checks): New variable.
21630         (alpha beta stable): Depend on the variable.
21631
21632 2011-01-05  Pádraig Brady <P@draigBrady.com>
21633         and Jim Meyering  <meyering@redhat.com>
21634
21635         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21636         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21637         (ATTRIBUTE_DEPRECATED): Define.
21638         (_ignore_case): New function.
21639         (ignore_value): New macro, to replace the old function.
21640         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21641         * modules/ignore-value (Depends-on): Add stdint.
21642
21643 2011-01-04  Eric Blake  <eblake@redhat.com>
21644
21645         doc: regenerate INSTALL
21646         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21647         @firstparagraphindent support, now that autoconf dropped it.
21648         (INSTALL_PRELUDE): Reinstate old macro.
21649         * doc/install.texi: Resync from autoconf.
21650         * doc/INSTALL: Reflect recent autoconf update.
21651         * doc/INSTALL.ISO: Likewise.
21652         * doc/INSTALL.UTF-8: Likewise.
21653         Reported by Karl Berry.
21654
21655 2011-01-04  Bruce Korb  <address@hidden>
21656
21657         git-version-gen: avoid a sub-shell
21658         * build-aux/git-version-gen: Redirect stderr in `...` via
21659         "exec 2>...", rather than via an added sub-shell.
21660
21661 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21662
21663         git-version-gen: use (...) rather than sh -c '...'
21664         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21665         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21666
21667 2011-01-03  Jim Meyering  <meyering@redhat.com>
21668
21669         git-version-gen: convert leading TABs to spaces
21670         * build-aux/git-version-gen: Expand leading TABs.
21671
21672         git-version-gen: handle failed "git rev-list"
21673         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21674         from git and proceeding as if it had succeeded but printed no SHA1
21675         checksums, suppress the diagnostic and handle the failure.
21676         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21677
21678         git-version-gen: include command name in one more diagnostic
21679         * build-aux/git-version-gen: When the required .tarball-version file
21680         was missing or unreadable, you might see the diagnostic from "cat",
21681         but no trace of the name of the invoking script.  Now, you still see
21682         the diagnostic from cat, but also get one from "git-version-gen: ".
21683         Inspired by a patch from Bruce Korb.
21684
21685         update-copyright: adjust test to match changed code
21686         * tests/test-update-copyright.sh: Change test's expected output
21687         to match new actual output.
21688
21689 2011-01-02  Bruno Haible  <bruno@clisp.org>
21690
21691         getlogin_r: Avoid test failure on HP-UX 11.
21692         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21693         ERANGE when the second argument is zero.
21694         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21695         portability problem.
21696
21697 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21698
21699         * build-aux/update-copyright: doc Simon's changes
21700
21701 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21702
21703         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21704         environment variable.
21705
21706 2011-01-02  Bruno Haible  <bruno@clisp.org>
21707
21708         unigbrk: Avoid gcc warnings.
21709         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21710         unused variable.
21711         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21712         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21713         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21714         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21715         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21716         Change type of first argument to 'const char *'.
21717         (main): Remove unused variable.
21718         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21719         type of first argument to 'const char *'.
21720         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21721         Likewise.
21722         (main): Change type of variable 's'.
21723         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21724         to 'int'.
21725
21726 2011-01-02  Bruno Haible  <bruno@clisp.org>
21727
21728         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21729         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21730         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21731         bug.
21732         * lib/pwrite.c: Undo 2010-12-31 patch.
21733         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21734
21735 2011-01-02  Bruno Haible  <bruno@clisp.org>
21736
21737         pread: Fix test whether it works.
21738         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21739
21740 2011-01-02  Bruno Haible  <bruno@clisp.org>
21741
21742         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21743         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21744         ends in "6". Don't require a specific month name. Try also the locale
21745         names found on HP-UX 11 and Solaris 7.
21746
21747 2011-01-02  Bruno Haible  <bruno@clisp.org>
21748
21749         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21750         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21751         C linkage.
21752         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21753
21754 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21755
21756         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21757         for consistency, since the "cluster" term is not used elsewhere.
21758         * lib/unigbrk.in.h: Update name.
21759         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21760         * lib/unigbrk/u16-grapheme-next.c: Update name.
21761         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21762         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21763         * lib/unigbrk/u32-grapheme-next.c: Update name.
21764         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21765         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21766         * lib/unigbrk/u8-grapheme-next.c: Update name.
21767         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21768         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21769         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21770         Suggested by Bruno Haible.
21771
21772 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21773
21774         Remove module 'u8-grapheme-len' as too redundant with
21775         'u8-grapheme-next'.
21776         * modules/unigbrk/u8-grapheme-len: Delete file.
21777         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21778         * lib/unigbrk.in.h: Remove prototype for deleted function.
21779         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21780         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21781
21782         Remove module 'u16-grapheme-len' as too redundant with
21783         'u16-grapheme-next'.
21784         * modules/unigbrk/u16-grapheme-len: Delete file.
21785         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21786         * lib/unigbrk.in.h: Remove prototype for deleted function.
21787         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21788         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21789
21790         Remove module 'u32-grapheme-len' as too redundant with
21791         'u32-grapheme-next'.
21792         * modules/unigbrk/u32-grapheme-len: Delete file.
21793         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21794         * lib/unigbrk.in.h: Remove prototype for deleted function.
21795         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21796         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21797
21798         Suggested by Bruno Haible.
21799
21800 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21801
21802         * unigbrk.in.h: Fix typo: "ben" => "been".
21803         Reported by Bruno Haible.
21804
21805 2011-01-01  Jim Meyering  <meyering@redhat.com>
21806
21807         maint: update almost all copyright ranges to include 2011
21808         Run the new "make update-copyright" rule.
21809
21810 2011-01-01  Jim Meyering  <meyering@redhat.com>
21811
21812         maint: update-copyright: exempt doc/INSTALL*
21813         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21814         since they are generated.  Suggested by Bruno Haible.
21815
21816 2011-01-01  Jim Meyering  <meyering@redhat.com>
21817
21818         maint: refine the update-copyright rule
21819         * Makefile (update-copyright): Also exclude any file that includes
21820         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21821         code that merely generates the comment.
21822
21823 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21824
21825         New module 'u8-grapheme-len'.
21826         * modules/unigbrk/u8-grapheme-len: New file.
21827         * modules/unigbrk/u8-grapheme-len-tests: New file.
21828         * lib/unigbrk.in.h: Add prototype for new function.
21829         * lib/unigbrk/u8-grapheme-len.c: New file.
21830         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21831
21832         New module 'u16-grapheme-len'.
21833         * modules/unigbrk/u16-grapheme-len: New file.
21834         * modules/unigbrk/u16-grapheme-len-tests: New file.
21835         * lib/unigbrk.in.h: Add prototype for new function.
21836         * lib/unigbrk/u16-grapheme-len.c: New file.
21837         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21838
21839         New module 'u32-grapheme-len'.
21840         * modules/unigbrk/u32-grapheme-len: New file.
21841         * modules/unigbrk/u32-grapheme-len-tests: New file.
21842         * lib/unigbrk.in.h: Add prototype for new function.
21843         * lib/unigbrk/u32-grapheme-len.c: New file.
21844         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21845
21846         New module 'u8-grapheme-next'.
21847         * modules/unigbrk/u8-grapheme-next: New file.
21848         * modules/unigbrk/u8-grapheme-next-tests: New file.
21849         * lib/unigbrk.in.h: Add prototype for new function.
21850         * lib/unigbrk/u8-grapheme-next.c: New file.
21851         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21852
21853         New module 'u16-grapheme-next'.
21854         * modules/unigbrk/u16-grapheme-next: New file.
21855         * modules/unigbrk/u16-grapheme-next-tests: New file.
21856         * lib/unigbrk.in.h: Add prototype for new function.
21857         * lib/unigbrk/u16-grapheme-next.c: New file.
21858         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21859
21860         New module 'u32-grapheme-next'.
21861         * modules/unigbrk/u32-grapheme-next: New file.
21862         * modules/unigbrk/u32-grapheme-next-tests: New file.
21863         * lib/unigbrk.in.h: Add prototype for new function.
21864         * lib/unigbrk/u32-grapheme-next.c: New file.
21865         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21866
21867         New module 'u8-grapheme-prev'.
21868         * modules/unigbrk/u8-grapheme-prev: New file.
21869         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21870         * lib/unigbrk.in.h: Add prototype for new function.
21871         * lib/unigbrk/u8-grapheme-prev.c: New file.
21872         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21873
21874         New module 'u16-grapheme-prev'.
21875         * modules/unigbrk/u16-grapheme-prev: New file.
21876         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21877         * lib/unigbrk.in.h: Add prototype for new function.
21878         * lib/unigbrk/u16-grapheme-prev.c: New file.
21879         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21880
21881         New module 'u32-grapheme-prev'.
21882         * modules/unigbrk/u32-grapheme-prev: New file.
21883         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21884         * lib/unigbrk.in.h: Add prototype for new function.
21885         * lib/unigbrk/u32-grapheme-prev.c: New file.
21886         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21887
21888         New module 'u8-grapheme-breaks'.
21889         * modules/unigbrk/u8-grapheme-breaks: New file.
21890         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21891         * lib/unigbrk.in.h: Add prototype for new function.
21892         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21893         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21894
21895         New module 'u16-grapheme-breaks'.
21896         * modules/unigbrk/u16-grapheme-breaks: New file.
21897         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21898         * lib/unigbrk.in.h: Add prototype for new function.
21899         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21900         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21901
21902         New module 'u32-grapheme-breaks'.
21903         * modules/unigbrk/u32-grapheme-breaks: New file.
21904         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21905         * lib/unigbrk.in.h: Add prototype for new function.
21906         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21907         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21908
21909         New module 'ulc-grapheme-breaks'.
21910         * modules/unigbrk/ulc-grapheme-breaks: New file.
21911         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21912         * m4/locale-ar.m4: New file.
21913         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21914         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21915         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21916
21917 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21918
21919         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21920         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21921         modified how this file was generated before I initially submitted
21922         the module, but failed to regenerate it.  This meant that several
21923         of the level2 entries were wrong.
21924         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21925         Remove the division-by-2 that is folded into the table now that
21926         gbrkprop.h has been regenerated properly.  Now -1 entries are
21927         handled correctly.
21928
21929         New module 'unigbrk/uc-gbrk-prop-tests'.
21930         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21931         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21932         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21933         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21934
21935 2011-01-01  Bruno Haible  <bruno@clisp.org>
21936
21937         Avoid use of hexadecimal escapes.
21938         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21939         instead of hexadecimal escapes.
21940
21941 2011-01-01  Jim Meyering  <meyering@redhat.com>
21942
21943         maint: new rule to update copyright year ranges
21944         * Makefile (update-copyright): New rule.
21945
21946         maint: indent with TABs in Makefile
21947         * Makefile: Expand leading sequences of spaces to TABs
21948
21949         version-etc: update the copyright year it reports
21950         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21951
21952 2010-12-31  Bruno Haible  <bruno@clisp.org>
21953
21954         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21955         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21956         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21957         zero.
21958
21959 2010-12-31  Bruno Haible  <bruno@clisp.org>
21960
21961         pwrite: Work around HP-UX 11.11 bug.
21962         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21963         works and set REPLACE_PWRITE if not.
21964         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21965         function.
21966         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21967
21968 2010-12-31  Bruno Haible  <bruno@clisp.org>
21969
21970         pread: Work around HP-UX 11 bugs.
21971         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21972         and set REPLACE_PREAD if not.
21973         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21974
21975 2010-12-31  Eric Blake  <eblake@redhat.com>
21976
21977         nl_langinfo: fix YESEXPR on Irix 6.5
21978         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21979         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21980         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21981         it.
21982
21983 2010-12-31  Bruno Haible  <bruno@clisp.org>
21984
21985         iconv: Document HP-UX 11 bug.
21986         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21987
21988 2010-12-31  Bruno Haible  <bruno@clisp.org>
21989
21990         ldexpl: Fix link error on HP-UX 11.
21991         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21992         LDEXPL_LIBM, using $ISNANL_LIBM.
21993
21994 2010-12-31  Eric Blake  <eblake@redhat.com>
21995
21996         ftello: avoid compilation failure with SunStudio c89
21997         * lib/ftello.c (ftello): Use lseek, not llseek.
21998
21999         tests: avoid failing coreutils tests on cygwin
22000         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22001         (create_exe_shims_): Return 0 when skipping.
22002
22003 2010-12-31  Bruno Haible  <bruno@clisp.org>
22004
22005         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22006         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22007
22008 2010-12-31  Bruno Haible  <bruno@clisp.org>
22009
22010         waitpid: Fix link error in C++ mode.
22011         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22012
22013 2010-12-31  Bruno Haible  <bruno@clisp.org>
22014
22015         isnan: Use GCC built-ins when possible.
22016         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22017         __builtin_isnan.
22018         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22019         (isnan): Define using GCC built-ins for GCC >= 4.0.
22020
22021 2010-12-31  Bruno Haible  <bruno@clisp.org>
22022
22023         isnand: Fix mistake.
22024         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22025         __builtin_isnand.
22026
22027 2010-12-31  Bruno Haible  <bruno@clisp.org>
22028
22029         open: Avoid C++ error on HP-UX 11.
22030         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22031
22032 2010-12-31  Bruno Haible  <bruno@clisp.org>
22033
22034         time_r: Add missing declarations on HP-UX 11.
22035         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22036         instead of HAVE_LOCALTIME_R.
22037         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22038         HAVE_LOCALTIME_R always.
22039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22040         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22041         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22042         HAVE_LOCALTIME_R.
22043         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22044         * doc/posix-functions/localtime_r.texi: Likewise.
22045
22046 2010-12-29  Eric Blake  <eblake@redhat.com>
22047
22048         mountlist: tweak previous commit
22049         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22050         Reported by Paul Eggert.
22051
22052         mountlist: fix local drive detection on cygwin
22053         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22054         that works for cygwin.
22055
22056 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         ftoastr, snprintf: ftoastr + snprintf module
22059         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22060         since the snprintf module now should be good enough here.
22061         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22062         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22063         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22064         GNULIB_SNPRINTF only for the test directory, and the latter
22065         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22066         seems to suffice by itself.
22067
22068 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22069
22070         alloca: one step towards thread-safety
22071         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22072         need for a static variable.  All callers changed.  This does not
22073         make the alloca replacement thread-safe, but it's one step.
22074
22075         tests: minor indenting change
22076         * tests/init.sh: Sync from coreutils housekeeping patch
22077         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22078         to keep lines within 80 columns.
22079
22080 2010-12-28  Jim Meyering  <meyering@redhat.com>
22081
22082         regex: don't infloop on persistent failing calloc
22083         * lib/regexec.c (build_trtable): Return failure indication upon
22084         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22085         In glibc, this was fixed for version 2.13:
22086         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22087
22088 2010-12-28  Bruno Haible  <bruno@clisp.org>
22089             Paul Eggert <eggert@cs.ucla.edu>
22090
22091         linkat: Make implementation robust against system behaviour variations.
22092         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22093         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22094         way, and to -2 if it needs a generic runtime test.
22095         * lib/linkat.c (solaris_optimized_link_immediate,
22096         solaris_optimized_link_follow): New functions.
22097         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22098         (check_same_link): Use it.
22099
22100 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22101
22102         New module 'unigbrk/base'.
22103         * modules/unigbrk/base: New file.
22104         * lib/unigbrk.in.h: New file.
22105
22106         New module 'unigbrk/uc-gbrk-prop'.
22107         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22108         * modules/unigbrk/uc-gbrk-prop: New file.
22109         * lib/unigbrk/gbrkprop.h: New file.
22110         * lib/unigbrk/uc-gbrk-prop.c: New file.
22111
22112         New module 'unigbrk/uc-is-grapheme-break'.
22113         * modules/unigbrk/uc-is-grapheme-break: New file.
22114         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22115         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22116         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22117         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22118         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22119
22120         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22121
22122 2010-12-27  Bruno Haible  <bruno@clisp.org>
22123
22124         linkat test: Avoid failure on Solaris 11 2010-11.
22125         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22126
22127 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22128
22129         utimens: work around glibc rounding bug on more platforms
22130         * lib/utimens.c (fdutimens): Work around rounding bug even if
22131         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22133
22134 2010-12-27  Bruno Haible  <bruno@clisp.org>
22135
22136         select tests: Improve comments.
22137         * tests/test-select.c (do_select): Add comments.
22138
22139 2010-12-27  Bruno Haible  <bruno@clisp.org>
22140
22141         select tests: Safer way of handling timeout.
22142         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22143         at every invocation.
22144
22145 2010-12-27  Bruno Haible  <bruno@clisp.org>
22146
22147         select tests: Use 'bool' where appropriate.
22148         * tests/test-select.c (connect_to_socket): Change argument type to
22149         'bool'.
22150
22151 2010-12-27  Bruno Haible  <bruno@clisp.org>
22152
22153         select tests: Use existing modules.
22154         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22155         (configure.ac): Don't test for unistd.h.
22156         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22157         declared in <unistd.h>.
22158
22159 2010-12-27  Bruno Haible  <bruno@clisp.org>
22160
22161         mbrtowc: Work around a Solaris 7 bug.
22162         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22163         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22164         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22165         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22166         MBRTOWC_NULL_ARG1_BUG.
22167         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22168         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22169         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22170         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22171
22172 2010-12-27  Jim Meyering  <meyering@redhat.com>
22173
22174         read-file.c: tweak syntax
22175         * lib/read-file.c (fread_file): Remove space after "*" in function
22176         definitions.
22177
22178 2010-12-27  Bruno Haible  <bruno@clisp.org>
22179
22180         times test: Avoid gcc warnings on OSF/1.
22181         * tests/test-times.c (main): Cast printf arguments from clock_t to
22182         'long int'.
22183
22184 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         utimens: work around glibc rounding bug on older Linux kernels
22187         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22188         on Linux with a glibc whose utimes might not work, then work
22189         around a longstanding glibc bug involving rounding rather than
22190         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22192
22193 2010-12-26  Bruno Haible  <bruno@clisp.org>
22194
22195         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22196         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22197         _GL_CXXALIAS_SYS.
22198         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22199
22200 2010-12-26  Bruno Haible  <bruno@clisp.org>
22201
22202         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22203         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22204         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22205         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22206         looking for the declaration.
22207         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22208         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22209         problem.
22210         * doc/posix-functions/inet_pton.texi: Likewise.
22211
22212 2010-12-26  Bruno Haible  <bruno@clisp.org>
22213
22214         arpa_inet: Use the common idioms with C++ support.
22215         * lib/arpa_inet.in.h: Include c++defs.h.
22216         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22217         support.
22218         * modules/arpa_inet (Depends-on): Add c++defs.
22219         (Makefile.am): Substitute the contents of c++defs.h.
22220         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22221         * modules/arpa_inet-c++-tests: New file.
22222         * tests/test-arpa_inet-c++.cc: New file.
22223
22224 2010-12-25  Bruno Haible  <bruno@clisp.org>
22225
22226         Fix more C++ link errors on Solaris 8.
22227         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22228         $(LIB_EACCESS).
22229         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22230         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22231         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22232         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22233         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22234
22235 2010-12-25  Bruno Haible  <bruno@clisp.org>
22236
22237         printf-posix: Fix link error when a non-GCC compiler is used.
22238         * lib/stdio.in.h (printf): When not using GCC, override printf
22239         correctly.
22240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22241
22242 2010-12-25  Bruno Haible  <bruno@clisp.org>
22243
22244         strerror_r-posix: Update doc.
22245         * doc/posix-functions/strerror_r.texi: Update doc about the return
22246         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22247
22248 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22249
22250         utimens: simplify the logic of the previous change
22251         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22252         This should not affect whether the test succeeds or fails.
22253
22254         utimens: configure better on hosts with NFS clock skew
22255         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22256         uses the clock of the local host.  It might use the clock of the
22257         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22259
22260 2010-12-25  Bruno Haible  <bruno@clisp.org>
22261
22262         ptsname test: Avoid failure on Solaris.
22263         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22264         open a pseudo-terminal; don't use BSD-style ptys.
22265         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22266
22267 2010-12-25  Bruno Haible  <bruno@clisp.org>
22268
22269         ptsname: Avoid ERANGE failure on some systems.
22270         * lib/ptsname.c (buffer): Increase size.
22271
22272 2010-12-25  Bruno Haible  <bruno@clisp.org>
22273
22274         rename, renameat: Avoid test failures at NFS mounted locations.
22275         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22276         so that subsequent mkdir calls succeed.
22277
22278 2010-12-25  Bruno Haible  <bruno@clisp.org>
22279
22280         iswblank: Fix C++ link error on Solaris 8.
22281         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22282         _GL_FUNCDECL_SYS.
22283
22284 2010-12-25  Bruno Haible  <bruno@clisp.org>
22285
22286         unistd: Fix C++ link error on Solaris 8.
22287         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22288
22289 2010-12-25  Bruno Haible  <bruno@clisp.org>
22290
22291         readlink doc: Mention an old glibc bug.
22292         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22293
22294 2010-12-25  Bruno Haible  <bruno@clisp.org>
22295
22296         fcntl-h: Fix for use of C++ on glibc systems.
22297         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22298         also on glibc systems in C++ mode.
22299         Reported by Gary V. Vaughan <gary@gnu.org>.
22300
22301 2010-12-25  Bruno Haible  <bruno@clisp.org>
22302
22303         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22304         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22305
22306 2010-12-25  Bruno Haible  <bruno@clisp.org>
22307
22308         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22309         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22310         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22311         test whether truncl works according to ISO C 99 with IEC 60559.
22312         * m4/truncl-ieee.m4: New file.
22313         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22314         m4/signbit.m4.
22315         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22316
22317 2010-12-25  Bruno Haible  <bruno@clisp.org>
22318
22319         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22320         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22321         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22322         test whether ceill works according to ISO C 99 with IEC 60559.
22323         * m4/ceill-ieee.m4: New file.
22324         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22325         m4/signbit.m4.
22326         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22327
22328 2010-12-25  Bruno Haible  <bruno@clisp.org>
22329
22330         Ensure all prerequisites of <wchar.h> are included.
22331         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22332         before <wchar.h>.
22333         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22334         gl_MBRLEN_NUL_RETVAL): Likewise.
22335         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22336         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22337         AC_FUNC_MBRTOWC): Likewise.
22338         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22339         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22341         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22342         Likewise.
22343         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22344         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22345         (gl_WCHAR_H): Improve comments.
22346         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22347
22348 2010-12-25  Bruno Haible  <bruno@clisp.org>
22349
22350         strtok_r: Fix C syntax error in autoconf macro.
22351         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22352         characters in test program.
22353
22354 2010-12-24  Bruno Haible  <bruno@clisp.org>
22355
22356         ceil, trunc, round: Fix gcc warnings.
22357         * lib/ceil.c (MIN): Undefine before redefining.
22358         * lib/trunc.c (MIN): Likewise.
22359         * lib/round.c (MIN): Likewise.
22360         Include <math.h> first.
22361
22362 2010-12-24  Bruno Haible  <bruno@clisp.org>
22363
22364         select tests: Avoid failures on OSF/1 5.1.
22365         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22366         failure of closing the last socket; it may fail with ECONNRESET.
22367
22368 2010-12-24  Eric Blake  <eblake@redhat.com>
22369
22370         stdint: avoid HP-UX 10.20 preprocessor bug
22371         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22372         than #if.
22373         * tests/test-floor2.c (main): Likewise.
22374         Reported by Peter O'Gorman.
22375
22376         pipe: make obsoletion transition easier
22377         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22378         * modules/pipe (Files): Include revived file.
22379         (Include): Drop reference, to mirror getdate's behavior.
22380
22381 2010-12-24  Bruno Haible  <bruno@clisp.org>
22382
22383         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22384         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22385         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22387
22388 2010-12-24  Bruno Haible  <bruno@clisp.org>
22389
22390         gethostname: Ensure declaration on NonStop Kernel.
22391         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22392         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22393
22394 2010-12-24  Bruno Haible  <bruno@clisp.org>
22395
22396         sys_select: Ensure all necessary types on NonStop Kernel.
22397         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22398         include <sys/time.h>.
22399         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22400         NonStop Kernel.
22401         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22402
22403 2010-12-24  Bruno Haible  <bruno@clisp.org>
22404
22405         sys_select: Remove unneeded include.
22406         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22407         have <sys/select.h>.
22408
22409 2010-12-24  Bruno Haible  <bruno@clisp.org>
22410
22411         gethostname: Provide a fallback for HOST_NAME_MAX.
22412         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22413         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22414         instead.
22415         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22416
22417 2010-12-24  Bruno Haible  <bruno@clisp.org>
22418
22419         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22420         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22421         (SA_RESTART): Likewise.
22422         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22423
22424 2010-12-24  Bruno Haible  <bruno@clisp.org>
22425
22426         signal: Define NSIG.
22427         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22428         * tests/test-signal.c (nsig): New variable.
22429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22430
22431 2010-12-24  Bruno Haible  <bruno@clisp.org>
22432
22433         rename, renameat: Avoid test failures on OSF/1 5.1.
22434         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22435         alternative error codes.
22436         * tests/test-renameat.c (main): Likewise.
22437
22438 2010-12-24  Bruno Haible  <bruno@clisp.org>
22439
22440         *printf: Detect large precisions bug on Solaris 10/SPARC.
22441         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22442         by Paul Eggert.
22443         * tests/test-snprintf-posix.h (test_function): Add this test code here
22444         too.
22445         * tests/test-sprintf-posix.h (test_function): Likewise.
22446         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22447         * tests/test-vasprintf-posix.c (test_function): Likewise.
22448         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22449         around by gnulib.
22450         * doc/posix-functions/printf.texi: Likewise.
22451         * doc/posix-functions/snprintf.texi: Likewise.
22452         * doc/posix-functions/sprintf.texi: Likewise.
22453         * doc/posix-functions/vfprintf.texi: Likewise.
22454         * doc/posix-functions/vprintf.texi: Likewise.
22455         * doc/posix-functions/vsnprintf.texi: Likewise.
22456         * doc/posix-functions/vsprintf.texi: Likewise.
22457         * doc/posix-functions/dprintf.texi: Undo last commit.
22458         * doc/posix-functions/vdprintf.texi: Likewise.
22459
22460 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22461
22462         tests: port test-fdutimensat.c to Solaris 8
22463         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22464         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22465         On Solaris 8, it fails with errno == ENOSYS, because there is no
22466         futimens (so it can't use the fd), and there is no lutimens (so it
22467         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22468
22469         vsnprintf: make more consistent with snprintf; doc fixes
22470
22471         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22472         the byte count return problem was promoted from the snprintf-posix
22473         to the snprintf module.
22474         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22475         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22476         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22477         * tests/test-snprintf.c (main): Check the byte count returned.
22478         * tests/test-vsnprintf.c (main): Likewise.
22479
22480 2010-12-23  Eric Blake  <eblake@redhat.com>
22481
22482         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22483         * modules/sigpipe (License): Relax license.
22484
22485 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22486
22487         doc: document Solaris printf bug with large float precisions
22488         * doc/posix-functions/dprintf.texi (dprintf):
22489         * doc/posix-functions/fprintf.texi (fprintf):
22490         * doc/posix-functions/printf.texi (printf):
22491         * doc/posix-functions/snprintf.texi (snprintf):
22492         * doc/posix-functions/sprintf.texi (sprintf):
22493         * doc/posix-functions/vdprintf.texi (vdprintf):
22494         * doc/posix-functions/vfprintf.texi (vfprintf):
22495         * doc/posix-functions/vprintf.texi (vprintf):
22496         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22497         * doc/posix-functions/vsprintf.texi (vsprintf):
22498         Mention that these functions mishandle large floating point
22499         precisions on Solaris 10.  The same bug is also present in Solaris
22500         8, and I assume earlier.  This causes "cd gnulib-tests; make
22501         check" to fail on Solaris 8 (and I assume, later) when building
22502         the latest coreutils, in test-vasprintf-posix's call to
22503         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22504         the wide flavors (e.g., wprintf) so this patch just updates the
22505         documentation for the narrow ones.
22506
22507         test-posixtm.c: add two tests
22508         * tests/test-posixtm.c: Add two tests, to highlight the
22509         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22510         around this bug; this is merely to document it.
22511
22512 2010-12-22  Bruno Haible  <bruno@clisp.org>
22513
22514         getlogin_r: Work around portability problem on OSF/1.
22515         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22516         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22517         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22518         test for a truncated result.
22519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22520         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22521         * modules/getlogin_r (Depends-on): Add memchr.
22522         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22523
22524 2010-12-22  Bruno Haible  <bruno@clisp.org>
22525
22526         ptsname: Avoid test failure on OSF/1 5.1.
22527         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22528         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22529         (same_slave): New function.
22530         (main): Use it to compare ptsname's result with the expected file name.
22531
22532 2010-12-22  Bruno Haible  <bruno@clisp.org>
22533
22534         Port extended stdio modules to HP NonStop Kernel.
22535         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22536         macros.
22537         * lib/fbufmode.c: Update comments.
22538         * lib/fflush.c: Likewise.
22539         * lib/fpurge.c: Likewise.
22540         * lib/freadable.c: Likewise.
22541         * lib/freadahead.c: Likewise.
22542         * lib/freading.c: Likewise.
22543         * lib/freadptr.c: Likewise.
22544         * lib/freadseek.c: Likewise.
22545         * lib/fseeko.c: Likewise.
22546         * lib/fseterr.c: Likewise.
22547         * lib/fwritable.c: Likewise.
22548         * lib/fwriting.c: Likewise.
22549         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22550
22551 2010-12-22  Bruno Haible  <bruno@clisp.org>
22552
22553         ttyname_r: Work around bug on OSF/1 5.1.
22554         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22556         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22557         present.
22558         * lib/ttyname_r.c (ttyname_r): Update comments.
22559
22560 2010-12-22  Bruno Haible  <bruno@clisp.org>
22561
22562         round: Implement result sign according to IEEE 754.
22563         * lib/round.c (MIN, MINUS_ZERO): New macros.
22564         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22565         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22566         * tests/test-round-ieee.c (main): Likewise.
22567         * tests/test-roundl-ieee.c (main): Likewise.
22568
22569         trunc: Implement result sign according to IEEE 754.
22570         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22571         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22572         * tests/test-trunc2.c: Include minus-zero.h.
22573         (MINUS_ZERO): New macro.
22574         (trunc_reference): Keep in sync with lib/trunc.c.
22575         * tests/test-truncf2.c: Include minus-zero.h.
22576         (MINUS_ZERO): New macro.
22577         (truncf_reference): Keep in sync with lib/trunc.c.
22578         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22579         * tests/test-trunc-ieee.c (main): Likewise.
22580         * tests/test-truncl-ieee.c (main): Likewise.
22581
22582         ceil: Implement result sign according to IEEE 754.
22583         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22584         (FUNC): Return -0.0 for -1 < x < 0.
22585         * tests/test-ceil2.c: Include minus-zero.h.
22586         (MINUS_ZERO): New macro.
22587         (ceil_reference): Keep in sync with lib/ceil.c.
22588         * tests/test-ceilf2.c: Include minus-zero.h.
22589         (MINUS_ZERO): New macro.
22590         (ceilf_reference): Keep in sync with lib/ceil.c.
22591         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22592         * tests/test-ceil-ieee.c (main): Likewise.
22593         * tests/test-ceill-ieee.c (main): Likewise.
22594
22595         floor: Implement result sign according to IEEE 754.
22596         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22597         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22598         * tests/test-floorf2.c (floorf_reference): Likewise.
22599         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22600         * tests/test-floor-ieee.c (main): Likewise.
22601         * tests/test-floorl-ieee.c (main): Likewise.
22602
22603 2010-12-22  Bruno Haible  <bruno@clisp.org>
22604
22605         getaddrinfo: Update doc.
22606         * doc/posix-functions/gai_strerror.texi: Return type is also different
22607         on AIX and HP-UX.
22608
22609 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22610
22611         getaddrinfo, inet_ntop: Update doc for Solaris.
22612         * doc/posix-functions/gai_strerror.texi: Return type is also an
22613         issue on Solaris 9 and earlier.
22614         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22615         on Solaris 10 and earlier.
22616
22617 2010-12-21  Bruno Haible  <bruno@clisp.org>
22618
22619         New module 'roundl-ieee'.
22620         * modules/roundl-ieee: New file.
22621         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22622         test whether roundl works according to ISO C 99 with IEC 60559.
22623         * m4/roundl-ieee.m4: New file.
22624         * modules/roundl-ieee-tests: New file.
22625         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22626         * tests/test-roundl.c (main): Remove signbit tests.
22627         * modules/roundl-tests (Depends-on): Remove signbit.
22628         * doc/posix-functions/roundl.texi: Mention the new module.
22629
22630 2010-12-21  Bruno Haible  <bruno@clisp.org>
22631
22632         New module 'truncl-ieee'.
22633         * modules/truncl-ieee: New file.
22634         * modules/truncl-ieee-tests: New file.
22635         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22636         * tests/test-truncl.c (main): Remove signbit tests.
22637         * modules/truncl-tests (Depends-on): Remove signbit.
22638         * doc/posix-functions/truncl.texi: Mention the new module.
22639
22640 2010-12-21  Bruno Haible  <bruno@clisp.org>
22641
22642         New module 'ceill-ieee'.
22643         * modules/ceill-ieee: New file.
22644         * modules/ceill-ieee-tests: New file.
22645         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22646         * tests/test-ceill.c (main): Remove signbit tests.
22647         * modules/ceill-tests (Depends-on): Remove signbit.
22648         * doc/posix-functions/ceill.texi: Mention the new module.
22649
22650 2010-12-21  Bruno Haible  <bruno@clisp.org>
22651
22652         New module 'floorl-ieee'.
22653         * modules/floorl-ieee: New file.
22654         * modules/floorl-ieee-tests: New file.
22655         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22656         * tests/test-floorl.c (main): Remove signbit tests.
22657         * modules/floorl-tests (Depends-on): Remove signbit.
22658         * doc/posix-functions/floorl.texi: Mention the new module.
22659
22660 2010-12-21  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'round-ieee'.
22663         * modules/round-ieee: New file.
22664         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22665         whether round works according to ISO C 99 with IEC 60559.
22666         * m4/round-ieee.m4: New file.
22667         * modules/round-ieee-tests: New file.
22668         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22669         * tests/test-round1.c (main): Remove signbit tests.
22670         * modules/round-tests (Depends-on): Remove 'signbit'.
22671         * doc/posix-functions/round.texi: Mention the new module.
22672
22673 2010-12-21  Bruno Haible  <bruno@clisp.org>
22674
22675         New module 'trunc-ieee'.
22676         * modules/trunc-ieee: New file.
22677         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22678         whether trunc works according to ISO C 99 with IEC 60559.
22679         * m4/trunc-ieee.m4: New file.
22680         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22682         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22683         * modules/trunc-ieee-tests: New file.
22684         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22685         * tests/test-trunc1.c (main): Remove signbit tests.
22686         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22687         * doc/posix-functions/trunc.texi: Mention the new module.
22688
22689 2010-12-21  Bruno Haible  <bruno@clisp.org>
22690
22691         New module 'ceil-ieee'.
22692         * modules/ceil-ieee: New file.
22693         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22694         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22695         ISO C 99 with IEC 60559.
22696         * m4/ceil-ieee.m4: New file.
22697         * modules/ceil (Files): Add lib/ceil.c.
22698         (Depends-on): Add 'float'.
22699         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22700         * lib/math.in.h (ceil): New declaration.
22701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22702         REPLACE_CEIL.
22703         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22704         * modules/ceil-ieee-tests: New file.
22705         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22706         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22707         * doc/posix-functions/ceil.texi: Mention the new module.
22708
22709 2010-12-21  Bruno Haible  <bruno@clisp.org>
22710
22711         New module 'floor-ieee'.
22712         * modules/floor-ieee: New file.
22713         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22714         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22715         ISO C 99 with IEC 60559.
22716         * m4/floor-ieee.m4: New file.
22717         * modules/floor (Files): Add lib/floor.c.
22718         (Depends-on): Add 'float'.
22719         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22720         * lib/math.in.h (floor): New declaration.
22721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22722         REPLACE_FLOOR.
22723         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22724         * modules/floor-ieee-tests: New file.
22725         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22726         * tests/test-math-c++.cc: Check the signature of 'floor'.
22727         * doc/posix-functions/floor.texi: Mention the new module.
22728
22729 2010-12-21  Bruno Haible  <bruno@clisp.org>
22730
22731         New module 'roundf-ieee'.
22732         * modules/roundf-ieee: New file.
22733         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22734         test whether roundf works according to ISO C 99 with IEC 60559.
22735         * m4/roundf-ieee.m4: New file.
22736         * modules/roundf-ieee-tests: New file.
22737         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22738         * tests/test-roundf1.c (main): Remove signbit tests.
22739         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22740         * doc/posix-functions/roundf.texi: Mention the new module.
22741
22742 2010-12-21  Bruno Haible  <bruno@clisp.org>
22743
22744         New module 'truncf-ieee'.
22745         * modules/truncf-ieee: New file.
22746         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22747         test whether truncf works according to ISO C 99 with IEC 60559.
22748         * m4/truncf-ieee.m4: New file.
22749         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22751         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22752         * modules/truncf-ieee-tests: New file.
22753         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22754         * tests/test-truncf1.c (main): Remove signbit tests.
22755         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22756         * doc/posix-functions/truncf.texi: Mention the new module.
22757
22758 2010-12-21  Bruno Haible  <bruno@clisp.org>
22759
22760         New module 'ceilf-ieee'.
22761         * modules/ceilf-ieee: New file.
22762         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22763         test whether ceilf works according to ISO C 99 with IEC 60559.
22764         * m4/ceilf-ieee.m4: New file.
22765         * modules/ceilf-ieee-tests: New file.
22766         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22767         * tests/test-ceilf1.c (main): Remove signbit tests.
22768         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22769         * doc/posix-functions/ceilf.texi: Mention the new module.
22770
22771 2010-12-21  Bruno Haible  <bruno@clisp.org>
22772
22773         New module 'floorf-ieee'.
22774         * modules/floorf-ieee: New file.
22775         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22776         test whether floorf works according to ISO C 99 with IEC 60559.
22777         * m4/floorf-ieee.m4: New file.
22778         * modules/floorf-ieee-tests: New file.
22779         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22780         * tests/test-floorf1.c (main): Remove signbit tests.
22781         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22782         * doc/posix-functions/floorf.texi: Mention the new module.
22783
22784 2010-12-21  Bruno Haible  <bruno@clisp.org>
22785
22786         Support for minus zero in autoconf macros.
22787         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22788         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22789         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22790         * tests/minus-zero.h: Update comments.
22791
22792 2010-12-21  Bruno Haible  <bruno@clisp.org>
22793
22794         Tests for module 'ceil'.
22795         * modules/ceil-tests: New file.
22796         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22797         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22798
22799 2010-12-21  Bruno Haible  <bruno@clisp.org>
22800
22801         Tests for module 'floor'.
22802         * modules/floor-tests: New file.
22803         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22804         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22805
22806 2010-12-21  Bruno Haible  <bruno@clisp.org>
22807
22808         math: Fix indentation.
22809         * lib/math.in.h (floorf): Fix indentation.
22810
22811 2010-12-21  Bruno Haible  <bruno@clisp.org>
22812
22813         Fix cross-compilation guesses on Solaris.
22814         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22815         not match "solaris2.10".
22816         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22817         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22818         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22819
22820 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22821
22822         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22823         This fixes a problem observed with the latest coreutils snapshot
22824         that caused a test to fail on Solaris 8.  src/csplit.c's call
22825         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22826         earlier, instead of returning the number of bytes that would have
22827         been generated; this causes csplit to incorrectly report memory
22828         exhaustion.
22829         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22830         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22831         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22832         comments to match.
22833         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22834         Fix typo in matching older versions of Solaris: "solaris2.10"
22835         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22836         only for guessing while cross-compiling.
22837         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22838
22839 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22840
22841         ftoastr: fix comment again
22842         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22844         Also, simplify example a bit by using flags = 0.
22845
22846 2010-12-20  Bruno Haible  <bruno@clisp.org>
22847
22848         round*, trunc*: Update documentation regarding glibc.
22849         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22850         * doc/posix-functions/round.texi: Likewise.
22851         * doc/posix-functions/roundl.texi: Likewise.
22852         * doc/posix-functions/truncf.texi: Likewise.
22853         * doc/posix-functions/trunc.texi: Likewise.
22854         * doc/posix-functions/truncl.texi: Likewise.
22855
22856 2010-12-20  Bruno Haible  <bruno@clisp.org>
22857
22858         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22859         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22860         * doc/posix-functions/round.texi: Likewise.
22861         * doc/posix-functions/roundl.texi: Likewise.
22862
22863 2010-12-20  Bruno Haible  <bruno@clisp.org>
22864
22865         ttyname_r: Add missing declaration on HP-UX 11.
22866         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22867         HAVE_TTYNAME_R.
22868         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22869         declared. Set HAVE_TTYNAME_R always.
22870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22871         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22872         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22873         HAVE_TTYNAME_R.
22874         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22875
22876 2010-12-20  Bruno Haible  <bruno@clisp.org>
22877
22878         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22879         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22880         * doc/posix-functions/getlogin_r.texi: Likewise.
22881         * tests/test-getlogin.c: Include <errno.h>.
22882         (main): Avoid test failure on HP-UX 11.11.
22883         * tests/test-getlogin_r.c (main): Likewise.
22884
22885 2010-12-20  Bruno Haible  <bruno@clisp.org>
22886
22887         getlogin_r: Add missing declaration on HP-UX 11.
22888         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22889         declared also when it exists as a function.
22890         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22891
22892 2010-12-20  Bruno Haible  <bruno@clisp.org>
22893
22894         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22895         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22896         through wcrtomb.
22897
22898 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22899
22900         ftoastr: fix comment
22901         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22903
22904 2010-12-19  Bruno Haible  <bruno@clisp.org>
22905
22906         isnan: Ensure it is a macro.
22907         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22908         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22909         Solaris.
22910
22911 2010-12-19  Bruno Haible  <bruno@clisp.org>
22912
22913         ldexpl test: Fix link error on OSF/1 5.1.
22914         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22915
22916 2010-12-19  Bruno Haible  <bruno@clisp.org>
22917
22918         wctype: Make it work in C++ mode on OSF/1 5.1.
22919         * lib/wctype.in.h (iswblank): Declare but not define here.
22920         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22921         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22922         * modules/wctype (Files): Add lib/iswblank.c.
22923
22924 2010-12-19  Bruno Haible  <bruno@clisp.org>
22925
22926         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22927         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22928         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22929
22930 2010-12-19  Bruno Haible  <bruno@clisp.org>
22931
22932         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22934         _POSIX_PII_SOCKET.
22935         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22936         * doc/posix-functions/recvfrom.texi: Likewise.
22937         * doc/posix-functions/send.texi: Likewise.
22938         * doc/posix-functions/sendto.texi: Likewise.
22939
22940 2010-12-19  Bruno Haible  <bruno@clisp.org>
22941
22942         tcgetsid: Add missing declaration on OSF/1 5.1.
22943         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22944         HAVE_TCGETSID.
22945         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22946         Don't set HAVE_TCGETSID.
22947         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22948         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22949         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22950         HAVE_TCGETSID.
22951         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22952
22953 2010-12-19  Bruno Haible  <bruno@clisp.org>
22954
22955         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22956         * lib/stdio.in.h: During the include_next statement, let recursive
22957         includes of this file include only the system header file.
22958
22959 2010-12-19  Bruno Haible  <bruno@clisp.org>
22960
22961         iconv_open: Fix regression from 2010-12-04.
22962         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22963         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22964
22965 2010-12-19  Bruno Haible  <bruno@clisp.org>
22966
22967         stdbool test: Avoid a gcc warning.
22968         * tests/test-stdbool.c (main): Fail if e1 is false.
22969         Reported by Jim Meyering.
22970
22971 2010-12-19  Jim Meyering  <meyering@redhat.com>
22972
22973         setenv: restore to working order
22974         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22975         mistakenly removed.
22976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22977         HAVE_SETENV.
22978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22979         HAVE_SETENV.
22980
22981 2010-12-19  Bruno Haible  <bruno@clisp.org>
22982
22983         Document some different function declarations on OSF/1 5.1.
22984         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22985         * doc/posix-functions/inet_ntop.texi: Likewise.
22986         * doc/posix-functions/gethostname.texi: Likewise.
22987         * lib/unistd.in.h (gethostname): Update comment.
22988
22989 2010-12-19  Bruno Haible  <bruno@clisp.org>
22990
22991         doc: Mention vasprintf-posix module.
22992         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22993         the 'vasprintf-posix' module.
22994         * doc/glibc-functions/vasprintf.texi: Likewise.
22995
22996 2010-12-19  Bruno Haible  <bruno@clisp.org>
22997
22998         unsetenv: Add missing declaration on OSF/1 5.1.
22999         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23000         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23001         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23003         not HAVE_UNSETENV.
23004         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23005         HAVE_UNSETENV.
23006         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23007
23008 2010-12-19  Bruno Haible  <bruno@clisp.org>
23009
23010         setenv: Add missing declaration on OSF/1 5.1.
23011         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23012         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23013         declared. Don't set HAVE_SETENV.
23014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23015         not HAVE_SETENV.
23016         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23017         HAVE_SETENV.
23018         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23019
23020 2010-12-19  Bruno Haible  <bruno@clisp.org>
23021
23022         nl_langinfo tests: Avoid gcc warning.
23023         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23024
23025 2010-12-19  Bruno Haible  <bruno@clisp.org>
23026
23027         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23028         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23029         _GL_CXXALIAS_SYS.
23030
23031 2010-12-19  Bruno Haible  <bruno@clisp.org>
23032
23033         stdbool: Relax test.
23034         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23035         address to 'bool' work in static initializer, for compilers other than
23036         GCC.
23037
23038 2010-12-19  Bruno Haible  <bruno@clisp.org>
23039
23040         ftello: Add missing declaration on OSF/1 5.1.
23041         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23042         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23044         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23045         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23046
23047 2010-12-19  Bruno Haible  <bruno@clisp.org>
23048
23049         fseeko: Add missing declaration on OSF/1 5.1.
23050         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23053         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23054         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23055
23056 2010-12-19  Bruno Haible  <bruno@clisp.org>
23057
23058         fchdir: Add missing declaration on OSF/1 5.1.
23059         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23062         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23063         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23064
23065 2010-12-19  Bruno Haible  <bruno@clisp.org>
23066
23067         relocatable-prog-wrapper: Separate from relocatable-prog.
23068         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23069         uninstall-relocwrapper rule here.
23070         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23071         Reported by Ian Beckwith <ianb@erislabs.net>.
23072
23073 2010-12-19  Bruno Haible  <bruno@clisp.org>
23074
23075         unistr/u8-mbsnlen: Add missing dependency.
23076         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23077         Reported by Ian Beckwith <ianb@erislabs.net>.
23078
23079 2010-12-19  Bruno Haible  <bruno@clisp.org>
23080
23081         iconv: Make it possible again to use this module without 'iconv-h'.
23082         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23083         if it is not defined.
23084         Reported by Ian Beckwith <ianb@erislabs.net>.
23085
23086 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23087
23088         acl: port to Solaris 8 when copying from tmpfs to ufs
23089         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23090         error number.  Problem observed on Solaris 8 with latest
23091         coreutils, with "mv A B", where A is on a tmpfs file system and B
23092         is on a ufs file system.  This caused coreutils' mv/part-symlink
23093         test to fail.
23094
23095         tests: set fail=0 at start
23096         * tests/init.sh (setup_): Move fail=0 initialization here ...
23097         (mktempd_): ... from here, so that tests can rely on fail being
23098         set to 0 initially.  This fixes a problem in coreutils; see:
23099         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23100
23101 2010-12-18  Bruno Haible  <bruno@clisp.org>
23102
23103         memmem-simple: Stylistic changes.
23104         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23105         Fix preprocessor directive indentation.
23106
23107 2010-12-15  Pádraig Brady <P@draigBrady.com>
23108
23109         memmem, memmem-simple: reorganize and expand empty needle check
23110         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23111         functional checks to memmem-simple so that one has a fully functional
23112         memmem by using just this module.
23113         Restrict the performance only check to the memmem module.
23114         Also expand the empty needle check to ensure the correct
23115         pointer is returned, not just a non NULL pointer.
23116         * doc/glibc-functions/memmem.texi: Rearrange the portability
23117         documentation to correlate with the rearranged checks.
23118         Clarify exactly how the memmem and memmem-simple modules
23119         relate to each other.
23120
23121 2010-12-15  Pádraig Brady <P@draigBrady.com>
23122             Bruno Haible  <bruno@clisp.org>
23123
23124         Improve cross-compilation guesses for uClibc.
23125         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23126         that uClibc does not have the glibc bug.
23127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23128         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23129
23130 2010-12-14  Eric Blake  <eblake@redhat.com>
23131
23132         configmake: provide fallbacks for oldest supported autotools
23133         * m4/configmake.m4: New file.
23134         * modules/configmake (Files): Ship it.
23135         (configure.ac): Use it to guarantee fallbacks.
23136
23137 2010-12-13  Pádraig Brady <P@draigBrady.com>
23138
23139         read-file: Improve handling of large files
23140         * lib/read-file.c (fread_file): Minimize realloc()s
23141         for regular files, and better manage sizes around SIZE_MAX.
23142
23143 2010-12-13  Eric Blake  <eblake@redhat.com>
23144
23145         cloexec, fcntl: relax license
23146         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23147         consent from all contributors.
23148         * modules/fcntl (License): Likewise.
23149
23150 2010-12-10  Bruno Haible  <bruno@clisp.org>
23151
23152         Tests for module 'pipe-posix'.
23153         * modules/pipe-posix-tests: New file.
23154         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23155
23156 2010-12-10  Bruno Haible  <bruno@clisp.org>
23157
23158         pipe-posix: Make it work in C++ mode.
23159         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23160         (pipe): Use common idiom, not a macro definition.
23161         * lib/pipe.c: New file.
23162         * m4/pipe.m4: New file.
23163         * modules/pipe-posix (Description): Enhance.
23164         (Files): Add lib/pipe.c, m4/pipe.m4.
23165         (configure.ac): Invoke gl_FUNC_PIPE.
23166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23167         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23168         * tests/test-unistd-c++.cc: Check the signature of pipe.
23169
23170 2010-12-10  Bruno Haible  <bruno@clisp.org>
23171
23172         Rename module 'pipe' to 'spawn-pipe'.
23173         * modules/spawn-pipe: New file, renamed from modules/pipe.
23174         (Files, configure.ac, Makefile.am): Update.
23175         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23176         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23177         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23178         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23179         "spawn-pipe.h" instead of "pipe.h".
23180         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23181         to gl_SPAWN_PIPE.
23182         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23183         (Files, Makefile.am): Update.
23184         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23185         Update.
23186         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23187         Include "spawn-pipe.h" instead of "pipe.h".
23188         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23189         * lib/javacomp.c: Likewise.
23190         * lib/javaversion.c: Likewise.
23191         * lib/pipe-filter-gi.c: Likewise.
23192         * lib/pipe-filter-ii.c: Likewise.
23193         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23194         * modules/javacomp (Depends-on): Likewise.
23195         * modules/javaversion (Depends-on): Likewise.
23196         * modules/pipe-filter-gi (Depends-on): Likewise.
23197         * modules/pipe-filter-ii (Depends-on): Likewise.
23198         * MODULES.html.sh (Executing programs): Update.
23199         * NEWS: Mention the change.
23200
23201 2010-12-10  Eric Blake  <eblake@redhat.com>
23202
23203         pipe-posix: new module
23204         * modules/pipe-posix: New file.
23205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23206         (gl_UNISTD_H): Check for declaration.
23207         * modules/unistd (Makefile.am): Substitute it.
23208         * lib/unistd.in.h (pipe): Provide it for mingw.
23209         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23210         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23211
23212 2010-12-07  Bruno Haible  <bruno@clisp.org>
23213
23214         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23215         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23216         u8_strcmp_gnu.
23217         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23218
23219 2010-12-06  Bruno Haible  <bruno@clisp.org>
23220
23221         Update internal documentation.
23222         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23223
23224 2010-12-04  Bruno Haible  <bruno@clisp.org>
23225
23226         Put more information about failed tests into the test return codes.
23227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23228         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23230         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23232         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23233         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23234         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23235         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23238         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23239         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23240         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23241         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23242         returns a bit mask.
23243         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23244         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23245         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23246         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23247         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23251         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23252         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23253         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23254         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23255         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23256         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23257         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23258         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23259         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23260         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23261         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23262         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23263         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23266         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23267         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23268         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23269         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23270         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23271         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23272         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23273         gl_PRINTF_PRECISION): Likewise.
23274         * m4/regex.m4 (gl_REGEX): Likewise.
23275         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23277         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23278         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23282         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23283         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23284         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23286         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23287         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23289         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23290         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23291         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23294         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23295         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23296         enumerated value.
23297         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23298
23299 2010-12-04  Bruno Haible  <bruno@clisp.org>
23300
23301         Update for Solaris 11 2010-11.
23302         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23303         Express, released in November 2010.
23304
23305 2010-12-04  Bruno Haible  <bruno@clisp.org>
23306
23307         nproc: Relax license.
23308         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23309         and Paul Eggert.
23310         Requested by Ludovic Courtès <ludo@gnu.org>.
23311
23312 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23313
23314         utimecmp: fine-grained src to nearby coarse-grained dest
23315
23316         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23317         and the source is on a file system with higher-resolution time
23318         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23319         not work, and the time stamps are close together, the algorithm to
23320         determine the exact resolution from the read-back mtime was buggy:
23321         it had a "!=" where it should have had an "==".  This bug has been
23322         in the code ever since it was introduced to gnulib.
23323         Problem reported by Dan Jacobson in
23324         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23325
23326 2010-11-30  Bruno Haible  <bruno@clisp.org>
23327
23328         strerror_r-posix: Fix autoconf test.
23329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23330
23331 2010-11-28  Bruno Haible  <bruno@clisp.org>
23332             Paul Eggert  <eggert@cs.ucla.edu>
23333
23334         Tests for module 'getdomainname'.
23335         * modules/getdomainname-tests: New file.
23336         * tests/test-getdomainname.c: New file, based on
23337         tests/test-gethostname.c.
23338
23339 2010-11-28  Bruno Haible  <bruno@clisp.org>
23340             Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         getdomainname: Use the system function when possible.
23343         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23344         (getdomainname): Replace if needed. Provide the declaration if it is
23345         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23346         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23347         (getdomainname): When the system has getdomainname, call the system
23348         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23349         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23350         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23351         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23352         the function if its second argument is of type 'int' or if it is found
23353         in libnsl.
23354         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23355         <sys/systeminfo.h> and sysinfo().
23356         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23358         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23359         HAVE_GETDOMAINNAME.
23360         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23361         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23362         * doc/glibc-functions/getdomainname.texi: Document the problems with
23363         the getdomainname declaration.
23364
23365 2010-11-28  Bruno Haible  <bruno@clisp.org>
23366
23367         sys_socket: Ensure ss_family field on AIX.
23368         * lib/sys_socket.in.h (ss_family): New macro definition.
23369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23370         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23371         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23372         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23373         * modules/sys_socket (Makefile.am): Substitute
23374         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23375         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23376
23377 2010-11-27  Bruno Haible  <bruno@clisp.org>
23378
23379         readline: Improve configure output.
23380         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23381         "checking for readline..." result understandable.
23382
23383 2010-11-27  Bruno Haible  <bruno@clisp.org>
23384
23385         *printf-posix: Detect a bug on Solaris 10/x86.
23386         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23387         for floating-point output.
23388         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23389         directive.
23390         * tests/test-snprintf-posix.h (test_function): Likewise.
23391         * tests/test-sprintf-posix.h (test_function): Likewise.
23392         * tests/test-vasprintf-posix.c (test_function): Likewise.
23393         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23394         * doc/posix-functions/printf.texi: Likewise.
23395         * doc/posix-functions/snprintf.texi: Likewise.
23396         * doc/posix-functions/sprintf.texi: Likewise.
23397         * doc/posix-functions/vfprintf.texi: Likewise.
23398         * doc/posix-functions/vprintf.texi: Likewise.
23399         * doc/posix-functions/vsnprintf.texi: Likewise.
23400         * doc/posix-functions/vsprintf.texi: Likewise.
23401         * doc/glibc-functions/obstack_printf.texi: Likewise.
23402         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23403
23404 2010-11-27  Bruno Haible  <bruno@clisp.org>
23405
23406         Fix link error when module libunistring-optional is in use.
23407         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23408         * modules/striconveha-tests (Makefile.am): Likewise.
23409
23410 2010-11-27  Bruno Haible  <bruno@clisp.org>
23411
23412         regex: Mention link dependencies.
23413         * modules/regex (Link): New section.
23414         * modules/rpmatch (Link): Likewise.
23415         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23416
23417 2010-11-27  Bruno Haible  <bruno@clisp.org>
23418
23419         ftoastr: Fix compilation error on Solaris.
23420         * lib/ftoastr.c: Include <config.h>.
23421
23422 2010-11-27  Bruno Haible  <bruno@clisp.org>
23423
23424         getloadavg: Update documentation.
23425         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23426
23427 2010-11-27  Bruno Haible  <bruno@clisp.org>
23428
23429         sys_socket: Fix test whether the functions are declared.
23430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23431         not <sys/select.h>.
23432
23433 2010-11-27  Bruno Haible  <bruno@clisp.org>
23434
23435         getpass: Make sure to get system declaration on some platforms.
23436         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23437         gl_USE_SYSTEM_EXTENSIONS.
23438         * modules/getpass (Depends-on): Add extensions.
23439
23440 2010-11-26  Bruno Haible  <bruno@clisp.org>
23441
23442         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23443         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23444         'iconv' module is present.
23445         (ICONV_CONST): New macro.
23446         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23447         ICONV_CONST.
23448         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23449         set ICONV_CONST.
23450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23451         here.
23452         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23453         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23454         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23455         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23456         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23457         present.
23458
23459 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23460
23461         ftoastr: comment fix
23462         * lib/ftoastr.c: "little" -> "little or no" in comment
23463
23464 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         stdint: port to GCC 4.3 + OSX + Octave
23467         On this platform, stdint.h is buggy and defines int64_t to long
23468         long int.  The replacement defined it to long int, causing
23469         problems with C++ style name mangling.  Instead, trust the system
23470         definition if INT64_MAX is defined, and likewise for the unsigned
23471         variant.   Problem reported by Jarno Rajahalme in
23472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23473         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23474         and don't mess with int64_t and INT64_MAX in this case.
23475         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23476
23477 2010-11-24  Bruno Haible  <bruno@clisp.org>
23478
23479         doc: Corrections regarding MacOS X 10.4 and 10.5.
23480         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23481         MacOS X.
23482         Reported by Simon Josefsson.
23483
23484 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23485
23486         Uninstall ".bin" files installed by relocwrapper.
23487         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23488         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23489         unless it is already there.
23490
23491 2010-11-21  Bruno Haible  <bruno@clisp.org>
23492
23493         Update for NetBSD 5.0.
23494         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23495         NetBSD; the test fails on NetBSD 5.0.
23496         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23497         about NetBSD.
23498
23499 2010-11-21  Bruno Haible  <bruno@clisp.org>
23500
23501         Update for HP-UX 11.23 and HP-UX 11.31.
23502         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23503         HP-UX.
23504
23505 2010-11-21  Bruno Haible  <bruno@clisp.org>
23506
23507         Update for MacOS X 10.5.
23508         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23509         MacOS X; the test fails on MacOS X 10.5.8.
23510         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23511         about MacOS X.
23512
23513 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23514
23515         bootstrap: add bootstrap_sync option.
23516         See discussion at
23517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23518         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23519         * build-aux/bootstrap: Accept --bootstrap-sync to update
23520         bootstrap if it is not identical to the local gnulib's
23521         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23522         enable this by default.  Accept --no-bootstrap-sync to disable
23523         it.
23524
23525 2010-11-20  Bruno Haible  <bruno@clisp.org>
23526
23527         Ensure that <features.h> is included before __GLIBC__ is tested.
23528         * lib/printf-parse.h: Include <features.h>.
23529         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23530         Reported by Mike Frysinger <vapier@gentoo.org>.
23531
23532         Ensure that <features.h> is included before __GLIBC__ is tested.
23533         * lib/wchar.in.h: Include <features.h>.
23534         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23535         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23536         Reported by Mike Frysinger <vapier@gentoo.org>.
23537
23538         Ensure that <features.h> is included before __GLIBC__ is tested.
23539         * lib/arpa_inet.in.h: Include <features.h>.
23540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23541         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23542         Reported by Mike Frysinger <vapier@gentoo.org>.
23543
23544         Ensure that <features.h> is included before __GLIBC__ is tested.
23545         * build-aux/link-warning.h: Include <features.h>.
23546         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23547         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23548         Reported by Mike Frysinger <vapier@gentoo.org>.
23549
23550         Ensure that <features.h> is included before __GLIBC__ is tested.
23551         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23552         Reported by Mike Frysinger <vapier@gentoo.org>.
23553
23554 2010-11-20  Bruno Haible  <bruno@clisp.org>
23555
23556         memmem: Fix autoconf test.
23557         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23558
23559 2010-11-20  Bruno Haible  <bruno@clisp.org>
23560
23561         Port to uClibc.
23562         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23563         * lib/fcntl.in.h: Likewise.
23564         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23565         * lib/mbrtowc.c (mbrtowc): Likewise.
23566         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23567         * lib/strerror_r.c: Likewise.
23568         * lib/unistr/u8-strnlen.c: Likewise.
23569         * lib/vasnprintf.c (decimal_point_char): Likewise.
23570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23571         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23573         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23574         * tests/test-sigaction.c (handler, main): Likewise.
23575         * lib/freading.h: Treat uClibc like a non-glibc platform.
23576         * lib/freading.c: Likewise.
23577         * lib/gettext.h: Likewise.
23578         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23579         Likewise.
23580         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23581         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23582         * lib/propername.c (proper_name_utf8): Likewise.
23583         * lib/spawn.in.h: Likewise.
23584         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23585         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23586         mem_cd_iconveh_internal): Likewise.
23587         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23588         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23589         strstr, strcasestr): Likewise.
23590         * lib/unicodeio.c (unicode_to_mb): Likewise.
23591         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23592         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23593         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23594         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23595         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23596         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23597         * lib/unistr/u8-stpncpy.c: Likewise.
23598         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23599         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23601         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23602         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23607         Likewise.
23608         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23609         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23611         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23613         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23614         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23615         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23616         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23617         * tests/test-striconveha.c (main): Likewise.
23618         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23619         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23620         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23621         * doc/posix-functions/getline.texi: Likewise.
23622         Reported by Mike Frysinger <vapier@gentoo.org>.
23623
23624 2010-11-20  Bruno Haible  <bruno@clisp.org>
23625
23626         nproc: Fix condition.
23627         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23628         HAVE_PTHREAD_AFFINITY_NP.
23629
23630 2010-11-20  Bruno Haible  <bruno@clisp.org>
23631
23632         Fix a comment.
23633         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23634
23635 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23636
23637         ftoastr: don't assume snprintf
23638         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23639         Implement a subset of snprintf here, by using sprintf safely.
23640         * modules/ftoastr (Depends-on): Remove snprintf.
23641
23642 2010-11-19  Jim Meyering  <meyering@redhat.com>
23643
23644         test-rename.h: fix compilation failure
23645         * tests/test-rename.h (test_rename): Add omitted "}".
23646
23647 2010-11-17  Jim Meyering  <meyering@redhat.com>
23648
23649         maint.mk: add a URL discussing the no-@acronym policy
23650         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23651
23652 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23653
23654         ftoastr: depend on snprintf, improve comments
23655         * lib/ftoastr.c: Also mention Loitsch's draft.
23656         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23657         needed in the current implementation, but it might simplify
23658         speeding up the code later.
23659         * modules/ftoastr: Depend on snprintf; this improves portability.
23660         Suggested by Bruno Haible in the same email.
23661
23662         ftoastr: port to hosts lacking strtof and strtold
23663         Problem reported by Bruno Haible in
23664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23665         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23666         environment and strtold (and presumably strtof) are not available.
23667         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23668         (configure.ac): Require gl_C99_STRTOLD.
23669
23670 2010-11-18  Bruno Haible  <bruno@clisp.org>
23671
23672         c-strtold: Avoid link error on AIX 7.
23673         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23674         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23675         (gl_C_STRTOLD): Test whether strtold_l exists.
23676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23677
23678 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23679
23680         intprops: new macro INT_BITS_STRLEN_BOUND
23681         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23682         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23683         not exposed.  Also, it uses a slightly tighter bound than before;
23684         though this makes no practical difference, we might as well be as
23685         tight as we easily can.
23686
23687         ftoastr: new module, for lossless conversion of floats to short strings
23688         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23689         * modules/ftoastr: New files.
23690
23691 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23692
23693         bootstrap: port to Solaris sed
23694         * build-aux/bootstrap (get_version): Port to Solaris sed.
23695         See Ralf Wildenhues's note in
23696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23697
23698 2010-11-14  Jim Meyering  <meyering@redhat.com>
23699
23700         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23701         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23702         and move definition closer to sole use.
23703
23704 2010-11-13  Jim Meyering  <meyering@redhat.com>
23705
23706         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23707         Now we require at least autoconf-2.59, which means the work-around
23708         is no longer needed.
23709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23710         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23711         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23714
23715 2010-11-13  Bruno Haible  <bruno@clisp.org>
23716
23717         rename, renameat: Avoid test failures at NFS mounted locations.
23718         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23719         functions.
23720         (test_rename): Use assert_nonexistent.
23721         * tests/test-rename.c: Include <dirent.h>.
23722         * tests/test-renameat.c: Likewise.
23723         Reported by Gary V. Vaughan <gary@gnu.org>.
23724
23725         rename, renameat: Document Linux bug with NFS
23726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23727         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23728         * doc/posix-functions/renameat.texi: Likewise.
23729         Suggested by Eric Blake.
23730
23731 2010-11-13  Bruno Haible  <bruno@clisp.org>
23732
23733         rename test: Add comments.
23734         * tests/test-rename.h (test_rename): Add structure and comments.
23735
23736 2010-11-13  Eric Blake  <eblake@redhat.com>
23737
23738         maintainer-makefile: cover a few more files
23739         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23740         scripts generated within C files, for libvirt.
23741
23742 2010-11-13  Bruno Haible  <bruno@clisp.org>
23743
23744         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23745         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23746         character, return the number of bytes that belong together, not always
23747         1.
23748         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23749         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23750         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23751         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23752         number of bytes of an invalid character.
23753         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23754         (main): Invoke it.
23755         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23756         results.
23757         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23758         malformed byte sequences.
23759         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23760         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23761         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23762         Reported by Ben Pfaff and Paolo Bonzini.
23763
23764 2010-11-13  Bruno Haible  <bruno@clisp.org>
23765
23766         openat: Work around glibc bug with fchownat() and empty file names.
23767         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23768         (gl_FUNC_FCHOWNAT): Invoke it.
23769         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23770         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23771         Reported by Gary V. Vaughan <gary@gnu.org>.
23772
23773 2010-11-13  Bruno Haible  <bruno@clisp.org>
23774
23775         openat: Ensure autoconf macro ordering.
23776         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23777         gl_USE_SYSTEM_EXTENSIONS.
23778         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23779
23780 2010-11-13  Bruno Haible  <bruno@clisp.org>
23781
23782         Update comments.
23783         * lib/unistr/u8-check.c: Update file name in comments.
23784         * lib/unistr/u8-mblen.c: Likewise.
23785         * lib/unistr/u8-prev.c: Likewise.
23786         * lib/unistr/u8-strmblen.c: Likewise.
23787         * lib/unistr/u8-strmbtouc.c: Likewise.
23788
23789 2010-11-13  Jim Meyering  <meyering@redhat.com>
23790
23791         tests: avoid test failure on Solaris 10 due to lack of PATH export
23792         * tests/test-update-copyright.sh: Don't forget to export PATH.
23793
23794         init.sh: ensure that IFS is defined, just in case...
23795         * tests/init.sh (setup_): Ensure that IFS is defined,
23796         so that saving and restoring it works as expected.  This
23797         appears to be useful at least for an old version of dash
23798         from a long time ago (RH 6).  See here for details:
23799         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23800
23801         maint.mk: tighten "test a == b" check
23802         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23803         test to files that contain something like #!/bin/sh.
23804         Without this, coreutils would get two false positives in
23805         the comments of C source files.
23806
23807 2010-11-12  Eric Blake  <eblake@redhat.com>
23808
23809         bootstrap: fix typo in previous attempt
23810         * build-aux/bootstrap (buildreq): Correct the grouping.
23811         Reported by Paul Eggert.
23812
23813         maintainer-makefile: prohibit test x == x
23814         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23815         Based on a report by Matthias Bolte.
23816
23817         bootstrap: allow FreeBSD gzip
23818         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23819         which has no '.' and goes to stderr.
23820         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23821         Reported by Matthias Bolte.
23822
23823         maintainer-makefile: check for i18n setup
23824         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23825         will likely work.
23826
23827 2010-11-12  Bruno Haible  <bruno@clisp.org>
23828
23829         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23830         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23831         * lib/nanosleep.c (nanosleep): Likewise.
23832
23833 2010-11-11  Bruno Haible  <bruno@clisp.org>
23834
23835         fcntl-h: Fix for use of C++ on glibc systems.
23836         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23837         also on glibc systems in C++ mode.
23838         Reported by Gary V. Vaughan <gary@gnu.org>.
23839
23840 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23841
23842         mknod: avoid false failure with dash
23843         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23844
23845 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23846
23847         unlink: Fix "is it should" typo in diagnostic.
23848         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23850
23851 2010-11-11  Bruno Haible  <bruno@clisp.org>
23852
23853         Tests for module 'strerror_r-posix'.
23854         * modules/strerror_r-posix-tests: New file.
23855         * tests/test-strerror_r.c: New file.
23856         * tests/test-string-c++.cc: Check the signature of strerror_r.
23857
23858         New module 'strerror_r-posix'.
23859         * lib/string.in.h (strerror_r): New declaration.
23860         * lib/strerror_r.c: New file.
23861         * m4/strerror_r.m4: New file.
23862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23863         of strerror_r.
23864         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23865         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23866         * modules/strerror_r-posix: New file.
23867         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23868         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23869         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23870         portability problems.
23871
23872 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23873
23874         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23875         line is also considered for output. Quoted function name in shell
23876         command, so temporary files for functions like MyClass::operator()
23877         are removed correctly without errors.
23878
23879 2010-11-09  Bruno Haible  <bruno@clisp.org>
23880
23881         * doc/posix-functions/strerror.texi: List more failing platforms.
23882
23883         * doc/posix-functions/strerror.texi: Add a comment.
23884
23885 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23886
23887         fdopendir: fix bug on MacOS X when low on file descriptors
23888
23889         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23890         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23891         All callers changed.
23892         (fdopendir): Invoke save_cwd at the top level, not after using
23893         multiple dup() calls to use up file descriptors.  Then retry
23894         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23895         less than the maximum number of open file descriptors, because
23896         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23897         on Mac OS X 10.6.4 for tar 1.24
23898         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23899         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23900         and for tar 1.25
23901         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23902
23903 2010-11-07  Bruno Haible  <bruno@clisp.org>
23904
23905         vasnprintf: Support I flag on glibc systems.
23906         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23907         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23908         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23909         snprintf function.
23910         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23911         glibc systems.
23912         * tests/test-vasnprintf-posix3.c: New file.
23913         * modules/vasnprintf-posix-tests (Files): Add it.
23914         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23915
23916 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23917
23918         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23919         * MODULES.html.sh: For compiler warnings, use name
23920         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23921
23922 2010-11-05  Eric Blake  <eblake@redhat.com>
23923
23924         ceil, floor: avoid spurious failure with icc
23925         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23926         [denormals-as-zero] when optimizing without -mieee-fp option.
23927         * tests/test-floorf2.c (floorf_reference): Likewise.
23928         * tests/test-ceilf1.c (dummy): New function.
23929         (main): Use it to outsmart icc's optimization.
23930         * tests/test-floorf1.c (dummy, main): Likewise.
23931
23932         tests: require working signbit
23933         * modules/ceilf-tests (Depends-on): Add signbit.
23934         * modules/ceill-tests (Depends-on): Likewise.
23935         * modules/floorf-tests (Depends-on): Likewise.
23936         * modules/floorl-tests (Depends-on): Likewise.
23937         * modules/round-tests (Depends-on): Likewise.
23938         * modules/roundf-tests (Depends-on): Likewise.
23939         * modules/roundl-tests (Depends-on): Likewise.
23940         * modules/trunc-tests (Depends-on): Likewise.
23941         * modules/truncf-tests (Depends-on): Likewise.
23942         * modules/truncl-tests (Depends-on): Likewise.
23943
23944         strtod: work around icc bug
23945         * lib/strtod.c (minus_zero): Define to working value.
23946         (strtod): Use it to avoid icc bug.
23947
23948         copysign: enhance tests
23949         * modules/copysign-tests (Files): Add minus-zero.h.
23950         * tests/test-copysign.c (main): Also test zeros.
23951
23952 2010-11-04  Eric Blake  <eblake@redhat.com>
23953
23954         ceil, floor, round, trunc: enhance tests of -0
23955         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23956         * tests/test-ceill.c (main): Likewise.
23957         * tests/test-floorf1.c (main): Likewise.
23958         * tests/test-floorl.c (main): Likewise.
23959         * tests/test-round1.c (main): Likewise.
23960         * tests/test-roundf1.c (main): Likewise.
23961         * tests/test-roundl.c (main): Likewise.
23962         * tests/test-trunc1.c (main): Likewise.
23963         * tests/test-truncf1.c (main): Likewise.
23964         * tests/test-truncl.c (main): Likewise.
23965
23966 2010-11-04  Eric Blake  <eblake@redhat.com>
23967
23968         frexp, tests: work around ICC bug with -zero
23969         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23970         works with more compilers.
23971         * tests/minus-zero.h: New file.
23972         * modules/ceilf-tests (Files): Include it.
23973         * modules/ceill-tests (Files): Likewise.
23974         * modules/floorf-tests (Files): Likewise.
23975         * modules/floorl-tests (Files): Likewise.
23976         * modules/frexp-nolibm-tests (Files): Likewise.
23977         * modules/frexp-tests (Files): Likewise.
23978         * modules/frexpl-nolibm-tests (Files): Likewise.
23979         * modules/frexpl-tests (Files): Likewise.
23980         * modules/isnan-tests (Files): Likewise.
23981         * modules/isnand-nolibm-tests (Files): Likewise.
23982         * modules/isnand-tests (Files): Likewise.
23983         * modules/isnanf-nolibm-tests (Files): Likewise.
23984         * modules/isnanf-tests (Files): Likewise.
23985         * modules/isnanl-nolibm-tests (Files): Likewise.
23986         * modules/isnanl-tests (Files): Likewise.
23987         * modules/round-tests (Files): Likewise.
23988         * modules/roundf-tests (Files): Likewise.
23989         * modules/roundl-tests (Files): Likewise.
23990         * modules/ldexpl-tests (Files): Likewise.
23991         * modules/signbit-tests (Files): Likewise.
23992         * modules/snprintf-posix-tests (Files): Likewise.
23993         * modules/sprintf-posix-tests (Files): Likewise.
23994         * modules/strtod-tests (Files): Likewise.
23995         * modules/trunc-tests (Files): Likewise.
23996         * modules/truncf-tests (Files): Likewise.
23997         * modules/truncl-tests (Files): Likewise.
23998         * modules/vsnprintf-posix-tests (Files): Likewise.
23999         * modules/vsprintf-posix-tests (Files): Likewise.
24000         * modules/vasnprintf-posix-tests (Files): Likewise.
24001         * modules/vasprintf-posix-tests (Files): Likewise.
24002         * tests/test-ceilf1.c (main): Use it.
24003         * tests/test-ceill.c (main): Likewise.
24004         * tests/test-floorf1.c (main): Likewise.
24005         * tests/test-floorl.c (main): Likewise.
24006         * tests/test-frexp.c (main): Likewise.
24007         * tests/test-frexpl.c (main): Likewise.
24008         * tests/test-isnan.c (main): Likewise.
24009         * tests/test-isnand.h (main): Likewise.
24010         * tests/test-isnanf.h (main): Likewise.
24011         * tests/test-isnanl.h (main): Likewise.
24012         * tests/test-ldexpl.c (main): Likewise.
24013         * tests/test-round.c (main): Likewise.
24014         * tests/test-roundf.c (main): Likewise.
24015         * tests/test-roundl.c (main): Likewise.
24016         * tests/test-signbit.c (test_signbitf, test_signbitd)
24017         (test_signbitl): Likewise.
24018         * tests/test-snprintf-posix.h (test_function): Likewise.
24019         * tests/test-sprintf-posix.h (test_function): Likewise.
24020         * tests/test-strtod.c (main): Likewise.
24021         * tests/test-trunc1.c (main): Likewise.
24022         * tests/test-truncf1.c (main): Likewise.
24023         * tests/test-truncl.c (main): Likewise.
24024
24025         isnanl: work around icc bug
24026         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24027
24028 2010-11-03  Eric Blake  <eblake@redhat.com>
24029
24030         tests: fix compiler warnings
24031         * tests/test-getopt.h (test_getopt): Fix condition.
24032         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24033         * tests/test-pipe2.c (main): Likewise.
24034         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24035
24036         utimens: fix broken m4 test
24037         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24038
24039 2010-10-28  Bruno Haible  <bruno@clisp.org>
24040
24041         posix_spawn*, getdtablesize: Relax license.
24042         * modules/posix_spawn (License): Change to LGPLv2+.
24043         * modules/posix_spawnp (License): Likewise.
24044         * modules/posix_spawn-internal (License): Likewise.
24045         * modules/posix_spawnattr_init (License): Likewise.
24046         * modules/posix_spawnattr_getflags (License): Likewise.
24047         * modules/posix_spawnattr_setflags (License): Likewise.
24048         * modules/posix_spawnattr_getpgroup (License): Likewise.
24049         * modules/posix_spawnattr_setpgroup (License): Likewise.
24050         * modules/posix_spawnattr_getschedparam (License): Likewise.
24051         * modules/posix_spawnattr_setschedparam (License): Likewise.
24052         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24053         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24054         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24055         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24056         * modules/posix_spawnattr_getsigmask (License): Likewise.
24057         * modules/posix_spawnattr_setsigmask (License): Likewise.
24058         * modules/posix_spawnattr_destroy (License): Likewise.
24059         * modules/posix_spawn_file_actions_init (License): Likewise.
24060         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24061         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24062         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24063         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24064         * modules/getdtablesize (License): Likewise.
24065         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24066
24067 2010-10-26  Bruno Haible  <bruno@clisp.org>
24068
24069         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24070         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24071         Cygwin and mingw.
24072         Suggested by Eric Blake.
24073
24074 2010-10-26  Bruno Haible  <bruno@clisp.org>
24075
24076         stdio: Work around compilation error due to renameat() on Solaris 10.
24077         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24078         * lib/renameat.c: Don't include <unistd.h> here.
24079         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24080         Reported by Paul Eggert and Eric Blake.
24081
24082 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24083
24084         renameat: port to Solaris 10, which declares renameat in unistd.h
24085
24086         * lib/renameat.c: Include unistd.h before stdio.h, because
24087         Solaris 10 declares renameat in unistd.h.  Problem encountered
24088         when building GNU tar 1.24 on Solaris 10.
24089
24090 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24091
24092         fdopendir: fix C89 compilation
24093         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24094         compilers.
24095
24096 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24097
24098         inttostr: simplify by removing unnecessary redundancy
24099         * lib/anytostr.c: Don't include verify.h.
24100         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24101         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24102         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24103         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24104         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24105         Likewise.
24106         * modules/inttostr (Depends-on): Remove 'verify'.
24107
24108 2010-10-23  Bruno Haible  <bruno@clisp.org>
24109
24110         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24111         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24112         Reported by Eric Blake.
24113
24114 2010-10-23  Bruno Haible  <bruno@clisp.org>
24115
24116         Tests: Fix LOCALE_JA on MirBSD 10.
24117         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24118         to an UTF-8 locale.
24119         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24121         Reported by Eric Blake.
24122
24123 2010-10-21  Bruno Haible  <bruno@clisp.org>
24124
24125         nl_langinfo test: Avoid test failure on NetBSD 5.
24126         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24127         Reported by Eric Blake.
24128
24129 2010-10-21  Eric Blake  <eblake@redhat.com>
24130
24131         c-stack: work around libsigsegv 2.8 bug
24132         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24133         overflow on at least PowerPC64.
24134
24135 2010-10-17  Bruno Haible  <bruno@clisp.org>
24136
24137         userspec: Drop redundant file.
24138         * modules/userspec (Files): Remove lib/inttostr.h.
24139
24140 2010-10-17  Bruno Haible  <bruno@clisp.org>
24141
24142         nl_langinfo tests: Silence some warnings.
24143         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24144         Reported by Jim Meyering.
24145
24146 2010-10-17  Bruno Haible  <bruno@clisp.org>
24147
24148         Make use of GCC's attribute __alloc_size__.
24149         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24150         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24151         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24152         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24153         __alloc_size__.
24154         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24155         Suggested by Jim Meyering.
24156
24157 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24158
24159         bootstrap: anchor .gitignore entries.
24160         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24161         with...
24162         (insert_vc_ignore): ... this new function, which prepends `/' to
24163         all .gitignore entries before passing them to
24164         insert_sorted_if_absent.
24165
24166 2010-10-16  Bruno Haible  <bruno@clisp.org>
24167
24168         nextafter: Fix configure check.
24169         * modules/nextafter (configure.ac): Correct expected prototype.
24170
24171 2010-10-16  Bruno Haible  <bruno@clisp.org>
24172
24173         termios: Update documentation.
24174         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24175
24176 2010-10-16  Bruno Haible  <bruno@clisp.org>
24177
24178         tests: Make them compile with TinyCC.
24179         * tests/test-strstr.c (main): Remove parentheses around array
24180         initializer.
24181
24182 2010-10-15  Eric Blake  <eblake@redhat.com>
24183
24184         ignore-value: make header idempotent
24185         * lib/ignore-value.h: Add double-inclusion guards.
24186         Reported by Stefan Berger.
24187
24188 2010-10-15  Jim Meyering  <meyering@redhat.com>
24189
24190         GNUmakefile: handle "stable" target, not "major"
24191         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24192         lists in maint.mk and announce-gen.  Without this, "make stable"
24193         would fail to ensure that $(VERSION) is up to date.
24194
24195 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24196
24197         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24198         & co.
24199
24200 2010-10-14  Bruno Haible  <bruno@clisp.org>
24201
24202         vasnprintf: Don't set errno to 0.
24203         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24204         block that sets it to 0.
24205         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24206
24207 2010-10-14  Bruno Haible  <bruno@clisp.org>
24208
24209         socketlib: Fix.
24210         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24211         gl_PREREQ_SYS_H_WINSOCK2.
24212         Reported by Ian Beckwith <ianb@erislabs.net>.
24213
24214 2010-10-13  Jim Meyering  <meyering@redhat.com>
24215
24216         test-select-stdin.c: avoid warn_unused_result warnings
24217         * tests/test-select-stdin.c: Include "macros.h".
24218         ASSERT that read and fflush succeed.
24219
24220 2010-10-13  Jim Meyering  <meyering@redhat.com>
24221
24222         git-version-gen: do require git-VC'd files in cwd
24223         * build-aux/git-version-gen: Reject a git version string
24224         if there are no commits associated with the current directory.
24225         This avoids an unlikely false-positive (unrelated dir whose parent
24226         repository also contains a tag matching v*), as pointed out
24227         by Giuseppe Scrivano in
24228         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24229
24230 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24231
24232         argv-iter: omit nonconforming declaration
24233         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24234         enum arg_iter_err declaration, which doesn't conform to C99.
24235         Solaris 10 cc warns about this.
24236
24237 2010-10-13  Eric Blake  <eblake@redhat.com>
24238
24239         termios: fix compilation on mingw
24240         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24241         (gl_TERMIOS_H): Adjust it on mingw.
24242         * modules/termios (Makefile.am): Substitute new key.
24243         * lib/termios.in.h (includes): Make include_next conditional.
24244         * doc/posix-headers/termios.texi (termios.h): Update
24245         documentation.
24246         Reported by Daniel P. Berrange.
24247
24248 2010-10-13  Jim Meyering  <meyering@redhat.com>
24249
24250         git-version-gen: don't require that .git/ be in the current dir
24251         * build-aux/git-version-gen: Adjust this script so that it works
24252         when run from any working directory beneath the top-level .git/-
24253         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24254         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24255
24256         test-select: avoid warn_unused_result warnings
24257         * tests/test-select.c: Include "macros.h".
24258         ASSERT that each call to read, write, and pipe succeeds.
24259         While not technically required, also check each "close".
24260         * modules/select-tests (Files): Add tests/macros.h.
24261
24262         test-symlinkat: remove declaration of unused local
24263         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24264
24265         test-inttostr: avoid shadowing warnings
24266         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24267         and use malloc rather than the stack for the same reason as
24268         mentioned in the comment justifying the other allocation.
24269
24270 2010-10-11  Bruno Haible  <bruno@clisp.org>
24271
24272         stdlib: Allow multiple gnulib generated replacements to coexist.
24273         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24274         Reported by Sam Steingold <sds@gnu.org>.
24275
24276 2010-10-11  Jim Meyering  <meyering@redhat.com>
24277
24278         fix a documentation typo
24279         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24280
24281 2010-10-11  Eric Blake  <eblake@redhat.com>
24282
24283         futimens: work around Solaris 11 bug
24284         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24285         * tests/test-futimens.h (test_futimens): Enhance, rather than
24286         weaken test.
24287         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24288
24289 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24290
24291         Indentation.
24292         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24293         higher-level operators more to the left.
24294
24295 2010-10-11  Jim Meyering  <meyering@redhat.com>
24296
24297         test-futimens: avoid unwarranted test failure on Solaris 5.11
24298         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24299         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24300         because it tries to dereference the NULL name argument.
24301
24302 2010-10-11  Bruno Haible  <bruno@clisp.org>
24303
24304         Indentation.
24305         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24306         indentation.
24307
24308 2010-10-11  Jim Meyering  <meyering@redhat.com>
24309
24310         spawn.in.h: make indentation consistent with parentheses
24311         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24312         Make indentation consistent with parentheses.
24313
24314 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24315
24316         Fix mismatched parens in previous commit
24317         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24318         parens.
24319
24320 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24323
24324         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24325         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24326         * lib/malloca.c: Include "verify.h".
24327         (verify1): Remove, replacing with a verify call.
24328         * lib/relocwrapper.c (verify1): Likewise.
24329         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24330         Likewise.
24331         * modules/malloca (Depends-on): Add 'verify'.
24332         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24333         * modules/vasnprintf (Depends-on): Add 'verify'.
24334         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24335         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24336         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24337         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24341
24342         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24343
24344         Formerly the style was sometimes 2*X - 1, because the C standard
24345         was wrongly thought to disallow ?: in integral constant expressions.
24346         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24347         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24348         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24349         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24350         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24351         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24352         verify that time_t cannot be floating.
24353
24354 2010-10-08  Eric Blake  <eblake@redhat.com>
24355
24356         time: enforce recent POSIX ruling that time_t is integral
24357         * lib/time.in.h (__time_t_must_be_integral): Detect any
24358         problematic systems, allowing the rest of gnulib to assume POSIX.
24359
24360 2010-10-08  Jim Meyering  <meyering@redhat.com>
24361
24362         fdopendir: fix a bug on systems lacking openat and /proc support
24363         OpenBSD 4.7 is one such system.  The most noticeable effect was
24364         failure of any application making nontrivial use of fts: rm, du,
24365         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24366           ./rm: traversal failed: `a': Bad file descriptor
24367         Debugging that, you see that even though FD 6 was closed just
24368         prior to the opendir call in fd_clone_opendir, its resulting
24369         dir->dd_fd was 8, rather than the expected value of 6:
24370
24371         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24372         93                close (fd);
24373         (gdb) n
24374         94                dir = fd_clone_opendir (dupfd);
24375         (gdb) n
24376         95                saved_errno = errno;
24377         (gdb) p dir->dd_fd
24378         $11 = 8
24379
24380         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24381         The problem is that on OpenBSD, fd_clone_opendir has to resort
24382         to using the old-style save/restore CWD mechanism, due to its
24383         lack of openat/proc support, and *that* would steal the FD (6)
24384         that opendir was supposed to use.
24385
24386         The fix is to squirrel away the desired FD so that save_cwd uses a
24387         different one, and then free the dest FD right before calling opendir.
24388         That guarantees opendir will use the required file descriptor.
24389
24390         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24391
24392 2010-10-08  Bruno Haible  <bruno@clisp.org>
24393
24394         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24395         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24396
24397 2010-10-08  Bruno Haible  <bruno@clisp.org>
24398
24399         nanosleep: Make replacement POSIX compliant.
24400         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24401         is out of range.
24402         Reported by Jim Meyering.
24403
24404 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24405
24406         bootstrap: add hook for altering gnulib.mk, for Bison
24407         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24408         the Bison bootstrapping process can rewrite file names and variables
24409         in this file before later parts of 'bootstrap' use the file.
24410         Bison wants to include lib/gnulib.mk from the top-level makefile,
24411         so it needs the file names in this file to be relative to the top
24412         level, not relative to lib; plus it needs variable names to be
24413         rewritten.
24414         (slurp): Use the new function.
24415
24416         bootstrap: reformat for readability
24417         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24418
24419 2010-10-08  Eric Blake  <eblake@redhat.com>
24420
24421         docs: update cygwin progress
24422         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24423         1.7.7.
24424         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24425         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24426         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24427         * doc/posix-functions/carg.texi (carg): Likewise.
24428         * doc/posix-functions/cargf.texi (cargf): Likewise.
24429         * doc/posix-functions/casin.texi (casin): Likewise.
24430         * doc/posix-functions/casinf.texi (casinf): Likewise.
24431         * doc/posix-functions/casinh.texi (casinh): Likewise.
24432         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24433         * doc/posix-functions/catan.texi (catan): Likewise.
24434         * doc/posix-functions/catanf.texi (catanf): Likewise.
24435         * doc/posix-functions/catanh.texi (catanh): Likewise.
24436         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24437         * doc/posix-functions/ccos.texi (ccos): Likewise.
24438         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24439         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24440         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24441         * doc/posix-functions/cexp.texi (cexp): Likewise.
24442         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24443         * doc/posix-functions/cimag.texi (cimag): Likewise.
24444         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24445         * doc/posix-functions/clog.texi (clog): Likewise.
24446         * doc/posix-functions/clogf.texi (clogf): Likewise.
24447         * doc/posix-functions/conj.texi (conj): Likewise.
24448         * doc/posix-functions/conjf.texi (conjf): Likewise.
24449         * doc/posix-functions/cpow.texi (cpow): Likewise.
24450         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24451         * doc/posix-functions/cproj.texi (cproj): Likewise.
24452         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24453         * doc/posix-functions/creal.texi (creal): Likewise.
24454         * doc/posix-functions/crealf.texi (crealf): Likewise.
24455         * doc/posix-functions/csin.texi (csin): Likewise.
24456         * doc/posix-functions/csinf.texi (csinf): Likewise.
24457         * doc/posix-functions/csinh.texi (csinh): Likewise.
24458         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24459         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24460         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24461         * doc/posix-functions/ctan.texi (ctan): Likewise.
24462         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24463         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24464         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24465         * doc/posix-headers/complex.texi (complex.h): Likewise.
24466
24467 2010-10-07  Jim Meyering  <meyering@redhat.com>
24468
24469         parse-datetime: avoid compilation failure on OpenBSD 4.7
24470         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24471         This works around a compilation failure on OpenBSD 4.7:
24472         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24473
24474 2010-10-07  Eric Blake  <eblake@redhat.com>
24475
24476         docs: update cygwin progress
24477         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24478         1.7.6.
24479         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24480         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24481         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24482         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24483         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24484         Likewise.
24485         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24486         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24487         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24488         Likewise.
24489         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24490         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24491         Likewise.
24492         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24493         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24494         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24495         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24496         Likewise.
24497         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24498         Likewise.
24499         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24500
24501         docs: update parse-datetime history
24502         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24503         documentation of this function's history and alternatives.
24504
24505         cygwin: use more robust version check
24506         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24507         exclude an eventual cygwin 1.9.1.
24508         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24510         (gl_FUNC_STRCASESTR): Likewise.
24511         Reported by Bruno Haible.
24512
24513 2010-10-06  Bruno Haible  <bruno@clisp.org>
24514
24515         string, sys_select: Avoid #including large headers unless necessary.
24516         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24517         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24518         OSF/1, BeOS, Haiku.
24519         Reported by Jim Meyering.
24520
24521 2010-10-05  Eric Blake  <eblake@redhat.com>
24522
24523         memmem, strstr, strcasestr: fix bug with long periodic needle
24524         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24525         periodic needle having false positive.
24526         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24527         and cygwin 1.7.7.
24528         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24530         (gl_FUNC_STRCASESTR): Likewise.
24531         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24532         * tests/test-memmem.c (main): Expose the bug.
24533         * tests/test-strcasestr.c (main): Likewise.
24534         * tests/test-strstr.c (main): Likewise.
24535         * tests/test-c-strcasestr.c (main): Likewise.
24536         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24537         * doc/posix-functions/strstr.texi (strstr): Likewise.
24538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24539         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24540
24541 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24542
24543         parse-datetime: do some more renaming
24544         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24545         parse_datetime, not get_date.  Mention the renaming.
24546         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24547         in comments.
24548         * m4/bison.m4: Likewise.
24549
24550 2010-10-05  Eric Blake  <eblake@redhat.com>
24551
24552         parse-datetime: better name than get_date
24553         * NEWS: Reword the deprecation notice.
24554         * modules/get_date: Rename to modules/parse-datetime.
24555         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24556         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24557         * lib/get_date.y: Rename to lib/parse-datetime.y.
24558         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24559         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24560         * doc/getdate.texi: Provide fallback wrapper.
24561         * lib/getdate.h: Move guts, and wrap...
24562         * lib/parse-datetime.h: ...new file.
24563         * lib/parse-datetime.y (get_date): Rename...
24564         (parse_datetime): ...to this.
24565         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24566         (gl_PARSE_DATETIME): ...to this.
24567         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24568         documentation.
24569         * modules/getdate (Files): Provide fallback docs and header.
24570         (Notice, Depends-on): Update references.
24571         * tests/test-parse-datetime.c: Likewise.
24572         * DEPENDENCIES: Likewise.
24573         * MODULES.html.sh (Date and time <time.h>): Likewise.
24574         * doc/parse-datetime.texi (Date input formats)
24575         (Authors of parse_datetime): Likewise.
24576         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24577         (Include): Likewise.
24578         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24579         * gnulib-tool: Likewise.
24580         * m4/bison.m4 (gl_BISON): Likewise.
24581         Suggested by Bruno Haible.
24582
24583 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         more ports to Solaris tr, which needs [] around ranges
24586         * gnulib-tool: Solaris tr needs [] around ranges.
24587         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24588         * tests/test-pipe-filter-gi1.c (main): Likewise.
24589         * tests/test-pipe-filter-ii1.c (main): Likewise.
24590
24591 2010-10-05  Eric Blake  <eblake@redhat.com>
24592
24593         bootstrap: fix Solaris regression
24594         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24595         around ranges.
24596         Reported by Pádraig Brady.
24597
24598         bootstrap: work with pkg-config
24599         * build-aux/bootstrap (check_versions): Also transliterate - in
24600         prerequisite name.
24601         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24602         prerequisites that were already found, to avoid confusion.
24603         Reported by Justin Clift.
24604
24605         faccessat: remove unused wrappers
24606         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24607         presence of these wrappers dragged in -lgen on Solaris.
24608         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24609
24610 2010-10-05  Jim Meyering  <meyering@redhat.com>
24611
24612         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24613         * Makefile (sc_pragma_columns): New syntax-check rule.
24614
24615 2010-10-04  Bruno Haible  <bruno@clisp.org>
24616
24617         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24618         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24619         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24620         Reported by Bruce Korb and Eric Blake.
24621
24622 2010-10-04  Bruno Haible  <bruno@clisp.org>
24623
24624         threadlib: Make option --with-libpth-prefix work.
24625         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24626         use $LIBPTH, not just -lpth.
24627
24628 2010-10-04  Bruno Haible  <bruno@clisp.org>
24629
24630         Avoid line length limitation from HP NonStop system header files.
24631         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24632         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24633         * lib/ctype.in.h: Likewise.
24634         * lib/dirent.in.h: Likewise.
24635         * lib/errno.in.h: Likewise.
24636         * lib/fcntl.in.h: Likewise.
24637         * lib/float.in.h: Likewise.
24638         * lib/getopt.in.h: Likewise.
24639         * lib/iconv.in.h: Likewise.
24640         * lib/inttypes.in.h: Likewise.
24641         * lib/langinfo.in.h: Likewise.
24642         * lib/locale.in.h: Likewise.
24643         * lib/math.in.h: Likewise.
24644         * lib/netdb.in.h: Likewise.
24645         * lib/netinet_in.in.h: Likewise.
24646         * lib/poll.in.h: Likewise.
24647         * lib/pthread.in.h: Likewise.
24648         * lib/pty.in.h: Likewise.
24649         * lib/sched.in.h: Likewise.
24650         * lib/se-selinux.in.h: Likewise.
24651         * lib/search.in.h: Likewise.
24652         * lib/signal.in.h: Likewise.
24653         * lib/spawn.in.h: Likewise.
24654         * lib/stdarg.in.h: Likewise.
24655         * lib/stddef.in.h: Likewise.
24656         * lib/stdint.in.h: Likewise.
24657         * lib/stdio.in.h: Likewise.
24658         * lib/stdlib.in.h: Likewise.
24659         * lib/string.in.h: Likewise.
24660         * lib/strings.in.h: Likewise.
24661         * lib/sys_file.in.h: Likewise.
24662         * lib/sys_ioctl.in.h: Likewise.
24663         * lib/sys_select.in.h: Likewise.
24664         * lib/sys_socket.in.h: Likewise.
24665         * lib/sys_stat.in.h: Likewise.
24666         * lib/sys_time.in.h: Likewise.
24667         * lib/sys_times.in.h: Likewise.
24668         * lib/sys_utsname.in.h: Likewise.
24669         * lib/sys_wait.in.h: Likewise.
24670         * lib/sysexits.in.h: Likewise.
24671         * lib/termios.in.h: Likewise.
24672         * lib/time.in.h: Likewise.
24673         * lib/unistd.in.h: Likewise.
24674         * lib/wchar.in.h: Likewise.
24675         * lib/wctype.in.h: Likewise.
24676         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24677         * modules/ctype (Makefile.am): Likewise.
24678         * modules/dirent (Makefile.am): Likewise.
24679         * modules/errno (Makefile.am): Likewise.
24680         * modules/fcntl-h (Makefile.am): Likewise.
24681         * modules/float (Makefile.am): Likewise.
24682         * modules/getopt-posix (Makefile.am): Likewise.
24683         * modules/iconv-h (Makefile.am): Likewise.
24684         * modules/inttypes (Makefile.am): Likewise.
24685         * modules/langinfo (Makefile.am): Likewise.
24686         * modules/locale (Makefile.am): Likewise.
24687         * modules/math (Makefile.am): Likewise.
24688         * modules/netdb (Makefile.am): Likewise.
24689         * modules/netinet_in (Makefile.am): Likewise.
24690         * modules/poll-h (Makefile.am): Likewise.
24691         * modules/pthread (Makefile.am): Likewise.
24692         * modules/pty (Makefile.am): Likewise.
24693         * modules/sched (Makefile.am): Likewise.
24694         * modules/search (Makefile.am): Likewise.
24695         * modules/selinux-h (Makefile.am): Likewise.
24696         * modules/signal (Makefile.am): Likewise.
24697         * modules/spawn (Makefile.am): Likewise.
24698         * modules/stdarg (Makefile.am): Likewise.
24699         * modules/stddef (Makefile.am): Likewise.
24700         * modules/stdint (Makefile.am): Likewise.
24701         * modules/stdio (Makefile.am): Likewise.
24702         * modules/stdlib (Makefile.am): Likewise.
24703         * modules/string (Makefile.am): Likewise.
24704         * modules/strings (Makefile.am): Likewise.
24705         * modules/sys_file (Makefile.am): Likewise.
24706         * modules/sys_ioctl (Makefile.am): Likewise.
24707         * modules/sys_select (Makefile.am): Likewise.
24708         * modules/sys_socket (Makefile.am): Likewise.
24709         * modules/sys_stat (Makefile.am): Likewise.
24710         * modules/sys_time (Makefile.am): Likewise.
24711         * modules/sys_times (Makefile.am): Likewise.
24712         * modules/sys_utsname (Makefile.am): Likewise.
24713         * modules/sys_wait (Makefile.am): Likewise.
24714         * modules/sysexits (Makefile.am): Likewise.
24715         * modules/termios (Makefile.am): Likewise.
24716         * modules/time (Makefile.am): Likewise.
24717         * modules/unistd (Makefile.am): Likewise.
24718         * modules/wchar (Makefile.am): Likewise.
24719         * modules/wctype (Makefile.am): Likewise.
24720
24721 2010-10-04  Bruno Haible  <bruno@clisp.org>
24722
24723         read-file tests: Avoid a test failure on NonStop Kernel.
24724         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24725         a regular file.
24726         Reported by Joachim Schmitz <schmitz@hp.com>.
24727
24728 2010-10-03  Bruno Haible  <bruno@clisp.org>
24729
24730         gnulib-tool: Fixes for --create-testdir with --libtool.
24731         * gnulib-tool (func_get_automake_snippet): Don't augment
24732         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24733         an executable.
24734         (func_create_testdir): Handle module 'alloca' like func_import.
24735         Reported by Bruce Korb <bruce.korb@gmail.com>.
24736
24737 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24738
24739         Avoid some lines longer than 80 characters.
24740         * lib/stdint.in.h: Break long comment lines.
24741         * lib/math.in.h: Likewise.
24742         (_GL_NUM_UINT_WORDS): New macro, for readability.
24743         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24744         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24745         * lib/stdlib.in.h: Likewise.
24746         * lib/spawn.in.h: Likewise.
24747         * lib/sys_socket.in.h: Update an URL.
24748         * lib/sys_stat.in.h: Break long line.
24749
24750 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24751
24752         Improve pmccabe2html.
24753         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24754         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24755         when the sources change. Remove the line in the HTML about "Used
24756         ranges" (which implied that there might be other unused ranges),
24757         rename "Resume" to "Summary" (easier to understand for more users).
24758         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24759         styles, and some unnecessary blank lines.
24760
24761 2010-10-03  Bruno Haible  <bruno@clisp.org>
24762             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24763
24764         acl: Add support for ACLs on NonStop Kernel.
24765         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24766         Check whether the function aclsort() exists.
24767         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24768         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24769         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24770         (acl_nontrivial [HAVE_ACLSORT]: New function.
24771         (file_has_acl): Implement for NonStop Kernel.
24772         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24773         (qset_acl): Implement for NonStop Kernel.
24774         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24775         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24776         (main): Implement for NonStop Kernel.
24777         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24778         Kernel. Handle this flavor.
24779         * tests/test-set-mode-acl.sh: Likewise.
24780         * tests/test-copy-acl.sh: Likewise.
24781         * tests/test-copy-file.sh: Likewise.
24782
24783 2010-10-03  Bruno Haible  <bruno@clisp.org>
24784
24785         Info about ACLs on NonStop Kernel.
24786         * doc/acl-resources.txt: Add info about NonStop Kernel.
24787         References by Joachim Schmitz <schmitz@hp.com>.
24788
24789 2010-10-02  Bruno Haible  <bruno@clisp.org>
24790
24791         Define missing EDQUOT on NonStop Kernel.
24792         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24793         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24794         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24795         missing.
24796         * doc/posix-headers/errno.texi: Mention the NSK bug.
24797         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24798         Reported by Joachim Schmitz <schmitz@hp.com>.
24799
24800 2010-10-02  Bruno Haible  <bruno@clisp.org>
24801
24802         Update doc for POSIX:2008.
24803         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24804         Update URL of POSIX specification.
24805
24806 2010-10-02  Bruno Haible  <bruno@clisp.org>
24807
24808         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24809         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24810         from gnulib, not from Automake.
24811
24812 2010-10-02  Bruno Haible  <bruno@clisp.org>
24813
24814         New module 'system-posix'.
24815         * modules/system-posix: New file.
24816         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24817         module is present.
24818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24819         GNULIB_SYSTEM_POSIX.
24820         * modules/stdlib (Depends-on): Remove sys_wait.
24821         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24822         * doc/posix-functions/system.texi: Mention the new module.
24823         * doc/posix-headers/stdlib.texi: Likewise.
24824         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24825         define test_sys_wait_macros to a no-op.
24826         Reported by Sam Steingold <sds@gnu.org>.
24827
24828 2010-09-30  Bruno Haible  <bruno@clisp.org>
24829
24830         More renaming from 'getdate' to 'get_date'.
24831         * doc/get_date.texi: Renamed from doc/getdate.texi.
24832         * modules/get_date (Files): Update.
24833         * MODULES.html.sh (Date and time <time.h>): Update.
24834         * DEPENDENCIES: Update.
24835         * gnulib-tool: Update comment.
24836         * m4/bison.m4 (gl_BISON): Likewise.
24837         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24838
24839 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24840
24841         bootstrap: support ACLOCAL_FLAGS during aclocal
24842         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24843         can add additional -I dir for third-party .m4 files.
24844
24845 2010-09-30  Eric Blake  <eblake@redhat.com>
24846
24847         bootstrap: use glibtoolize on MacOS
24848         * build-aux/bootstrap (check_versions): Convert libtool into
24849         libtoolize.
24850         (tool search): Move libtool check earlier, and look for
24851         glibtoolize for MacOS.
24852         (gnulib_tool_options): Auto-add --libtool when appropriate.
24853         Reported by Justin Clift.
24854
24855         poll: fix typo that broke test on MacOS
24856         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24857         Reported by Justin Clift.
24858
24859         getdate: rename to get_date
24860         Note: getdate.h is not renamed, to minimize client impact.
24861         * modules/getdate: Mark obsolete.  Move old contents...
24862         * modules/get_date: ...to new module name.
24863         * modules/getdate-tests: Move...
24864         * modules/get_date-tests: ...here.
24865         * m4/getdate.m4: Move...
24866         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24867         * lib/getdate.y: Move...
24868         * lib/get_date.y: ...here.
24869         * tests/test-getdate.c: Move...
24870         * tests/test-get_date.c: ...here.
24871         * doc/posix-functions/getdate.texi (getdate): Update name.
24872         * NEWS: Mention the change.
24873
24874 2010-09-29  Bruno Haible  <bruno@clisp.org>
24875
24876         Separate the module 'waitpid' from the module 'sys_wait'.
24877         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24878         present.
24879         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24880         gl_MODULE_INDICATOR_FOR_TESTS.
24881         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24882         * modules/sys_wait (Depends-on): Remove waitpid.
24883         (Makefile.am): Substitute GNULIB_WAITPID.
24884         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24885         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24886         signature only if the 'waitpid' module is present.
24887         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24888         * NEWS: Mention the change.
24889         * modules/grantpt (Depends-on): Add waitpid.
24890         * modules/wait-process (Depends-on): Likewise.
24891
24892 2010-09-29  Bruno Haible  <bruno@clisp.org>
24893
24894         More tests for module 'sys_wait'.
24895         * modules/sys_wait-c++-tests: New file.
24896         * tests/test-sys_wait-c++.cc: New file.
24897         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24898         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24899
24900 2010-09-29  Bruno Haible  <bruno@clisp.org>
24901
24902         New module 'waitpid'.
24903         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24904         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24905         Don't include <process.h>.
24906         (waitpid): Declare only, using modern idiom.
24907         * m4/waitpid.m4: New file.
24908         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24909         * modules/waitpid: New file.
24910         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24911         (Makefile.am): Update.
24912         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24913
24914 2010-09-28  Bruno Haible  <bruno@clisp.org>
24915
24916         poll: Assume ANSI C.
24917         * lib/poll.c (poll): Use an ANSI C declaration.
24918
24919 2010-09-28  Bruno Haible  <bruno@clisp.org>
24920
24921         poll-h: Create poll.h on all platforms.
24922         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24923         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24924         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24925         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24926         (gl_REPLACE_POLL_H): Don't set POLL_H.
24927         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24928         * modules/poll-h (Depends-on): Add include_next.
24929         (Makefile.am): Create poll.h unconditionally. Substitute also
24930         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24931
24932 2010-09-28  Bruno Haible  <bruno@clisp.org>
24933
24934         Tests for module 'poll-h'.
24935         * modules/poll-h-c++-tests: New file.
24936         * tests/test-poll-h-c++.cc: New file.
24937
24938         Tests for module 'poll-h'.
24939         * modules/poll-h-tests: New file.
24940         * tests/test-poll-h.c: New file.
24941
24942 2010-09-28  Bruno Haible  <bruno@clisp.org>
24943
24944         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24945         * modules/poll-h (Depends-on): Add 'extensions'.
24946
24947 2010-09-28  Bruno Haible  <bruno@clisp.org>
24948
24949         New module 'poll-h'.
24950         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24951         (poll): Use modern idiom.
24952         * modules/poll-h: New file.
24953         * modules/poll (Files): Remove lib/poll.in.h.
24954         (Depends-on): Add poll-h.
24955         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24956         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24957         * m4/poll_h.m4: New file.
24958         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24959         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24960         and invoke gl_REPLACE_POLL_H.
24961         * lib/poll.c: Use common idiom.
24962         * tests/test-poll.c: Likewise.
24963         * doc/posix-headers/poll.texi: Mention the poll-h module.
24964         Suggested by Eric Blake.
24965
24966 2010-09-26  Bruno Haible  <bruno@clisp.org>
24967
24968         sys_wait: Implement WSTOPSIG.
24969         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24970         Reported by Simon Josefsson.
24971
24972 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24973
24974         stdlib, sys_wait: Avoid compilation error on mingw.
24975         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24976
24977 2010-09-26  Bruno Haible  <bruno@clisp.org>
24978
24979         stdlib tests: Avoid code duplication.
24980         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24981         * modules/sys_wait-tests (Files): Likewise.
24982         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24983         * tests/test-stdlib.c: Include test-sys_wait.h.
24984         (main): Invoke test_sys_wait_macros.
24985         * tests/test-sys_wait.c: Include test-sys_wait.h.
24986         (main): Invoke test_sys_wait_macros.
24987
24988 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24989
24990         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24991         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24992         sure Windows sockets are working before calling getaddrinfo.
24993         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24994         * doc/gnulib.texi (Windows sockets): Fix typo.
24995
24996 2010-09-25  Bruno Haible  <bruno@clisp.org>
24997
24998         Tests for module 'regex-quote'.
24999         * modules/regex-quote-tests: New file.
25000         * tests/test-regex-quote.c: New file.
25001
25002         New module 'regex-quote'.
25003         * lib/regex-quote.h: New file.
25004         * lib/regex-quote.c: New file.
25005         * modules/regex-quote: New file.
25006         Suggested by Reuben Thomas <rrt@sc3d.org>.
25007
25008 2010-09-24  Bruno Haible  <bruno@clisp.org>
25009
25010         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25011         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25012
25013 2010-09-23  Bruno Haible  <bruno@clisp.org>
25014
25015         setenv: Relax license.
25016         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25017         Blake.
25018         Requested by Eric Blake.
25019
25020 2010-09-22  Bruno Haible  <bruno@clisp.org>
25021
25022         termios: Relax license.
25023         * modules/termios (License): Change to LGPLv2+.
25024         Requested by Eric Blake.
25025
25026 2010-09-22  Bruno Haible  <bruno@clisp.org>
25027
25028         threadlib: Allow the package to change the default to 'no'.
25029         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25030         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25031         Reported by Paul Eggert.
25032
25033 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25034             Bruno Haible  <bruno@clisp.org>
25035
25036         Fix endless loop in mbmemcasecoll.
25037         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25038         byte.
25039         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25040
25041 2010-09-22  Bruno Haible  <bruno@clisp.org>
25042
25043         Tests for module 'memcoll'.
25044         * modules/memcoll-tests: New file.
25045         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25046
25047         memcoll, xmemcoll: Clarify size vs. length.
25048         * modules/memcoll.c (memcoll0): Clarify specification.
25049         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25050         passed to collate_error.
25051
25052 2010-09-22  Bruno Haible  <bruno@clisp.org>
25053
25054         Tests for module 'memcasecmp'.
25055         * modules/memcasecmp-tests: New file.
25056         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25057
25058 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25059
25060         * lib/pthread.in.h: Add split double-inclusion guard, and include
25061         system <pthread.h> if there is one.  Use @@-style as in other
25062         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25063         pthread.h doesn't.
25064         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25065         (pthread_mutexattr_settype, pthread_mutex_trylock):
25066         New static inline functions, if there's no system <pthread.h>.
25067         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25068         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25069         Approximate with mutexes if the system lacks spinlocks, as in
25070         MacOS.
25071         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25072         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25073         @@-style.  Check for spinlocks separately.
25074         (gl_PTHREAD_DEFAULTS): New macro.
25075         * modules/pthread: Redo to use a more typical style for in.h files.
25076
25077 2010-09-21  Eric Blake  <eblake@redhat.com>
25078
25079         net_if: enhance tests
25080         * tests/test-net_if.c (main): Move signature checks earlier.
25081         Print failures to stderr.
25082         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25083         Document the bug that we do not yet fix.
25084
25085 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25086
25087         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25088         about gnulib, not GSS.
25089
25090 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25091
25092         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25093         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25094         for Emacs.
25095         * build-aux/pmccabe2html: Make Makefile.am example code more
25096         cut-and-paste friendly.
25097
25098 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25099
25100         * tests/test-net_if.c: New file.
25101         * modules/net_if-tests: New file.
25102
25103 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25104
25105         pthread: add pthread_spin_destroy
25106         * lib/pthread.in.h (pthread_spin_destroy): New function.
25107
25108 2010-09-19  Bruno Haible  <bruno@clisp.org>
25109
25110         gnulib-tool: Fix --help output.
25111         * gnulib-tool (func_usage): Fix help message.
25112         Reported by Reuben Thomas <rrt@sc3d.org>.
25113
25114 2010-09-18  Jim Meyering  <meyering@redhat.com>
25115
25116         maint.mk: avoid unexpanded \n in two diagnostics
25117         * top/maint.mk (sc_prohibit_always_true_header_tests):
25118         Don't use a literal \n in a halt=... assignment.  It would not be
25119         expanded, and the two \n bytes would appear in the diagnostic output
25120         rather than the desired newline.  Use halt=$$(printf ... instead.
25121         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25122
25123 2010-09-18  Bruno Haible  <bruno@clisp.org>
25124
25125         netinet_in: Doc tweak.
25126         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25127         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25128
25129 2010-09-18  Jim Meyering  <meyering@redhat.com>
25130
25131         init.sh: correct an outdated comment
25132         * tests/init.sh (create_exe_shims_):  s/function/alias/
25133
25134         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25135         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25136         a file named "*.exe" is removed between the glob expansion and the
25137         processing of that oddly named file.
25138
25139 2010-09-17  Eric Blake  <eblake@redhat.com>
25140
25141         mirbsd: add some more support
25142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25143         in BSD family.
25144         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25145         devices as OpenBSD.
25146         * m4/host-os.m4 (mirbsd): Add MirBSD.
25147
25148         tests: fix unportable assumption on sys/wait.h
25149         * tests/test-sys_wait.c (main): Relax test.
25150         * tests/test-stdlib.c (main): Likewise.
25151
25152         init.sh: accomodate directory with no .exes
25153         * tests/init.sh: Accomodate directory containing only scripts.
25154
25155         tests: avoid compiler warning
25156         * tests/test-stdlib.c (main): Use the variable.
25157
25158         fdutimens, fdutimensat: update signature, again
25159         * lib/utimens.h (gl_futimens): Delete, and move signature...
25160         (fdutimens): ...here.
25161         (fdutimensat): Rearrange signature.
25162         (lutimensat): Rename variable for clarity.
25163         * lib/fdutimensat.c (fdutimensat): Update signature.
25164         * lib/utimens.c (fdutimens): Likewise.
25165         (gl_futimens): Delete.
25166         (utimens, lutimens): Update callers.
25167         * lib/futimens.c (futimens): Likewise.
25168         * tests/test-fdutimensat.c: Likewise.
25169         * tests/test-utimens.c: Likewise.
25170         * tests/test-futimens.h: Update comment.
25171         * NEWS: Mention this.
25172         Suggested by Paul Eggert.
25173
25174 2010-09-17  Bruno Haible  <bruno@clisp.org>
25175
25176         Take over the maintenance of some older macros from Autoconf.
25177         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25178         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25179         GNU Autoconf.
25180         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25181         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25182
25183 2010-09-17  Eric Blake  <eblake@redhat.com>
25184
25185         fdutimensat: drop atflag validation
25186         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25187         with valid fd, to close a race scenario where futimens is
25188         unsupported and FILE was replaced by a symlink.
25189         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25190         accordingly.
25191         Suggested by Paul Eggert.
25192
25193 2010-09-16  Bruno Haible  <bruno@clisp.org>
25194
25195         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25196         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25197
25198 2010-09-16  Bruno Haible  <bruno@clisp.org>
25199
25200         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25201         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25202         login_tty exists.
25203         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25204
25205 2010-09-16  Bruno Haible  <bruno@clisp.org>
25206
25207         login_tty: Make the replacement code work on BSD systems.
25208         * lib/login_tty.c: Include <sys/ioctl.h>.
25209         (login_tty): Use ioctl TIOCSCTTY when available.
25210         * modules/login_tty (Depends-on): Add sys_ioctl.
25211         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25212
25213 2010-09-16  Bruno Haible  <bruno@clisp.org>
25214
25215         login_tty: Stricter unit test.
25216         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25217         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25218         and tcgetsid() after login_tty.
25219         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25220
25221 2010-09-16  Bruno Haible  <bruno@clisp.org>
25222
25223         New module 'tcgetsid'.
25224         * lib/tcgetsid.c: New file.
25225         * m4/tcgetsid.m4: New file.
25226         * modules/tcgetsid: New file.
25227         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25228         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25229         GNULIB_TCGETSID, HAVE_TCGETSID.
25230         * lib/termios.in.h: Include <sys/types.h>.
25231         (tcgetsid): New declaration.
25232         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25233         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25234         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25235         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25236
25237 2010-09-16  Bruno Haible  <bruno@clisp.org>
25238
25239         Tests for module 'termios'.
25240         * modules/termios-c++-tests: New file.
25241         * modules/termios-tests: New file.
25242         * tests/test-termios-c++.cc: New file.
25243         * tests/test-termios.c: New file.
25244
25245         New module 'termios'.
25246         * modules/termios: New file.
25247         * lib/termios.in.h: New file.
25248         * m4/termios_h.m4: New file.
25249         * doc/posix-headers/termios.texi: Mention the new module.
25250
25251 2010-09-16  Eric Blake  <eblake@redhat.com>
25252
25253         fdutimensat: add an atflag parameter
25254         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25255         * lib/utimens.h (fdutimensat): Update prototype.
25256         * tests/test-fdutimensat.c: Adjust test to match.
25257         * NEWS: Document the change.
25258         Suggested by Paul Eggert.
25259
25260 2010-09-16  Bruno Haible  <bruno@clisp.org>
25261
25262         Fix typos in comments.
25263         * lib/striconveh.h: Fix typo in comment.
25264         * lib/login_tty.c (login_tty): Likewise.
25265
25266 2010-09-15  Bruno Haible  <bruno@clisp.org>
25267
25268         stdlib: clarify MirBSD WEXITSTATUS bug
25269         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25270         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25271
25272 2010-09-15  Eric Blake  <eblake@redhat.com>
25273
25274         stdlib: work around MirBSD WEXITSTATUS bug
25275         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25276         * modules/stdlib (Depends-on): Add sys_wait.
25277         * tests/test-sys_wait.c (main): Enhance test.
25278         * tests/test-stdlib.c (main): Likewise.
25279         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25280
25281         docs: mention MacOS issue with WEXITSTATUS(constant)
25282         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25283         issue.
25284         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25285
25286         strnlen: add tests
25287         * modules/strnlen-tests: New file.
25288         * tests/test-strnlen.c: Likewise.
25289
25290 2010-09-14  Bruno Haible  <bruno@clisp.org>
25291
25292         unistr/base: Avoid link errors when module 'libunistring' is also used.
25293         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25294         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25295         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25296         Declare also when HAVE_LIBUNISTRING is set.
25297         Reported by Pádraig Brady <P@draigbrady.com>.
25298
25299 2010-09-14  Eric Blake  <eblake@redhat.com>
25300
25301         test-rawmemchr: make more robust
25302         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25303         (Depends-on, configure.ac): Add needed prerequisites to use it.
25304         * modules/memchr-tests (Files, Depends-on, configure.ac):
25305         Likewise, to avoid implicit reliance on memchr module prereqs.
25306         * tests/test-memchr.c (main): Ensure proper masking.
25307         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25308         reads.
25309
25310         memchr: detect glibc Alpha bug
25311         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25313         Alpha.
25314         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25315         * tests/test-memchr.c (main): Enhance test.
25316         Reported by Nelson H. F. Beebe.
25317
25318 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25319
25320         fts, getcwd, glob: audit for dirfd returning -1
25321         * lib/fts.c (opendir): Remove #define; no longer used.
25322         (opendirat): New arg PDIR_FD.  All callers changed.
25323         (fts_build, _opendir2): Use new opendirat to avoid the need for
25324         dirfd, or for checking whether dirfd returns a negative value.
25325         Don't use opendir; always use openat followed by fdopendir.
25326         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25327         it.
25328         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25329         returns -1 here.
25330         * modules/fts (Depends-on): Remove dirfd.
25331         * modules/getcwd (Depends-on): Likewise.
25332
25333 2010-09-13  Eric Blake  <eblake@redhat.com>
25334
25335         float: fix broken MirBSD header
25336         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25337         * doc/posix-headers/float.texi (float.h): Document it.
25338
25339 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25340
25341         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25342         * lib/fts.c (opendirat): New arg extra_flags.
25343         (__opendir2): Use it to avoid following symlinks when opening
25344         a directory, if symlinks are not supposed to be followed.  See
25345         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25346
25347         fdopendir: preserve argument fd before returning
25348         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25349         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25350         (fdopendir): Use them, arranging for FD to be open to the same
25351         directory that it was when it started.  (It might be temporarily
25352         closed while fdopendir is running, so this not thread- or
25353         signal-safe.)  Be careful to do the right thing even when file
25354         descriptors are scarce and dup fails with errno == EMFILE.  See
25355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25356
25357 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25358
25359         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25360         * NEWS: Document change.
25361         * m4/regex.m4: Disable test for regoff_t size.
25362
25363 2010-09-13  Jim Meyering  <meyering@redhat.com>
25364
25365         fts: don't operate on an invalid file descriptor after failed dup
25366         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25367         negative file descriptor.
25368
25369 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25370
25371         savedir: add streamsavedir, deprecate fdsavedir
25372         * NEWS: Mention deprecation of fdsavedir.
25373         * lib/savedir.c (streamsavedir): New extern function, whose name
25374         ends in "savedir" to be consistent with the others.  This differs
25375         from savedirstream in that it doesn't close its argument.  The
25376         next version of GNU tar will use this instead of fdsavedir, to
25377         avoid some race conditions and conserve file descriptors.
25378         (savedirstream): Reimplement as a wrapper around streamsavedir.
25379         (fdsavedir): Add a comment deprecating this function.  As far as
25380         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25381         * lib/savedir.h (streamsavedir): New decl.
25382         (fdsavedir): Add a comment deprecating this.
25383
25384 2010-09-10  Bruno Haible  <bruno@clisp.org>
25385
25386         langinfo: Fix last commit.
25387         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25388         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25390
25391 2010-09-10  Bruno Haible  <bruno@clisp.org>
25392
25393         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25394         * lib/progreloc.c (O_EXEC): Define fallback.
25395
25396 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25397
25398         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25399         * NEWS: Document recent changes to fcntl-h.
25400         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25401         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25402         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25403         Similarly for O_SEARCH; this last was already true, but not documented.
25404         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25405         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25406         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25407         Likewise.
25408         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25409         is zero, not whether it is defined.
25410         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25411         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25412         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25413
25414 2010-09-10  Bruno Haible  <bruno@clisp.org>
25415
25416         langinfo, nl_langinfo: Fix for IRIX 5.3.
25417         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25418         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25419         HAVE_LANGINFO_YESEXPR.
25420         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25421         HAVE_LANGINFO_YESEXPR.
25422         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25423         HAVE_LANGINFO_T_FMT_AMPM is 0.
25424         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25425         HAVE_LANGINFO_YESEXPR is 0.
25426         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25427         NOEXPR.
25428         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25429         * doc/posix-functions/nl_langinfo.texi: Likewise.
25430         Reported by Eric Blake.
25431
25432 2010-09-10  Bruno Haible  <bruno@clisp.org>
25433
25434         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25435         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25436         on FreeBSD 8.0 and OpenBSD 4.6.
25437         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25438         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25439         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25440         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25441         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25442         ac_includes_default.
25443         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25444
25445 2010-09-09  Eric Blake  <eblake@redhat.com>
25446
25447         strsignal: work around NetBSD bug
25448         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25449         * lib/string.in.h (includes): Likewise.
25450         * doc/posix-functions/strsignal.texi (strsignal): Document the
25451         bug.
25452         Reported by Nelson H. F. Beebe.
25453
25454         gnulib-tool: work with NetBSD /bin/sh
25455         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25456         (func_get_description, func_get_comment, func_get_status)
25457         (func_get_notice, func_get_applicability, func_get_filelist)
25458         (func_get_dependencies, func_get_autoconf_early_snippet)
25459         (func_get_autoconf_snippet, func_get_automake_snippet)
25460         (func_get_include_directive, func_get_link_directive)
25461         (func_get_license, func_get_maintainer, func_import): Avoid
25462         shell syntax errors from parsing syntax extensions.
25463
25464 2010-09-09  Bruno Haible  <bruno@clisp.org>
25465
25466         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25467         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25468         a reliable way to determine whether the 'alias' command works.
25469
25470 2010-09-08  Jim Meyering  <meyering@redhat.com>
25471
25472         init.sh: penalize a set-x-impaired shell; don't disqualify it
25473         * tests/init.sh: Too many shells corrupt application stderr when
25474         you set -x, so we can't afford to disqualify them, since at least
25475         on Irix-6.5, that would disqualify all bourne shells.
25476         Instead, use a two-pass approach.
25477         On the first pass, try to find a shell that meets the stricter
25478         condition that set -x does not corrupt stderr.
25479         If no shell meets the stricter condition, retest each candidate
25480         shell, but without that extra condition.  Finally, when
25481         VERBOSE=yes is requested and set -x might cause trouble, simply
25482         issue a warning and refrain from enabling debug output.
25483
25484 2010-09-08  Eric Blake  <eblake@redhat.com>
25485
25486         unsetenv: fix OpenBSD bug
25487         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25488         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25489         documentation.
25490         Reported by Jim Meyering.
25491
25492         strtod: work around IRIX 6.5 bug
25493         * lib/strtod.c (strtod): Reparse number on shorter string if
25494         exponent parse was invalid.
25495         * tests/test-strtod.c (main): Add check for "0x1p 2".
25496         Reported by Tom G. Christensen.
25497
25498         getopt: optimize previous patch
25499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25500         empty variable.  Speed up awk script.
25501         Reported by Paolo Bonzini.
25502
25503 2010-09-08  Jim Meyering  <meyering@redhat.com>
25504
25505         test.sh: disqualify shells for which set -x corrupts stderr
25506         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25507         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25508         appear in stderr output.  For example, this command:
25509             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25510         prints "P=1" on those two systems:
25511
25512 2010-09-08  Bruno Haible  <bruno@clisp.org>
25513
25514         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25515         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25516         commands, because some shells ignore redirections when there is an
25517         error in the command lookup.
25518         Reported by Eric Blake.
25519
25520 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25521
25522         * lib/regex.h: Fix a mention of `regex_compile' (should be
25523         `re_compile_pattern').
25524         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25525         (re_set_registers): Correct name of parameter in comment.
25526
25527         * doc/regex.texi: Add documentation for missing syntax flags.
25528         Remove commented-out documentation of defunct syntax option
25529         RE_NO_EMPTY_ALTS.
25530         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25531         Add documentation of re_set_registers.
25532         Document trick to re-use a pattern buffer by setting fastmap manually.
25533         Update documentation of struct re_pattern_buffer per public members.
25534         Uncomment documentation of equivalence class operators and
25535         collating symbol operators, since they are now implemented,
25536         Explain leftmost-longest matching in relation to alternatives.
25537         Tidy documentation of substring matching.
25538         Remove POSIX documentation, which is done better in
25539         glibc, and refer the reader there. Keep BSD API documentation, as
25540         that is not readily available elsewhere.
25541
25542 2010-09-07  Eric Blake  <eblake@redhat.com>
25543
25544         getopt: handle POSIXLY_CORRECT set but not exported
25545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25546         export state of POSIXLY_CORRECT, due to bash set -o posix.
25547         Reported by Dustin J. Mitchell.
25548
25549 2010-09-05  Bruno Haible  <bruno@clisp.org>
25550
25551         gnulib-tool: Highlight the changed options.
25552         * gnulib-tool (func_usage): Display the --import, --add-import,
25553         --remove-import explanations in bold font.
25554
25555 2010-09-06  Karl Berry  <karl@gnu.org>
25556
25557         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25558
25559 2010-09-05  Bruno Haible  <bruno@clisp.org>
25560
25561         uniwidth/width: Update comment.
25562         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25563         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25564
25565 2010-09-05  Bruno Haible  <bruno@clisp.org>
25566
25567         isinf, isnan: Relax license.
25568         * modules/isinf (License): Change from GPL to LGPL, with consent from
25569         Ben Pfaff.
25570         * modules/isnan (License): Likewise.
25571         Requested by Ludovic Courtès.
25572
25573 2010-09-04  Bruno Haible  <bruno@clisp.org>
25574
25575         gnulib-tool: Help migration from --import to --add-import or --update.
25576         * gnulib-tool: Emit a verbose error message when --import is used
25577         without any module name.
25578
25579 2010-09-04  Bruno Haible  <bruno@clisp.org>
25580
25581         Update doc about gnulib-tool.
25582         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25583         'gnulib-tool --update' in more detail.
25584         Reported by Eric Blake.
25585
25586 2010-09-04  Bruno Haible  <bruno@clisp.org>
25587
25588         gnulib-tool: Change --import. New options --add/remove-import.
25589         * gnulib-tool: New options --add-import, --remove-import.
25590         (func_usage): Document them.
25591         (have_associative): Define always.
25592         (func_import): In import mode, don't merge the specified settings with
25593         the cached settings. Implement remove-import mode.
25594         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25595         Explain when to use them versus --import.
25596         (Simple update): Use --add-import instead of --import.
25597         * NEWS: Mention the change.
25598
25599 2010-09-04  Bruno Haible  <bruno@clisp.org>
25600
25601         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25602         separate gnulib.mk.
25603
25604 2010-09-04  Bruno Haible  <bruno@clisp.org>
25605
25606         gnulib-tool: Don't talk about CVS any more.
25607         * gnulib-tool (func_usage, func_import): Write "version control"
25608         instead of CVS.
25609
25610 2010-09-04  Jim Meyering  <meyering@redhat.com>
25611
25612         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25613         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25614         false positives (whose names may be ill-chosen) when searching
25615         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25616         would cause a false-positive.
25617
25618         avoid coreutils "make distcheck" failure
25619         Coreutils tests with an absolute build directory name that contains
25620         a space.  Not quoting this directory name caused a failure.
25621         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25622         * tests/test-vc-list-files-cvs.sh: Likewise.
25623
25624 2010-09-04  Bruno Haible  <bruno@clisp.org>
25625
25626         gnulib-tool: Avoid error when run in a package without Makefile.am.
25627         * gnulib-tool: When collecting the m4dirs in a package that does not
25628         have a Makefile.am, eliminate those directories that contain no
25629         gnulib-cache.m4. Fix expression that counts these directories.
25630
25631 2010-09-04  Bruno Haible  <bruno@clisp.org>
25632
25633         update-copyright test: Improve output when perl is missing or too old.
25634         * tests/test-update-copyright.sh: Move test of Perl version down after
25635         the test whether Perl exists. Provide an explanation relating Perl's
25636         error message to Automake's SKIP: message.
25637
25638 2010-09-04  Bruno Haible  <bruno@clisp.org>
25639
25640         Don't augment PATH in TESTS_ENVIRONMENT.
25641         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25642         set abs_aux_dir instead of augmenting PATH.
25643         * modules/vc-list-files-tests (Makefile.am): Likewise.
25644         * tests/test-update-copyright.sh: Augment PATH here.
25645         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25646         path_prepend_.
25647         * tests/test-vc-list-files-git.sh: Likewise.
25648
25649 2010-09-04  Jim Meyering  <meyering@redhat.com>
25650
25651         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25652         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25653
25654 2010-09-04  Bruno Haible  <bruno@clisp.org>
25655
25656         strdup: Fix compilation error in C++ mode.
25657         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25658         the macro.
25659
25660 2010-09-04  Bruno Haible  <bruno@clisp.org>
25661
25662         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25663         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25664         macro into a function.
25665         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25666
25667 2010-09-04  Bruno Haible  <bruno@clisp.org>
25668
25669         Set PATH_SEPARATOR the same way autoconf does.
25670         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25671         the value of PATH_SEPARATOR the same way autoconf-generated configure
25672         scripts do.
25673         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25674         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25675
25676 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25677
25678         Set PATH_SEPARATOR the same way autoconf does.
25679         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25680         the same way autoconf-generated configure scripts do.
25681         * posix-modules: Likewise.
25682
25683 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25684
25685         hash: fix safe_hasher const typo
25686         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25687         const; otherwise, there is a type error later.
25688
25689 2010-09-02  Jim Meyering  <meyering@redhat.com>
25690
25691         test-update-copyright.sh: require perl 5.8.0
25692         * tests/test-update-copyright.sh: Require 5.8.0,
25693         which Tom G. Christensen has confirmed is adequate,
25694         while 5.6.1 is not.
25695
25696 2010-09-02  Eric Blake  <eblake@redhat.com>
25697
25698         tests: init.sh improvements for re-exec'ing with zsh
25699         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25700         -vx through shell re-exec.
25701         Reported by Tom G. Christensen.
25702
25703         wctype: fix typo in previous commit
25704         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25705         Reported by Ludovic Courtès.
25706
25707 2010-09-02  Jim Meyering  <meyering@redhat.com>
25708
25709         test-update-copyright.sh: skip test if Perl is too old
25710         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25711         Reported by Tom G. Christensen.
25712
25713 2010-09-02  Bruno Haible  <bruno@clisp.org>
25714
25715         wctype: Avoid compilation error on IRIX 6.5.30.
25716         * lib/wctype.in.h (iswblank): Declare with a replacement if
25717         REPLACE_ISWBLANK is set.
25718         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25719         declared. Set REPLACE_ISWBLANK.
25720         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25721         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25722         * doc/posix-headers/wctype.texi: Likewise.
25723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25724
25725 2010-09-01  Bruno Haible  <bruno@clisp.org>
25726
25727         New module 'socketlib'.
25728         * modules/socketlib: New file.
25729         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25730         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25731         * modules/sockets (Depends-on): Add socketlib.
25732         Suggested by Sam Steingold <sds@gnu.org>.
25733
25734 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25735
25736         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25737
25738         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25739         when one needs search access to a directory but not read access.
25740         On systems where it is available, it works in some cases where
25741         O_RDONLY does not, namely on directories that are searchable but
25742         not readable, and which need only to be searchable.  If O_SEARCH
25743         is not available, fall back to the traditional method of using
25744         O_RDONLY.
25745
25746         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25747         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25748         when opening a directory that needs only to be searchable.
25749         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25750         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25751         * lib/openat-proc.c (openat_proc_name): Likewise.
25752         * lib/openat.c (openat_needs_fchdir): Likewise.
25753         * lib/save-cwd.c (save_cwd): Likewise.
25754         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25755
25756 2010-08-28  Bruno Haible  <bruno@clisp.org>
25757
25758         New module 'host-cpu-c-abi'.
25759         * modules/host-cpu-c-abi: New file.
25760         * m4/host-cpu-c-abi.m4: New file, based on part of
25761         clisp/src/m4/general.m4.
25762         Requested by Sam Steingold <sds@gnu.org>.
25763
25764 2010-08-31  Eric Blake  <eblake@redhat.com>
25765         and Jim Meyering  <meyering@redhat.com>
25766
25767         hash: factor, and guard against misbehaving hasher function
25768         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25769         of table->hasher's return value.  Also protect against a hash value
25770         so large that adding it to table->bucket results in a NULL pointer.
25771         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25772         Use it in place of open-coded check-and-abort.
25773
25774 2010-08-30  Bruno Haible  <bruno@clisp.org>
25775
25776         hash: silence spurious clang warning
25777         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25778         Reported by Eric Blake.
25779
25780 2010-08-30  Eric Blake  <eblake@redhat.com>
25781
25782         strstr, memmem, strcasestr: avoid leaked shell message
25783         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25784         FreeBSD.
25785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25787
25788         tests: silence clang warning
25789         * tests/test-malloca.c (do_allocation): Avoid dead store.
25790
25791 2010-08-29  Bruno Haible  <bruno@clisp.org>
25792
25793         gettext: Fix recent mistake.
25794         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25795
25796 2010-08-29  Bruno Haible  <bruno@clisp.org>
25797
25798         selinux-h: Offer a --without-selinux option.
25799         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25800         --without-selinux was specified, skip all tests and define
25801         HAVE_SELINUX_SELINUX_H to 0.
25802         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25803         set LIB_SELINUX to empty.
25804         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25805         gl_LIBSELINUX. If --without-selinux was specified, replace
25806         selinux/context.h.
25807         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25808
25809 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25810             Bruno Haible  <bruno@clisp.org>
25811
25812         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25813         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25814         of HAVE_REALLOC.
25815         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25816         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25817         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25818         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25819
25820 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25821             Bruno Haible  <bruno@clisp.org>
25822
25823         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25824         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25825         HAVE_CALLOC.
25826         * lib/xmalloc.c: Update accordingly.
25827         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25828         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25829         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25830
25831 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25832             Bruno Haible  <bruno@clisp.org>
25833
25834         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25835         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25836         HAVE_MALLOC.
25837         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25838         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25839         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25840
25841 2010-08-29  Bruno Haible  <bruno@clisp.org>
25842
25843         Update modules list.
25844         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25845         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25846         (String handling <string.h>): Add astrxfrm.
25847         (File system functions): Add readlinkat.
25848
25849 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25850
25851         Tests for module 'realloc-gnu'.
25852         * modules/realloc-gnu-tests: New file.
25853         * tests/test-realloc-gnu.c: New file.
25854
25855         Tests for module 'calloc-gnu'.
25856         * modules/calloc-gnu-tests: New file.
25857         * tests/test-calloc-gnu.c: New file.
25858
25859         Tests for module 'malloc-gnu'.
25860         * modules/malloc-gnu-tests: New file.
25861         * tests/test-malloc-gnu.c: New file.
25862
25863 2010-08-28  Bruno Haible  <bruno@clisp.org>
25864
25865         Rename module 'realloc' -> 'realloc-gnu'.
25866         * modules/realloc-gnu: New file, copied from modules/realloc.
25867         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25868         obsolete.
25869         * modules/mgetgroups (Depends-on): Update.
25870         * doc/posix-functions/realloc.texi: Update.
25871         * NEWS: Mention the change.
25872
25873         Rename module 'calloc' -> 'calloc-gnu'.
25874         * modules/calloc-gnu: New file, copied from modules/calloc.
25875         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25876         obsolete.
25877         * doc/posix-functions/calloc.texi: Update.
25878         * NEWS: Mention the change.
25879
25880         Rename module 'malloc' -> 'malloc-gnu'.
25881         * modules/malloc-gnu: New file, copied from modules/malloc.
25882         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25883         obsolete.
25884         * modules/argp (Depends-on): Update.
25885         * modules/regex (Depends-on): Update.
25886         * doc/posix-functions/malloc.texi: Update.
25887         * NEWS: Mention the change.
25888
25889 2010-08-28  Eric Blake  <eblake@redhat.com>
25890
25891         pread, pwrite: add missing dependency
25892         * modules/pread (Depends-on): Add extensions.
25893         * modules/pwrite (Depends-on): Likewise.
25894
25895 2010-08-28  Bruno Haible  <bruno@clisp.org>
25896
25897         unistr/u*-strchr: Fix tests dependencies.
25898         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25899         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25900         Reported by Ian Beckwith <ianb@erislabs.net>.
25901
25902 2010-08-28  Bruno Haible  <bruno@clisp.org>
25903
25904         read-file: Don't occupy too much unused memory.
25905         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25906
25907 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25908             Eric Blake  <eblake@redhat.com>
25909             Bruno Haible  <bruno@clisp.org>
25910
25911         read-file: Avoid memory reallocations with regular files.
25912         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25913         (fread_file): With regular files, use the remaining length as the
25914         initial buffer size.  Check against overflow.
25915         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25916         sys_stat.
25917
25918 2010-08-28  Bruno Haible  <bruno@clisp.org>
25919
25920         ftello: Relax license.
25921         * modules/ftello (License): Relax to LGPLv2+.
25922         Reported by Eric Blake.
25923
25924 2010-08-28  Bruno Haible  <bruno@clisp.org>
25925
25926         Avoid relocwrapper link errors due to gnulib replacement functions.
25927         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25928         function.
25929         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25930
25931 2010-08-28  Bruno Haible  <bruno@clisp.org>
25932
25933         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25934         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25935         defined.
25936         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25937         Suggested by Eric Blake.
25938
25939 2010-08-28  Bruno Haible  <bruno@clisp.org>
25940
25941         sys_socket, netdb: Ensure socklen_t gets defined.
25942         * modules/sys_socket (Depends-on): Add socklen.
25943         * modules/netdb (Depends-on): Likewise.
25944         * modules/getaddrinfo (Depends-on): Remove socklen.
25945         * modules/getsockopt (Depends-on): Likewise.
25946         * modules/setsockopt (Depends-on): Likewise.
25947         * tests/test-sys_socket.c: Check that socklen_t is defined.
25948         * tests/test-netdb.c: Likewise.
25949         * m4/socklen.m4: Update comments.
25950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25951
25952 2010-08-27  Eric Blake  <eblake@redhat.com>
25953
25954         login_tty: add missing dependency
25955         * modules/login_tty (Depends-on): Add pty.
25956
25957 2010-08-26  Eric Blake  <eblake@redhat.com>
25958
25959         lib-symbol-versions: fix m4 quoting
25960         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25961         format for AC_LINK_IFELSE.
25962
25963         glob: fix compile test
25964         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25965
25966         btowc: fix missing file
25967         * modules/btowc (Files): Also ship locale-fr.m4.
25968
25969         lseek: fix link test
25970         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25971         AC_LINK_IFELSE.
25972
25973         include_next: silence autoconf 2.68 warning
25974         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25975         AC_COMPILE_IFELSE as special.
25976         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25977         autoconf < 2.68.
25978
25979         acl: fix compilation test
25980         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25981         AC_COMPILE_IFELSE.
25982
25983 2010-08-26  Bruno Haible  <bruno@clisp.org>
25984
25985         Modernize AC_TRY_RUN invocations.
25986         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25987         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25988         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25989         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25990         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25991         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25992         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25994         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25995         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25996         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25997         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25998         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25999         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26001         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26002         gl_MBRLEN_NUL_RETVAL): Likewise.
26003         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26004         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26005         Likewise.
26006         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26007         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26008         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26009         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26010         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26011         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26012         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26013         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26014         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26015         Likewise.
26016         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26017         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26019         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26020         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26021         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26023         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26024         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26026
26027 2010-08-26  Bruno Haible  <bruno@clisp.org>
26028
26029         Modernize AC_TRY_LINK invocations.
26030         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26031         AC_TRY_LINK.
26032         * m4/argp.m4 (gl_ARGP): Likewise.
26033         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26034         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26035         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26036         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26037         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26038         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26039         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26040         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26041         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26042         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26043         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26044         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26045         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26046         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26047         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26048         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26049         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26050         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26051         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26052         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26053         Likewise.
26054         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26055         Likewise.
26056         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26057         Likewise.
26058         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26059         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26060         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26061         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26062         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26063         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26064         * m4/servent.m4 (gl_SERVENT): Likewise.
26065         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26066         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26067         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26068         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26069         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26070         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26071         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26072         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26073         * modules/tsearch-tests (configure.ac): Likewise.
26074
26075 2010-08-26  Bruno Haible  <bruno@clisp.org>
26076
26077         Modernize AC_TRY_COMPILE invocations.
26078         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26079         AC_TRY_COMPILE.
26080         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26081         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26082         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26083         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26084         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26085         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26086         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26087         * m4/lock.m4 (gl_LOCK): Likewise.
26088         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26089         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26090         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26092         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26093         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26094         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26096         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26097         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26098         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26099         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26100         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26101         extraneous semicolon.
26102
26103 2010-08-26  Jim Meyering  <meyering@redhat.com>
26104
26105         stat-time: relax license LGPL
26106         * modules/stat-time (License): Change from GPL to LGPL,
26107         with consent from all contributors, for use in libguile.
26108         Requested by Ludovic Courtès.
26109
26110 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26111
26112         poll: return immediately on POLLHUP.
26113         * lib/poll.c (poll): Always set timeout before wait_timeout is
26114         computed.
26115
26116 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26117
26118         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26119         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26120         rmdir ("dir/.//"), unlinkat.
26121
26122 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26123
26124         stdbool: avoid spurious failure with modern xlc
26125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26126
26127 2010-08-24  Bruno Haible  <bruno@clisp.org>
26128
26129         getloadavg: simplify code
26130         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26131         gl_have_func. Update comments.
26132
26133 2010-08-24  Eric Blake  <eblake@redhat.com>
26134
26135         getloadavg: don't define SVR4 on cygwin
26136         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26137         only define SVR4 when -lkvm is required.
26138         Reported by Yaakov Selkowitz.
26139
26140 2010-08-24  Bruno Haible  <bruno@clisp.org>
26141
26142         priv-set: fix comment
26143         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26144
26145 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26146
26147         priv-set: fix comments
26148         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26149         to match code, as suggested by David Bartley in:
26150         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26151
26152 2010-08-23  Eric Blake  <eblake@redhat.com>
26153
26154         stdbool: avoid rejecting clang
26155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26156         * tests/test-stdbool.c: Enable more tests if using the system
26157         <stdbool.h> instead of the gnulib replacement.
26158         (main): Move xlc bug test to a runtime test for all compilers.
26159         Reported by Anders Kaseorg.
26160
26161         argz: fix shell quoting issue
26162         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26163         Reported by Charles Wilson.
26164
26165 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26166             Erik Faye-Lund <kusmabite@gmail.com>
26167
26168         poll, select: handle ERROR_BROKEN_PIPE.
26169         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26170         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26171         * lib/select.c (win32_compute_revents): Do not mark a pipe
26172         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26173
26174 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26175
26176         fts: allow compilation with C++
26177         * lib/fts_.h: Specify extern "C" linkage with C++.
26178
26179 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26180
26181         Fix gnulib-tool sed script de-commentation for AIX sed.
26182         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26183         sed.
26184
26185 2010-08-17  Eric Blake  <eblake@redhat.com>
26186
26187         test-stddef: test for (some) offsetof bugs
26188         * tests/test-stddef.c: Enhance test to ensure correct type of
26189         offsetof.
26190         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26191         that we are not fixing at this time.
26192
26193 2010-08-15  Bruno Haible  <bruno@clisp.org>
26194
26195         stpncpy: Allow stpncpy to be defined as a macro.
26196         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26197         if it's already correctly declared.
26198         * lib/string.in.h (stpncpy): Undefine before redefining.
26199         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26200
26201 2010-08-14  Bruno Haible  <bruno@clisp.org>
26202
26203         Rename module 'memxfrm' to 'amemxfrm'.
26204         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26205         (amemxfrm): Renamed from memxfrm.
26206         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26207         (amemxfrm): Renamed from memxfrm.
26208         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26209         * NEWS: Mention the change.
26210         * MODULES.html.sh (String handling <string.h>): Update.
26211         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26212         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26213         * lib/unicase/u16-casexfrm.c: Likewise.
26214         * lib/unicase/u32-casexfrm.c: Likewise.
26215         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26216         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26217         * lib/uninorm/u16-normxfrm.c: Likewise.
26218         * lib/uninorm/u32-normxfrm.c: Likewise.
26219         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26220         memxfrm.
26221         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26222         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26223         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26224         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26225         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26226         Suggested by Paul Eggert.
26227
26228 2010-08-14  Bruno Haible  <bruno@clisp.org>
26229
26230         Tests for module 'astrxfrm'.
26231         * modules/astrxfrm-tests: New file.
26232         * tests/test-astrxfrm.c: New file.
26233
26234         New module 'astrxfrm'.
26235         * lib/astrxfrm.h: New file.
26236         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26237         * modules/astrxfrm: New file.
26238
26239 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26240
26241         regex: Tweak doc.
26242         * doc/regex.texi (Overview): Don't mention regex.c.
26243         (GNU Regular Expression Compiling): Likewise.
26244         (Match-end-of-line Operator): Mention 'not_eol'.
26245
26246 2010-08-14  Brian Gough  <bjg@gnu.org>
26247             Bruno Haible  <bruno@clisp.org>
26248
26249         git-merge-changelog: add doc relating to use with bzr and hg.
26250         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26251
26252 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26253
26254         pthread: fix pthread.h creation for srcdir != builddir
26255         * modules/pthread (Makefile.am): Fix the rule to work also in a
26256         non-srcdir build.
26257
26258 2010-08-13  Karl Berry  <karl@gnu.org>
26259
26260         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26261         * doc/posix-*/*: force line break before @url of POSIX
26262         specifications.
26263         Suggested by Werner Lemberg.
26264
26265 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26266
26267         strtod: fix const diagnostic
26268         * lib/strtod.c (strtod): Don't assign const char * to char *,
26269         as this elicits a warning from GCC when warnings are enabled.
26270
26271 2010-08-10  Pádraig Brady <P@draigbrady.com>
26272         and Eric Blake  <eblake@redhat.com>
26273
26274         copy-acl: ignore ENOTSUP on HP-UX
26275         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26276         so that it is available for HP-UX.
26277         * lib/copy-acl.c (qcopy_acl): Use it.
26278         Reported by Patrick M. Callahan.
26279
26280 2010-08-10  Eric Blake  <eblake@redhat.com>
26281
26282         open, chown: relax license
26283         * modules/open (License): Change to LGPLv2+, with consent by all
26284         authors, for use in augeas.
26285         * modules/chown (License): Likewise.
26286         * modules/lchown (Likewise): Likewise.
26287         Requested by Adam Stokes.
26288
26289 2010-08-09  Karl Berry  <karl@gnu.org>
26290
26291         * build-aux/ar-lib: new file, import from Automake.
26292         * config/srclist.txt: autocheck for updates.
26293
26294 2010-08-09  Eric Blake  <eblake@redhat.com>
26295
26296         readlinkat: adjust client modules
26297         * modules/areadlinkat (Depends-on): Use readlinkat, not
26298         symlinkat.
26299         * modules/areadlinkat-with-size (Depends-on): Likewise.
26300
26301         mknod: be more vocal about danger of running tests as root
26302         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26303         root, since that is just asking for problems.
26304         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26305
26306         readlinkat: split into its own module
26307         * modules/symlinkat: Split readlinkat...
26308         * modules/readlinkat: ...into separate module.
26309         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26310         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26311         * lib/symlinkat.c (readlinkat): Move...
26312         * lib/readlinkat.c: ...into new file.
26313         * modules/symlinkat-tests: Split readlinkat test...
26314         * modules/readlinkat-tests: ...into separate module.
26315         * tests/test-symlinkat.c: Split...
26316         * tests/test-readlinkat.c: ...into new file.
26317         * NEWS: Document the split.
26318         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26319         * lib/unistd.in.h (readlinkat): Likewise.
26320         Suggested by Bruno Haible.
26321
26322 2010-08-08  Bruno Haible  <bruno@clisp.org>
26323
26324         memxfrm: Speed up.
26325         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26326         that usually only one call to strxfrm is necessary for each string
26327         part.
26328         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26329
26330 2010-08-07  Karl Berry  <karl@gnu.org>
26331
26332         * doc/posix-headers/limits.texi,
26333         * doc/posix-functions/malloc.texi,
26334         * doc/posix-functions/strsignal.texi: missing @item.
26335         * doc/ld-version-script.texi: spurious leading i.
26336         * doc/regex.texi (Interval Operators): no commas inside @var.
26337
26338 2010-08-01  Bruno Haible  <bruno@clisp.org>
26339
26340         Integrate the regex documentation.
26341         * doc/gnulib.texi: Define 'cn' index.
26342         (Regular expressions): New a chapter that includes regex.texi and
26343         regexprops-generic.texi.
26344         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26345         syntax.
26346
26347         Whitespace cleanup.
26348         * doc/regex.texi: Remove trailing spaces.
26349
26350         Add regex documentation.
26351         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26352         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26353         Written by Kathy A. Hargreaves and Karl Berry.
26354
26355 2010-08-01  Bruno Haible  <bruno@clisp.org>
26356
26357         link: Update documentation.
26358         * doc/posix-functions/link.texi: Update regarding Solaris.
26359
26360 2010-07-31  Bruno Haible  <bruno@clisp.org>
26361
26362         Update modules list.
26363         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26364         (String handling <string.h>): Add memcmp2, memxfrm.
26365         (Container data structures): Add xlist, xsublist, xoset.
26366         (Core language properties): Add alignof, unused-parameter.
26367         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26368         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26369         (Unibyte characters <ctype.h>): New section.
26370         (String handling <string.h>): New section.
26371         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26372         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26373         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26374         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26375         tan, tanh, tanl, y0, y1, yn.
26376         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26377         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26378         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26379         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26380         unlockpt, vdprintf, vdprintf-posix.
26381         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26382         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26383         xconcat-filename.
26384         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26385         getdtablesize, pipe2, pipe2-safer.
26386         (Security): New section.
26387         (Networking functions): Add accept4.
26388         (Signal handling): Add sigpipe.
26389         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26390         mbmemcasecoll.
26391         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26392         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26393         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26394         pipe-filter-ii.
26395         (Misc): Add argp-version-etc, login_tty, parse-duration.
26396
26397 2010-07-31  Bruno Haible  <bruno@clisp.org>
26398
26399         Improve doc in MODULES.html.
26400         * modules/linkat (Description): Add the word "function".
26401         * modules/mkfifo (Description): Likewise.
26402         * modules/mknod (Description): Likewise.
26403         * modules/remove (Description): Likewise.
26404         * modules/renameat (Description): Likewise.
26405         * modules/stat (Description): Likewise.
26406         * modules/symlink (Description): Likewise.
26407         * modules/unlink (Description): Likewise.
26408
26409 2010-07-31  Bruno Haible  <bruno@clisp.org>
26410
26411         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26412         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26413         option --enable/disable-c++ instead of --enable/disable-cxx.
26414         * NEWS: Mention the change.
26415
26416 2010-07-31  Bruno Haible  <bruno@clisp.org>
26417
26418         readlink, areadlink: Relax test a bit.
26419         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26420         alternative to ENOTDIR.
26421         * tests/test-areadlink.h (test_areadlink): Likewise.
26422         Reported by Rainer Tammer.
26423
26424 2010-07-31  Bruno Haible  <bruno@clisp.org>
26425
26426         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26427         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26428         character, perform the search using U_STRCHR.
26429         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26430         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26431         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26432         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26433         Suggested by Paolo Bonzini.
26434
26435 2010-07-31  Bruno Haible  <bruno@clisp.org>
26436
26437         unistr/u*-strstr: Fix dependencies.
26438         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26439         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26440         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26441
26442 2010-07-31  Bruno Haible  <bruno@clisp.org>
26443
26444         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26445         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26446         the beginning of the loop.
26447         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26448         cases in 'switch' statement.
26449
26450         unistr/u8-strchr: Fix several bugs.
26451         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26452         the string. When not found, return NULL, not a pointer near the end.
26453
26454         More tests for unistr/u8-strchr.
26455         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26456         that the function does not read past the first occurrence of the byte
26457         being searched.
26458         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26459         * tests/unistr/test-u16-strchr.c (main): New function.
26460         * tests/unistr/test-u32-strchr.c (main): New function.
26461
26462 2010-07-31  Bruno Haible  <bruno@clisp.org>
26463
26464         posix-modules: Ignore backup files of documentation files.
26465         * posix-modules: grep only through files named *.texi.
26466
26467 2010-07-31  Bruno Haible  <bruno@clisp.org>
26468
26469         symlinkat: Fix documentation.
26470         * doc/posix-functions/readlinkat.texi: Fix module name.
26471
26472 2010-07-31  Bruno Haible  <bruno@clisp.org>
26473
26474         fchownat: Replace also when chown has the trailing slash bug.
26475         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26476         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26477         introduced on 2010-04-10.
26478         Reported by Rainer Tammer.
26479
26480 2010-07-31  Bruno Haible  <bruno@clisp.org>
26481
26482         linkat: Work around AIX 7.1 bug.
26483         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26484         whether linkat handles trailing slash correctly. If not, replace linkat
26485         and define LINKAT_TRAILING_SLASH_BUG.
26486         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26487         check whether (fd1,file1) points to a directory if file1 or file2 ends
26488         in a slash. Code taken from lib/link.c.
26489         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26490         Reported by Rainer Tammer.
26491
26492 2010-07-31  Bruno Haible  <bruno@clisp.org>
26493
26494         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26495         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26496         This disables an xlc optimization that was causing wrong test results.
26497         Reported by Rainer Tammer.
26498
26499 2010-07-31  Bruno Haible  <bruno@clisp.org>
26500
26501         iconv: Work around AIX 6.1..7.1 bug.
26502         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26503         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26504         cross-compiling, guess no on all versions of AIX.
26505         Reported by Rainer Tammer.
26506
26507 2010-07-31  Bruno Haible  <bruno@clisp.org>
26508
26509         readlink: Relax test a bit.
26510         * tests/test-readlink.h (test_readlink): Allow different errno value
26511         when readlink is called with a file name that ends in / and refers to
26512         a file.
26513         Suggested by Eric Blake.
26514         Reported by Rainer Tammer.
26515
26516 2010-07-31  Bruno Haible  <bruno@clisp.org>
26517
26518         copysign: Does not require -lm on glibc systems.
26519         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26520         gl_COMMON_DOUBLE_MATHFUNC.
26521         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26522
26523 2010-07-31  Bruno Haible  <bruno@clisp.org>
26524
26525         duplocale: Work around AIX 7.1 bug.
26526         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26527         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26528         * lib/duplocale.c (rpl_duplocale): Update comment.
26529         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26530         Reported by Rainer Tammer.
26531
26532 2010-07-30  Bruno Haible  <bruno@clisp.org>
26533
26534         dirfd: Avoid link error on AIX 7.1.
26535         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26536         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26537         exist, set REPLACE_DIRFD.
26538         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26539         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26540         * doc/posix-functions/dirfd.texi: Update.
26541         Reported by Rainer Tammer.
26542
26543 2010-07-30  Eric Blake  <eblake@redhat.com>
26544
26545         strtod: next round of AIX fixes
26546         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26547         exponent.
26548         * tests/test-strtod.c (main): Enhance tests.
26549         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26550         Reported by Rainer Tammer.
26551
26552         futimens: fix configure check
26553         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26554         Reported by Bruno Haible.
26555
26556 2010-07-30  Bruno Haible  <bruno@clisp.org>
26557
26558         getline: Update regarding AIX.
26559         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26560         Reported by Rainer Tammer.
26561
26562 2010-07-30  Bruno Haible  <bruno@clisp.org>
26563
26564         wcwidth: Drop replacement on AIX 7.
26565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26566         AIX 7.
26567         Reported by Rainer Tammer.
26568
26569 2010-07-30  Bruno Haible  <bruno@clisp.org>
26570
26571         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26573         a 'char *'.
26574         Reported by Rainer Tammer.
26575
26576 2010-07-30  Bruno Haible  <bruno@clisp.org>
26577
26578         unlink: Update regarding AIX.
26579         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26580         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26581         Reported by Rainer Tammer.
26582
26583 2010-07-30  Bruno Haible  <bruno@clisp.org>
26584
26585         symlink: Update regarding AIX.
26586         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26588         Reported by Rainer Tammer.
26589
26590 2010-07-30  Bruno Haible  <bruno@clisp.org>
26591
26592         strndup: Update regarding AIX.
26593         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26594         AIX 7.
26595         Reported by Rainer Tammer.
26596
26597 2010-07-30  Bruno Haible  <bruno@clisp.org>
26598
26599         stat: Update regarding AIX.
26600         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26601         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26602         Reported by Rainer Tammer.
26603
26604 2010-07-30  Bruno Haible  <bruno@clisp.org>
26605
26606         truncl: Fix autoconf test.
26607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26608         whether truncl works.
26609         Reported by Rainer Tammer.
26610
26611 2010-07-30  Bruno Haible  <bruno@clisp.org>
26612
26613         round: Update regarding AIX.
26614         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26615         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26616         Reported by Rainer Tammer.
26617
26618 2010-07-30  Bruno Haible  <bruno@clisp.org>
26619
26620         rename: Update regarding AIX.
26621         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26622         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26623         Reported by Rainer Tammer.
26624
26625 2010-07-30  Bruno Haible  <bruno@clisp.org>
26626
26627         printf.m4: Update regarding AIX.
26628         * m4/printf.m4: Update comments regarding AIX.
26629         Reported by Rainer Tammer.
26630
26631 2010-07-30  Bruno Haible  <bruno@clisp.org>
26632
26633         iconv: Update regarding AIX.
26634         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26635         AIX 7.
26636         Reported by Rainer Tammer.
26637
26638 2010-07-30  Bruno Haible  <bruno@clisp.org>
26639
26640         getopt: Update regarding AIX.
26641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26642         no on AIX.
26643         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26644         Reported by Rainer Tammer.
26645
26646 2010-07-30  Bruno Haible  <bruno@clisp.org>
26647
26648         ldexpl; Update regarding AIX.
26649         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26650         on AIX 7.
26651         Reported by Rainer Tammer.
26652
26653 2010-07-30  Bruno Haible  <bruno@clisp.org>
26654
26655         frexpl: Update regarding AIX.
26656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26657         on AIX 7.
26658         Reported by Rainer Tammer.
26659
26660 2010-07-30  Bruno Haible  <bruno@clisp.org>
26661
26662         open, fopen: Update regarding AIX.
26663         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26664         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26665         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26666         * doc/posix-functions/fopen.texi: Likewise.
26667         Reported by Rainer Tammer.
26668
26669 2010-07-30  Bruno Haible  <bruno@clisp.org>
26670
26671         chown: Update doc regarding AIX.
26672         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26673         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26674         Reported by Rainer Tammer.
26675
26676 2010-07-30  Eric Blake  <eblake@redhat.com>
26677
26678         strtod: fix bug in replacement function on AIX
26679         * lib/strtod.c (strtod): Special case broken "0x" parse in
26680         underlying strtod.
26681         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26682         * doc/posix-functions/strtod.texi (strtod): Likewise.
26683         Reported by Rainer Tammer.
26684
26685 2010-07-30  Bruno Haible  <bruno@clisp.org>
26686
26687         mbrlen: Fix cross-compilation guess for AIX.
26688         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26689         guess. Leftover from 2008-12-22.
26690
26691 2010-07-30  Bruno Haible  <bruno@clisp.org>
26692
26693         mbrtowc: Fix cross-compilation guess for AIX.
26694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26695         guess. Leftover from 2008-12-21.
26696
26697 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26698
26699         init.sh: work around trap limitation of some shells
26700         * tests/init.sh (setup_): Move exit trap outside of shell function.
26701
26702 2010-07-29  Eric Blake  <eblake@redhat.com>
26703
26704         strtod: aid debugging
26705         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26706         understanding why strtod is rejected.
26707
26708 2010-07-28  Bruno Haible  <bruno@clisp.org>
26709
26710         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26711         * lib/unistr/u8-chr.c: Include <string.h>.
26712         * tests/unistr/test-u8-chr.c: Likewise.
26713         * tests/unistr/test-u16-chr.c: Likewise.
26714         * tests/unistr/test-u32-chr.c: Likewise.
26715         * tests/unistr/test-u8-strchr.c: Likewise.
26716         * tests/unistr/test-u16-strchr.c: Likewise.
26717         * tests/unistr/test-u32-strchr.c: Likewise.
26718         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26719         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26720         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26721         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26722
26723 2010-07-28  Bruno Haible  <bruno@clisp.org>
26724
26725         Use spaces for indentation, not tabs.
26726         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26727
26728 2010-07-27  Bruno Haible  <bruno@clisp.org>
26729
26730         mbspcasecmp: Fix function specification.
26731         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26732         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26733         Reported by Eric Blake <eblake@redhat.com>.
26734
26735 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26736
26737         timespec: use cast and not conditional, as truncation isn't possible
26738         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26739         instead of a conditional.  Comment about the situation in more detail.
26740         This undoes most of the 2009-10-29 patch.
26741
26742 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26743
26744         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26745         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26746         * lib/unistr/u8-strchr.c: Likewise.
26747         * modules/unistr/u8-chr: Depend on memchr.
26748
26749         unistr/u*-strchr: add tests
26750         * modules/unistr/u8-strchr-tests: New file.
26751         * modules/unistr/u16-strchr-tests: New file.
26752         * modules/unistr/u32-strchr-tests: New file.
26753         * tests/unistr/test-strchr.h: New file.
26754         * tests/unistr/test-u8-strchr.c: New file.
26755         * tests/unistr/test-u16-strchr.c: New file.
26756         * tests/unistr/test-u32-strchr.c: New file.
26757
26758         unistr/u*-chr: test multibyte sequences more
26759         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26760         test vector.
26761         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26762         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26763         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26764
26765         unistr/u*-chr: test multibyte sequences
26766         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26767
26768         unistr/u*-chr: prepare for multibyte tests
26769         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26770         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26771         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26772         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26773         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26774         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26775
26776 2010-07-18  Bruno Haible  <bruno@clisp.org>
26777
26778         unistr/u8-strchr: Optimize non-ASCII argument case.
26779         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26780         because the first byte often matches anyway.
26781         Reported by Pádraig Brady <P@draigbrady.com>.
26782
26783 2010-07-15  Karl Berry  <karl@gnu.org>
26784
26785         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26786
26787 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26788
26789         getcwd: on Solaris, work better if ancestors are inaccessible
26790         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26791         buffer and size, try again with a large buffer.  This works better
26792         on Solaris, since its getcwd succeeds even if the path to the root
26793         is inaccessible, and this is helpful in common cases such as .zfs
26794         hidden directories.  Problem reported by J Chapman Flack in
26795         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26796         Use system getcwd if it's declared, not merely if it's partly
26797         working; use the partly-working test only to avoid needless effort
26798         if the system getcwd fails.
26799         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26800         comment that was already obsolete and is now even more obsolete.
26801         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26802         now might call strdup.
26803
26804 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26805
26806         pthread: Add enough so that coreutils/src/sort.c compiles.
26807         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26808         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26809         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26810         Include <sys/types.h>, in case it defines pthread_t.
26811         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26812         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26813         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26814         (pthread_rwlockattr_t, pthread_spinlock_t):
26815         New typedefs, if HAVE_PTHREAD_T is not defined.
26816         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26817         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26818         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26819         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26820         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26821         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26822         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26823         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26824         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26825         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26826         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26827         New macros.
26828         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26829         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26830         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26831         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26832         (pthread_spin_unlock): New dummy functions.
26833         (pthread_create): Return EAGAIN; don't set errno.
26834         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26835         require AC_C_INLINE.
26836         * modules/pthread (Depends-on): Add sched, time.
26837         (pthread.h): Use AM_V_GEN.
26838
26839 2010-07-13  Bruno Haible  <bruno@clisp.org>
26840
26841         striconveh: Don't malloc memory if the result buffer is sufficient.
26842         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26843         buffer if its size is sufficient.
26844         Reported by Ludovic Courtès <ludo@gnu.org>.
26845
26846 2010-07-13  Bruno Haible  <bruno@clisp.org>
26847
26848         strtod: Add safety check.
26849         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26850
26851 2010-07-12  Bruno Haible  <bruno@clisp.org>
26852
26853         Unify tests that set gl_cv_func_ldexpl_no_libm.
26854         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26855         gl_FUNC_LDEXPL.
26856         (gl_FUNC_LDEXPL): Invoke it.
26857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26858
26859 2010-07-12  Bruno Haible  <bruno@clisp.org>
26860
26861         Unify tests that set gl_cv_func_ldexp_no_libm.
26862         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26863         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26864         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26865         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26866         * modules/strtod (Files): Add m4/ldexp.m4.
26867
26868 2010-07-12  Bruno Haible  <bruno@clisp.org>
26869
26870         Unify tests that set gl_cv_func_frexpl_no_libm.
26871         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26872         gl_FUNC_FREXPL_NO_LIBM.
26873         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26875
26876 2010-07-12  Bruno Haible  <bruno@clisp.org>
26877
26878         Unify tests that set gl_cv_func_frexp_no_libm.
26879         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26880         gl_FUNC_FREXP_NO_LIBM.
26881         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26882         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26883
26884 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26885
26886         memcoll: clarify sizes versus lengths, document better, and tweak perf
26887         * lib/memcoll.c (strcoll_loop, memcoll0):
26888         Improve quality of descriptive comments.  Name variables
26889         consistently as to whether they are lengths (which do not include
26890         terminating null) versus sizes (which do).
26891         * lib/xmemcoll.c (xmemcoll0): Likewise.
26892         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26893         returned when s1size == 0; this is easier to compile and saves
26894         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26895
26896 2010-07-12  Bruno Haible  <bruno@clisp.org>
26897
26898         Tests for module '_Exit'.
26899         * modules/_Exit-tests: New file.
26900         * tests/test-_Exit.sh: New file.
26901         * tests/test-_Exit.c: New file.
26902
26903         New module '_Exit'.
26904         * lib/stdlib.in.h (__attribute__): New macro.
26905         (_Exit): New declaration.
26906         * lib/_Exit.c: New file.
26907         * m4/_Exit.m4: New file.
26908         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26909         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26910         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26911         * modules/_Exit: New file.
26912         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26913         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26914
26915 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26916
26917         strtod: make it more-accurate typically, and don't require libm
26918         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26919         Include limits.h.  Don't include string.h.
26920         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26921         (locale_isspace): New function, so that no casts are needed to
26922         check whether *s is a space.
26923         (ldexp): Provide an unused dummy if not available.
26924         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26925         (strtod): Use them.  This implementation prefers to use the
26926         underlying strtod if available, falling back on our own code
26927         only to fix known bugs.  This is more likely to produce an
26928         accurate result.  Also, it avoids the use of libm functions.
26929         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26930         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26931         was absent, but it caused a test failure with coreutils.
26932         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26933         with libm.
26934         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26935         * modules/strtod-tests (Makefile.am): Likewise.
26936
26937 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26938             Bruno Haible  <bruno@clisp.org>
26939
26940         unistr/u8-strchr: Optimize ASCII argument case.
26941         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26942
26943 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26944
26945         (x)memcoll: minor tweaks
26946         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26947         is after the type that it qualifies.
26948         (memcoll0): Likewise.
26949         * lib/memcoll.h (memcoll0): Likewise.
26950         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26951         * lib/xmemcoll.h (xmemcoll0): Likewise.
26952         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26953         differs from memcoll in that the NUL byte is part of the argument.
26954         Omit the abort-checks, as performance is a real issue here.  Plus,
26955         the checks were wrong anyway (an off-by-one error).  Omit local
26956         variable 'diff', as it's a bit clearer that way.
26957         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26958         no longer needed.
26959
26960 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26961
26962         (x)memcoll: speedup when input is known to be NUL delimited
26963         * lib/memcoll.c: Include stdlib.
26964         (memcoll0): New function.
26965         (strcoll_loop): New function, refactored for use in both memcoll
26966         and memcoll0.
26967         * lib/memcoll.h (memcoll0): Add prototype.
26968         * lib/xmemcoll.c (xmemcoll0): New function.
26969         (collate_error): New function, refactored for use in both xmemcoll
26970         and xmemcoll0.
26971         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26972         * m4/memcoll.m4: add inline invocation.
26973
26974 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26975
26976         * build-aux/bootstrap: Remove any local translations
26977         from the translation project synchronization directory,
26978         so that local only translations are not distributed.
26979
26980 2010-07-04  Bruno Haible  <bruno@clisp.org>
26981
26982         fsusage: Clarify which code applies to which platforms.
26983         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26984         platform.
26985         * lib/fsusage.c (get_fs_usage): Likewise.
26986
26987 2010-07-04  Bruno Haible  <bruno@clisp.org>
26988
26989         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26990         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26991         Reported by Martin Lambers <marlam@marlam.de>.
26992
26993 2010-07-04  Jim Meyering  <meyering@redhat.com>
26994
26995         hash: once again explicitly disallow insertion of NULL
26996         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26997         inserting a NULL pointer cannot work with these functions.
26998         Add a comment with details.
26999         This reverts part of the 2010-07-01 commit, 5bef1a35
27000         "hash: extend module to deal with non-pointer keys".
27001
27002 2010-07-01  Bruno Haible  <bruno@clisp.org>
27003
27004         stdbool: Update doc.
27005         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27006         Info from Christian Weisgerber <naddy@mips.inka.de>.
27007
27008 2010-07-01  Jim Meyering  <meyering@redhat.com>
27009
27010         hash: extend module to deal with non-pointer keys
27011         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27012         but that allows insertion of non-pointer entries.
27013         Do not disallow an ENTRY value of NULL.
27014         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27015         * lib/hash.h (hash_insert0): Declare.
27016
27017 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27018
27019         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27020         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27021         not present (i.e. with autoconf 2.59 and when using gettextize, not
27022         gnulib), require AC_GNU_SOURCE instead.
27023
27024 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27025
27026         idpriv-drop: Fix tests.
27027         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27028         not to the test-idpriv-droptemp program.
27029
27030 2010-06-29  Bruno Haible  <bruno@clisp.org>
27031
27032         string: Fix syntax error with g++ 2.96.
27033         * lib/string.in.h (__pure__): Remove definition.
27034         (_GL_ATTRIBUTE_PURE): New macro.
27035         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27036         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27037         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27038
27039 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27040
27041         unitypes: Fix bug introduced on 2010-05-18.
27042         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27043
27044 2010-06-22  Eric Blake  <eblake@redhat.com>
27045
27046         memmem: slight optimization
27047         * lib/str-two-way.h (critical_factorization): Update comments.
27048         Reduce work during factorization phase.
27049         Reported by Carlos Bueno <carlos@bueno.org>.
27050
27051 2010-06-21  Bruno Haible  <bruno@clisp.org>
27052
27053         Fix HAVE_CALLOC_POSIX misnomer.
27054         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27055         !HAVE_CALLOC_POSIX.
27056         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27057         HAVE_CALLOC_POSIX.
27058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27059         instead of HAVE_CALLOC_POSIX.
27060         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27061         HAVE_CALLOC_POSIX.
27062
27063         Use modern idiom for calloc() replacement.
27064         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27065         AC_FUNC_CALLOC.
27066         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27067         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27068         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27069         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27070         (gl_REPLACE_CALLOC): New macro.
27071
27072 2010-06-21  Bruno Haible  <bruno@clisp.org>
27073
27074         Fix HAVE_REALLOC_POSIX misnomer.
27075         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27076         !HAVE_REALLOC_POSIX.
27077         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27078         HAVE_REALLOC_POSIX.
27079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27080         instead of HAVE_REALLOC_POSIX.
27081         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27082         HAVE_REALLOC_POSIX.
27083
27084         Use modern idiom for realloc() replacement.
27085         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27086         AC_FUNC_REALLOC.
27087         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27088         Autoconf's AC_FUNC_REALLOC.
27089         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27090         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27091         (gl_REPLACE_REALLOC): New macro.
27092         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27093
27094 2010-06-21  Bruno Haible  <bruno@clisp.org>
27095
27096         Fix HAVE_MALLOC_POSIX misnomer.
27097         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27098         !HAVE_MALLOC_POSIX.
27099         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27100         HAVE_MALLOC_POSIX.
27101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27102         instead of HAVE_MALLOC_POSIX.
27103         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27104         HAVE_MALLOC_POSIX.
27105
27106         Use modern idiom for malloc() replacement.
27107         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27108         AC_FUNC_MALLOC.
27109         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27110         Autoconf's AC_FUNC_MALLOC.
27111         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27112         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27113         (gl_REPLACE_MALLOC): New macro.
27114         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27115
27116 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27117
27118         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27119         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27120         This macro takes 3 arguments, not 4.
27121
27122 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27123
27124         ipv6: fix detection under mingw
27125         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27126         in6_addr.
27127
27128 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27129
27130         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27131         that strtod() works when cross-compiling to a glibc version known
27132         to work.
27133
27134 2010-06-15  Bruno Haible  <bruno@clisp.org>
27135
27136         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27137
27138 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27139
27140         select: Correct timeout.
27141         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27142
27143 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27144
27145         git-version-gen: init shell var to avoid env var influence
27146         * build-aux/git-version-gen (v): Init shell var to empty.
27147
27148 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27149
27150         priv-set: Don't assume that priv.h exists merely because getppriv does.
27151         See Jan Andersen's bug report about AIX 5L in
27152         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27153         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27154         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27155         * lib/priv-set.h: Likewise.
27156         * tests/test-priv-set.c: Likewise.
27157
27158 2010-06-13  Bruno Haible  <bruno@clisp.org>
27159
27160         relocatable: Make it easier to test whether to install wrappers.
27161         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27162         RELOCATABLE_VIA_WRAPPER.
27163
27164 2010-06-13  Bruno Haible  <bruno@clisp.org>
27165
27166         gnulib-tool: Display specified modules and dependencies differently.
27167         * gnulib-tool (func_show_module_list): New function.
27168         (func_import, func_create_testdir): Invoke it.
27169         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27170
27171 2010-06-13  Bruno Haible  <bruno@clisp.org>
27172
27173         gnulib-tool: Align code of func_import and func_create_testdir.
27174         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27175         specified_modules.
27176
27177 2010-06-12  Jim Meyering  <meyering@redhat.com>
27178
27179         test-inttostr: avoid spurious failure on Solaris 9
27180         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27181         to accept "%ju".  Reported by Bruno Haible.
27182
27183 2010-06-11  Jim Meyering  <meyering@redhat.com>
27184
27185         test-sys_socket: mark variables as used more readably
27186         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27187         as "used" explicitly via (void) statement casts.  This is more
27188         readable than using them in an artificial return expression.
27189         Suggestion from Bruno Haible.
27190
27191 2010-06-11  Bruno Haible  <bruno@clisp.org>
27192
27193         Avoid some more warnings from "gcc -Wwrite-strings".
27194         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27195         to 'const char *'.
27196         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27197         * tests/test-c-strcasestr.c (main): Likewise.
27198         * tests/test-mbscasestr1.c (main): Likewise.
27199         * tests/test-mbscasestr2.c (main): Likewise.
27200         * tests/test-memmem.c (main): Likewise.
27201         * tests/test-strstr.c (main): Likewise.
27202         * tests/test-strcasestr.c (main): Likewise.
27203
27204 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27205
27206         init.sh: change framework_failure_ to fail with status 99, not 1
27207         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27208         automake's parallel-tests rule that this is an unexpected failure,
27209         even if the test is listed in XFAIL_TESTS.
27210
27211 2010-06-11  Jim Meyering  <meyering@redhat.com>
27212
27213         test-inttostr: avoid warnings about 4-6KB literal strings
27214         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27215         Include "macros.h", for its definition of ASSERT.
27216         (CK): s/assert/ASSERT/
27217         * modules/inttostr-tests (Files): Add macros.h.
27218
27219         init.sh: don't use $ME_ or skip_ before they are defined
27220         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27221         their first uses.  Also hoist their companions: warn_, fail_,
27222         framework_failure_, $stderr_fileno.  Prompted by a patch from
27223         Stefano Lattarini.
27224
27225         test-sys_socket: avoid set-but-not-used warnings from gcc
27226         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27227         avoid warning about set-but-not-used variables.
27228
27229         test-xvasprintf: avoid 'const' discard warnings
27230         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27231         "const" when assigning from literal strings.
27232         (test_xasprintf): Add "void" in function argument list to placate
27233         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27234
27235         tests: avoid compilation warnings in argmatch and exclude tests...
27236         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27237         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27238         Since it always exits, declare with the "noreturn" attribute.
27239         * tests/test-argmatch.c: Likewise.
27240
27241         tests: avoid 'const' discard warnings in mbsstr tests
27242         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27243         * tests/test-mbsstr2.c (main): Likewise.
27244
27245         test-verify: avoid warning from gcc's -Wmissing-declarations
27246         * tests/test-verify.c (function): Declare to be static.
27247
27248         test-inttostr.c: include <string.h> for use of strcmp
27249         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27250
27251         test-linkat: avoid failed assertion on "other" architectures
27252         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27253         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27254         sparc: https://bugs.launchpad.net/bugs/591968
27255
27256 2010-06-11  Jim Meyering  <meyering@redhat.com>
27257
27258         printf.m4: avoid autoconf's "Expanded Before Required" warning
27259         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27260         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27261         autoconf warning.
27262
27263 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27264
27265         Replacement header templates are now named with ".in", not "_".
27266         * doc/gnulib-intro.texi: Correct.
27267
27268 2010-06-10  Jim Meyering  <meyering@redhat.com>
27269
27270         inttostr-tests: depend on snprintf, not snprintf-posix
27271         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27272         snprintf-posix, to avoid this aclocal failure:
27273           missing file gnulib-tests/vasnprintf.c
27274           configure.ac:45: error: expected source file, required through \
27275           AC_LIBSOURCES, not found
27276
27277 2010-06-10  Jim Meyering  <meyering@redhat.com>
27278
27279         inttostr: add a new function, inttostr, and tests
27280         The namesake function was not available.  The existence of the
27281         template file, inttostr.c makes its addition nontrivial.
27282         * lib/anytostr.c: Rename from inttostr.c.
27283         (anytostr): Rename from inttostr.
27284         * lib/inttostr.c: New file.
27285         * modules/inttostr (Files): Add anytostr.c.
27286         (Makefile.am): Set lib_SOURCES instead of ...
27287         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27288         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27289         * lib/offtostr.c: Likewise.
27290         * lib/uinttostr.c: Likewise.
27291         * lib/umaxtostr.c: Likewise.
27292         * modules/inttostr-tests: New file.
27293         * tests/test-inttostr.c: New file.  Test these functions.
27294
27295 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27296             Bruno Haible  <bruno@clisp.org>
27297
27298         Add "Extending Gnulib" chapter to manual.
27299         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27300         chapter.
27301         (Extending Gnulib): New chapter.
27302         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27303         chapter.
27304
27305 2010-06-09  Bruno Haible  <bruno@clisp.org>
27306
27307         Avoid relocwrapper link errors due to gnulib replacement functions.
27308         * lib/areadlink.c: Use the system's malloc, realloc functions.
27309         (areadlink): Set errno to ENOMEM explicitly.
27310         * modules/areadlink (Depends-on): Remove malloc-posix.
27311         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27312
27313 2010-06-09  Bruno Haible  <bruno@clisp.org>
27314
27315         Avoid relocwrapper link errors due to gnulib replacement functions.
27316         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27317         * lib/malloca.c: Likewise.
27318         * lib/relocatable.c: Likewise.
27319         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27320         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27321         * lib/setenv.c: Use the system's malloc, realloc functions.
27322         * lib/strerror.c: Use the system's sprintf function.
27323         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27324
27325 2010-06-04  Bruno Haible  <bruno@clisp.org>
27326
27327         Prefer documented low-level autoconf macro names.
27328         * m4/lib-link.m4: Use m4_translit instead of translit.
27329         * m4/environ.m4: Likewise.
27330         * m4/mathfunc.m4: Likewise.
27331         * m4/onceonly.m4: Likewise.
27332         * m4/stdint.m4: Likewise.
27333         Suggested by Eric Blake.
27334
27335 2010-06-04  Martin Lambers  <marlam@marlam.de>
27336             Bruno Haible  <bruno@clisp.org>
27337
27338         havelib: Allow library names with '+' characters.
27339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27340         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27341
27342 2010-06-09  Bruno Haible  <bruno@clisp.org>
27343
27344         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27345         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27346         realloc failed.
27347
27348 2010-06-08  Peter Simons  <simons@cryp.to>
27349
27350         maint.mk: make the news-check rule more configurable
27351         * top/maint.mk (news-check-lines-spec): New variable.
27352         (news-check): Use "sed -n 1,10p" in place of "head".
27353
27354 2010-06-07  Jim Meyering  <meyering@redhat.com>
27355
27356         do-release-commit-and-tag: fix typo in --help
27357         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27358
27359         regex: avoid new dead-code warning with gcc-4.6.0
27360         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27361         if-block containing a while-loop.  It's been unused for at least
27362         5 years.
27363
27364 2010-06-05  Bruno Haible  <bruno@clisp.org>
27365
27366         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27367         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27368
27369 2010-06-04  Bruno Haible  <bruno@clisp.org>
27370
27371         Update to GNU gettext 0.18.1.
27372         * modules/gettext (configure.ac): Require gettext infrastructure from
27373         version 0.18.1.
27374
27375 2010-06-03  Bruno Haible  <bruno@clisp.org>
27376
27377         Don't use AC_LIBOBJ with file names in subdirectories.
27378         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27379         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27380         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27381         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27382         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27383         gl_LIBUNISTRING_LIBSOURCE.
27384         (Makefile.am): Augment lib_SOURCES here, conditionally.
27385         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27386
27387 2010-06-03  Bruno Haible  <bruno@clisp.org>
27388
27389         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27390         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27391         expansion does not end with a newline.
27392         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27393         unnecessary newline.
27394
27395 2010-06-03  Bruno Haible  <bruno@clisp.org>
27396
27397         Reduce dependencies.
27398         * tests/test-quotearg.h: New file, extracted from
27399         tests/test-quotearg.c.
27400         * tests/test-quotearg-simple.c: New file, extracted from
27401         tests/test-quotearg.c.
27402         * tests/test-quotearg.c: Don't include <ctype.h>.
27403         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27404         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27405         use_quote_double_quotes, use_quotearg_colon): Moved to
27406         tests/test-quotearg.h.
27407         (results_g, flag_results, custom_quotes, custom_results): Moved
27408         to tests/test-quotearg-simple.c.
27409         (main): Moved the part that does not depend on gettext to
27410         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27411         performed.
27412         * modules/quotearg-simple: New file.
27413         * modules/quotearg-simple-tests: New file.
27414         * modules/quotearg (Depends-on): Add quotearg-simple.
27415         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27416         (Files): Add tests/test-quotearg.h.
27417         Reported by Paolo Bonzini.
27418
27419 2010-06-03  Bruno Haible  <bruno@clisp.org>
27420
27421         Reduce dependencies.
27422         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27423
27424 2010-06-03  Bruno Haible  <bruno@clisp.org>
27425
27426         time: Undefine more broken macros.
27427         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27428         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27429         Reported by Eric Blake.
27430
27431 2010-06-03  Bruno Haible  <bruno@clisp.org>
27432
27433         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27434         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27435         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27436         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27437         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27438         Reported by Ludovic Courtès <ludo@gnu.org>.
27439
27440 2010-06-02  Eric Blake  <eblake@redhat.com>
27441
27442         time: work with mingw + pthreads-win32 library
27443         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27444         if timespec is defined only in pthread.h.
27445         * modules/time (Makefile.am): Substitute it.
27446         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27447         <pthread.h>, when needed.
27448         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27449         from the library.
27450
27451 2010-05-31  Bruno Haible  <bruno@clisp.org>
27452
27453         Avoid expanding two macros in the wrong order.
27454         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27455         gl_LIBUNISTRING if it is defined.
27456         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27457         autoconf >= 2.64.
27458         Reported by Ludovic Courtès <ludo@gnu.org>.
27459
27460 2010-05-27  Jim Meyering  <meyering@redhat.com>
27461
27462         maint.mk: also prohibit "#undef" of always-defined symbols
27463         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27464         Allow more than one space before the symbol name.
27465         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27466         the regexp uses alternation.
27467
27468 2010-05-26  Eric Blake  <eblake@redhat.com>
27469
27470         maint.mk: avoid echo -e
27471         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27472         Convert all uses of echo -* to printf.
27473         Reported by Matthias Bolte.
27474
27475 2010-05-25  Bruno Haible  <bruno@clisp.org>
27476
27477         Update to GNU gettext 0.18, part 2.
27478         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27479         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27480
27481 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27482
27483         Add missing include in test-pwrite.c.
27484         * tests/test-pwrite.c: Include string.h, for strcmp.
27485
27486 2010-05-24  Bruno Haible  <bruno@clisp.org>
27487
27488         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27489
27490 2010-05-24  Bruno Haible  <bruno@clisp.org>
27491
27492         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27493         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27494         iconveh_error argument.
27495         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27496         U_STRCONV_TO_LOCALE.
27497         * lib/unistr/u16-strcoll.c: Likewise.
27498         * lib/unistr/u32-strcoll.c: Likewise.
27499         * modules/unistr/u8-strcoll (Depends-on): Add
27500         uniconv/u8-strconv-to-enc, localcharset. Remove
27501         uniconv/u8-strconv-to-locale.
27502         (configure.ac): Bump version number.
27503         * modules/unistr/u16-strcoll (Depends-on): Add
27504         uniconv/u16-strconv-to-enc, localcharset. Remove
27505         uniconv/u16-strconv-to-locale.
27506         (configure.ac): Bump version number.
27507         * modules/unistr/u32-strcoll (Depends-on): Add
27508         uniconv/u32-strconv-to-enc, localcharset. Remove
27509         uniconv/u32-strconv-to-locale.
27510         (configure.ac): Bump version number.
27511
27512 2010-05-24  Bruno Haible  <bruno@clisp.org>
27513
27514         Avoid a test failure on NetBSD 5.0.
27515         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27516         an iconv() bug.
27517
27518 2010-05-24  Bruno Haible  <bruno@clisp.org>
27519
27520         Adjust #include directive style.
27521         * modules/regex (Includes): Recommend to write <regex.h>.
27522
27523 2010-05-24  Bruno Haible  <bruno@clisp.org>
27524
27525         regex: Don't require alloca.
27526         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27527         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27528         only inside if (0).
27529
27530 2010-05-23  Jim Meyering  <meyering@redhat.com>
27531
27532         test-renameat.c: include <sys/stat.h>
27533         * tests/test-renameat.c: Include <sys/stat.h>; required for
27534         definition of S_IS* macros.
27535
27536 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27537
27538         Update maintainer documentation for 'relocatable-prog' module.
27539         * doc/relocatable-maint.texi: Update.
27540         Comments by Bruno Haible.
27541
27542 2010-05-23  Bruno Haible  <bruno@clisp.org>
27543
27544         git-merge-changelog: Enable --split-merged-entry by default.
27545         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27546         (usage): Don't mention this option any more.
27547         Reported by Ralf Wildenhues.
27548
27549 2010-05-23  Jim Meyering  <meyering@redhat.com>
27550
27551         test-pwrite: do not leave behind a test file named "out"
27552         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27553         The trivial-looking use of init.sh is really necessary.
27554         It ensures that the temporary file, "out", is created in
27555         a temporary directory, and removed upon termination.
27556         * tests/test-pwrite.sh: Re-add file.
27557         * modules/pwrite-tests: Reference it.
27558
27559 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27560
27561         Fix output redirection buglet in init.sh.
27562         * tests/init.sh: Fix redirection of stderr.
27563
27564 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27565
27566         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27567
27568 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27569
27570         * modules/valgrind-tests: New file.
27571         * m4/valgrind-tests.m4: New file.
27572         * doc/valgrind-tests.texi: New file.
27573         * doc/gnulib.texi (Running self-tests under valgrind): New
27574         section.
27575
27576 2010-05-19  Bruno Haible  <bruno@clisp.org>
27577
27578         Clean up dead code in recent commit.
27579         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27580         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27581         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27582         Suggested by Paolo Bonzini.
27583
27584 2010-05-19  Bruno Haible  <bruno@clisp.org>
27585
27586         Avoid valgrind error reports from libunistring.
27587         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27588         * modules/libunistring (Files): Add it.
27589         * modules/libunistring-optional (Files): Likewise.
27590
27591 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27592             Bruno Haible  <bruno@clisp.org>
27593
27594         New module 'libunistring-optional'.
27595         * modules/libunistring-optional: New file.
27596         * m4/libunistring-base.m4: New file.
27597         * m4/libunistring-optional.m4: New file.
27598         * lib/unicase.in.h: Renamed from lib/unicase.h.
27599         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27600         * lib/unictype.in.h: Renamed from lib/unictype.h.
27601         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27602         * lib/uniname.in.h: Renamed from lib/uniname.h.
27603         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27604         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27605         * lib/unistr.in.h: Renamed from lib/unistr.h.
27606         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27607         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27608         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27609         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27610         gl_LIBUNISTRING. If the library was found, determine the installed
27611         version and set LIBUNISTRING_VERSION.
27612         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27613         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27614         handle a configuration option --with-included-libunistring.
27615         * modules/libunistring (Files): Add m4/absolute-header.m4.
27616         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27617         Add m4/libunistring-base.m4.
27618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27619         (Makefile.am): Build unicase.h from unicase.in.h.
27620         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27621         Add m4/libunistring-base.m4.
27622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27623         (Makefile.am): Build uniconv.h from uniconv.in.h.
27624         * modules/unictype/base (Files): Use unictype.in.h instead of
27625         unictype.h. Add m4/libunistring-base.m4.
27626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27627         (Makefile.am): Build unictype.h from unictype.in.h.
27628         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27629         Add m4/libunistring-base.m4.
27630         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27631         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27632         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27633         Add m4/libunistring-base.m4.
27634         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27635         (Makefile.am): Build uniname.h from uniname.in.h.
27636         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27637         Add m4/libunistring-base.m4.
27638         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27639         (Makefile.am): Build uninorm.h from uninorm.in.h.
27640         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27641         unistdio.h. Add m4/libunistring-base.m4.
27642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27643         (Makefile.am): Build unistdio.h from unistdio.in.h.
27644         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27645         Add m4/libunistring-base.m4.
27646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27647         (Makefile.am): Build unistr.h from unistr.in.h.
27648         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27649         Add m4/libunistring-base.m4.
27650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27651         (Makefile.am): Build unitypes.h from unitypes.in.h.
27652         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27653         Add m4/libunistring-base.m4.
27654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27655         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27656         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27657         uniwidth.h. Add m4/libunistring-base.m4.
27658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27659         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27660         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27661         instead of augmenting lib_SOURCES.
27662         * modules/unicase/empty-suffix-context: Likewise.
27663         * modules/unicase/locale-language: Likewise.
27664         * modules/unicase/tolower: Likewise.
27665         * modules/unicase/totitle: Likewise.
27666         * modules/unicase/toupper: Likewise.
27667         * modules/unicase/u8-casecmp: Likewise.
27668         * modules/unicase/u8-casecoll: Likewise.
27669         * modules/unicase/u8-casefold: Likewise.
27670         * modules/unicase/u8-casexfrm: Likewise.
27671         * modules/unicase/u8-ct-casefold: Likewise.
27672         * modules/unicase/u8-ct-tolower: Likewise.
27673         * modules/unicase/u8-ct-totitle: Likewise.
27674         * modules/unicase/u8-ct-toupper: Likewise.
27675         * modules/unicase/u8-is-cased: Likewise.
27676         * modules/unicase/u8-is-casefolded: Likewise.
27677         * modules/unicase/u8-is-lowercase: Likewise.
27678         * modules/unicase/u8-is-titlecase: Likewise.
27679         * modules/unicase/u8-is-uppercase: Likewise.
27680         * modules/unicase/u8-prefix-context: Likewise.
27681         * modules/unicase/u8-suffix-context: Likewise.
27682         * modules/unicase/u8-tolower: Likewise.
27683         * modules/unicase/u8-totitle: Likewise.
27684         * modules/unicase/u8-toupper: Likewise.
27685         * modules/unicase/u16-casecmp: Likewise.
27686         * modules/unicase/u16-casecoll: Likewise.
27687         * modules/unicase/u16-casefold: Likewise.
27688         * modules/unicase/u16-casexfrm: Likewise.
27689         * modules/unicase/u16-ct-casefold: Likewise.
27690         * modules/unicase/u16-ct-tolower: Likewise.
27691         * modules/unicase/u16-ct-totitle: Likewise.
27692         * modules/unicase/u16-ct-toupper: Likewise.
27693         * modules/unicase/u16-is-cased: Likewise.
27694         * modules/unicase/u16-is-casefolded: Likewise.
27695         * modules/unicase/u16-is-lowercase: Likewise.
27696         * modules/unicase/u16-is-titlecase: Likewise.
27697         * modules/unicase/u16-is-uppercase: Likewise.
27698         * modules/unicase/u16-prefix-context: Likewise.
27699         * modules/unicase/u16-suffix-context: Likewise.
27700         * modules/unicase/u16-tolower: Likewise.
27701         * modules/unicase/u16-totitle: Likewise.
27702         * modules/unicase/u16-toupper: Likewise.
27703         * modules/unicase/u32-casecmp: Likewise.
27704         * modules/unicase/u32-casecoll: Likewise.
27705         * modules/unicase/u32-casefold: Likewise.
27706         * modules/unicase/u32-casexfrm: Likewise.
27707         * modules/unicase/u32-ct-casefold: Likewise.
27708         * modules/unicase/u32-ct-tolower: Likewise.
27709         * modules/unicase/u32-ct-totitle: Likewise.
27710         * modules/unicase/u32-ct-toupper: Likewise.
27711         * modules/unicase/u32-is-cased: Likewise.
27712         * modules/unicase/u32-is-casefolded: Likewise.
27713         * modules/unicase/u32-is-lowercase: Likewise.
27714         * modules/unicase/u32-is-titlecase: Likewise.
27715         * modules/unicase/u32-is-uppercase: Likewise.
27716         * modules/unicase/u32-prefix-context: Likewise.
27717         * modules/unicase/u32-suffix-context: Likewise.
27718         * modules/unicase/u32-tolower: Likewise.
27719         * modules/unicase/u32-totitle: Likewise.
27720         * modules/unicase/u32-toupper: Likewise.
27721         * modules/unicase/ulc-casecmp: Likewise.
27722         * modules/unicase/ulc-casecoll: Likewise.
27723         * modules/unicase/ulc-casexfrm: Likewise.
27724         * modules/uniconv/u8-conv-from-enc: Likewise.
27725         * modules/uniconv/u8-conv-to-enc: Likewise.
27726         * modules/uniconv/u8-strconv-from-enc: Likewise.
27727         * modules/uniconv/u8-strconv-from-locale: Likewise.
27728         * modules/uniconv/u8-strconv-to-enc: Likewise.
27729         * modules/uniconv/u8-strconv-to-locale: Likewise.
27730         * modules/uniconv/u16-conv-from-enc: Likewise.
27731         * modules/uniconv/u16-conv-to-enc: Likewise.
27732         * modules/uniconv/u16-strconv-from-enc: Likewise.
27733         * modules/uniconv/u16-strconv-from-locale: Likewise.
27734         * modules/uniconv/u16-strconv-to-enc: Likewise.
27735         * modules/uniconv/u16-strconv-to-locale: Likewise.
27736         * modules/uniconv/u32-conv-from-enc: Likewise.
27737         * modules/uniconv/u32-conv-to-enc: Likewise.
27738         * modules/uniconv/u32-strconv-from-enc: Likewise.
27739         * modules/uniconv/u32-strconv-from-locale: Likewise.
27740         * modules/uniconv/u32-strconv-to-enc: Likewise.
27741         * modules/uniconv/u32-strconv-to-locale: Likewise.
27742         * modules/unictype/bidicategory-byname: Likewise.
27743         * modules/unictype/bidicategory-name: Likewise.
27744         * modules/unictype/bidicategory-of: Likewise.
27745         * modules/unictype/bidicategory-test: Likewise.
27746         * modules/unictype/block-list: Likewise.
27747         * modules/unictype/block-test: Likewise.
27748         * modules/unictype/category-C: Likewise.
27749         * modules/unictype/category-Cc: Likewise.
27750         * modules/unictype/category-Cf: Likewise.
27751         * modules/unictype/category-Cn: Likewise.
27752         * modules/unictype/category-Co: Likewise.
27753         * modules/unictype/category-Cs: Likewise.
27754         * modules/unictype/category-L: Likewise.
27755         * modules/unictype/category-Ll: Likewise.
27756         * modules/unictype/category-Lm: Likewise.
27757         * modules/unictype/category-Lo: Likewise.
27758         * modules/unictype/category-Lt: Likewise.
27759         * modules/unictype/category-Lu: Likewise.
27760         * modules/unictype/category-M: Likewise.
27761         * modules/unictype/category-Mc: Likewise.
27762         * modules/unictype/category-Me: Likewise.
27763         * modules/unictype/category-Mn: Likewise.
27764         * modules/unictype/category-N: Likewise.
27765         * modules/unictype/category-Nd: Likewise.
27766         * modules/unictype/category-Nl: Likewise.
27767         * modules/unictype/category-No: Likewise.
27768         * modules/unictype/category-P: Likewise.
27769         * modules/unictype/category-Pc: Likewise.
27770         * modules/unictype/category-Pd: Likewise.
27771         * modules/unictype/category-Pe: Likewise.
27772         * modules/unictype/category-Pf: Likewise.
27773         * modules/unictype/category-Pi: Likewise.
27774         * modules/unictype/category-Po: Likewise.
27775         * modules/unictype/category-Ps: Likewise.
27776         * modules/unictype/category-S: Likewise.
27777         * modules/unictype/category-Sc: Likewise.
27778         * modules/unictype/category-Sk: Likewise.
27779         * modules/unictype/category-Sm: Likewise.
27780         * modules/unictype/category-So: Likewise.
27781         * modules/unictype/category-Z: Likewise.
27782         * modules/unictype/category-Zl: Likewise.
27783         * modules/unictype/category-Zp: Likewise.
27784         * modules/unictype/category-Zs: Likewise.
27785         * modules/unictype/category-and: Likewise.
27786         * modules/unictype/category-and-not: Likewise.
27787         * modules/unictype/category-byname: Likewise.
27788         * modules/unictype/category-name: Likewise.
27789         * modules/unictype/category-none: Likewise.
27790         * modules/unictype/category-of: Likewise.
27791         * modules/unictype/category-or: Likewise.
27792         * modules/unictype/category-test: Likewise.
27793         * modules/unictype/combining-class: Likewise.
27794         * modules/unictype/ctype-alnum: Likewise.
27795         * modules/unictype/ctype-alpha: Likewise.
27796         * modules/unictype/ctype-blank: Likewise.
27797         * modules/unictype/ctype-cntrl: Likewise.
27798         * modules/unictype/ctype-digit: Likewise.
27799         * modules/unictype/ctype-graph: Likewise.
27800         * modules/unictype/ctype-lower: Likewise.
27801         * modules/unictype/ctype-print: Likewise.
27802         * modules/unictype/ctype-punct: Likewise.
27803         * modules/unictype/ctype-space: Likewise.
27804         * modules/unictype/ctype-upper: Likewise.
27805         * modules/unictype/ctype-xdigit: Likewise.
27806         * modules/unictype/decimal-digit: Likewise.
27807         * modules/unictype/digit: Likewise.
27808         * modules/unictype/mirror: Likewise.
27809         * modules/unictype/numeric: Likewise.
27810         * modules/unictype/property-alphabetic: Likewise.
27811         * modules/unictype/property-ascii-hex-digit: Likewise.
27812         * modules/unictype/property-bidi-arabic-digit: Likewise.
27813         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27814         * modules/unictype/property-bidi-block-separator: Likewise.
27815         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27816         * modules/unictype/property-bidi-common-separator: Likewise.
27817         * modules/unictype/property-bidi-control: Likewise.
27818         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27819         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27820         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27821         * modules/unictype/property-bidi-european-digit: Likewise.
27822         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27823         * modules/unictype/property-bidi-left-to-right: Likewise.
27824         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27825         * modules/unictype/property-bidi-other-neutral: Likewise.
27826         * modules/unictype/property-bidi-pdf: Likewise.
27827         * modules/unictype/property-bidi-segment-separator: Likewise.
27828         * modules/unictype/property-bidi-whitespace: Likewise.
27829         * modules/unictype/property-byname: Likewise.
27830         * modules/unictype/property-combining: Likewise.
27831         * modules/unictype/property-composite: Likewise.
27832         * modules/unictype/property-currency-symbol: Likewise.
27833         * modules/unictype/property-dash: Likewise.
27834         * modules/unictype/property-decimal-digit: Likewise.
27835         * modules/unictype/property-default-ignorable-code-point: Likewise.
27836         * modules/unictype/property-deprecated: Likewise.
27837         * modules/unictype/property-diacritic: Likewise.
27838         * modules/unictype/property-extender: Likewise.
27839         * modules/unictype/property-format-control: Likewise.
27840         * modules/unictype/property-grapheme-base: Likewise.
27841         * modules/unictype/property-grapheme-extend: Likewise.
27842         * modules/unictype/property-grapheme-link: Likewise.
27843         * modules/unictype/property-hex-digit: Likewise.
27844         * modules/unictype/property-hyphen: Likewise.
27845         * modules/unictype/property-id-continue: Likewise.
27846         * modules/unictype/property-id-start: Likewise.
27847         * modules/unictype/property-ideographic: Likewise.
27848         * modules/unictype/property-ids-binary-operator: Likewise.
27849         * modules/unictype/property-ids-trinary-operator: Likewise.
27850         * modules/unictype/property-ignorable-control: Likewise.
27851         * modules/unictype/property-iso-control: Likewise.
27852         * modules/unictype/property-join-control: Likewise.
27853         * modules/unictype/property-left-of-pair: Likewise.
27854         * modules/unictype/property-line-separator: Likewise.
27855         * modules/unictype/property-logical-order-exception: Likewise.
27856         * modules/unictype/property-lowercase: Likewise.
27857         * modules/unictype/property-math: Likewise.
27858         * modules/unictype/property-non-break: Likewise.
27859         * modules/unictype/property-not-a-character: Likewise.
27860         * modules/unictype/property-numeric: Likewise.
27861         * modules/unictype/property-other-alphabetic: Likewise.
27862         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27863         * modules/unictype/property-other-grapheme-extend: Likewise.
27864         * modules/unictype/property-other-id-continue: Likewise.
27865         * modules/unictype/property-other-id-start: Likewise.
27866         * modules/unictype/property-other-lowercase: Likewise.
27867         * modules/unictype/property-other-math: Likewise.
27868         * modules/unictype/property-other-uppercase: Likewise.
27869         * modules/unictype/property-paired-punctuation: Likewise.
27870         * modules/unictype/property-paragraph-separator: Likewise.
27871         * modules/unictype/property-pattern-syntax: Likewise.
27872         * modules/unictype/property-pattern-white-space: Likewise.
27873         * modules/unictype/property-private-use: Likewise.
27874         * modules/unictype/property-punctuation: Likewise.
27875         * modules/unictype/property-quotation-mark: Likewise.
27876         * modules/unictype/property-radical: Likewise.
27877         * modules/unictype/property-sentence-terminal: Likewise.
27878         * modules/unictype/property-soft-dotted: Likewise.
27879         * modules/unictype/property-space: Likewise.
27880         * modules/unictype/property-terminal-punctuation: Likewise.
27881         * modules/unictype/property-test: Likewise.
27882         * modules/unictype/property-titlecase: Likewise.
27883         * modules/unictype/property-unassigned-code-value: Likewise.
27884         * modules/unictype/property-unified-ideograph: Likewise.
27885         * modules/unictype/property-uppercase: Likewise.
27886         * modules/unictype/property-variation-selector: Likewise.
27887         * modules/unictype/property-white-space: Likewise.
27888         * modules/unictype/property-xid-continue: Likewise.
27889         * modules/unictype/property-xid-start: Likewise.
27890         * modules/unictype/property-zero-width: Likewise.
27891         * modules/unictype/scripts: Likewise.
27892         * modules/unictype/syntax-c-ident: Likewise.
27893         * modules/unictype/syntax-c-whitespace: Likewise.
27894         * modules/unictype/syntax-java-ident: Likewise.
27895         * modules/unictype/syntax-java-whitespace: Likewise.
27896         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27897         * modules/unilbrk/u8-width-linebreaks: Likewise.
27898         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27899         * modules/unilbrk/u16-width-linebreaks: Likewise.
27900         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27901         * modules/unilbrk/u32-width-linebreaks: Likewise.
27902         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27903         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27904         * modules/uniname/uniname: Likewise.
27905         * modules/uninorm/canonical-decomposition: Likewise.
27906         * modules/uninorm/composition: Likewise.
27907         * modules/uninorm/decomposing-form: Likewise.
27908         * modules/uninorm/decomposition: Likewise.
27909         * modules/uninorm/filter: Likewise.
27910         * modules/uninorm/nfc: Likewise.
27911         * modules/uninorm/nfd: Likewise.
27912         * modules/uninorm/nfkc: Likewise.
27913         * modules/uninorm/nfkd: Likewise.
27914         * modules/uninorm/u8-normalize: Likewise.
27915         * modules/uninorm/u8-normcmp: Likewise.
27916         * modules/uninorm/u8-normcoll: Likewise.
27917         * modules/uninorm/u8-normxfrm: Likewise.
27918         * modules/uninorm/u16-normalize: Likewise.
27919         * modules/uninorm/u16-normcmp: Likewise.
27920         * modules/uninorm/u16-normcoll: Likewise.
27921         * modules/uninorm/u16-normxfrm: Likewise.
27922         * modules/uninorm/u32-normalize: Likewise.
27923         * modules/uninorm/u32-normcmp: Likewise.
27924         * modules/uninorm/u32-normcoll: Likewise.
27925         * modules/uninorm/u32-normxfrm: Likewise.
27926         * modules/unistdio/u8-asnprintf: Likewise.
27927         * modules/unistdio/u8-asprintf: Likewise.
27928         * modules/unistdio/u8-snprintf: Likewise.
27929         * modules/unistdio/u8-sprintf: Likewise.
27930         * modules/unistdio/u8-u8-asnprintf: Likewise.
27931         * modules/unistdio/u8-u8-asprintf: Likewise.
27932         * modules/unistdio/u8-u8-snprintf: Likewise.
27933         * modules/unistdio/u8-u8-sprintf: Likewise.
27934         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27935         * modules/unistdio/u8-u8-vasprintf: Likewise.
27936         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27937         * modules/unistdio/u8-u8-vsprintf: Likewise.
27938         * modules/unistdio/u8-vasnprintf: Likewise.
27939         * modules/unistdio/u8-vasprintf: Likewise.
27940         * modules/unistdio/u8-vsnprintf: Likewise.
27941         * modules/unistdio/u8-vsprintf: Likewise.
27942         * modules/unistdio/u16-asnprintf: Likewise.
27943         * modules/unistdio/u16-asprintf: Likewise.
27944         * modules/unistdio/u16-snprintf: Likewise.
27945         * modules/unistdio/u16-sprintf: Likewise.
27946         * modules/unistdio/u16-u16-asnprintf: Likewise.
27947         * modules/unistdio/u16-u16-asprintf: Likewise.
27948         * modules/unistdio/u16-u16-snprintf: Likewise.
27949         * modules/unistdio/u16-u16-sprintf: Likewise.
27950         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27951         * modules/unistdio/u16-u16-vasprintf: Likewise.
27952         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27953         * modules/unistdio/u16-u16-vsprintf: Likewise.
27954         * modules/unistdio/u16-vasnprintf: Likewise.
27955         * modules/unistdio/u16-vasprintf: Likewise.
27956         * modules/unistdio/u16-vsnprintf: Likewise.
27957         * modules/unistdio/u16-vsprintf: Likewise.
27958         * modules/unistdio/u32-asnprintf: Likewise.
27959         * modules/unistdio/u32-asprintf: Likewise.
27960         * modules/unistdio/u32-snprintf: Likewise.
27961         * modules/unistdio/u32-sprintf: Likewise.
27962         * modules/unistdio/u32-u32-asnprintf: Likewise.
27963         * modules/unistdio/u32-u32-asprintf: Likewise.
27964         * modules/unistdio/u32-u32-snprintf: Likewise.
27965         * modules/unistdio/u32-u32-sprintf: Likewise.
27966         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27967         * modules/unistdio/u32-u32-vasprintf: Likewise.
27968         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27969         * modules/unistdio/u32-u32-vsprintf: Likewise.
27970         * modules/unistdio/u32-vasnprintf: Likewise.
27971         * modules/unistdio/u32-vasprintf: Likewise.
27972         * modules/unistdio/u32-vsnprintf: Likewise.
27973         * modules/unistdio/u32-vsprintf: Likewise.
27974         * modules/unistdio/ulc-asnprintf: Likewise.
27975         * modules/unistdio/ulc-asprintf: Likewise.
27976         * modules/unistdio/ulc-fprintf: Likewise.
27977         * modules/unistdio/ulc-snprintf: Likewise.
27978         * modules/unistdio/ulc-sprintf: Likewise.
27979         * modules/unistdio/ulc-vasnprintf: Likewise.
27980         * modules/unistdio/ulc-vasprintf: Likewise.
27981         * modules/unistdio/ulc-vfprintf: Likewise.
27982         * modules/unistdio/ulc-vsnprintf: Likewise.
27983         * modules/unistdio/ulc-vsprintf: Likewise.
27984         * modules/unistr/u8-check: Likewise.
27985         * modules/unistr/u8-chr: Likewise.
27986         * modules/unistr/u8-cmp: Likewise.
27987         * modules/unistr/u8-cmp2: Likewise.
27988         * modules/unistr/u8-cpy: Likewise.
27989         * modules/unistr/u8-cpy-alloc: Likewise.
27990         * modules/unistr/u8-endswith: Likewise.
27991         * modules/unistr/u8-mblen: Likewise.
27992         * modules/unistr/u8-mbsnlen: Likewise.
27993         * modules/unistr/u8-mbtouc: Likewise.
27994         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27995         * modules/unistr/u8-mbtoucr: Likewise.
27996         * modules/unistr/u8-move: Likewise.
27997         * modules/unistr/u8-next: Likewise.
27998         * modules/unistr/u8-prev: Likewise.
27999         * modules/unistr/u8-set: Likewise.
28000         * modules/unistr/u8-startswith: Likewise.
28001         * modules/unistr/u8-stpcpy: Likewise.
28002         * modules/unistr/u8-stpncpy: Likewise.
28003         * modules/unistr/u8-strcat: Likewise.
28004         * modules/unistr/u8-strchr: Likewise.
28005         * modules/unistr/u8-strcmp: Likewise.
28006         * modules/unistr/u8-strcoll: Likewise.
28007         * modules/unistr/u8-strcpy: Likewise.
28008         * modules/unistr/u8-strcspn: Likewise.
28009         * modules/unistr/u8-strdup: Likewise.
28010         * modules/unistr/u8-strlen: Likewise.
28011         * modules/unistr/u8-strmblen: Likewise.
28012         * modules/unistr/u8-strmbtouc: Likewise.
28013         * modules/unistr/u8-strncat: Likewise.
28014         * modules/unistr/u8-strncmp: Likewise.
28015         * modules/unistr/u8-strncpy: Likewise.
28016         * modules/unistr/u8-strnlen: Likewise.
28017         * modules/unistr/u8-strpbrk: Likewise.
28018         * modules/unistr/u8-strrchr: Likewise.
28019         * modules/unistr/u8-strspn: Likewise.
28020         * modules/unistr/u8-strstr: Likewise.
28021         * modules/unistr/u8-strtok: Likewise.
28022         * modules/unistr/u8-to-u16: Likewise.
28023         * modules/unistr/u8-to-u32: Likewise.
28024         * modules/unistr/u8-uctomb: Likewise.
28025         * modules/unistr/u16-check: Likewise.
28026         * modules/unistr/u16-chr: Likewise.
28027         * modules/unistr/u16-cmp: Likewise.
28028         * modules/unistr/u16-cmp2: Likewise.
28029         * modules/unistr/u16-cpy: Likewise.
28030         * modules/unistr/u16-cpy-alloc: Likewise.
28031         * modules/unistr/u16-endswith: Likewise.
28032         * modules/unistr/u16-mblen: Likewise.
28033         * modules/unistr/u16-mbsnlen: Likewise.
28034         * modules/unistr/u16-mbtouc: Likewise.
28035         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28036         * modules/unistr/u16-mbtoucr: Likewise.
28037         * modules/unistr/u16-move: Likewise.
28038         * modules/unistr/u16-next: Likewise.
28039         * modules/unistr/u16-prev: Likewise.
28040         * modules/unistr/u16-set: Likewise.
28041         * modules/unistr/u16-startswith: Likewise.
28042         * modules/unistr/u16-stpcpy: Likewise.
28043         * modules/unistr/u16-stpncpy: Likewise.
28044         * modules/unistr/u16-strcat: Likewise.
28045         * modules/unistr/u16-strchr: Likewise.
28046         * modules/unistr/u16-strcmp: Likewise.
28047         * modules/unistr/u16-strcoll: Likewise.
28048         * modules/unistr/u16-strcpy: Likewise.
28049         * modules/unistr/u16-strcspn: Likewise.
28050         * modules/unistr/u16-strdup: Likewise.
28051         * modules/unistr/u16-strlen: Likewise.
28052         * modules/unistr/u16-strmblen: Likewise.
28053         * modules/unistr/u16-strmbtouc: Likewise.
28054         * modules/unistr/u16-strncat: Likewise.
28055         * modules/unistr/u16-strncmp: Likewise.
28056         * modules/unistr/u16-strncpy: Likewise.
28057         * modules/unistr/u16-strnlen: Likewise.
28058         * modules/unistr/u16-strpbrk: Likewise.
28059         * modules/unistr/u16-strrchr: Likewise.
28060         * modules/unistr/u16-strspn: Likewise.
28061         * modules/unistr/u16-strstr: Likewise.
28062         * modules/unistr/u16-strtok: Likewise.
28063         * modules/unistr/u16-to-u32: Likewise.
28064         * modules/unistr/u16-to-u8: Likewise.
28065         * modules/unistr/u16-uctomb: Likewise.
28066         * modules/unistr/u32-check: Likewise.
28067         * modules/unistr/u32-chr: Likewise.
28068         * modules/unistr/u32-cmp: Likewise.
28069         * modules/unistr/u32-cmp2: Likewise.
28070         * modules/unistr/u32-cpy: Likewise.
28071         * modules/unistr/u32-cpy-alloc: Likewise.
28072         * modules/unistr/u32-endswith: Likewise.
28073         * modules/unistr/u32-mblen: Likewise.
28074         * modules/unistr/u32-mbsnlen: Likewise.
28075         * modules/unistr/u32-mbtouc: Likewise.
28076         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28077         * modules/unistr/u32-mbtoucr: Likewise.
28078         * modules/unistr/u32-move: Likewise.
28079         * modules/unistr/u32-next: Likewise.
28080         * modules/unistr/u32-prev: Likewise.
28081         * modules/unistr/u32-set: Likewise.
28082         * modules/unistr/u32-startswith: Likewise.
28083         * modules/unistr/u32-stpcpy: Likewise.
28084         * modules/unistr/u32-stpncpy: Likewise.
28085         * modules/unistr/u32-strcat: Likewise.
28086         * modules/unistr/u32-strchr: Likewise.
28087         * modules/unistr/u32-strcmp: Likewise.
28088         * modules/unistr/u32-strcoll: Likewise.
28089         * modules/unistr/u32-strcpy: Likewise.
28090         * modules/unistr/u32-strcspn: Likewise.
28091         * modules/unistr/u32-strdup: Likewise.
28092         * modules/unistr/u32-strlen: Likewise.
28093         * modules/unistr/u32-strmblen: Likewise.
28094         * modules/unistr/u32-strmbtouc: Likewise.
28095         * modules/unistr/u32-strncat: Likewise.
28096         * modules/unistr/u32-strncmp: Likewise.
28097         * modules/unistr/u32-strncpy: Likewise.
28098         * modules/unistr/u32-strnlen: Likewise.
28099         * modules/unistr/u32-strpbrk: Likewise.
28100         * modules/unistr/u32-strrchr: Likewise.
28101         * modules/unistr/u32-strspn: Likewise.
28102         * modules/unistr/u32-strstr: Likewise.
28103         * modules/unistr/u32-strtok: Likewise.
28104         * modules/unistr/u32-to-u16: Likewise.
28105         * modules/unistr/u32-to-u8: Likewise.
28106         * modules/unistr/u32-uctomb: Likewise.
28107         * modules/uniwbrk/u8-wordbreaks: Likewise.
28108         * modules/uniwbrk/u16-wordbreaks: Likewise.
28109         * modules/uniwbrk/u32-wordbreaks: Likewise.
28110         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28111         * modules/uniwbrk/wordbreak-property: Likewise.
28112         * modules/uniwidth/u8-strwidth: Likewise.
28113         * modules/uniwidth/u8-width: Likewise.
28114         * modules/uniwidth/u16-strwidth: Likewise.
28115         * modules/uniwidth/u16-width: Likewise.
28116         * modules/uniwidth/u32-strwidth: Likewise.
28117         * modules/uniwidth/u32-width: Likewise.
28118         * modules/uniwidth/width: Likewise.
28119         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28120         with $(LIBUNISTRING).
28121         * modules/unicase/ignorable-tests: Likewise.
28122         * modules/unicase/locale-language-tests: Likewise.
28123         * modules/unicase/tolower-tests: Likewise.
28124         * modules/unicase/totitle-tests: Likewise.
28125         * modules/unicase/toupper-tests: Likewise.
28126         * modules/unicase/u8-casecmp-tests: Likewise.
28127         * modules/unicase/u8-casecoll-tests: Likewise.
28128         * modules/unicase/u8-casefold-tests: Likewise.
28129         * modules/unicase/u8-is-cased-tests: Likewise.
28130         * modules/unicase/u8-is-casefolded-tests: Likewise.
28131         * modules/unicase/u8-is-lowercase-tests: Likewise.
28132         * modules/unicase/u8-is-titlecase-tests: Likewise.
28133         * modules/unicase/u8-is-uppercase-tests: Likewise.
28134         * modules/unicase/u8-tolower-tests: Likewise.
28135         * modules/unicase/u8-totitle-tests: Likewise.
28136         * modules/unicase/u8-toupper-tests: Likewise.
28137         * modules/unicase/u16-casecmp-tests: Likewise.
28138         * modules/unicase/u16-casecoll-tests: Likewise.
28139         * modules/unicase/u16-casefold-tests: Likewise.
28140         * modules/unicase/u16-is-cased-tests: Likewise.
28141         * modules/unicase/u16-is-casefolded-tests: Likewise.
28142         * modules/unicase/u16-is-lowercase-tests: Likewise.
28143         * modules/unicase/u16-is-titlecase-tests: Likewise.
28144         * modules/unicase/u16-is-uppercase-tests: Likewise.
28145         * modules/unicase/u16-tolower-tests: Likewise.
28146         * modules/unicase/u16-totitle-tests: Likewise.
28147         * modules/unicase/u16-toupper-tests: Likewise.
28148         * modules/unicase/u32-casecmp-tests: Likewise.
28149         * modules/unicase/u32-casecoll-tests: Likewise.
28150         * modules/unicase/u32-casefold-tests: Likewise.
28151         * modules/unicase/u32-is-cased-tests: Likewise.
28152         * modules/unicase/u32-is-casefolded-tests: Likewise.
28153         * modules/unicase/u32-is-lowercase-tests: Likewise.
28154         * modules/unicase/u32-is-titlecase-tests: Likewise.
28155         * modules/unicase/u32-is-uppercase-tests: Likewise.
28156         * modules/unicase/u32-tolower-tests: Likewise.
28157         * modules/unicase/u32-totitle-tests: Likewise.
28158         * modules/unicase/u32-toupper-tests: Likewise.
28159         * modules/unicase/ulc-casecmp-tests: Likewise.
28160         * modules/unicase/ulc-casecoll-tests: Likewise.
28161         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28162         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28163         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28164         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28165         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28166         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28167         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28168         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28169         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28170         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28171         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28172         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28173         * modules/unictype/bidicategory-byname-tests: Likewise.
28174         * modules/unictype/bidicategory-name-tests: Likewise.
28175         * modules/unictype/bidicategory-of-tests: Likewise.
28176         * modules/unictype/bidicategory-test-tests: Likewise.
28177         * modules/unictype/block-list-tests: Likewise.
28178         * modules/unictype/block-of-tests: Likewise.
28179         * modules/unictype/block-test-tests: Likewise.
28180         * modules/unictype/category-C-tests: Likewise.
28181         * modules/unictype/category-Cc-tests: Likewise.
28182         * modules/unictype/category-Cf-tests: Likewise.
28183         * modules/unictype/category-Cn-tests: Likewise.
28184         * modules/unictype/category-Co-tests: Likewise.
28185         * modules/unictype/category-Cs-tests: Likewise.
28186         * modules/unictype/category-L-tests: Likewise.
28187         * modules/unictype/category-Ll-tests: Likewise.
28188         * modules/unictype/category-Lm-tests: Likewise.
28189         * modules/unictype/category-Lo-tests: Likewise.
28190         * modules/unictype/category-Lt-tests: Likewise.
28191         * modules/unictype/category-Lu-tests: Likewise.
28192         * modules/unictype/category-M-tests: Likewise.
28193         * modules/unictype/category-Mc-tests: Likewise.
28194         * modules/unictype/category-Me-tests: Likewise.
28195         * modules/unictype/category-Mn-tests: Likewise.
28196         * modules/unictype/category-N-tests: Likewise.
28197         * modules/unictype/category-Nd-tests: Likewise.
28198         * modules/unictype/category-Nl-tests: Likewise.
28199         * modules/unictype/category-No-tests: Likewise.
28200         * modules/unictype/category-P-tests: Likewise.
28201         * modules/unictype/category-Pc-tests: Likewise.
28202         * modules/unictype/category-Pd-tests: Likewise.
28203         * modules/unictype/category-Pe-tests: Likewise.
28204         * modules/unictype/category-Pf-tests: Likewise.
28205         * modules/unictype/category-Pi-tests: Likewise.
28206         * modules/unictype/category-Po-tests: Likewise.
28207         * modules/unictype/category-Ps-tests: Likewise.
28208         * modules/unictype/category-S-tests: Likewise.
28209         * modules/unictype/category-Sc-tests: Likewise.
28210         * modules/unictype/category-Sk-tests: Likewise.
28211         * modules/unictype/category-Sm-tests: Likewise.
28212         * modules/unictype/category-So-tests: Likewise.
28213         * modules/unictype/category-Z-tests: Likewise.
28214         * modules/unictype/category-Zl-tests: Likewise.
28215         * modules/unictype/category-Zp-tests: Likewise.
28216         * modules/unictype/category-Zs-tests: Likewise.
28217         * modules/unictype/category-and-not-tests: Likewise.
28218         * modules/unictype/category-and-tests: Likewise.
28219         * modules/unictype/category-byname-tests: Likewise.
28220         * modules/unictype/category-name-tests: Likewise.
28221         * modules/unictype/category-none-tests: Likewise.
28222         * modules/unictype/category-of-tests: Likewise.
28223         * modules/unictype/category-or-tests: Likewise.
28224         * modules/unictype/category-test-withtable-tests: Likewise.
28225         * modules/unictype/combining-class-tests: Likewise.
28226         * modules/unictype/ctype-alnum-tests: Likewise.
28227         * modules/unictype/ctype-alpha-tests: Likewise.
28228         * modules/unictype/ctype-blank-tests: Likewise.
28229         * modules/unictype/ctype-cntrl-tests: Likewise.
28230         * modules/unictype/ctype-digit-tests: Likewise.
28231         * modules/unictype/ctype-graph-tests: Likewise.
28232         * modules/unictype/ctype-lower-tests: Likewise.
28233         * modules/unictype/ctype-print-tests: Likewise.
28234         * modules/unictype/ctype-punct-tests: Likewise.
28235         * modules/unictype/ctype-space-tests: Likewise.
28236         * modules/unictype/ctype-upper-tests: Likewise.
28237         * modules/unictype/ctype-xdigit-tests: Likewise.
28238         * modules/unictype/decimal-digit-tests: Likewise.
28239         * modules/unictype/digit-tests: Likewise.
28240         * modules/unictype/mirror-tests: Likewise.
28241         * modules/unictype/numeric-tests: Likewise.
28242         * modules/unictype/property-alphabetic-tests: Likewise.
28243         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28244         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28245         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28246         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28247         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28248         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28249         * modules/unictype/property-bidi-control-tests: Likewise.
28250         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28251         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28252         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28253         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28254         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28255         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28256         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28257         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28258         * modules/unictype/property-bidi-pdf-tests: Likewise.
28259         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28260         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28261         * modules/unictype/property-byname-tests: Likewise.
28262         * modules/unictype/property-combining-tests: Likewise.
28263         * modules/unictype/property-composite-tests: Likewise.
28264         * modules/unictype/property-currency-symbol-tests: Likewise.
28265         * modules/unictype/property-dash-tests: Likewise.
28266         * modules/unictype/property-decimal-digit-tests: Likewise.
28267         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28268         * modules/unictype/property-deprecated-tests: Likewise.
28269         * modules/unictype/property-diacritic-tests: Likewise.
28270         * modules/unictype/property-extender-tests: Likewise.
28271         * modules/unictype/property-format-control-tests: Likewise.
28272         * modules/unictype/property-grapheme-base-tests: Likewise.
28273         * modules/unictype/property-grapheme-extend-tests: Likewise.
28274         * modules/unictype/property-grapheme-link-tests: Likewise.
28275         * modules/unictype/property-hex-digit-tests: Likewise.
28276         * modules/unictype/property-hyphen-tests: Likewise.
28277         * modules/unictype/property-id-continue-tests: Likewise.
28278         * modules/unictype/property-id-start-tests: Likewise.
28279         * modules/unictype/property-ideographic-tests: Likewise.
28280         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28281         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28282         * modules/unictype/property-ignorable-control-tests: Likewise.
28283         * modules/unictype/property-iso-control-tests: Likewise.
28284         * modules/unictype/property-join-control-tests: Likewise.
28285         * modules/unictype/property-left-of-pair-tests: Likewise.
28286         * modules/unictype/property-line-separator-tests: Likewise.
28287         * modules/unictype/property-logical-order-exception-tests: Likewise.
28288         * modules/unictype/property-lowercase-tests: Likewise.
28289         * modules/unictype/property-math-tests: Likewise.
28290         * modules/unictype/property-non-break-tests: Likewise.
28291         * modules/unictype/property-not-a-character-tests: Likewise.
28292         * modules/unictype/property-numeric-tests: Likewise.
28293         * modules/unictype/property-other-alphabetic-tests: Likewise.
28294         * modules/unictype/property-other-default-ignorable-code-point-tests:
28295         Likewise.
28296         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28297         * modules/unictype/property-other-id-continue-tests: Likewise.
28298         * modules/unictype/property-other-id-start-tests: Likewise.
28299         * modules/unictype/property-other-lowercase-tests: Likewise.
28300         * modules/unictype/property-other-math-tests: Likewise.
28301         * modules/unictype/property-other-uppercase-tests: Likewise.
28302         * modules/unictype/property-paired-punctuation-tests: Likewise.
28303         * modules/unictype/property-paragraph-separator-tests: Likewise.
28304         * modules/unictype/property-pattern-syntax-tests: Likewise.
28305         * modules/unictype/property-pattern-white-space-tests: Likewise.
28306         * modules/unictype/property-private-use-tests: Likewise.
28307         * modules/unictype/property-punctuation-tests: Likewise.
28308         * modules/unictype/property-quotation-mark-tests: Likewise.
28309         * modules/unictype/property-radical-tests: Likewise.
28310         * modules/unictype/property-sentence-terminal-tests: Likewise.
28311         * modules/unictype/property-soft-dotted-tests: Likewise.
28312         * modules/unictype/property-space-tests: Likewise.
28313         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28314         * modules/unictype/property-test-tests: Likewise.
28315         * modules/unictype/property-titlecase-tests: Likewise.
28316         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28317         * modules/unictype/property-unified-ideograph-tests: Likewise.
28318         * modules/unictype/property-uppercase-tests: Likewise.
28319         * modules/unictype/property-variation-selector-tests: Likewise.
28320         * modules/unictype/property-white-space-tests: Likewise.
28321         * modules/unictype/property-xid-continue-tests: Likewise.
28322         * modules/unictype/property-xid-start-tests: Likewise.
28323         * modules/unictype/property-zero-width-tests: Likewise.
28324         * modules/unictype/scripts-tests: Likewise.
28325         * modules/unictype/syntax-c-ident-tests: Likewise.
28326         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28327         * modules/unictype/syntax-java-ident-tests: Likewise.
28328         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28329         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28330         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28331         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28332         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28333         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28334         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28335         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28336         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28337         * modules/uniname/uniname-tests: Likewise.
28338         * modules/uninorm/canonical-decomposition-tests: Likewise.
28339         * modules/uninorm/compat-decomposition-tests: Likewise.
28340         * modules/uninorm/composition-tests: Likewise.
28341         * modules/uninorm/decomposing-form-tests: Likewise.
28342         * modules/uninorm/decomposition-tests: Likewise.
28343         * modules/uninorm/filter-tests: Likewise.
28344         * modules/uninorm/nfc-tests: Likewise.
28345         * modules/uninorm/nfd-tests: Likewise.
28346         * modules/uninorm/nfkc-tests: Likewise.
28347         * modules/uninorm/nfkd-tests: Likewise.
28348         * modules/uninorm/u8-normcmp-tests: Likewise.
28349         * modules/uninorm/u8-normcoll-tests: Likewise.
28350         * modules/uninorm/u16-normcmp-tests: Likewise.
28351         * modules/uninorm/u16-normcoll-tests: Likewise.
28352         * modules/uninorm/u32-normcmp-tests: Likewise.
28353         * modules/uninorm/u32-normcoll-tests: Likewise.
28354         * modules/unistdio/u8-asnprintf-tests: Likewise.
28355         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28356         * modules/unistdio/u8-vasprintf-tests: Likewise.
28357         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28358         * modules/unistdio/u8-vsprintf-tests: Likewise.
28359         * modules/unistdio/u16-asnprintf-tests: Likewise.
28360         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28361         * modules/unistdio/u16-vasprintf-tests: Likewise.
28362         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28363         * modules/unistdio/u16-vsprintf-tests: Likewise.
28364         * modules/unistdio/u32-asnprintf-tests: Likewise.
28365         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28366         * modules/unistdio/u32-vasprintf-tests: Likewise.
28367         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28368         * modules/unistdio/u32-vsprintf-tests: Likewise.
28369         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28370         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28371         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28372         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28373         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28374         * modules/unistr/u8-check-tests: Likewise.
28375         * modules/unistr/u8-chr-tests: Likewise.
28376         * modules/unistr/u8-cmp-tests: Likewise.
28377         * modules/unistr/u8-cmp2-tests: Likewise.
28378         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28379         * modules/unistr/u8-cpy-tests: Likewise.
28380         * modules/unistr/u8-mblen-tests: Likewise.
28381         * modules/unistr/u8-mbsnlen-tests: Likewise.
28382         * modules/unistr/u8-mbtouc-tests: Likewise.
28383         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28384         * modules/unistr/u8-mbtoucr-tests: Likewise.
28385         * modules/unistr/u8-move-tests: Likewise.
28386         * modules/unistr/u8-next-tests: Likewise.
28387         * modules/unistr/u8-prev-tests: Likewise.
28388         * modules/unistr/u8-set-tests: Likewise.
28389         * modules/unistr/u8-stpcpy-tests: Likewise.
28390         * modules/unistr/u8-stpncpy-tests: Likewise.
28391         * modules/unistr/u8-strcat-tests: Likewise.
28392         * modules/unistr/u8-strcmp-tests: Likewise.
28393         * modules/unistr/u8-strcoll-tests: Likewise.
28394         * modules/unistr/u8-strcpy-tests: Likewise.
28395         * modules/unistr/u8-strdup-tests: Likewise.
28396         * modules/unistr/u8-strlen-tests: Likewise.
28397         * modules/unistr/u8-strmblen-tests: Likewise.
28398         * modules/unistr/u8-strmbtouc-tests: Likewise.
28399         * modules/unistr/u8-strncat-tests: Likewise.
28400         * modules/unistr/u8-strncmp-tests: Likewise.
28401         * modules/unistr/u8-strncpy-tests: Likewise.
28402         * modules/unistr/u8-strnlen-tests: Likewise.
28403         * modules/unistr/u8-to-u16-tests: Likewise.
28404         * modules/unistr/u8-to-u32-tests: Likewise.
28405         * modules/unistr/u8-uctomb-tests: Likewise.
28406         * modules/unistr/u16-check-tests: Likewise.
28407         * modules/unistr/u16-chr-tests: Likewise.
28408         * modules/unistr/u16-cmp-tests: Likewise.
28409         * modules/unistr/u16-cmp2-tests: Likewise.
28410         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28411         * modules/unistr/u16-cpy-tests: Likewise.
28412         * modules/unistr/u16-mblen-tests: Likewise.
28413         * modules/unistr/u16-mbsnlen-tests: Likewise.
28414         * modules/unistr/u16-mbtouc-tests: Likewise.
28415         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28416         * modules/unistr/u16-mbtoucr-tests: Likewise.
28417         * modules/unistr/u16-move-tests: Likewise.
28418         * modules/unistr/u16-next-tests: Likewise.
28419         * modules/unistr/u16-prev-tests: Likewise.
28420         * modules/unistr/u16-set-tests: Likewise.
28421         * modules/unistr/u16-stpcpy-tests: Likewise.
28422         * modules/unistr/u16-stpncpy-tests: Likewise.
28423         * modules/unistr/u16-strcat-tests: Likewise.
28424         * modules/unistr/u16-strcmp-tests: Likewise.
28425         * modules/unistr/u16-strcoll-tests: Likewise.
28426         * modules/unistr/u16-strcpy-tests: Likewise.
28427         * modules/unistr/u16-strdup-tests: Likewise.
28428         * modules/unistr/u16-strlen-tests: Likewise.
28429         * modules/unistr/u16-strmblen-tests: Likewise.
28430         * modules/unistr/u16-strmbtouc-tests: Likewise.
28431         * modules/unistr/u16-strncat-tests: Likewise.
28432         * modules/unistr/u16-strncmp-tests: Likewise.
28433         * modules/unistr/u16-strncpy-tests: Likewise.
28434         * modules/unistr/u16-strnlen-tests: Likewise.
28435         * modules/unistr/u16-to-u32-tests: Likewise.
28436         * modules/unistr/u16-to-u8-tests: Likewise.
28437         * modules/unistr/u16-uctomb-tests: Likewise.
28438         * modules/unistr/u32-check-tests: Likewise.
28439         * modules/unistr/u32-chr-tests: Likewise.
28440         * modules/unistr/u32-cmp-tests: Likewise.
28441         * modules/unistr/u32-cmp2-tests: Likewise.
28442         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28443         * modules/unistr/u32-cpy-tests: Likewise.
28444         * modules/unistr/u32-mblen-tests: Likewise.
28445         * modules/unistr/u32-mbsnlen-tests: Likewise.
28446         * modules/unistr/u32-mbtouc-tests: Likewise.
28447         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28448         * modules/unistr/u32-mbtoucr-tests: Likewise.
28449         * modules/unistr/u32-move-tests: Likewise.
28450         * modules/unistr/u32-next-tests: Likewise.
28451         * modules/unistr/u32-prev-tests: Likewise.
28452         * modules/unistr/u32-set-tests: Likewise.
28453         * modules/unistr/u32-stpcpy-tests: Likewise.
28454         * modules/unistr/u32-stpncpy-tests: Likewise.
28455         * modules/unistr/u32-strcat-tests: Likewise.
28456         * modules/unistr/u32-strcmp-tests: Likewise.
28457         * modules/unistr/u32-strcoll-tests: Likewise.
28458         * modules/unistr/u32-strcpy-tests: Likewise.
28459         * modules/unistr/u32-strdup-tests: Likewise.
28460         * modules/unistr/u32-strlen-tests: Likewise.
28461         * modules/unistr/u32-strmblen-tests: Likewise.
28462         * modules/unistr/u32-strmbtouc-tests: Likewise.
28463         * modules/unistr/u32-strncat-tests: Likewise.
28464         * modules/unistr/u32-strncmp-tests: Likewise.
28465         * modules/unistr/u32-strncpy-tests: Likewise.
28466         * modules/unistr/u32-strnlen-tests: Likewise.
28467         * modules/unistr/u32-to-u16-tests: Likewise.
28468         * modules/unistr/u32-to-u8-tests: Likewise.
28469         * modules/unistr/u32-uctomb-tests: Likewise.
28470         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28471         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28472         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28473         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28474         * modules/uniwidth/u8-strwidth-tests: Likewise.
28475         * modules/uniwidth/u8-width-tests: Likewise.
28476         * modules/uniwidth/u16-strwidth-tests: Likewise.
28477         * modules/uniwidth/u16-width-tests: Likewise.
28478         * modules/uniwidth/u32-strwidth-tests: Likewise.
28479         * modules/uniwidth/u32-width-tests: Likewise.
28480         * modules/uniwidth/width-tests: Likewise.
28481
28482 2010-05-18  Richard Jones  <rjones@redhat.com>
28483
28484         doc: users.txt: list hivex
28485         * users.txt: Add hivex.
28486
28487 2010-05-18  Richard Jones  <rjones@redhat.com>
28488
28489         doc: users.txt: list febootstrap
28490         * users.txt: Add febootstrap.
28491
28492 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28493
28494         bootstrap: fix an error when gnulib is not used as a git submodule
28495         * build-aux/bootstrap (gnulib_path): If its length is zero then
28496         assign "gnulib" to it.
28497         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28498
28499 2010-05-16  Bruno Haible  <bruno@clisp.org>
28500
28501         Avoid autoconf warnings about AM_ICONV.
28502         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28503         2.64.
28504
28505 2010-05-16  Bruno Haible  <bruno@clisp.org>
28506
28507         absolute-header: Make the macro usable in more situations.
28508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28509         from gl_ABSOLUTE_HEADER.
28510         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28511
28512 2010-05-16  James Youngman  <jay@gnu.org>
28513
28514         doc: update users.txt
28515         * users.txt: Add CSSC.
28516
28517 2010-05-16  Jim Meyering  <meyering@redhat.com>
28518
28519         init.sh: fix an error in the previous change; add more comments
28520         * tests/init.sh: Compare exit code in loop against 9, not 2.
28521         Patch by Bruno Haible.
28522         Make the two tests more similar by adding an empty "then" clause.
28523         Add comments.
28524
28525         init.sh: avoid unnecessary shell re-exec
28526         * tests/init.sh: Improve the re-exec-required check to first test the
28527         current shell.  If it passes the test, do not search for a shell that
28528         does pass, and do not re-exec.  This test is particularly contorted to
28529         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28530         of $(...) evokes a syntax error and causes immediate shell exit with
28531         status 2.  Bruno Haible reported that the re-exec made it impossible
28532         to single-step through any init.sh-using script.
28533
28534 2010-05-16  Bruno Haible  <bruno@clisp.org>
28535
28536         Fix collision between gnulib's and libintl's printf replacements.
28537         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28538         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28539         (printf): When using GNU C, map the __printf__ function to rpl_printf
28540         via __asm__. When not using GNU C, define rpl_printf instead of
28541         __printf__.
28542         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28543         commit.
28544         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28545         commit.
28546         * m4/asm-underscore.m4: New file.
28547         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28548         * modules/stdio (Files): Add m4/asm-underscore.m4.
28549         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28550         Reported by Ben Pfaff.
28551
28552 2010-05-16  Bruno Haible  <bruno@clisp.org>
28553
28554         verify: Avoid skipping the test on openSUSE 11.0.
28555         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28556
28557 2010-05-13  Bruno Haible  <bruno@clisp.org>
28558
28559         Avoid useless warnings from G++.
28560         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28561         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28562         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28563
28564 2010-05-11  Jim Meyering  <meyering@redhat.com>
28565
28566         maint.mk: tweak preceding change
28567         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28568         regexps tighter by anchoring at EOL, and make the new group "shy"
28569         for slightly decreased overhead.
28570
28571 2010-05-11  Eric Blake  <eblake@redhat.com>
28572
28573         maint.mk: gnulib doesn't guarantee NSIG
28574         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28575
28576 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28577
28578         test-pwrite.c: Remove unused variable declaration.
28579         * tests/test-pwrite.c (main): Remove read_buf declaration.
28580
28581         Remove useless test-pwrite.sh file.
28582         * tests/test-pwrite.sh: Delete file.
28583         * modules/pwrite-tests: Remove references.
28584         Reported by Bruno Haible.
28585
28586 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28587
28588         init.sh: fix a typo
28589         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28590
28591 2010-05-10  Jim Meyering  <meyering@redhat.com>
28592
28593         maint.mk: avoid using a temporary file in the always-defined-macros check
28594         * top/maint.mk (.re-defmac): Remove rule.
28595         (gl_trap_): Remove definition.
28596         (sc_prohibit_always-defined_macros): Rewrite not to create and
28597         depend on a temporary file.  Instead, depend on GNU grep's ability
28598         to read a list of regular expressions from stdin when given "-f -".
28599
28600 2010-05-09  Bruno Haible  <bruno@clisp.org>
28601
28602         Update to GNU gettext 0.18, part 1.
28603         * m4/gettext.m4: Update to GNU gettext 0.18.
28604         * m4/intl.m4: Likewise.
28605         * m4/po.m4: Likewise.
28606         * modules/gettext (Files): Add m4/fcntl-o.m4.
28607         (configure.ac): Require gettext infrastructure from version 0.18.
28608
28609 2010-05-09  Jim Meyering  <meyering@redhat.com>
28610
28611         init.sh: enable MALLOC_PERTURB_
28612         * tests/init.sh: Enable glibc's malloc-perturbing option.
28613
28614         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28615         With my recent change in init.sh from the two-line form:
28616             -#   : ${srcdir=.}
28617             -#   . "$srcdir/init.sh"; path_prepend_ .
28618             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28619         I noticed that using the one-line form would cause this test
28620         to fail with a false-positive, or to stop working altogether,
28621         depending on whether help-version changed or all the tests did.
28622         * top/maint.mk (_hv_regex): Remove this definition.
28623         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28624         (_hv_regex_strong): Use a stronger regex to check for conformance.
28625         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28626         Give a separate diagnostic for lack of conforming use.
28627
28628         maint.mk: prohibit definition of symbols defined by gnulib
28629         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28630         definition of symbols defined by gnulib.
28631
28632 2010-05-09  Bruno Haible  <bruno@clisp.org>
28633
28634         acl: Avoid test failure on Cygwin-hosted mingw.
28635         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28636
28637 2010-05-09  Bruno Haible  <bruno@clisp.org>
28638
28639         error: Use system's fcntl function.
28640         * lib/error.c (fcntl): Undefine.
28641
28642 2010-05-09  Jim Meyering  <meyering@redhat.com>
28643
28644         verify: adjust formatting to be more consistent
28645         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28646         argument-list '('s, and after one comma.
28647
28648 2010-05-09  Bruno Haible  <bruno@clisp.org>
28649
28650         error: More reliable output on mingw.
28651         * lib/error.c: Include <windows.h>.
28652         (is_open): New function.
28653         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28654         defined.
28655
28656 2010-05-09  Bruno Haible  <bruno@clisp.org>
28657
28658         vasnprintf: Fix syntax errors in libintl build on mingw.
28659         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28660         pad_ourselves and prec_ourselves after use.
28661
28662 2010-05-08  Bruno Haible  <bruno@clisp.org>
28663
28664         * lib/config.charset: Update comments for Cygwin 1.7.
28665         * lib/localcharset.c: Likewise.
28666
28667 2010-05-07  Jim Meyering  <meyering@redhat.com>
28668
28669         init.sh: improve comments
28670         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28671         . "${srcdir=.}/init.sh"; path_prepend_ .
28672         Add a note about path_prepend_ and the alternative of using
28673         TESTS_ENVIRONMENT.
28674
28675 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28676
28677         exclude: Unescape hashed patterns in wildcard mode.
28678         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28679         to the hash list.
28680         * tests/test-exclude8.sh: New test case.
28681         * modules/exclude-tests: Add new test.
28682
28683 2010-05-05  Eric Blake  <eblake@redhat.com>
28684
28685         verify: automate tests
28686         * modules/verify-tests: New module.
28687         * tests/test-verify.sh: New file.
28688         * tests/test-verify.c: Guard each negative test with a unique id.
28689         Also avoid warning about unused left hand of comma expressions.
28690
28691 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28692
28693         Further improvements to verify.h, suggested by Eric Blake.
28694         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28695         the GL_* versions, to avoid collision with OpenGL.
28696         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28697         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28698         than testing merely whether it's defined.
28699
28700         Modify verify.h to pacify gcc -Wredundant_decls.
28701         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28702         These use the prefix "GL_" since they're likely to be useful elsewhere.
28703         We may need to break them out into a different .h file.
28704         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28705         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28706         of verify_function__.
28707
28708 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28709
28710         Tests for module pwrite.
28711         * modules/pwrite-tests: New file.
28712         * tests/test-pwrite.sh: New file.
28713         * tests/test-pwrite.c: New file.
28714
28715         New module pwrite.
28716         * lib/unistd.in.h (pwrite): New declaration.
28717         * lib/pwrite.c: New file, from glibc with modifications.
28718         * m4/pwrite.m4: New file.
28719         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28720         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28721         REPLACE_PWRITE.
28722         * modules/pwrite: New file.
28723         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28724         REPLACE_PWRITE.
28725         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28726         * doc/posix-functions/pwrite.texi: Mention the new module.
28727
28728 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28729
28730         pread: Update documentation.
28731         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28732
28733 2010-05-04  Eric Blake  <eblake@redhat.com>
28734
28735         docs: update cygwin progress
28736         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28737         this bug.
28738         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28739         Added in cygwin 1.7.2.
28740         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28741         Likewise.
28742         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28743         Likewise.
28744         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28745         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28746         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28747         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28748         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28749         Mention nproc module.
28750         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28751         bug in cygwin 1.7.5 addition.
28752         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28753         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28754         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28755         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28756         1.7.5.
28757         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28758         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28759         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28760         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28761         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28762         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28763         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28764         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28765         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28766         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28767         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28768         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28769         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28770         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28771         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28772         Likewise.
28773         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28774         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28775         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28776         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28777         Likewise.
28778         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28779         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28780         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28781         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28782         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28783         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28784         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28785         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28786         Likewise.
28787         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28788         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28789         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28790         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28791         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28792         Likewise.
28793         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28794         Likewise.
28795         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28796         Likewise.
28797         * doc/glibc-functions/xdrrec_endofrecord.texi
28798         (xdrrec_endofrecord): Likewise.
28799         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28800         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28801         Likewise.
28802         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28803         Likewise.
28804
28805 2010-05-04  Jim Meyering  <meyering@redhat.com>
28806
28807         gendocs.sh: make its "-s FILE" option more useful
28808         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28809         $PACKAGE to reflect the probably-different basename of "FILE".
28810
28811 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28812
28813         bootstrap: don't ignore download_po_files failure
28814         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28815         failure.
28816
28817 2010-05-03  Jim Meyering  <meyering@redhat.com>
28818
28819         maint.mk: allow to pass options to gendocs.sh
28820         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28821         (gendocs_options_): New overridable variable.
28822
28823         gnu-web-doc-update: don't ignore configure or build failure
28824         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28825
28826         announce-gen: backslash-escape '@'s in --help output
28827         * build-aux/announce-gen: Fix syntax errors.
28828
28829         maint.mk, announce-gen: allow project-specific announcement mail headers
28830         * top/maint.mk (translation_project_): Define default.
28831         (announcement_Cc_, announcement_mail_headers_): Likewise.
28832         (announcement): Invoke announce-gen with new --mail-headers option.
28833         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28834
28835         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28836         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28837         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28838         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28839         line in the "err2" output file when running "make check" in verbose
28840         mode (i.e., with set -x enabled).
28841
28842 2010-05-03  Bruno Haible  <bruno@clisp.org>
28843
28844         wctob: Fix for weird platforms.
28845         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28846         argument value.
28847
28848 2010-05-03  Jim Meyering  <meyering@redhat.com>
28849
28850         maint.mk: prohibit unwarranted use of <strings.h>
28851         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28852         strings.h in a file that does not also use strcasecmp, strncasecmp,
28853         ffs or ffsll.
28854
28855         maint.mk: remove obsolete comments
28856         * top/maint.mk: Remove stale, commented-out rules.
28857
28858 2010-05-02  Bruno Haible  <bruno@clisp.org>
28859
28860         wcwidth: Declare also when it's aliased.
28861         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28862         macro.
28863
28864 2010-05-02  Bruno Haible  <bruno@clisp.org>
28865
28866         Fix regression from 2010-04-25.
28867         * gnulib-tool (func_modules_transitive_closure): Check the status of
28868         all modules, not only of the tests that are of the form foo-tests where
28869         foo is a module.
28870
28871 2010-05-02  Bruno Haible  <bruno@clisp.org>
28872
28873         wctob: Work around nasty Cygwin 1.7.2 bug.
28874         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28875         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28876
28877 2010-05-01  Bruno Haible  <bruno@clisp.org>
28878
28879         fpurge: Sharper test.
28880         * tests/test-fpurge.c (main): Add one more ftell check.
28881         * modules/fpurge-tests (Depends-on): Add ftell.
28882         Suggested by Eric Blake.
28883
28884 2010-05-01  Bruno Haible  <bruno@clisp.org>
28885
28886         ftello: Another test.
28887         * tests/test-ftello3.c: New file.
28888         * modules/ftello-tests (Files): Add it.
28889         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28890         MOSTLYCLEANFILES.
28891
28892         ftell: Another test.
28893         * tests/test-ftell3.c: New file.
28894         * modules/ftell-tests (Files): Add it.
28895         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28896         MOSTLYCLEANFILES.
28897
28898 2010-05-01  Bruno Haible  <bruno@clisp.org>
28899
28900         ftell, ftello: Work around Solaris bug.
28901         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28902         * lib/ftello.c: Include stdio-impl.h.
28903         (ftello): On Solaris, when _IOWRT is set, compute the result without
28904         looking at _IOREAD.
28905         * modules/ftello (Files): Add lib/stdio-impl.h.
28906         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28907         * doc/posix-functions/ftello.texi: Likewise.
28908         Reported by Eric Blake.
28909
28910 2010-05-01  Bruno Haible  <bruno@clisp.org>
28911
28912         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28913         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28914         the _IOWRT flag is also set.
28915
28916 2010-05-01  Bruno Haible  <bruno@clisp.org>
28917
28918         Fix doc about a HP-UX stdio bug.
28919         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28920         * doc/posix-functions/ftello.texi: Likewise.
28921
28922 2010-05-01  Bruno Haible  <bruno@clisp.org>
28923
28924         lseek test: Fix failure on Solaris.
28925         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28926         output.
28927
28928 2010-04-30  Jim Meyering  <meyering@redhat.com>
28929
28930         bootstrap: don't ignore failure to generate po*/Makevars
28931         * build-aux/bootstrap (with_gettext): Don't ignore failure
28932         to create po/Makevars or runtime-po/Makevars.
28933
28934 2010-04-29  Eric Blake  <eblake@redhat.com>
28935
28936         headers: relax license to LGPLv2+
28937         * modules/fcntl-h (License): Relax license.
28938         * modules/getopt-posix (License): Likewise.
28939         * modules/locale (License): Likewise.
28940         * modules/math (License): Likewise.
28941         * modules/pty (License): Likewise.
28942         * modules/sched (License): Likewise.
28943         * modules/search (License): Likewise.
28944         * modules/spawn (License): Likewise.
28945         * modules/stdarg (License): Likewise.
28946         * modules/sysexits (License): Likewise.
28947
28948 2010-04-29  Jim Meyering  <meyering@redhat.com>
28949
28950         inttypes: relax license to LGPLv2+
28951         * modules/inttypes (License): Relax license.
28952
28953 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28954
28955         * top/maint.mk (indent): Run twice to produce idempotent results.
28956
28957 2010-04-28  Bruno Haible  <bruno@clisp.org>
28958
28959         getdate: Generate getdate.c in the source directory.
28960         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28961         MOSTLYCLEANFILES.
28962         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28963
28964 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28965
28966         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28967         is not declared as a const *; avoid warnings in that case.
28968
28969 2010-04-28  Eric Blake  <eblake@redhat.com>
28970
28971         canonicalize-lgpl: avoid compiler warning
28972         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28973         declaration' / 'extraneous semicolon' warning with some compilers.
28974         Reported by Andreas Gruenbacher.
28975
28976 2010-04-28  Jim Meyering  <meyering@redhat.com>
28977
28978         init.sh: ensure a more reliable exit status when exiting via trap
28979         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28980         Inspired by patches from Dmitry V. Levin.
28981         Also trap on signal 3 (SIGQUIT).
28982
28983 2010-04-27  Bruno Haible  <bruno@clisp.org>
28984
28985         Update doc about utimes().
28986         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28987         'utimens' module.
28988         Reported by Andreas Gruenbacher <agruen@suse.de>.
28989
28990 2010-04-27  Eric Blake  <eblake@redhat.com>
28991
28992         full-read, full-write: relax license
28993         * modules/full-read (License): Drop to LGPLv2+.
28994         * modules/full-write (License): Likewise.
28995         * modules/safe-read (License): Likewise.
28996         * modules/safe-write (License): Likewise.
28997
28998         pthread: mention library for linking
28999         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29000
29001 2010-04-27  Jim Meyering  <meyering@redhat.com>
29002
29003         maint.mk: fix a bug introduced in last change
29004         * top/maint.mk (gl_assured_headers_): Now that all names are on
29005         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29006         is not anchored to end of word, it should be adequate.
29007
29008         maint.mk: avoid side-effect in latest syntax-check
29009         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29010         to run commands via $(shell...), and hence to incur cost only when
29011         the new rule is actually run.
29012
29013         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29014         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29015         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29016         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29017         (gl_assured_headers_, az_, AZ_): Define.
29018         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29019
29020 2010-04-26  Jim Meyering  <jim@meyering.net>
29021             Bruno Haible  <bruno@clisp.org>
29022
29023         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29024         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29025         Prompted by an exchange with Gilles Espinasse.
29026
29027 2010-04-26  Jim Meyering  <meyering@redhat.com>
29028
29029         git-version-gen: aesthetic tweak
29030         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29031         so that the command remains on a single line.
29032
29033 2010-04-26  Eric Blake  <eblake@redhat.com>
29034
29035         git-version-gen: allow use on EBCDIC hosts
29036         * build-aux/git-version-gen (dirty): Use literal rather than tying
29037         ourselves to ascii.
29038         Reported by Steve Goetze.
29039
29040 2010-04-25  Bruno Haible  <bruno@clisp.org>
29041
29042         netdb: Add support for GNULIB_POSIXCHECK.
29043         * lib/netdb.in.h: Include warn-on-use.h.
29044         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29045         functions are used when GNULIB_POSIXCHECK is defined and the
29046         getaddrinfo module is not in use.
29047         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29048         freeaddrinfo, gai_strerror, getnameinfo are declared.
29049         * modules/netdb (Depends-on): Add warn-on-use.
29050         (Makefile.am): Include warn-on-use.h in netdb.h.
29051
29052 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29053
29054         build: avoid "make check" failure without .git/ directory
29055         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29056         there is no .git/ directory.
29057
29058 2010-04-25  Bruno Haible  <bruno@clisp.org>
29059
29060         ptsname: Fix misuse of ttyname_r.
29061         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29062         of errno.
29063
29064 2010-04-25  Bruno Haible  <bruno@clisp.org>
29065
29066         ttyname_r: Make it work on Solaris 10.
29067         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29068         if the system function has the POSIX declaration. Test whether the
29069         function fails if the buffer is less than 128 bytes large.
29070         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29071         system's ttyname_r function. Provide a reasonably large buffer.
29072         * modules/ttyname_r (Depends-on): Add extensions.
29073         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29074
29075 2010-04-25  Bruno Haible  <bruno@clisp.org>
29076
29077         Use the 'extensions' module for some more functions on Solaris.
29078         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29079         module.
29080         * doc/posix-functions/ctime_r.texi: Likewise.
29081         * doc/posix-functions/getgrgid_r.texi: Likewise.
29082         * doc/posix-functions/getgrnam_r.texi: Likewise.
29083         * doc/posix-functions/getpwnam_r.texi: Likewise.
29084         * doc/posix-functions/getpwuid_r.texi: Likewise.
29085         * doc/posix-functions/readdir_r.texi: Likewise.
29086         * doc/posix-functions/sigwait.texi: Likewise.
29087         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29088         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29089
29090 2010-04-25  Bruno Haible  <bruno@clisp.org>
29091
29092         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29093         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29094         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29095         * lib/ttyname_r.c: Include <limits.h>.
29096         (ttyname_r): Define using the system's ttyname_r function, if it exists
29097         and not on Solaris.
29098         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29099         set.
29100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29101         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29102         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29103         Reported by Simon Josefsson.
29104
29105 2010-04-25  Bruno Haible  <bruno@clisp.org>
29106
29107         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29108         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29109         * doc/posix-functions/ctime_r.texi: Likewise.
29110         * doc/posix-functions/getgrgid_r.texi: Likewise.
29111         * doc/posix-functions/getgrnam_r.texi: Likewise.
29112         * doc/posix-functions/getlogin_r.texi: Likewise.
29113         * doc/posix-functions/getpwnam_r.texi: Likewise.
29114         * doc/posix-functions/getpwuid_r.texi: Likewise.
29115         * doc/posix-functions/readdir_r.texi: Likewise.
29116         * doc/posix-functions/sigwait.texi: Likewise.
29117         * doc/posix-functions/ttyname_r.texi: Likewise.
29118         Reported by Simon Josefsson.
29119
29120 2010-04-25  Bruno Haible  <bruno@clisp.org>
29121
29122         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29123         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29124         also to --create-testdir.
29125         (func_acceptable): Don't consider the status of *-tests modules here.
29126         (func_modules_transitive_closure): Consider it here, before including a
29127         test module.
29128         (func_import, func_create_testdir): Set inc_all_direct_tests,
29129         inc_all_indirect_tests.
29130         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29131         --create-testdir and --create-megatestdir.
29132
29133 2010-04-25  Bruno Haible  <bruno@clisp.org>
29134
29135         gnulib-tool: Add --without-*-tests options.
29136         * gnulib-tool (func_usage): Document the --without-*-tests options.
29137         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29138         excl_unportable_tests): New variables.
29139         Fail if they are specified with --import or --update.
29140         (func_acceptable): Respect the excl_*_tests variables.
29141         (func_import): Set the excl_*_tests variables to empty.
29142
29143 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29144             Bruno Haible  <bruno@clisp.org>
29145
29146         Work around a MacOS X 10.4 bug with openpty.
29147         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29148         * tests/test-openpty.c (main): Close the master side explicitly.
29149
29150 2010-04-25  Bruno Haible  <bruno@clisp.org>
29151
29152         strnlen: Fix a C++ test error on MacOS X and Solaris.
29153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29154         the function is not declared.
29155         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29156         Simon Josefsson.
29157
29158 2010-04-24  Bruno Haible  <bruno@clisp.org>
29159
29160         Avoid a gcc warning.
29161         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29162         of correct type for %08lx directive.
29163         Reported by Eric Blake.
29164
29165 2010-04-24  Bruno Haible  <bruno@clisp.org>
29166
29167         vasnprintf: Correct errno value in case of out-of-memory.
29168         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29169         or sprintf. Use the errno value from SNPRINTF or sprintf.
29170         Reported by Ian Beckwith <ianb@erislabs.net>.
29171
29172 2010-04-24  Bruno Haible  <bruno@clisp.org>
29173
29174         ansi-c++-opt: Find correct compiler when cross-compiling.
29175         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29176         AC_CHECK_PROGS.
29177         Reported by Simon Josefsson.
29178
29179 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29180
29181         vc-list-files: Add support for subversion
29182         * build-aux/vc-list-files: Use "svn list" to generate the list of
29183         files controlled by subversion.
29184
29185 2010-04-23  Jim Meyering  <meyering@redhat.com>
29186
29187         vc-list-files tests: convert to use init.sh
29188         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29189         path_prepend_.
29190         Use Exit, not exit.
29191         Use skip_ rather than open coding it.
29192         Remove trap set-up and compare definitions.
29193         * tests/test-vc-list-files-git.sh: Likewise.
29194         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29195
29196 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29197
29198         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29199         backup files.
29200
29201 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29202
29203         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29204
29205 2010-04-20  Eric Blake  <eblake@redhat.com>
29206
29207         tests: be robust to ignored SIGPIPE
29208         * tests/test-select-in.sh: Consume all output.
29209         * tests/test-lseek.sh: Check correct exit status, while avoiding
29210         EPIPE.
29211
29212 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29213             Bruno Haible  <bruno@clisp.org>
29214
29215         visibility: Don't use -fvisibility if it leads to a warning.
29216         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29217         yes, don't pretend that visibility works if it leads to a warning.
29218         Reported by Mike Gran <spk121@yahoo.com>.
29219
29220 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29221
29222         * build-aux/bootstrap: Use "git -h" for testing for supported options
29223         instead of "git --help".  The short-form option only shows a summary,
29224         and doesn't layout the full man page.  Grep for the full option name
29225         in the summary, too.
29226
29227 2010-04-19  Bruno Haible  <bruno@clisp.org>
29228
29229         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29230         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29231         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29232         mention of RELOCATABLE_STRIP.
29233         Reported by Sylvain Beucler <beuc@beuc.net>.
29234
29235 2010-04-19  Bruno Haible  <bruno@clisp.org>
29236
29237         * lib/diffseq.h: Fix typo in comment.
29238         Reported by Eric Blake.
29239
29240 2010-04-19  Bruno Haible  <bruno@clisp.org>
29241
29242         ioctl: Move autoconf macro to a .m4 file.
29243         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29244         * modules/ioctl (Files): Add it.
29245         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29246         Reported by Ian Beckwith <ianb@erislabs.net>.
29247
29248 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29249             Bruno Haible  <bruno@clisp.org>
29250
29251         diffseq: Accommodate use-case with abstract arrays.
29252         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29253         is not defined.
29254         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29255         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29256
29257 2010-04-18  Bruno Haible  <bruno@clisp.org>
29258
29259         * doc/posix-headers/stdbool.texi: More precise wording.
29260
29261 2010-04-17  Jim Meyering  <meyering@redhat.com>
29262
29263         maint.mk: use gnu-style indentation in an embedded perl script
29264         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29265         Rename variable: s/two/last_two_bytes/
29266
29267 2010-04-16  Eric Blake  <eblake@redhat.com>
29268
29269         test-stdbool: skip test that fails with Solaris CC
29270         * tests/test-stdbool.c (f): Skip test that causes compilation
29271         error under buggy C++ compiler.
29272         * lib/stdbool.in.h: Document the limitation.
29273         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29274
29275         setenv: allow compilation with C++
29276         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29277         register keyword.
29278
29279         stdint: allow test to pass with C++
29280         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29281
29282         getopt: allow compilation with C++
29283         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29284         struct.
29285         * lib/getopt.c (_getopt_internal_r): Use correct type.
29286         Reported by Dagobert Michelson, via Joel E. Denny.
29287
29288 2010-04-16  Bruno Haible  <bruno@clisp.org>
29289
29290         Override netdb.h always.
29291         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29292         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29293         Reported by Ludovic Courtès <ludo@gnu.org>.
29294
29295 2010-04-15  Bruno Haible  <bruno@clisp.org>
29296
29297         openpty: Fix mistake from 2010-03-21.
29298         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29299         Reported by Simon Josefsson.
29300
29301 2010-04-15  Eric Blake  <eblake@redhat.com>
29302
29303         test-forkpty: fix expected signature
29304         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29305         Reported by Simon Josefsson.
29306
29307 2010-04-15  Jim Meyering  <meyering@redhat.com>
29308
29309         maint.mk: texinfo_suffix_re_: correct the default regexp
29310         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29311
29312         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29313         make it configurable via texinfo_suffix_re_.
29314
29315 2010-04-14  Eric Blake  <eblake@redhat.com>
29316
29317         strtok_r: relax license to LGPLv2+
29318         * modules/strtok_r (License): Relax license.
29319         Reported by Matthias Bolte.
29320
29321 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29322
29323         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29324         version 1.4.4 by default instead of requiring the libgcrypt
29325         version used during build.  This makes it possible to use the
29326         application with older but still binary compatible libgcrypt
29327         versions.
29328
29329 2010-04-13  Eric Blake  <eblake@redhat.com>
29330
29331         getopt-gnu: match recent glibc fixes and posix ruling
29332         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29333         '+' handling, when requesting extensions.
29334         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29335         'W;' handling.
29336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29337         * doc/posix-functions/getopt.texi (getopt): Document this.
29338         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29339         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29340         Likewise.
29341
29342         getopt: merge bug fixes from glibc
29343         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29344         diagnostics.  Honor '+:' correctly.  Reject ';'.
29345
29346         getopt-posix: detect MacOS bug
29347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29348         optind when missing a required argument.
29349         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29350         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29352         Likewise.
29353
29354         getopt-posix: avoid spurious failure on Solaris
29355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29356         an indicator that setting optind=1 is sufficient for reset.
29357
29358         getopt-posix: avoid spurious failure on FreeBSD
29359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29360         in POSIX mode, since the m4 test uses it.
29361
29362         gnulib-tool: silence warning on BSD sh
29363         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29364
29365 2010-04-13  Jim Meyering  <meyering@redhat.com>
29366
29367         doc: users.txt: GNU patch now uses gnulib
29368         * users.txt: Add patch.
29369
29370 2010-04-12  Jim Meyering  <meyering@redhat.com>
29371
29372         maint.mk: generate more concise timing data for syntax-check rules
29373         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29374         " done" from each line that reports a syntax-check test duration.
29375
29376 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29377
29378         git-version-gen: use "git update-index..." rather than "git status"
29379         * build-aux/git-version-gen: Use git update-index --refresh, not
29380         "git status".  With some versions of git, "git status" would fail
29381         to update the index and result in an unwarranted "-dirty" suffix.
29382
29383 2010-04-11  Jim Meyering  <meyering@redhat.com>
29384
29385         openat: correct formatting (no semantic change)
29386         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29387         Suggested by Bruno Haible.
29388
29389 2010-04-11  Bruno Haible  <bruno@clisp.org>
29390
29391         Stricter declaration checking in testdirs.
29392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29393         If for_tests is true, augment AM_CPPFLAGS to define
29394         GNULIB_STRICT_CHECKING.
29395         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29396         GNULIB_STRICT_CHECKING is defined, verify that the function is
29397         declared.
29398
29399 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29400             Bruno Haible  <bruno@clisp.org>
29401
29402         libunistring: Improve configure output.
29403         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29404         Don't say "consider installing GNU libunistring" when checking again
29405         with libiconv.
29406
29407 2010-04-11  Bruno Haible  <bruno@clisp.org>
29408
29409         libunistring: Correct value of $LTLIBUNISTRING.
29410         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29411         correct the value of $LTLIBUNISTRING.
29412
29413 2010-04-11  Bruno Haible  <bruno@clisp.org>
29414
29415         havelib: Add static libraries to LIBS in the right order.
29416         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29417         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29418
29419 2010-04-11  Bruno Haible  <bruno@clisp.org>
29420
29421         libunistring: Detect libunistring also when it depends on libiconv.
29422         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29423         the second AC_LIB_HAVE_LINKFLAGS invocation.
29424
29425 2010-04-11  James Youngman  <jay@gnu.org>
29426
29427         close-stream: declare local scalars to be "const"
29428         * lib/close-stream.c (close_stream): Make boolean variables const
29429         to document the fact that we set but do not change them.
29430
29431 2010-04-11  Bruno Haible  <bruno@clisp.org>
29432
29433         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29434
29435 2010-04-11  Jim Meyering  <meyering@redhat.com>
29436
29437         maint.mk: don't include dist-check.mk
29438         * top/maint.mk: Remove bogus include directive.
29439
29440         maint.mk: improve empty-line-at-EOF check
29441         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29442         solution, rather than tail+Perl-based one.  The latter would read
29443         a few kilobytes from the end of each file, and did not handle empty
29444         files properly.
29445
29446         maint.mk: print the elapsed time for each syntax-check rule
29447         * top/maint.mk (sc_m_rules_): Save start time in a file.
29448         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29449         (local-check): Interpose the .z rules
29450
29451 2010-04-11  Jim Meyering  <meyering@redhat.com>
29452
29453         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29454         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29455         empty file with one that ends in an empty line.
29456
29457 2010-04-10  Bruno Haible  <bruno@clisp.org>
29458
29459         mkdir: Make it work on mingw64.
29460         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29461         * lib/mkdir.c: Update comment.
29462         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29463
29464 2010-04-10  Bruno Haible  <bruno@clisp.org>
29465
29466         Don't override improved macro from newer autoconf.
29467         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29468         autoconf >= 2.62.
29469         Reported by Joel E. Denny <jdenny@clemson.edu>.
29470
29471 2010-04-10  Jim Meyering  <meyering@redhat.com>
29472
29473         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29474         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29475
29476         maint.mk: correct a diagnostic
29477         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29478         in diagnostic; now use $prohibit.
29479
29480 2010-04-10  Bruno Haible  <address@hidden>
29481
29482         fchownat: Fix a C++ test error on Solaris 8.
29483         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29484         the function does not exist.
29485
29486 2010-04-10  Bruno Haible  <bruno@clisp.org>
29487
29488         vasnprintf: Add more tests.
29489         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29490         (test_function): Test converting an invalid wide string.
29491
29492         vasnprintf: Correct handling of unconvertible wide string arguments.
29493         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29494         VASNPRINTF.
29495         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29496         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29497         smaller than the expected maximum need for the directive. Set errno to
29498         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29499         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29501         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29502         * modules/vasnprintf (Files): Add m4/printf.m4.
29503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29504
29505 2010-04-10  Bruno Haible  <bruno@clisp.org>
29506
29507         vasnprintf: Fix crash in %ls directive.
29508         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29509         string is passed as argument to %ls, with no precision and no width.
29510         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29511
29512 2010-04-10  Bruno Haible  <bruno@clisp.org>
29513
29514         vasnprintf: Fix multiple test failures on mingw.
29515         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29516         _snprintf, or snwprintf, not _snwprintf.
29517
29518 2010-04-10  Bruno Haible  <bruno@clisp.org>
29519
29520         write: Fix a C++ test error on mingw.
29521         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29522
29523 2010-04-10  Bruno Haible  <bruno@clisp.org>
29524
29525         vasnprintf test: Reduce code duplication.
29526         * tests/test-vasnprintf.c (test_function): New function, extracted from
29527         test_vasnprintf.
29528         (test_vasnprintf, test_asnprintf): Invoke it.
29529
29530 2010-04-10  Bruno Haible  <bruno@clisp.org>
29531
29532         strnlen: Fix warning in C++ mode on MacOS X.
29533         * lib/string.in.h (strnlen): Use the modern idiom.
29534         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29535         defining strnlen as a macro already in <config.h>.
29536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29537         REPLACE_STRNLEN.
29538         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29539         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29540
29541 2010-04-08  James Youngman  <jay@gnu.org>
29542
29543         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29544         the example.
29545
29546 2010-04-09  Jim Meyering  <meyering@redhat.com>
29547
29548         maint.mk: print better diagnostic when there is no $(_hv_file)
29549         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29550         announce that when $(_hv_file) (aka help-version) does not exist.
29551
29552         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29553         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29554         not try to interpret its random input bytes.  Jarno Rajahalme reported
29555         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29556         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29557         (mktempd_): Likewise, just in case.
29558
29559         ftruncate: add two years to projected module removal date: 2012
29560         * m4/ftruncate.m4: Adjust comments.
29561
29562         ftruncate: mark module as obsolete; even MinGW provides it, now
29563         * modules/ftruncate (Status): Obsolete.
29564         (Notice): Say that.
29565         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29567
29568 2010-04-08  Bruno Haible  <bruno@clisp.org>
29569
29570         Fix side effects from tests-related modules.
29571         * modules/dprintf-posix (Comment): New section.
29572         * modules/fprintf-posix (Comment): Likewise.
29573         * modules/obstack-printf-posix (Comment): Likewise.
29574         * modules/printf-posix (Comment): Likewise.
29575         * modules/snprintf-posix (Comment): Likewise.
29576         * modules/sprintf-posix (Comment): Likewise.
29577         * modules/vasnprintf-posix (Comment): Likewise.
29578         * modules/vasprintf-posix (Comment): Likewise.
29579         * modules/vdprintf-posix (Comment): Likewise.
29580         * modules/vfprintf-posix (Comment): Likewise.
29581         * modules/vprintf-posix (Comment): Likewise.
29582         * modules/vsnprintf-posix (Comment): Likewise.
29583         * modules/vsprintf-posix (Comment): Likewise.
29584         * modules/xprintf-posix (Comment): Likewise.
29585         * modules/xvasprintf-posix (Comment): Likewise.
29586         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29587         * modules/floorf-tests (Depends-on): Likewise.
29588         * modules/round-tests (Depends-on): Likewise.
29589         * modules/roundf-tests (Depends-on): Likewise.
29590         * modules/trunc-tests (Depends-on): Likewise.
29591         * modules/truncf-tests (Depends-on): Likewise.
29592         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29593         'fprintf-posix' module is not present.
29594         * tests/test-floorf2.c (check): Likewise.
29595         * tests/test-trunc2.c (check): Likewise.
29596         * tests/test-truncf2.c (check): Likewise.
29597         * tests/test-round2.c (equal): Likewise.
29598         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29599
29600 2010-04-07  Karl Berry  <karl@gnu.org>
29601
29602         * config/srclist.txt,
29603         * config/srclistvars.sh,
29604         * config/srclist-update: doc fixes.
29605
29606 2010-04-07  Jim Meyering  <meyering@redhat.com>
29607
29608         maint.mk: add a PATH crosschecking syntax-check rule
29609         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29610         Useful if you use a test like the one in help-version (coreutils,
29611         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29612         printed by prog --version.
29613
29614 2010-04-06  Bruno Haible  <bruno@clisp.org>
29615
29616         Fix link error on mingw.
29617         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29618         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29619
29620 2010-04-06  Bruno Haible  <bruno@clisp.org>
29621
29622         Assume rmdir exists.
29623         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29624
29625 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29626
29627         doc: update users.txt
29628         * users.txt: Add gcal.
29629
29630 2010-04-06  Jim Meyering  <meyering@redhat.com>
29631
29632         init.sh: simply unset TMPDIR rather than risking env -i
29633         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29634         although it probably works fine on all Unix-based systems, some
29635         systems (Cygwin?) cannot tolerate a totally cleared environment.
29636         Suggestion from Eric Blake.
29637
29638 2010-04-06  Jim Meyering  <meyering@redhat.com>
29639
29640         init.sh: portability fix: use env's POSIX-specified -i option not -u
29641         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29642         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29643
29644 2010-04-05  Bruno Haible  <bruno@clisp.org>
29645
29646         btowc: Work around Cygwin 1.7.2 bug.
29647         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29648         does not map NUL to 0.
29649         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29650
29651 2010-04-05  Bruno Haible  <bruno@clisp.org>
29652
29653         Make the multithread modules work on Cygwin 1.7.2.
29654         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29655         imported symbols can be declared weak, so that it returns "no" on
29656         Cygwin 1.7.2.
29657
29658 2010-04-05  Bruno Haible  <bruno@clisp.org>
29659
29660         Use the module 'strncat'.
29661         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29662
29663         Tests for module 'strncat'.
29664         * modules/strncat-tests: New file.
29665         * tests/test-strncat.c: New file.
29666
29667         New module 'strncat'.
29668         * lib/string.in.h (strncat): New declaration.
29669         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29670         * m4/strncat.m4: New file, based on m4/memchr.m4.
29671         * modules/strncat: New file.
29672         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29673         is declared.
29674         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29675         REPLACE_STRNCAT.
29676         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29677         REPLACE_STRNCAT.
29678         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29679         module.
29680         * tests/test-string-c++.cc: Check signature of strncat.
29681
29682 2010-04-05  Jim Meyering  <meyering@redhat.com>
29683
29684         xstrtoumax-tests: convert to use init.sh
29685         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29686         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29687         Use Exit, not exit.
29688         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29689
29690         xstrtoimax-tests: convert to use init.sh
29691         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29692         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29693         Use Exit, not exit.
29694         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29695
29696 2010-04-05  Bruno Haible  <bruno@clisp.org>
29697
29698         sys_socket: Avoid #define replacements in C++ mode.
29699         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29700         warning to the function if possible, rather than #defining the symbol
29701         to a dysfunctional alias.
29702
29703 2010-04-05  Bruno Haible  <bruno@clisp.org>
29704
29705         fseeko: Fix C++ test error on mingw.
29706         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29707         gl_FUNC_FSEEKO.
29708         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29709         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29710         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29711         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29712
29713 2010-04-05  Bruno Haible  <bruno@clisp.org>
29714
29715         duplocale: Improve test output.
29716         * tests/test-duplocale.c (main): Print reason for skipped test.
29717
29718 2010-04-05  Bruno Haible  <bruno@clisp.org>
29719
29720         Assume rmdir exists.
29721         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29722         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29723
29724 2010-04-05  Bruno Haible  <bruno@clisp.org>
29725
29726         Fix link error on Solaris 8 with cc.
29727         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29728
29729 2010-04-05  Bruno Haible  <bruno@clisp.org>
29730
29731         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29732         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29733
29734 2010-04-05  Bruno Haible  <bruno@clisp.org>
29735
29736         vasprintf: Update documentation.
29737         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29738
29739 2010-04-05  Bruno Haible  <bruno@clisp.org>
29740
29741         ptsname: Improve test.
29742         * tests/test-ptsname.c (main): Also try the various master names of BSD
29743         systems.
29744
29745 2010-04-05  Bruno Haible  <bruno@clisp.org>
29746
29747         memchr: Avoid a possible C++ test error.
29748         * lib/string.in.h (memchr): Provide declaration if function is missing.
29749         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29750         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29752         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29753
29754 2010-04-05  Bruno Haible  <bruno@clisp.org>
29755
29756         strtok_r: Improve idiom.
29757         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29758         AC_LIBOBJ is used.
29759
29760 2010-04-05  Bruno Haible  <bruno@clisp.org>
29761
29762         strdup: Improve idiom.
29763         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29764         AC_LIBOBJ is used.
29765         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29766         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29767         when AC_LIBOBJ is used.
29768
29769 2010-04-05  Bruno Haible  <bruno@clisp.org>
29770
29771         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29772         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29773         don't set REPLACE_MBSINIT to 1.
29774         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29775         don't set REPLACE_MBRTOWC to 1.
29776         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29777         exist, don't set REPLACE_MBSRTOWCS to 1.
29778         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29779         exist, don't set REPLACE_MBSNRTOWCS to 1.
29780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29781         don't set REPLACE_WCRTOMB to 1.
29782         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29783         exist, don't set REPLACE_WCSRTOMBS to 1.
29784         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29785         exist, don't set REPLACE_WCSNRTOMBS to 1.
29786
29787 2010-04-05  Bruno Haible  <bruno@clisp.org>
29788
29789         ldexpl: Improve idiom.
29790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29791         make sure to set HAVE_DECL_LDEXPL to 0.
29792
29793 2010-04-05  Jim Meyering  <meyering@redhat.com>
29794
29795         xstrtol-tests: convert to use init.sh
29796         * modules/xstrtol-tests (Files): Add tests/init.sh.
29797         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29798         Use Exit, not exit.
29799         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29800
29801         atexit-tests: convert to use init.sh
29802         * modules/atexit-tests (Files): Add tests/init.sh.
29803         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29804         Use Exit, not exit.
29805         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29806
29807         init.sh: fix typo
29808         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29809
29810         init.sh: make it easier for a test script to write to the tty, ...
29811         when using automake's parallel-tests mode.
29812         * tests/init.sh (stderr_fileno_): Define overridable variable.
29813         (warn_): New function, to use it.
29814         (fail_, skip_, framework_failure_): Use warn_.
29815
29816 2010-04-04  Bruno Haible  <bruno@clisp.org>
29817
29818         btowc: Avoid warning.
29819         * lib/btowc.c: Include <stdlib.h>.
29820         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29821
29822 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29823             Bruno Haible  <bruno@clisp.org>
29824
29825         wchar: Port to NetBSD 1.5.
29826         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29827         * lib/wctype.in.h (WEOF): Likewise.
29828
29829 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29830             Bruno Haible  <bruno@clisp.org>
29831
29832         Port extended stdio to NetBSD 1.5.
29833         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29834         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29835         older.
29836
29837 2010-04-04  Bruno Haible  <bruno@clisp.org>
29838
29839         string: Remove unused substitution.
29840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29841         HAVE_DECL_STRERROR.
29842         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29843
29844 2010-04-04  Bruno Haible  <bruno@clisp.org>
29845
29846         strtod: Avoid a possible C++ test error.
29847         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29848         set REPLACE_STRTOD.
29849
29850 2010-04-04  Bruno Haible  <bruno@clisp.org>
29851
29852         strerror: Update documentation.
29853         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29854
29855 2010-04-04  Bruno Haible  <bruno@clisp.org>
29856
29857         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29858         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29859         _GL_CXXALIAS_SYS_CAST.
29860
29861 2010-04-04  Bruno Haible  <bruno@clisp.org>
29862
29863         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29864         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29865         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29866         REPLACE_FREXPL to 1.
29867         * doc/posix-functions/frexpl.texi: Update documentation.
29868
29869 2010-04-04  Bruno Haible  <bruno@clisp.org>
29870
29871         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29872         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29873
29874 2010-04-04  Bruno Haible  <bruno@clisp.org>
29875
29876         Implement nanosleep for native Windows.
29877         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29878
29879 2010-04-04  Bruno Haible  <bruno@clisp.org>
29880
29881         math: Fix some C++ test errors on Solaris 8.
29882         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29883
29884 2010-04-04  Bruno Haible  <bruno@clisp.org>
29885
29886         math: Fix some C++ test errors on Cygwin.
29887         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29888         truncl): Provide declaration if the system does not have it.
29889         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29890         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29891         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29892         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29893         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29894         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29895         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29896         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29897         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29898         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29899         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29900         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29901         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29902         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29903         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29904         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29906         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29907         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29908         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29909         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29910         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29911
29912 2010-04-04  Bruno Haible  <bruno@clisp.org>
29913
29914         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29915         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29916         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29917         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29918         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29919         * m4/isinf.m4 (gl_ISINF): Likewise.
29920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29921
29922 2010-04-04  Bruno Haible  <bruno@clisp.org>
29923
29924         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29925         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29926
29927 2010-04-04  Bruno Haible  <bruno@clisp.org>
29928
29929         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29930         * modules/tmpfile (configure.ac): Update.
29931
29932         tmpfile: Fix C++ test error on mingw.
29933         * lib/stdio.in.h (tmpfile): New declaration.
29934         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29935         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29936         * modules/tmpfile (Depends-on): Add stdio.
29937         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29938         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29939         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29940         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29941         REPLACE_TMPFILE.
29942         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29943
29944 2010-04-04  Bruno Haible  <bruno@clisp.org>
29945
29946         ioctl: Fix C++ test error on mingw.
29947         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29948         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29949         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29950
29951 2010-04-03  Bruno Haible  <bruno@clisp.org>
29952
29953         wcwidth: Fix C++ test error on mingw.
29954         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29956         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29957
29958 2010-04-03  Bruno Haible  <bruno@clisp.org>
29959
29960         nanosleep: Fix C++ test error on mingw.
29961         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29962         * lib/time.in.h (nanosleep): Use modern idiom.
29963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29964         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29965         REPLACE_NANOSLEEP to 1.
29966         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29967         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29968
29969 2010-04-03  Bruno Haible  <bruno@clisp.org>
29970
29971         strptime: Fix C++ test error on mingw.
29972         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29973         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29974         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29975         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29976         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29977         not REPLACE_STRPTIME.
29978         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29979         REPLACE_STRPTIME.
29980
29981 2010-04-03  Bruno Haible  <bruno@clisp.org>
29982
29983         timegm: Fix C++ test error on mingw.
29984         * lib/time.in.h (timegm): Use modern idiom.
29985         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29986         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29987         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29988         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29989
29990 2010-04-03  Bruno Haible  <bruno@clisp.org>
29991
29992         timegm: Assume declaration if function exists.
29993         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29994         if it exists. Don't clobber ac_cv_func_timegm.
29995
29996 2010-04-03  Bruno Haible  <bruno@clisp.org>
29997
29998         time_r: Fix C++ test error on mingw.
29999         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30000         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30001         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30002         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30003         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30004
30005 2010-04-03  Bruno Haible  <bruno@clisp.org>
30006
30007         time_r: Minor updates.
30008         * modules/time_r (Description): Mention the provided functions.
30009         * lib/time_r.c: Don't include <string.h>.
30010         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30011         * doc/posix-functions/localtime_r.texi: Likewise.
30012
30013 2010-04-03  Bruno Haible  <bruno@clisp.org>
30014
30015         time: Fix regression introduced on 2010-03-08.
30016         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30017         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30018
30019 2010-04-03  Jim Meyering  <meyering@redhat.com>
30020
30021         maint.mk: don't silently disable project-specific syntax-check rules
30022         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30023         that they need to convert their project-specific syntax-check rules
30024         to use the new _sc_search_regexp.
30025
30026 2010-04-03  Bruno Haible  <bruno@clisp.org>
30027
30028         fchdir: Fix regression introduced on 2010-03-08.
30029         * lib/unistd.in.h (fchdir): Fix declaration.
30030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30032         REPLACE_FCHDIR.
30033         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30034         REPLACE_FCHDIR.
30035
30036 2010-04-03  Bruno Haible  <bruno@clisp.org>
30037
30038         getpagesize: Fix C++ test error on mingw.
30039         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30040         system does not declare the function.
30041         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30042         declared.
30043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30044         HAVE_DECL_GETPAGESIZE.
30045         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30046
30047 2010-04-03  Bruno Haible  <bruno@clisp.org>
30048
30049         stdio: Make C++ tests work on mingw.
30050         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30051         does not declare the function.
30052
30053 2010-04-03  Bruno Haible  <bruno@clisp.org>
30054
30055         ftello: Fix C++ test error on mingw.
30056         * lib/stdio.in.h (ftello): Use modern idiom.
30057         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30058         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30059         is missing and that it needs to be replaced.
30060         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30062         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30063
30064 2010-04-03  Bruno Haible  <bruno@clisp.org>
30065
30066         fseeko: Fix C++ test error on mingw.
30067         * lib/stdio.in.h (fseeko): Use modern idiom.
30068         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30070         is missing and that it needs to be replaced.
30071         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30073         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30074
30075 2010-04-03  Bruno Haible  <bruno@clisp.org>
30076
30077         mkstemp: Fix C++ test error on mingw.
30078         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30080         function is missing and that it needs to be replaced.
30081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30082         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30083
30084 2010-04-03  Bruno Haible  <bruno@clisp.org>
30085
30086         stpncpy: Fix C++ test error on mingw.
30087         * lib/string.in.h (stpncpy): Use modern idiom.
30088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30089         function is missing and that it needs to be replaced.
30090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30091         REPLACE_STPNCPY.
30092         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30093
30094 2010-04-03  Bruno Haible  <bruno@clisp.org>
30095
30096         sys_stat: Fix C++ test error on mingw.
30097         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30098         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30099
30100 2010-04-03  Bruno Haible  <bruno@clisp.org>
30101
30102         pty: Update doc.
30103         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30104
30105 2010-04-03  Bruno Haible  <bruno@clisp.org>
30106
30107         unistd: Fix C++ test error on mingw.
30108         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30109
30110 2010-04-03  Bruno Haible  <bruno@clisp.org>
30111
30112         Update doc regarding mingw.
30113         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30114         * doc/glibc-functions/login_tty.texi: Likewise.
30115         * doc/glibc-functions/forkpty.texi: Likewise.
30116
30117 2010-04-03  Bruno Haible  <bruno@clisp.org>
30118
30119         stdlib: Avoid compilation failure of c-strtold on mingw.
30120         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30121
30122 2010-04-03  Bruno Haible  <bruno@clisp.org>
30123
30124         locale: Make C++ tests work on Cygwin and mingw.
30125         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30126         cannot provide the function.
30127         Reported by Simon Josefsson.
30128
30129 2010-04-03  Bruno Haible  <bruno@clisp.org>
30130
30131         localename: Port to MacOS X 10.6.
30132         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30133         memory layout of the locales in MacOS X 10.6 as well.
30134         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30135
30136 2010-04-02  Bruno Haible  <bruno@clisp.org>
30137
30138         gnulib-tool: Ensure that long-running tests are executed last.
30139         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30140         running tests after the one for the other tests.
30141
30142 2010-04-02  Bruno Haible  <bruno@clisp.org>
30143
30144         gnulib-tool: Ensure the tests in the main directory are executed first.
30145         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30146         start with the current directory.
30147
30148 2010-04-02  Bruno Haible  <bruno@clisp.org>
30149
30150         Tests for module 'havelib', moved here from GNU gettext.
30151         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30152         modifications.
30153         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30154         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30155         with modifications.
30156         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30157         modifications.
30158         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30159         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30160         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30161         with modifications.
30162         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30163         with modifications.
30164         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30165         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30166         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30167         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30168         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30169         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30170         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30171         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30172         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30173         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30174         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30175         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30176         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30177         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30178         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30179         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30180         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30181         with modifications.
30182         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30183         with modifications.
30184         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30185         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30186         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30187         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30188         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30189         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30190         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30191         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30192         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30193         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30194         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30195         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30196         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30197         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30198         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30199         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30200         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30201         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30202         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30203         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30204         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30205         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30206         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30207         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30208         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30209         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30210         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30211         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30212         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30213         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30214         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30215         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30216         * tests/havelib/rpathx/rpathx.c: New file, from
30217         gettext/autoconf-lib-link.
30218         * tests/havelib/rpathx/Makefile.am: New file, from
30219         gettext/autoconf-lib-link.
30220         * tests/havelib/rpathx/configure.ac: New file, from
30221         gettext/autoconf-lib-link with modifications.
30222         * tests/havelib/rpathy/rpathy.c: New file, from
30223         gettext/autoconf-lib-link.
30224         * tests/havelib/rpathy/Makefile.am: New file, from
30225         gettext/autoconf-lib-link.
30226         * tests/havelib/rpathy/configure.ac: New file, from
30227         gettext/autoconf-lib-link with modifications.
30228         * tests/havelib/rpathz/rpathz.c: New file, from
30229         gettext/autoconf-lib-link.
30230         * tests/havelib/rpathz/Makefile.am: New file, from
30231         gettext/autoconf-lib-link.
30232         * tests/havelib/rpathz/configure.ac: New file, from
30233         gettext/autoconf-lib-link with modifications.
30234         * tests/havelib/rpathlx/usex.c: New file, from
30235         gettext/autoconf-lib-link.
30236         * tests/havelib/rpathlx/Makefile.am: New file, from
30237         gettext/autoconf-lib-link.
30238         * tests/havelib/rpathlx/configure.ac: New file, from
30239         gettext/autoconf-lib-link with modifications.
30240         * tests/havelib/rpathly/usey.c: New file, from
30241         gettext/autoconf-lib-link.
30242         * tests/havelib/rpathly/Makefile.am: New file, from
30243         gettext/autoconf-lib-link.
30244         * tests/havelib/rpathly/configure.ac: New file, from
30245         gettext/autoconf-lib-link with modifications.
30246         * tests/havelib/rpathlz/usez.c: New file, from
30247         gettext/autoconf-lib-link.
30248         * tests/havelib/rpathlz/Makefile.am: New file, from
30249         gettext/autoconf-lib-link.
30250         * tests/havelib/rpathlz/configure.ac: New file, from
30251         gettext/autoconf-lib-link with modifications.
30252         * tests/havelib/rpathlyx/usey.c: New file, from
30253         gettext/autoconf-lib-link.
30254         * tests/havelib/rpathlyx/Makefile.am: New file, from
30255         gettext/autoconf-lib-link.
30256         * tests/havelib/rpathlyx/configure.ac: New file, from
30257         gettext/autoconf-lib-link with modifications.
30258         * tests/havelib/rpathlzyx/usez.c: New file, from
30259         gettext/autoconf-lib-link.
30260         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30261         gettext/autoconf-lib-link.
30262         * tests/havelib/rpathlzyx/configure.ac: New file, from
30263         gettext/autoconf-lib-link with modifications.
30264         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30265         with modifications.
30266
30267 2010-04-02  Bruno Haible  <bruno@clisp.org>
30268
30269         gnulib-tool: Create distributed built sources also for the tests.
30270         * gnulib-tool (func_create_testdir): Also generate distributed built
30271         sources in the tests directory.
30272
30273 2010-04-02  Bruno Haible  <bruno@clisp.org>
30274
30275         gnulib-tool: Obey user's environment variables.
30276         * gnulib-tool (func_create_testdir): When creating built sources,
30277         respect the environment variables for autoconf, automake, etc. given by
30278         the user.
30279
30280 2010-04-02  Bruno Haible  <bruno@clisp.org>
30281
30282         gnulib-tool: Provide the value of --m4-base to modules.
30283         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30284         of gl_m4_base.
30285
30286 2010-04-02  Eric Blake  <eblake@redhat.com>
30287
30288         maint.mk: fix some fallout
30289         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30290         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30291
30292 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30293
30294         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30295         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30296         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30297         (sc_cast_of_x_alloc_return_value): Likewise.
30298         (sc_cast_of_alloca_return_value): Likewise.
30299         (sc_space_tab): Likewise.
30300         (sc_prohibit_atoi_atof): Likewise.
30301         (sc_prohibit_magic_number_exit): Likewise.
30302         (sc_error_exit_success): Likewise.
30303         (sc_file_system): Likewise.
30304         (sc_prohibit_have_config_h): Likewise.
30305         (sc_require_config_h): Likewise.
30306         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30307         (sc_obsolete_symbols): Likewise.
30308         (sc_changelog): Likewise.
30309         (sc_program_name): Likewise.
30310         (sc_the_the): Likewise.
30311         (sc_trailing_blank): Likewise.
30312         (sc_two_space_separator_in_usage): Likewise.
30313         (sc_useless_cpp_parens): Likewise.
30314         (sc_GPL_version): Likewise.
30315         (sc_GFDL_version): Likewise.
30316         (sc_texinfo_acronym): Likewise.
30317         (sc_prohibit_cvs_keyword): Likewise.
30318         (sc_prohibit_stat_st_blocks): Likewise.
30319         (sc_prohibit_S_IS_definition): Likewise.
30320         (sc_redundant_const): Likewise.
30321         (sc_makefile_TAB_only_indentation): Likewise.
30322         (sc_m4_quote_check): Likewise.
30323         (sc_makefile_path_separator_check): Likewise.
30324         (sc_copyright_check): Likewise.
30325         (sc_Wundef_boolean): Likewise.
30326         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30327
30328         maint.mk: match 0 or more whitespace-before-function-call '('
30329         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30330         that have zero or two-and-more spaces between the function name
30331         and the open parenthesis.
30332         (sc_error_message_warn_fatal): Likewise.
30333         (sc_error_message_uppercase): Likewise.
30334         (sc_error_message_period): Likewise.
30335
30336 2010-03-31  Eric Blake  <eblake@redhat.com>
30337
30338         maint.mk: check for [ as well as test
30339         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30340         Based on a libvirt report by Matthias Bolte.
30341
30342         gnumakefile: don't squelch _version output
30343         * top/GNUmakefile (_version): Create one-shot dependency rather
30344         than using $(shell) when version must be regenerated.
30345         (_autoreconf): Run verbosely, by default.
30346
30347         sys_time: avoid compiler warnings
30348         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30349         unconditional, fixing regression from 2010-03-29.
30350         Reported by Simon Josefsson.
30351
30352 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30353
30354         maint.mk: s/_header_without_use/_sc_header_without_use/
30355         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30356         (sc_prohibit_assert_without_use): Use the new name.
30357         (sc_prohibit_close_stream_without_use): Likewise.
30358         (sc_prohibit_getopt_without_use): Likewise.
30359         (sc_prohibit_quotearg_without_use): Likewise.
30360         (sc_prohibit_quote_without_use): Likewise.
30361         (sc_prohibit_long_options_without_use): Likewise.
30362         (sc_prohibit_inttostr_without_use): Likewise.
30363         (sc_prohibit_ignore_value_without_use): Likewise.
30364         (sc_prohibit_error_without_use): Likewise.
30365         (sc_prohibit_xalloc_without_use): Likewise.
30366         (sc_prohibit_hash_without_use): Likewise.
30367         (sc_prohibit_hash_pjw_without_use): Likewise.
30368         (sc_prohibit_safe_read_without_use): Likewise.
30369         (sc_prohibit_argmatch_without_use): Likewise.
30370         (sc_prohibit_canonicalize_without_use): Likewise.
30371         (sc_prohibit_root_dev_ino_without_use): Likewise.
30372         (sc_prohibit_openat_without_use): Likewise.
30373         (sc_prohibit_c_ctype_without_use): Likewise.
30374         (sc_prohibit_signal_without_use): Likewise.
30375         (sc_prohibit_intprops_without_use): Likewise.
30376
30377 2010-03-30  Eric Blake  <eblake@redhat.com>
30378
30379         maint: improve module indicators
30380         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30381         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30382         columns, and avoid extra macro expansion.
30383
30384         fdopendir: work around FreeBSD bug
30385         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30386         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30387         * modules/dirent (Makefile.am): Substitute it.
30388         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30389         declaration.
30390         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30391         fix.
30392         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30393
30394 2010-03-29  Bruno Haible  <bruno@clisp.org>
30395
30396         Emit #pragma system_header after the inclusion guard, not before.
30397         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30398         guard that spans the entire file, not before. This enables an
30399         optimization in GCC's preprocessor.
30400         * lib/ctype.in.h: Likewise.
30401         * lib/dirent.in.h: Likewise.
30402         * lib/errno.in.h: Likewise.
30403         * lib/float.in.h: Likewise.
30404         * lib/getopt.in.h: Likewise.
30405         * lib/iconv.in.h: Likewise.
30406         * lib/langinfo.in.h: Likewise.
30407         * lib/locale.in.h: Likewise.
30408         * lib/math.in.h: Likewise.
30409         * lib/netdb.in.h: Likewise.
30410         * lib/netinet_in.in.h: Likewise.
30411         * lib/pty.in.h: Likewise.
30412         * lib/sched.in.h: Likewise.
30413         * lib/se-selinux.in.h: Likewise.
30414         * lib/search.in.h: Likewise.
30415         * lib/spawn.in.h: Likewise.
30416         * lib/stdarg.in.h: Likewise.
30417         * lib/stdint.in.h: Likewise.
30418         * lib/string.in.h: Likewise.
30419         * lib/strings.in.h: Likewise.
30420         * lib/sys_file.in.h: Likewise.
30421         * lib/sys_ioctl.in.h: Likewise.
30422         * lib/sys_time.in.h: Likewise.
30423         * lib/sys_times.in.h: Likewise.
30424         * lib/sys_utsname.in.h: Likewise.
30425         * lib/sys_wait.in.h: Likewise.
30426         * lib/sysexits.in.h: Likewise.
30427         * lib/wctype.in.h: Likewise.
30428
30429 2010-03-28  James Youngman  <jay@gnu.org>
30430
30431         save-cwd: don't leak a file descriptor when the caller execs.
30432         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30433         saved file descriptor.
30434         * modules/save-cwd (Depends-on): Depend on cloexec.
30435
30436 2010-03-29  Bruno Haible  <bruno@clisp.org>
30437
30438         Remove vestiges of fts-lgpl module.
30439         * lib/fts_.h: Assume GNULIB_FTS is 1.
30440         * lib/fts.c: Likewise.
30441         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30442
30443 2010-03-28  Bruno Haible  <bruno@clisp.org>
30444
30445         Fix definition of tests witness macro.
30446         * gnulib-tool (func_import): Fix definition of witness macro.
30447
30448 2010-03-28  Bruno Haible  <bruno@clisp.org>
30449
30450         Fix ioctl's protoype on glibc systems.
30451         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30452         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30453         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30454         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30455         signature. If not, arrange to replace the ioctl function.
30456         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30457         REPLACE_IOCTL.
30458         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30459         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30460         Reported by Ludovic Courtès <ludo@gnu.org>.
30461
30462 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30463
30464         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30465         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30466         made it so grep -r --include=GLOB* ... did not work.
30467
30468 2010-03-26  Jim Meyering  <meyering@redhat.com>
30469             Eric Blake  <eblake@redhat.com>
30470
30471         maint.mk: prohibit use of test's -o and -a operators
30472         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30473
30474 2010-03-28  Bruno Haible  <bruno@clisp.org>
30475
30476         Remove unused GNULIB_XYZ macro definitions.
30477         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30478         invocation.
30479
30480 2010-03-28  Bruno Haible  <bruno@clisp.org>
30481
30482         Mark privileged tests modules.
30483         * modules/idpriv-drop-tests (Status): New section.
30484         * modules/idpriv-droptemp-tests (Status): New section.
30485
30486 2010-03-28  Bruno Haible  <bruno@clisp.org>
30487
30488         Split C++ tests into separate tests modules.
30489         * modules/dirent-c++-tests: New file, extracted from
30490         modules/dirent-tests.
30491         * modules/dirent-tests: Depend on it.
30492         * modules/fcntl-h-c++-tests: New file, extracted from
30493         modules/fcntl-h-tests.
30494         * modules/fcntl-h-tests: Depend on it.
30495         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30496         * modules/glob-tests: Depend on it.
30497         * modules/iconv-h-c++-tests: New file, extracted from
30498         modules/iconv-h-tests.
30499         * modules/iconv-h-tests: Depend on it.
30500         * modules/langinfo-c++-tests: New file, extracted from
30501         modules/langinfo-tests.
30502         * modules/langinfo-tests: Depend on it.
30503         * modules/locale-c++-tests: New file, extracted from
30504         modules/locale-tests.
30505         * modules/locale-tests: Depend on it.
30506         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30507         * modules/math-tests: Depend on it.
30508         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30509         * modules/pty-tests: Depend on it.
30510         * modules/search-c++-tests: New file, extracted from
30511         modules/search-tests.
30512         * modules/search-tests: Depend on it.
30513         * modules/signal-c++-tests: New file, extracted from
30514         modules/signal-tests.
30515         * modules/signal-tests: Depend on it.
30516         * modules/spawn-c++-tests: New file, extracted from
30517         modules/spawn-tests.
30518         * modules/spawn-tests: Depend on it.
30519         * modules/stdio-c++-tests: New file, extracted from
30520         modules/stdio-tests.
30521         * modules/stdio-tests: Depend on it.
30522         * modules/stdlib-c++-tests: New file, extracted from
30523         modules/stdlib-tests.
30524         * modules/stdlib-tests: Depend on it.
30525         * modules/string-c++-tests: New file, extracted from
30526         modules/string-tests.
30527         * modules/string-tests: Depend on it.
30528         * modules/sys_ioctl-c++-tests: New file, extracted from
30529         modules/sys_ioctl-tests.
30530         * modules/sys_ioctl-tests: Depend on it.
30531         * modules/sys_select-c++-tests: New file, extracted from
30532         modules/sys_select-tests.
30533         * modules/sys_select-tests: Depend on it.
30534         * modules/sys_socket-c++-tests: New file, extracted from
30535         modules/sys_socket-tests.
30536         * modules/sys_socket-tests: Depend on it.
30537         * modules/sys_stat-c++-tests: New file, extracted from
30538         modules/sys_stat-tests.
30539         * modules/sys_stat-tests: Depend on it.
30540         * modules/sys_time-c++-tests: New file, extracted from
30541         modules/sys_time-tests.
30542         * modules/sys_time-tests: Depend on it.
30543         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30544         * modules/time-tests: Depend on it.
30545         * modules/unistd-c++-tests: New file, extracted from
30546         modules/unistd-tests.
30547         * modules/unistd-tests: Depend on it.
30548         * modules/wchar-c++-tests: New file, extracted from
30549         modules/wchar-tests.
30550         * modules/wchar-tests: Depend on it.
30551         * modules/wctype-c++-tests: New file, extracted from
30552         modules/wctype-tests.
30553         * modules/wctype-tests: Depend on it.
30554         Reported by Simon Josefsson.
30555
30556 2010-03-28  Bruno Haible  <bruno@clisp.org>
30557
30558         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30559         * gnulib-tool (func_exists_module): New function, extracted from
30560         func_verify_module.
30561         (func_verify_module): Use it.
30562         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30563         'foo' only if 'foo' exists.
30564         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30565         module.
30566
30567 2010-03-28  Bruno Haible  <bruno@clisp.org>
30568
30569         gnulib-tool: Add support for special categories of tests.
30570         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30571         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30572         (func_usage): Document them.
30573         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30574         inc_unportable_tests, inc_all_tests): New variables.
30575         (func_acceptable): Consider these variables.
30576         (func_modules_transitive_closure): Make it work when the 'Status' field
30577         consists of multiple words.
30578         (func_import): Store and restore the values of inc_cxx_tests,
30579         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30580         inc_all_tests in gnulib-comp.m4.
30581         (func_create_testdir): Set inc_all_tests to true.
30582         * doc/gnulib.texi (Extra tests modules): New section.
30583         Suggested by Jim Meyering.
30584
30585 2010-03-28  Bruno Haible  <bruno@clisp.org>
30586
30587         ansi-c++-opt: Allow turning off the C++ build by default.
30588         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30589         gl_CXX_CHOICE_DEFAULT_NO is defined.
30590         Requested by Eric Blake.
30591
30592 2010-03-28  Bruno Haible  <bruno@clisp.org>
30593
30594         unistd: Avoid #define replacements in C++ mode.
30595         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30596         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30597         setsockopt, shutdown, select): In C++, attach a warning to the function
30598         if possible, rather than #defining the symbol to a dysfunctional alias.
30599         Reported by John W. Eaton <jwe@gnu.org>.
30600
30601 2010-03-28  Bruno Haible  <bruno@clisp.org>
30602
30603         Fix link errors on mingw.
30604         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30605         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30606         $(LIBSOCKET).
30607         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30608         $(LIBSOCKET).
30609
30610 2010-03-28  Bruno Haible  <bruno@clisp.org>
30611             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30612
30613         lib-ignore: Determine different options for different compilers.
30614         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30615         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30616         Add comments.
30617         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30618         * NEWS: Mention the change.
30619
30620 2010-03-27  Bruno Haible  <bruno@clisp.org>
30621
30622         Remove unused GNULIB_XYZ macro definitions.
30623         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30624         * modules/fseek (configure.ac): Likewise.
30625         * modules/ioctl (configure.ac): Likewise.
30626         * modules/open (configure.ac): Likewise.
30627         * modules/stdlib-safer (configure.ac): Likewise.
30628
30629 2010-03-27  Bruno Haible  <bruno@clisp.org>
30630
30631         Add a remark about certain modules.
30632         * modules/malloc (Comment): New section.
30633         * modules/realloc (Comment): Likewise.
30634         * modules/sigpipe (Comment): Likewise.
30635
30636 2010-03-27  Bruno Haible  <bruno@clisp.org>
30637
30638         Resolve conflict between the two kinds of module indicators.
30639         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30640         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30641         * modules/canonicalize (configure.ac): Invoke
30642         gl_MODULE_INDICATOR_FOR_TESTS.
30643         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30644         GNULIB_XYZ.
30645         * tests/test-dirent-c++.cc: Likewise.
30646         * tests/test-dirent-safer.c: Likewise.
30647         * tests/test-dup2.c: Likewise.
30648         * tests/test-fchdir.c: Likewise.
30649         * tests/test-fcntl-h-c++.cc: Likewise.
30650         * tests/test-getopt.c: Likewise.
30651         * tests/test-getopt.h: Likewise.
30652         * tests/test-langinfo-c++.cc: Likewise.
30653         * tests/test-locale-c++.cc: Likewise.
30654         * tests/test-math-c++.cc: Likewise.
30655         * tests/test-pty-c++.cc: Likewise.
30656         * tests/test-search-c++.cc: Likewise.
30657         * tests/test-signal-c++.cc: Likewise.
30658         * tests/test-spawn-c++.cc: Likewise.
30659         * tests/test-stdio-c++.cc: Likewise.
30660         * tests/test-stdlib-c++.cc: Likewise.
30661         * tests/test-string-c++.cc: Likewise.
30662         * tests/test-sys_ioctl-c++.cc: Likewise.
30663         * tests/test-sys_select-c++.cc: Likewise.
30664         * tests/test-sys_socket-c++.cc: Likewise.
30665         * tests/test-sys_stat-c++.cc: Likewise.
30666         * tests/test-sys_time-c++.cc: Likewise.
30667         * tests/test-time-c++.cc: Likewise.
30668         * tests/test-unistd-c++.cc: Likewise.
30669         * tests/test-wchar-c++.cc: Likewise.
30670         * tests/uninorm/test-u8-nfc.c: Likewise.
30671         * tests/uninorm/test-u8-nfd.c: Likewise.
30672         * tests/uninorm/test-u8-nfkc.c: Likewise.
30673         * tests/uninorm/test-u8-nfkd.c: Likewise.
30674         * tests/uninorm/test-u16-nfc.c: Likewise.
30675         * tests/uninorm/test-u16-nfd.c: Likewise.
30676         * tests/uninorm/test-u16-nfkc.c: Likewise.
30677         * tests/uninorm/test-u16-nfkd.c: Likewise.
30678         * tests/uninorm/test-u32-nfc.c: Likewise.
30679         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30680         * tests/uninorm/test-u32-nfd.c: Likewise.
30681         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30682         * tests/uninorm/test-u32-nfkc.c: Likewise.
30683         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30684         * tests/uninorm/test-u32-nfkd.c: Likewise.
30685         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30686         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30687
30688 2010-03-27  Bruno Haible  <bruno@clisp.org>
30689
30690         Distinguish two kinds of module indicators.
30691         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30692         gl_MODULE_INDICATOR.
30693         (gl_MODULE_INDICATOR): New macro.
30694         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30695         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30696         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30697         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30698         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30699         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30700         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30701         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30702         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30703         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30704         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30705         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30707         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30708         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30709         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30710         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30711         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30712         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30713         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30714         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30715         * modules/cloexec (configure.ac): Likewise.
30716         * modules/getopt-gnu (configure.ac): Likewise.
30717         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30718         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30719         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30720         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30721
30722 2010-03-27  Bruno Haible  <bruno@clisp.org>
30723
30724         New module description field 'Comment'.
30725         * gnulib-tool: New option --extract-comment.
30726         (func_usage): Document it.
30727         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30728         (func_get_comment): New function.
30729         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30730
30731 2010-03-27  Bruno Haible  <bruno@clisp.org>
30732
30733         Addendum to 2010-02-07 commit.
30734         * gnulib-tool (func_usage): Document --extract-applicability option.
30735
30736 2010-03-27  Bruno Haible  <bruno@clisp.org>
30737
30738         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30739         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30740         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30741         rather than link errors.
30742
30743 2010-03-27  Bruno Haible  <bruno@clisp.org>
30744
30745         Avoid side effects from tests-related modules on the compilation of lib.
30746         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30747         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30748         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30749         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30750         macro.
30751         (func_import): Define a witness macro. Assign it a value that depends
30752         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30753         tests-related modules.
30754         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30755         Reported by Jim Meyering.
30756
30757 2010-03-27  Bruno Haible  <bruno@clisp.org>
30758
30759         Factorize common .m4 code.
30760         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30761         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30762         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30763         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30764         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30765         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30766         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30767         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30768         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30769         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30770         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30771         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30772         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30773         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30774         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30775         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30776         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30777         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30779         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30780         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30782         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30783         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30784         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30785         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30786         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30787         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30788         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30789         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30790         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30791         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30792
30793 2010-03-27  Bruno Haible  <bruno@clisp.org>
30794
30795         Fix a compilation error on Cygwin with g++ >= 4.3.
30796         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30797         if it is undefined or if we alias it to chmod.
30798         (lstat): Don't warn about the use of this function if it is undefined
30799         or if we alias it to stat.
30800         Reported by Simon Josefsson.
30801
30802 2010-03-27  Bruno Haible  <bruno@clisp.org>
30803
30804         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30805         * modules/getlogin (configure.ac): Update.
30806
30807         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30808         * modules/getlogin_r (configure.ac): Update.
30809
30810         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30812         * modules/inet_ntop (configure.ac): Update.
30813
30814         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30815         * modules/inet_pton (configure.ac): Update.
30816
30817         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30818         * modules/mbslen (configure.ac): Update.
30819
30820         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30821         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30822         * modules/forkpty (configure.ac): Update.
30823         * modules/openpty (configure.ac): Update.
30824
30825 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30826
30827         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30828         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30829
30830 2010-03-25  Eric Blake  <eblake@redhat.com>
30831
30832         maint: use pragma consistently across replacement headers
30833         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30834         * lib/dirent.in.h (system_header): Likewise.
30835         * lib/errno.in.h (system_header): Likewise.
30836         * lib/float.in.h (system_header): Likewise.
30837         * lib/getopt.in.h (system_header): Likewise.
30838         * lib/iconv.in.h (system_header): Likewise.
30839         * lib/inttypes.in.h (system_header): Likewise.
30840         * lib/langinfo.in.h (system_header): Likewise.
30841         * lib/locale.in.h (system_header): Likewise.
30842         * lib/math.in.h (system_header): Likewise.
30843         * lib/netdb.in.h (system_header): Likewise.
30844         * lib/netinet_in.in.h (system_header): Likewise.
30845         * lib/pty.in.h (system_header): Likewise.
30846         * lib/sched.in.h (system_header): Likewise.
30847         * lib/se-selinux.in.h (system_header): Likewise.
30848         * lib/search.in.h (system_header): Likewise.
30849         * lib/spawn.in.h (system_header): Likewise.
30850         * lib/stdarg.in.h (system_header): Likewise.
30851         * lib/stdint.in.h (system_header): Likewise.
30852         * lib/string.in.h (system_header): Likewise.
30853         * lib/strings.in.h (system_header): Likewise.
30854         * lib/sys_file.in.h (system_header): Likewise.
30855         * lib/sys_ioctl.in.h (system_header): Likewise.
30856         * lib/sys_socket.in.h (system_header): Likewise.
30857         * lib/sys_times.in.h (system_header): Likewise.
30858         * lib/sys_utsname.in.h (system_header): Likewise.
30859         * lib/sys_wait.in.h (system_header): Likewise.
30860         * lib/sysexits.in.h (system_header): Likewise.
30861         * lib/unistd.in.h (system_header): Likewise.
30862         * lib/wctype.in.h (system_header): Likewise.
30863
30864         arpa/inet: fix mingw compilation warning
30865         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30866         Reported by Matthew Bolte.
30867
30868 2010-03-25  Bruno Haible  <bruno@clisp.org>
30869
30870         Avoid collision between gnulib wrapper and libintl wrapper.
30871         * lib/printf.c (printf): Don't define if a printf wrapper is already
30872         defined in intl/printf.c.
30873         Reported by Michel Boaventura <michel@michelboaventura.com>.
30874
30875 2010-03-25  Bruno Haible  <bruno@clisp.org>
30876
30877         Use ANSI C.
30878         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30879
30880 2010-03-25  Bruno Haible  <bruno@clisp.org>
30881
30882         Minor formatting changes.
30883         * lib/acosl.c: Insert space before function argument list.
30884         * lib/argz.c: Likewise.
30885         * lib/asinl.c: Likewise.
30886         * lib/expl.c: Likewise.
30887         * lib/gen-uni-tables.c: Likewise.
30888         * lib/gettext.h: Likewise.
30889         * lib/glthread/lock.h: Likewise.
30890         * lib/tanl.c: Likewise.
30891         * lib/uniname/uniname.c: Likewise.
30892         * tests/test-idpriv-drop.c: Likewise.
30893         * tests/test-idpriv-droptemp.c: Likewise.
30894         * tests/test-lock.c: Likewise.
30895         * tests/test-tls.c: Likewise.
30896         * lib/argp-help.c: Insert space before function-like macro argument
30897         list.
30898         * lib/memcmp.c: Likewise.
30899         * tests/test-base64.c: Likewise.
30900         * lib/localename.c: Insert space before sizeof's argument list.
30901         * lib/safe-alloc.h: Likewise.
30902         * lib/file-set.h: Insert space before macro argument list.
30903         * tests/test-argp.c: Likewise.
30904         * lib/argp-namefrob.h: Insert space before function parameter list.
30905         * lib/getaddrinfo.c: Likewise.
30906         * lib/netdb.in.h: Likewise.
30907         * lib/parse-duration.h: Likewise.
30908         * lib/parse-duration.c: Likewise.
30909         * lib/poll.c: Likewise.
30910         * lib/select.c: Likewise.
30911         * lib/trim.h: Likewise.
30912         * tests/test-usleep.c: Likewise.
30913         * lib/ldexpl.c: Insert space before function parameter list and before
30914         function argument list.
30915         * lib/logl.c: Likewise.
30916         * lib/sqrtl.c: Likewise.
30917         * lib/trim.c: Likewise.
30918         * lib/cosl.c: Use GNU style indentation. Insert space before function
30919         argument list.
30920         * lib/sinl.c: Likewise.
30921         * lib/tsearch.c: Insert space after 'for'.
30922         Reported by Jim Meyering.
30923
30924 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30925
30926         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30927         config header before grepping, as it's not present before
30928         autoreconf/configure are run.  Reported by Simon Josefsson.
30929
30930 2010-03-23  Bruno Haible  <bruno@clisp.org>
30931
30932         pt_chown: Make it work with automake < 1.11.
30933         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30934         Reported by Simon Josefsson.
30935
30936 2010-03-23  Bruno Haible  <bruno@clisp.org>
30937
30938         pt_chown: Don't depend on GPLed modules.
30939         * lib/pt_chown.c: Don't include idpriv.h.
30940         (main): Don't drop privileges.
30941         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30942         Reported by Simon Josefsson.
30943
30944 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30945
30946         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30947         suggestions from karl@freefriends.org (Karl Berry).
30948
30949 2010-03-22  Eric Blake  <eblake@redhat.com>
30950
30951         gethostname: further tweaks
30952         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30953         are overriding gethostname.
30954         Suggested by Bruno Haible.
30955
30956 2010-03-21  Bruno Haible  <bruno@clisp.org>
30957
30958         Fix comments.
30959         * lib/forkpty.c (rpl_forkpty): Fix comment.
30960         * lib/openpty.c (rpl_openpty): Likewise.
30961         Reported by Eric Blake.
30962
30963 2010-03-22  Eric Blake  <eblake@redhat.com>
30964
30965         gethostname: fix build on mingw
30966         * lib/unistd.in.h (includes): Work around fact that mingw
30967         <winsock2.h> re-includes <unistd.h>, by avoiding any
30968         redeclarations if we are being included by <winsock2.h>.
30969         Reported by Matthias Bolte.
30970
30971 2010-03-21  Bruno Haible  <bruno@clisp.org>
30972
30973         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30974         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30975         modifications.
30976         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30977         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30978         provide the replacement.
30979         * modules/forkpty (Depends-on): Add openpty, login_tty.
30980         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30981         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30982         * doc/glibc-functions/forkpty.texi: More supported platforms.
30983         * config/srclist.txt: Add forkpty.c (commented).
30984
30985 2010-03-21  Bruno Haible  <bruno@clisp.org>
30986
30987         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30988         (Makefile.am): Verify that PTY_LIB is defined.
30989
30990         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30991
30992 2010-03-21  Bruno Haible  <bruno@clisp.org>
30993
30994         Tests for module 'login_tty'.
30995         * modules/login_tty-tests: New file.
30996         * tests/test-login_tty.c: New file.
30997
30998         New module 'login_tty'.
30999         * lib/login_tty.c: New file.
31000         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31001         * modules/login_tty: New file.
31002         * doc/glibc-functions/login_tty.texi: Mention the new module.
31003
31004 2010-03-21  Bruno Haible  <bruno@clisp.org>
31005
31006         login_tty: Documentation.
31007         * doc/glibc-functions/login_tty.texi: New file.
31008         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31009
31010 2010-03-21  Bruno Haible  <bruno@clisp.org>
31011
31012         pty: Consistent macro naming.
31013         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31014         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31015         * modules/pty (configure.ac): Update.
31016
31017 2010-03-21  Bruno Haible  <bruno@clisp.org>
31018
31019         Tests for openpty: Make stricter.
31020         * tests/test-openpty.c (main): Add test of canonical processing and
31021         erase.
31022         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31023
31024         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31025         * lib/openpty.c (openpty): New replacement function.
31026         * lib/pty.in.h: Include <termios.h>.
31027         (openpty): Update declaration. Add comments.
31028         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31029         is not declared, arrange to provide the replacement. Check for _getpty
31030         and posix_openpt.
31031         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31032         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31033         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31034         * modules/pty-tests (test_pty_c___LDADD): New variable.
31035         * doc/glibc-functions/openpty.texi: More supported platforms.
31036
31037 2010-03-21  Bruno Haible  <bruno@clisp.org>
31038
31039         setenv: Tweaks.
31040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31041         the test program.
31042         * doc/posix-functions/setenv.texi: Update platforms list.
31043
31044 2010-03-21  Bruno Haible  <bruno@clisp.org>
31045
31046         New module 'unlockpt'.
31047         * lib/unlockpt.c: New file, from glibc with modifications.
31048         * m4/unlockpt.m4: New file.
31049         * modules/unlockpt: New file.
31050         * lib/stdlib.in.h (unlockpt): New declaration.
31051         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31052         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31053         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31054         HAVE_UNLOCKPT.
31055         * doc/posix-functions/unlockpt.texi: Mention the new module.
31056         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31057         * config/srclist.txt: Add unlockpt.c (commented).
31058
31059 2010-03-21  Jim Meyering  <meyering@redhat.com>
31060
31061         maint.mk: prohibit inclusion of "intprops.h" without use
31062         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31063
31064 2010-03-21  Bruno Haible  <bruno@clisp.org>
31065
31066         New module 'grantpt'.
31067         * lib/grantpt.c: New file, from glibc with modifications.
31068         * m4/grantpt.m4: New file.
31069         * modules/grantpt: New file.
31070         * lib/stdlib.in.h (grantpt): New declaration.
31071         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31072         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31073         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31074         HAVE_GRANTPT.
31075         * doc/posix-functions/grantpt.texi: Mention the new module.
31076         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31077         * config/srclist.txt: Add grantpt.c (commented).
31078
31079 2010-03-21  Bruno Haible  <bruno@clisp.org>
31080
31081         New module 'pt_chown'.
31082         * lib/pt_chown.c: New file, from glibc with modifications.
31083         * lib/pty-private.h: New file, from glibc with modifications.
31084         * modules/pt_chown: New file.
31085         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31086
31087 2010-03-21  Bruno Haible  <bruno@clisp.org>
31088
31089         Tests for module 'ptsname'.
31090         * modules/ptsname-tests: New file.
31091         * tests/test-ptsname.c: New file.
31092
31093         New module 'ptsname'.
31094         * lib/ptsname.c: New file, from glibc with modifications.
31095         * m4/ptsname.m4: New file.
31096         * modules/ptsname: New file.
31097         * lib/stdlib.in.h (ptsname): New declaration.
31098         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31099         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31100         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31101         HAVE_PTSNAME.
31102         * doc/posix-functions/ptsname.texi: Mention the new module.
31103         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31104         * config/srclist.txt: Add ptsname.c (commented).
31105
31106 2010-03-21  Bruno Haible  <bruno@clisp.org>
31107
31108         Tests for module 'ttyname_r'.
31109         * modules/ttyname_r-tests: New file.
31110         * tests/test-ttyname_r.c: New file.
31111
31112         New module 'ttyname_r'.
31113         * lib/ttyname_r.c: New file.
31114         * m4/ttyname_r.m4: New file.
31115         * modules/ttyname_r: New file.
31116         * lib/unistd.in.h (ttyname_r): New declaration.
31117         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31118         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31119         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31120         HAVE_TTYNAME_R.
31121         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31122         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31123
31124 2010-03-20  Bruno Haible  <bruno@clisp.org>
31125
31126         signal: Undefine macro definitions in C++ mode.
31127         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31128         sigfillset): Undefine macro definitions from the system header in C++
31129         mode.
31130         Reported by John W. Eaton <jwe@gnu.org>.
31131
31132 2010-03-20  Bruno Haible  <bruno@clisp.org>
31133
31134         Ensure no #include statements inside extern "C" { ... }.
31135         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31136         contain #include statements.
31137         * lib/time.in.h: Likewise.
31138
31139 2010-03-20  Bruno Haible  <bruno@clisp.org>
31140
31141         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31142         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31143         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31144         Reported by John W. Eaton <jwe@gnu.org>.
31145
31146 2010-03-20  Bruno Haible  <bruno@clisp.org>
31147
31148         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31149         Reported by Jim Meyering.
31150
31151 2010-03-20  Bruno Haible  <bruno@clisp.org>
31152
31153         pipe: Set errno upon failure.
31154         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31155         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31156         errno value in error message.
31157
31158 2010-03-20  Bruno Haible  <bruno@clisp.org>
31159             Jim Meyering  <meyering@redhat.com>
31160
31161         lchown: Avoid "unused variable" warning.
31162         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31163
31164 2010-03-20  Bruno Haible  <bruno@clisp.org>
31165
31166         Work around unlink() bug on MacOS X 10.5.6.
31167         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31168         attempting to unlink a parent directory.
31169         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31170         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31171         activate for the replacement function.
31172         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31173
31174 2010-03-20  Bruno Haible  <bruno@clisp.org>
31175
31176         Fix link errors on Solaris 8.
31177         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31178         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31179
31180 2010-03-19  Jim Meyering  <meyering@redhat.com>
31181
31182         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31183         The _LIBC implementation of build_range_exp correctly honors the
31184         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31185         However, the non-_LIBC implementation would ignore that syntax-bit
31186         flag and return REG_ERANGE unconditionally.
31187         This change makes it honor that flag.
31188         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31189         Make two pointer parameters "const".
31190         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31191         (parse_bracket_exp): Update caller.
31192
31193         regex.m4: correct the reversed range endpoint ([b-a]) test
31194         * m4/regex.m4: When requiring that [b-a] evoke failure,
31195         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31196         test pass once again for x86-based systems.
31197
31198 2010-03-19  Bruno Haible  <bruno@clisp.org>
31199
31200         scandir: Fix link error on Solaris 8.
31201         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31202         macros.
31203
31204 2010-03-19  Bruno Haible  <bruno@clisp.org>
31205
31206         getusershell: Fix documentation.
31207         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31208         module.
31209         * doc/glibc-functions/setusershell.texi: Likewise.
31210
31211         getusershell: Provide declaration, missing on Solaris 9.
31212         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31213         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31214         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31215         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31217         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31218         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31219         HAVE_GETUSERSHELL.
31220         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31221
31222 2010-03-19  Bruno Haible  <bruno@clisp.org>
31223
31224         wctype: Provide iswblank function.
31225         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31226         exists and is fine.
31227         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31228         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31229         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31230         * doc/posix-functions/iswblank.texi: Update.
31231
31232 2010-03-19  Bruno Haible  <bruno@clisp.org>
31233
31234         Tests of module 'pty' in C++ mode.
31235         * modules/pty-tests: New file.
31236         * tests/test-pty-c++.cc: New file.
31237         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31238
31239 2010-03-19  Eric Blake  <eblake@redhat.com>
31240
31241         logb: fix documentation
31242         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31243         1.5 declaration bug.
31244
31245         forkpty, openpty: prefer glibc's const-safe prototype
31246         * lib/forkpty.c (rpl_forkpty): New file.
31247         * lib/openpty.c (rpl_openpty): Likewise.
31248         * modules/forkpty (Files): Distribute it.
31249         * modules/openpty (Files): Likewise.
31250         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31251         check...
31252         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31253         replacement for for non-const BSD signature.
31254         * modules/pty (Makefile.am): Substitute witnesses.
31255         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31256         * tests/test-forkpty.c: Update signature check.
31257         * tests/test-openpty.c: Likewise.
31258         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31259         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31260
31261         forkpty, openpty: split functions into new modules
31262         * modules/pty (Makefile.am): Substitute new witnesses.
31263         (Libraries): Move library detection...
31264         * modules/forkpty: ...into new module.
31265         * modules/openpty: Another new module.
31266         * modules/pty-tests: Rename and split...
31267         * modules/forkpty-tests: ...to this...
31268         * modules/openpty-tests: ...and this.
31269         * tests/test-pty.c: Rename and split...
31270         * tests/test-forkpty.c: ...to this...
31271         * tests/test-openpty.c: ...and this.
31272         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31273         (gl_PTY): Split library searching...
31274         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31275         (gl_FORKPTY, gl_OPENPTY): New macros.
31276         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31277         * NEWS: Mention the split.
31278         * MODULES.html.sh (Misc): Document the modules.
31279         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31280         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31281
31282         pty: improve replacement header
31283         * lib/pty.in.h: New file.
31284         * modules/pty (Files): Ship it.
31285         (Makefile.am): Always build replacement.
31286         * m4/pty.m4: Rename...
31287         * m4/pty_h.m4: ...to this.
31288         (gl_PTY): Modernize setting of witness macros; update check of
31289         forkpty to take proper advantage of cache.
31290         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31291
31292         getopt: avoid compiler warning
31293         * lib/getopt.c (attribute_hidden): Remove unused macro.
31294
31295 2010-03-18  Bruno Haible  <bruno@clisp.org>
31296
31297         Fix link errors on Solaris 8.
31298         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31299         * modules/search-tests (test_search_c___LDADD): Likewise.
31300         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31301         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31302         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31303         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31304         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31305         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31306         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31307
31308 2010-03-18  Bruno Haible  <bruno@clisp.org>
31309
31310         Fix bug introduced on 2010-03-14.
31311         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31312         (gl_SPAWN_H): Require it.
31313         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31314         Reported by Simon Josefsson.
31315
31316 2010-03-18  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix typo introduced on 2009-12-31.
31319         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31320         posix_spawn_file_actions_adddup2.
31321
31322 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31323         and Eric Blake  <eblake@redhat.com>
31324
31325         test-vc-list-files-git: make more robust
31326         * tests/test-vc-list-files-git.sh: Unset problematic environment
31327         variables.  Chain commands together.
31328
31329 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31330
31331         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31332         `AC_CHECK_DECL' invocation.
31333
31334 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31335
31336         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31337         appears before executable statements. Suggested by Petr Sumbera
31338         <Petr.Sumbera@Sun.COM>.
31339
31340 2010-03-14  Bruno Haible  <bruno@clisp.org>
31341
31342         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31343         portability problems. Instead use a simpler test.
31344         (main): Check that invalid arguments are rejected only on Linux.
31345
31346 2010-03-14  Bruno Haible  <bruno@clisp.org>
31347
31348         Fix bug introduced on 2009-12-31.
31349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31350         gl_PREREQ_SYS_H_WINSOCK2 always.
31351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31352         SYS_SOCKET_H variable.
31353         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31354         Update comments.
31355         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31356         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31357         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31359         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31360
31361 2010-03-14  Bruno Haible  <bruno@clisp.org>
31362
31363         Fix values returned by sinl, cosl.
31364         * lib/trigl.h: Add specification comments.
31365         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31366         that combines the values from the precomputed table with the values of
31367         the Chebyshev polynomials.
31368
31369 2010-03-14  Bruno Haible  <bruno@clisp.org>
31370
31371         Fix compilation error when modules 'posix_spawn[p]' are not used.
31372         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31373         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31374
31375 2010-03-14  Bruno Haible  <bruno@clisp.org>
31376
31377         Fix compilation error on mingw when module 'time_r' is not used.
31378         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31379         is 1.
31380         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31381         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31382         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31383         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31384
31385 2010-03-14  Bruno Haible  <bruno@clisp.org>
31386
31387         Fix compilation error with Sun C.
31388         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31389         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31390         instead of GCC specific ULONG_LONG_MAX.
31391         * lib/xstrtoll.c: Likewise.
31392         * lib/xstrtoull.c: Likewise.
31393
31394 2010-03-13  Bruno Haible  <bruno@clisp.org>
31395
31396         Allow the user to disable C++ code and tests.
31397         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31398         (gl_PROG_ANSI_CXX): Require it.
31399
31400 2010-03-13  Bruno Haible  <bruno@clisp.org>
31401
31402         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31403         cases.
31404
31405 2010-03-13  Bruno Haible  <bruno@clisp.org>
31406
31407         Test that gnulib does not break the standard C++ headers.
31408         * tests/test-locale-c++2.cc: New file.
31409         * modules/locale-tests (Files): Add it.
31410         (Makefile.am): Compile it for test-locale-c++.
31411         * tests/test-math-c++2.cc: New file.
31412         * modules/math-tests (Files): Add it.
31413         (Makefile.am): Compile it for test-math-c++.
31414         * tests/test-signal-c++2.cc: New file.
31415         * modules/signal-tests (Files): Add it.
31416         (Makefile.am): Compile it for test-signal-c++.
31417         * tests/test-stdio-c++2.cc: New file.
31418         * modules/stdio-tests (Files): Add it.
31419         (Makefile.am): Compile it for test-stdio-c++.
31420         * tests/test-stdlib-c++2.cc: New file.
31421         * modules/stdlib-tests (Files): Add it.
31422         (Makefile.am): Compile it for test-stdlib-c++.
31423         * tests/test-string-c++2.cc: New file.
31424         * modules/string-tests (Files): Add it.
31425         (Makefile.am): Compile it for test-string-c++.
31426         * tests/test-time-c++2.cc: New file.
31427         * modules/time-tests (Files): Add it.
31428         (Makefile.am): Compile it for test-time-c++.
31429         Reported by John W. Eaton <jwe@gnu.org>.
31430
31431 2010-03-13  Bruno Haible  <bruno@clisp.org>
31432
31433         * gnulib-tool (func_usage): Clarify which options are available for
31434         --create-testdir and --create-megatestdir.
31435
31436 2010-03-13  Bruno Haible  <bruno@clisp.org>
31437
31438         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31439         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31440         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31441         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31442         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31443         when appropriate.
31444         Reported by Jim Meyering.
31445
31446 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31447
31448         * gnulib-tool (func_import): Explain origin of code.
31449
31450 2010-03-12  Bruno Haible  <bruno@clisp.org>
31451
31452         Fix problem with automake's definition of CXXLINK.
31453         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31454         Reported by Simon Josefsson and Ludovic Courtès.
31455
31456 2010-03-12  Bruno Haible  <bruno@clisp.org>
31457
31458         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31459         stable releases.
31460
31461 2010-03-11  Bruno Haible  <bruno@clisp.org>
31462
31463         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31464         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31465         whether the system provides one variant or multiple variants of the
31466         function.
31467         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31468         C++ compilers.
31469         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31470         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31471         Reported by Jim Meyering.
31472
31473 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31474
31475         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31476
31477 2010-03-08  Bruno Haible  <bruno@clisp.org>
31478
31479         gnulib-tool: Add support for --libtool in --create-testdir.
31480         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31481         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31482
31483 2010-03-08  Eric Blake  <eblake@redhat.com>
31484
31485         gnulib-tool.texi: mention possibility of git submodule
31486         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31487         submodules.
31488         * doc/.gitignore: Ignore another generated file.
31489
31490 2010-03-08  Karl Berry  <karl@gnu.org>
31491
31492         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31493         of committing gnulib files while skipping others.
31494
31495 2010-03-07  Bruno Haible  <bruno@clisp.org>
31496
31497         Tests of module 'wctype' in C++ mode.
31498         * tests/test-wctype-c++.cc: New file.
31499         * modules/wctype-tests (Files): Add it and tests/signature.h.
31500         (Depends-on): Add ansi-c++-opt.
31501         (Makefile.am): Arrange to compile and run test-wctype-c++.
31502
31503         Tests of module 'wchar' in C++ mode.
31504         * tests/test-wchar-c++.cc: New file.
31505         * modules/wchar-tests (Files): Add it and tests/signature.h.
31506         (Depends-on): Add ansi-c++-opt.
31507         (Makefile.am): Arrange to compile and run test-wchar-c++.
31508         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31509         gl_MODULE_INDICATOR.
31510
31511         Tests of module 'unistd' in C++ mode.
31512         * tests/test-unistd-c++.cc: New file.
31513         * modules/unistd-tests (Files): Add it and tests/signature.h.
31514         (Depends-on): Add ansi-c++-opt.
31515         (Makefile.am): Arrange to compile and run test-unistd-c++.
31516         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31517         gl_MODULE_INDICATOR.
31518
31519         Tests of module 'time' in C++ mode.
31520         * tests/test-time-c++.cc: New file.
31521         * modules/time-tests (Files): Add it and tests/signature.h.
31522         (Depends-on): Add ansi-c++-opt.
31523         (Makefile.am): Arrange to compile and run test-time-c++.
31524         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31525
31526         Tests of module 'sys_time' in C++ mode.
31527         * tests/test-sys_time-c++.cc: New file.
31528         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31529         (Depends-on): Add ansi-c++-opt.
31530         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31531         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31532         gl_MODULE_INDICATOR.
31533
31534         Tests of module 'sys_stat' in C++ mode.
31535         * tests/test-sys_stat-c++.cc: New file.
31536         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31537         (Depends-on): Add ansi-c++-opt.
31538         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31539         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31540         gl_MODULE_INDICATOR.
31541
31542         Tests of module 'sys_socket' in C++ mode.
31543         * tests/test-sys_socket-c++.cc: New file.
31544         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31545         (Depends-on): Add ansi-c++-opt.
31546         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31548         gl_MODULE_INDICATOR.
31549
31550         Tests of module 'sys_select' in C++ mode.
31551         * tests/test-sys_select-c++.cc: New file.
31552         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31553         (Depends-on): Add ansi-c++-opt.
31554         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31555         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31556         gl_MODULE_INDICATOR.
31557
31558         Tests of module 'sys_ioctl' in C++ mode.
31559         * tests/test-sys_ioctl-c++.cc: New file.
31560         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31561         (Depends-on): Add ansi-c++-opt.
31562         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31563         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31564         gl_MODULE_INDICATOR.
31565
31566         Tests of module 'string' in C++ mode.
31567         * tests/test-string-c++.cc: New file.
31568         * modules/string-tests (Files): Add it and tests/signature.h.
31569         (Depends-on): Add ansi-c++-opt.
31570         (Makefile.am): Arrange to compile and run test-string-c++.
31571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31572         gl_MODULE_INDICATOR.
31573
31574         Tests of module 'stdlib' in C++ mode.
31575         * tests/test-stdlib-c++.cc: New file.
31576         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31577         (Depends-on): Add ansi-c++-opt.
31578         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31579         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31580         gl_MODULE_INDICATOR.
31581
31582         Tests of module 'stdio' in C++ mode.
31583         * tests/test-stdio-c++.cc: New file.
31584         * modules/stdio-tests (Files): Add it and tests/signature.h.
31585         (Depends-on): Add ansi-c++-opt.
31586         (Makefile.am): Arrange to compile and run test-stdio-c++.
31587         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31588         gl_MODULE_INDICATOR.
31589
31590         Tests of module 'spawn' in C++ mode.
31591         * tests/test-spawn-c++.cc: New file.
31592         * modules/spawn-tests (Files): Add it and tests/signature.h.
31593         (Depends-on): Add ansi-c++-opt.
31594         (Makefile.am): Arrange to compile and run test-spawn-c++.
31595         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31596         gl_MODULE_INDICATOR.
31597
31598         Tests of module 'signal' in C++ mode.
31599         * tests/test-signal-c++.cc: New file.
31600         * modules/signal-tests (Files): Add it and tests/signature.h.
31601         (Depends-on): Add ansi-c++-opt.
31602         (Makefile.am): Arrange to compile and run test-signal-c++.
31603         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31604         gl_MODULE_INDICATOR.
31605
31606         Tests of module 'search' in C++ mode.
31607         * tests/test-search-c++.cc: New file.
31608         * modules/search-tests (Files): Add it and tests/signature.h.
31609         (Depends-on): Add ansi-c++-opt.
31610         (Makefile.am): Arrange to compile and run test-search-c++.
31611         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31612         gl_MODULE_INDICATOR.
31613
31614         Tests of module 'math' in C++ mode.
31615         * tests/test-math-c++.cc: New file.
31616         * modules/math-tests (Files): Add it and tests/signature.h.
31617         (Depends-on): Add ansi-c++-opt.
31618         (Makefile.am): Arrange to compile and run test-math-c++.
31619         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31620
31621         Tests of module 'locale' in C++ mode.
31622         * tests/test-locale-c++.cc: New file.
31623         * modules/locale-tests (Files): Add it and tests/signature.h.
31624         (Depends-on): Add ansi-c++-opt.
31625         (Makefile.am): Arrange to compile and run test-locale-c++.
31626         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31627         gl_MODULE_INDICATOR.
31628
31629         Tests of module 'langinfo' in C++ mode.
31630         * tests/test-langinfo-c++.cc: New file.
31631         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31632         (Depends-on): Add ansi-c++-opt.
31633         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31634         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31635         gl_MODULE_INDICATOR.
31636
31637         Tests of module 'iconv-h' in C++ mode.
31638         * tests/test-iconv-h-c++.cc: New file.
31639         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31640         (Depends-on): Add ansi-c++-opt.
31641         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31642
31643         Tests of module 'glob' in C++ mode.
31644         * tests/test-glob-c++.cc: New file.
31645         * modules/glob-tests (Files): Add it.
31646         (Depends-on): Add ansi-c++-opt.
31647         (Makefile.am): Arrange to compile and run test-glob-c++.
31648
31649         Tests of module 'fcntl-h' in C++ mode.
31650         * tests/test-fcntl-h-c++.cc: New file.
31651         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31652         (Depends-on): Add ansi-c++-opt.
31653         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31654         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31655         gl_MODULE_INDICATOR.
31656
31657         Tests of module 'dirent' in C++ mode.
31658         * tests/test-dirent-c++.cc: New file.
31659         * modules/dirent-tests (Files): Add it and tests/signature.h.
31660         (Depends-on): Add ansi-c++-opt.
31661         (Makefile.am): Arrange to compile and run test-dirent-c++.
31662         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31663         gl_MODULE_INDICATOR.
31664
31665         New module 'ansi-c++-opt'.
31666         * modules/ansi-c++-opt: New file.
31667         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31668
31669         Document C++ namespace mode.
31670         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31671
31672         wctype: Avoid #define replacements in C++ mode.
31673         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31674         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31675         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31676         In C++, define a namespaced alias symbol.
31677         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31678         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31679         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31680         rule.
31681
31682         wchar: Avoid #define replacements in C++ mode.
31683         * lib/wchar.in.h: Include c++defs.h.
31684         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31685         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31686         symbol.
31687         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31688         * modules/wchar (Depends-on): Add c++defs.
31689         (Makefile.am): Update wchar.h rule.
31690
31691         unistd: Avoid #define replacements in C++ mode.
31692         * lib/unistd.in.h: Include c++defs.h.
31693         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31694         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31695         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31696         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31697         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31698         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31699         symbol.
31700         (environ): Update.
31701         * modules/unistd (Depends-on): Add c++defs.
31702         (Makefile.am): Update unistd.h rule.
31703
31704         time: Avoid #define replacements in C++ mode.
31705         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31706         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31707         define a namespaced alias symbol.
31708         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31709         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31710         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31711         * modules/time (Depends-on): Add c++defs, warn-on-use.
31712         (Makefile.am): Update time.h rule.
31713         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31714         * modules/nanosleep (configure.ac): Likewise.
31715         * modules/strptime (configure.ac): Likewise.
31716         * modules/timegm (configure.ac): Likewise.
31717
31718         sys_time: Avoid #define replacements in C++ mode.
31719         * lib/sys_time.in.h: Include c++defs.h.
31720         (gettimeofday): In C++, define a namespaced alias symbol.
31721         * modules/sys_time (Depends-on): Add c++defs.
31722         (Makefile.am): Update sys/time.h rule.
31723
31724         sys_stat: Avoid #define replacements in C++ mode.
31725         * lib/sys_stat.in.h: Include c++defs.h.
31726         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31727         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31728         namespaced alias symbol.
31729         In C++, define a namespaced alias symbol.
31730         * modules/sys_stat (Depends-on): Add c++defs.
31731         (Makefile.am): Update sys/stat.h rule.
31732
31733         sys_socket: Avoid #define replacements in C++ mode.
31734         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31735         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31736         definitions also when the system has a <sys/socket.h>.
31737         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31738         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31739         In C++, define a namespaced alias symbol.
31740         * modules/sys_socket (Depends-on): Add c++defs.
31741         (Makefile.am): Update sys/socket.h rule.
31742
31743         sys_select: Avoid #define replacements in C++ mode.
31744         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31745         definitions also when the system has a <sys/select.h>.
31746         (select): In C++, define a namespaced alias symbol.
31747         * modules/sys_select (Depends-on): Add c++defs.
31748         (Makefile.am): Update sys/select.h rule.
31749
31750         sys_ioctl: Avoid #define replacements in C++ mode.
31751         * lib/sys_ioctl.in.h: Include c++defs.h.
31752         (ioctl): In C++, define a namespaced alias symbol.
31753         * modules/sys_ioctl (Depends-on): Add c++defs.
31754         (Makefile.am): Update sys/ioctl.h rule.
31755
31756         string: Avoid #define replacements in C++ mode.
31757         * lib/string.in.h: Include c++defs.h.
31758         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31759         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31760         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31761         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31762         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31763         * modules/string (Depends-on): Add c++defs.
31764         (Makefile.am): Update string.h rule.
31765
31766         stdlib: Avoid #define replacements in C++ mode.
31767         * lib/stdlib.in.h: Include c++defs.h.
31768         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31769         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31770         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31771         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31772         symbol.
31773         * modules/stdlib (Depends-on): Add c++defs.
31774         (Makefile.am): Update stdlib.h rule.
31775
31776         stdio: Avoid #define replacements in C++ mode.
31777         * lib/stdio.in.h: Include c++defs.h.
31778         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31779         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31780         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31781         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31782         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31783         namespaced alias symbol.
31784         * modules/stdio (Depends-on): Add c++defs.
31785         (Makefile.am): Update stdio.h rule.
31786
31787         spawn: Avoid #define replacements in C++ mode.
31788         * lib/spawn.in.h: Include c++defs.h.
31789         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31790         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31791         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31792         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31793         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31794         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31795         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31796         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31797         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31798         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31799         In C++, define a namespaced alias symbol.
31800         * modules/spawn (Depends-on): Add c++defs.
31801         (Makefile.am): Update spawn.h rule.
31802
31803         signal: Avoid #define replacements in C++ mode.
31804         * lib/signal.in.h: Include c++defs.h.
31805         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31806         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31807         namespaced alias symbol.
31808         * modules/signal (Depends-on): Add c++defs.
31809         (Makefile.am): Update signal.h rule.
31810
31811         search: Avoid #define replacements in C++ mode.
31812         * lib/search.in.h: Include c++defs.h.
31813         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31814         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31815         symbol.
31816         * modules/search (Depends-on): Add c++defs.
31817         (Makefile.am): Update search.h rule.
31818
31819         math: Avoid #define replacements in C++ mode.
31820         * lib/math.in.h: Include c++defs.h.
31821         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31822         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31823         trunc, truncl): In C++, define a namespaced alias symbol.
31824         * modules/math (Depends-on): Add c++defs.
31825         (Makefile.am): Update math.h rule.
31826
31827         locale: Avoid #define replacements in C++ mode.
31828         * lib/locale.in.h: Include c++defs.h.
31829         (duplocale): In C++, define a namespaced alias symbol.
31830         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31831         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31832         * modules/locale (Depends-on): Add c++defs.
31833         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31834
31835         langinfo: Avoid #define replacements in C++ mode.
31836         * lib/langinfo.in.h: Include c++defs.h.
31837         (nl_langinfo): In C++, define a namespaced alias symbol.
31838         * modules/langinfo (Depends-on): Add c++defs.
31839         (Makefile.am): Update langinfo.h rule.
31840
31841         iconv-h: Avoid #define replacements in C++ mode.
31842         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31843         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31844         symbol.
31845         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31846         whenever iconv is present.
31847         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31848         (Makefile.am): Update iconv.h rule.
31849
31850         glob: Avoid #define replacements in C++ mode.
31851         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31852         (_gl_glob_errfunc_fn): New type.
31853         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31854         symbol.
31855         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31856         (Makefile.am): Update glob.h rule.
31857
31858         fcntl-h: Avoid #define replacements in C++ mode.
31859         * lib/fcntl.in.h: Include c++defs.h.
31860         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31861         * modules/fcntl-h (Depends-on): Add c++defs.
31862         (Makefile.am): Update fcntl.h rule.
31863
31864         dirent: Avoid #define replacements in C++ mode.
31865         * lib/dirent.in.h: Include c++defs.h.
31866         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31867         namespaced alias symbol.
31868         (dirfd): Update declaration.
31869         * modules/dirent (Depends-on): Add c++defs.
31870         (Makefile.am): Update dirent.h rule.
31871
31872         ctype: Make it usable in C++ code.
31873         * lib/ctype.in.h: Include c++defs.h.
31874         (isblank): Declare as extern "C".
31875         * modules/ctype (Depends-on): Add c++defs.
31876         (Makefile.am): Update ctype.h rule.
31877
31878         New module 'c++defs'.
31879         * modules/c++defs: New file.
31880         * build-aux/c++defs.h: New file.
31881         Reported by John W. Eaton <jwe@gnu.org>.
31882
31883 2010-03-07  Bruno Haible  <bruno@clisp.org>
31884
31885         logb: Provide missing declaration for Cygwin.
31886         * lib/math.in.h (logb): New declaration.
31887         * m4/logb.m4: New file.
31888         * modules/logb (Files): Add m4/logb.m4.
31889         (Depends-on): Add math.
31890         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31891         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31893         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31894         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31895
31896 2010-03-07  Bruno Haible  <bruno@clisp.org>
31897
31898         Fix test-cond link error.
31899         * tests/test-cond.c: Include <stdio.h>.
31900
31901 2010-03-07  Bruno Haible  <bruno@clisp.org>
31902
31903         Fix test-dirent-safer link error.
31904         * modules/dirent-safer-tests (Makefile.am): Define
31905         test_dirent_safer_LDADD.
31906
31907 2010-03-07  Bruno Haible  <bruno@clisp.org>
31908
31909         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31910         among default module list.
31911
31912 2010-03-07  Bruno Haible  <bruno@clisp.org>
31913
31914         Fix link error on platforms with GNU libiconv.
31915         * modules/unistr/u8-strcoll-tests (Makefile): Define
31916         test_u8_strcoll_LDADD.
31917         * modules/unistr/u16-strcoll-tests (Makefile): Define
31918         test_u16_strcoll_LDADD.
31919         * modules/unistr/u32-strcoll-tests (Makefile): Define
31920         test_u32_strcoll_LDADD.
31921
31922 2010-03-07  Bruno Haible  <bruno@clisp.org>
31923
31924         Use POSIX declarations for socket functions.
31925         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31926         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31927         rpl_sendto): Change declaration to match POSIX.
31928         * lib/connect.c (rpl_connect): Likewise.
31929         * lib/accept.c (rpl_accept): Likewise.
31930         * lib/bind.c (rpl_bind): Likewise.
31931         * lib/getpeername.c (rpl_getpeername): Likewise.
31932         * lib/getsockname.c (rpl_getsockname): Likewise.
31933         * lib/recv.c (rpl_recv): Likewise.
31934         * lib/send.c (rpl_send): Likewise.
31935         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31936         * lib/sendto.c (rpl_sendto): Likewise.
31937
31938 2010-03-06  Bruno Haible  <bruno@clisp.org>
31939
31940         Clarify access, euidaccess, faccessat.
31941         * doc/posix-functions/faccessat.texi: Mention security problem under
31942         "Other problems", not "Portability problems".
31943         * doc/posix-functions/access.texi: Likewise. Mention a related security
31944         problem.
31945         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31946         * lib/euidaccess.c: Add comments about platforms.
31947         * lib/unistd.in.h (access, euidaccess): Add warnings.
31948
31949 2010-03-07  Bruno Haible  <bruno@clisp.org>
31950
31951         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31952         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31953         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31954         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31955         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31956         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31957         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31958         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31959         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31961         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31962         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31963         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31964         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31965         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31966         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31967         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31968         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31969         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31970         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31971         Likewise.
31972         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31973         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31974         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31975         Likewise.
31976         * tests/test-spawn.c (main): Make it work when
31977         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31978
31979 2010-03-07  Bruno Haible  <bruno@clisp.org>
31980
31981         Fix incorrect Makefile.am generation in German locale.
31982         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31983         Execute sed command with character range in C locale.
31984
31985 2010-03-06  Bruno Haible  <bruno@clisp.org>
31986
31987         Tests for module 'iconv-h'.
31988         * modules/iconv-h-tests: New file.
31989         * tests/test-iconv-h.c: New file.
31990
31991         New module 'iconv-h'.
31992         * modules/iconv-h: New file.
31993         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31994         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31995         (configure.ac): Remove gl_ICONV_H.
31996         (Makefile.am): Remove rule for iconv.h.
31997
31998 2010-03-06  Bruno Haible  <bruno@clisp.org>
31999
32000         More consistent naming of *.m4 files.
32001         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32002         * modules/wctype (Files): Update.
32003
32004         More consistent naming of *.m4 files.
32005         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32006         * modules/wchar (Files): Update.
32007
32008 2010-03-06  Jim Meyering  <meyering@redhat.com>
32009
32010         euidaccess: relax license to LGPLv2+
32011         * modules/euidaccess (License): Relax to LGPLv2+.
32012
32013 2010-03-06  Bruno Haible  <bruno@clisp.org>
32014
32015         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32016         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32017         (Makefile.am): Augment lib_SOURCES instead.
32018
32019 2010-03-04  Jim Meyering  <meyering@redhat.com>
32020
32021         utime: remove obsolete module
32022         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32023         unnecessary for years, and has been marked as obsolete for 10 months.
32024         * modules/utime: Remove file.
32025         * lib/utime.c: Remove file.
32026         * m4/utime.m4: Remove file.
32027         * m4/utimes-null.m4: Remove file.
32028         * doc/posix-functions/utime.texi (utime): Remove reference to
32029         the module.  Move the sole "fixed by gnulib" item into the
32030         "problems not fixed by Gnulib" list.
32031         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32032
32033 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32034
32035         * modules/exit (License): Relax license to LGPLv2+.
32036         (Status): Mark as obsolete.
32037         * NEWS: Mention deprecated 'exit' module.
32038         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32039         of now obsolete 'exit'.
32040
32041 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32042
32043         fts-lgpl: remove unused module
32044         * modules/fts-lgpl: Remove.
32045         * MODULES.html.sh (func_all_modules): Adjust.
32046         * check-module (find_included_lib_files): Adjust.
32047         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32048
32049 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32050
32051         copy-acl: enhance Solaris ACL error handling
32052         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32053         * lib/set-mode-acl.c (qset_acl): Likewise.
32054
32055 2010-03-02  Bruno Haible  <bruno@clisp.org>
32056
32057         spawn: Don't override the system defined values on FreeBSD 8.
32058         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32059         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32060         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32061         if HAVE_POSIX_SPAWN is 1.
32062         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32063
32064 2010-03-01  Bruno Haible  <bruno@clisp.org>
32065
32066         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32067         regarding Automake.
32068
32069 2010-02-25  Bruno Haible  <bruno@clisp.org>
32070
32071         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32072         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32073         setting, not afterwards.
32074         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32075
32076 2010-02-24  Eric Blake  <eblake@redhat.com>
32077
32078         bootstrap, git-version-gen: use timestamp
32079         * build-aux/git-version-gen (scriptversion): Force UTC.
32080         * build-aux/bootstrap (scriptversion): New variable.
32081
32082         bootstrap: allow older git
32083         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32084         older than 1.6.4.  Requested by the libvirt project.
32085
32086 2010-02-23  Eric Blake  <eblake@redhat.com>
32087
32088         warn-on-use: work with old autoconf
32089         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32090         AS_VAR semantics of autoconf 2.60.
32091         Reported by Bruno Haible.
32092
32093         bootstrap: improve some comments
32094         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32095         clarification comments.
32096
32097         gettimeofday: provide correct function
32098         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32099         when replacement is declared, otherwise provide gettimeofday.
32100         Reported by Michael Goffioul.
32101
32102 2010-02-23  Jim Meyering  <meyering@redhat.com>
32103
32104         lib-ignore: relax license to "unlimited", not LGPLv2+
32105         * modules/lib-ignore (License): Relax to "unlimited".
32106
32107 2010-02-23  Jim Meyering  <meyering@redhat.com>
32108
32109         lib-ignore: relax license to LGPLv2+
32110         * modules/lib-ignore (License): Relax to LGPLv2+.
32111
32112 2010-02-22  Eric Blake  <eblake@redhat.com>
32113
32114         lseek: avoid bash 3.2 broken pipe bug
32115         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32116         warning from bash 3.2.
32117         Reported by Ben Pfaff, with analysis from Bruno Haible.
32118
32119         bootstrap: support non-FSF copyright holder
32120         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32121         bootstrap.conf override of COPYRIGHT_HOLDER.
32122         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32123
32124         bootstrap: interoperate with gettext 0.14.1
32125         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32126
32127         bootstrap: allow for alternate submodule location
32128         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32129         hardcoding submodule location.
32130         (gnulib_mk): Allow direct use of Makefile.am.
32131
32132         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32133         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32134         rather than reconfiguring where the submodule points.
32135
32136         gettimeofday: restore support for platforms that lack function
32137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32138         replacement if function is missing.
32139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32140         * modules/sys_time (Makefile.am): Substitute it.
32141         * lib/sys_time.in.h (gettimeofday): Check it.
32142         Reported by Michael Goffioul.
32143
32144 2010-02-21  Bruno Haible  <bruno@clisp.org>
32145
32146         * lib/stdio.in.h (obstack_printf): Fix typo.
32147
32148 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32149
32150         vc-list-files: use bzr ls's -R option
32151         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32152         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32153
32154 2010-02-21  Jim Meyering  <meyering@redhat.com>
32155
32156         init.sh: fix EXEEXT shims to work also for names like test-prog
32157         * tests/init.sh: Re-exec a better shell, when needed.
32158         If the current shell lacks support for posix $(...), an init.sh-using
32159         test will now try to find a shell that supports that.  If EXEEXT is
32160         nonempty, we also require support for hyphen-in-alias-name and shell
32161         substitutions like ${var#glob}.  Failure to find such a shell results
32162         in a skipped test.
32163
32164 2010-02-21  Bruno Haible  <bruno@clisp.org>
32165
32166         Really work around around "broken pipe" error message from bash 3.2.
32167         * gnulib-tool (func_reset_sigpipe): Remove function.
32168         (echo): In bash 3.2, define to a function that uses printf.
32169         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32170
32171 2010-02-20  Bruno Haible  <bruno@clisp.org>
32172
32173         Restore support for automake 1.9.6 with autoconf 2.61.
32174         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32175         Reported by James Youngman <jay@gnu.org>.
32176
32177 2010-02-20  Bruno Haible  <bruno@clisp.org>
32178
32179         Improve *printf warning condition.
32180         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32181         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32182         and the function is overridden due to SIGPIPE emulation.
32183
32184 2010-02-20  Bruno Haible  <bruno@clisp.org>
32185
32186         * lib/stdio.in.h: Tweak comments.
32187
32188 2010-02-19  Bruno Haible  <bruno@clisp.org>
32189
32190         Make it easier to find modules. New gnulib-tool option '--find'.
32191         * gnulib-tool: New option --find.
32192         (func_usage): Document it.
32193         (func_sanitize_modulelist): New function, extracted from
32194         func_all_modules.
32195         (func_all_modules): Invoke it.
32196         * doc/gnulib-tool.texi (Which modules?): New node.
32197
32198 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32199
32200         * lib/sys_select.in.h: Provide select replacement even if
32201         sys/select.h exists on a system, for Interix.
32202
32203 2010-02-18  Jim Meyering  <meyering@redhat.com>
32204
32205         init.sh: don't use $(...) just yet
32206         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32207         to accommodate e.g., Solaris' /bin/sh.
32208
32209 2010-02-17  Bruno Haible  <bruno@clisp.org>
32210
32211         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32212         Reported by Ludovic Courtès <ludo@gnu.org>.
32213
32214 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32215
32216         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32217         linking with -lintl.
32218
32219 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32220
32221         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32222         if not provided by the system's netdb.h.  Reported by
32223         ludo@gnu.org (Ludovic Courtès).
32224
32225 2010-02-15  Jim Meyering  <meyering@redhat.com>
32226
32227         init.sh: improve portability and efficiency
32228         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32229         "dummy" in a for loop.
32230         Use '!', not '^' to select the complement of a character set used
32231         in a "case" statement.
32232         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32233         Suggestions from Eric Blake.
32234
32235         init.sh: automatically accommodate programs with the .exe suffix
32236         Automatically arrange for an invocation of "prog" to execute the
32237         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32238         may use the simpler "prog", yet still work when built on a system
32239         that requires specifying the added suffix.
32240         Do this by constructing a function named "prog" that invokes
32241         "prog.exe" for each .exe file in selected directories.
32242         * tests/init.sh (find_exe_basenames_): New function.
32243         (create_exe_shim_functions_): New function.
32244         (path_prepend_): Use it.
32245
32246         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32247         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32248         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32249
32250 2010-02-14  Jim Meyering  <meyering@redhat.com>
32251
32252         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32253         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32254         (sc_prohibit_hash_pjw_without_use): New rule.
32255
32256         maint.mk: allow the default upload destination dir to be overridden
32257         * top/maint.mk (upload_dest_dir_): Define with a default that
32258         preserves the status quo.
32259         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32260         Reported by Peter Simons.
32261
32262         maint.mk: prohibit inclusion of "hash.h" without_use
32263         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32264
32265 2010-02-10  Jim Meyering  <meyering@redhat.com>
32266
32267         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32268         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32269
32270 2010-02-09  Eric Blake  <ebb9@byu.net>
32271         and Bruno Haible  <bruno@clisp.org>
32272
32273         obstack-printf-posix: ensure declaration
32274         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32275         extracted from gl_FUNC_OBSTACK_PRINTF.
32276         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32277         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32278         Likewise.
32279         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32280         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32281         0.
32282
32283 2010-02-08  Bruno Haible  <bruno@clisp.org>
32284
32285         gnulib-tool: Fix typo in 2010-02-07 commit.
32286         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32287         Reported by Eric Blake.
32288
32289 2010-02-07  Bruno Haible  <bruno@clisp.org>
32290
32291         gnulib-tool: Fix up caching patches.
32292         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32293         option --no-cache. Use associative arrays when supported by the shell.
32294         (sed_comments): New variable.
32295         (modcache): Renamed from do_cache.
32296         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32297         abbreviate unnecessarily.
32298         (have_associative): New variable.
32299         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32300         way also for ksh and zsh.
32301         (func_init_sed_convert_to_cache_statements): New function, extracted
32302         from func_cache_lookup_module. Add support for associative arrays.
32303         Don't set the c_MODULE_cached variable here. Ignore all lines before
32304         the first field header. Remove only the final newline, not all trailing
32305         newlines. Support empty fields correctly. Limit the use of 'eval' to
32306         assignments.
32307         (func_get_description, func_get_status, func_get_notice,
32308         func_get_applicability, func_get_filelist, func_get_dependencies,
32309         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32310         func_get_automake_snippet, func_get_include_directive,
32311         func_get_link_directive, func_get_license, func_get_maintainer):
32312         Update documentation. List the unoptimized code first. Add support for
32313         associative arrays. Limit the use of 'eval' to assignments.
32314         (func_get_applicability): Undo stylistic pessimisations.
32315         (func_get_automake_snippet, func_get_include_directive): Reduce code
32316         duplication.
32317         (func_modules_transitive_closure, func_modules_add_dummy,
32318         func_modules_notice, func_modules_to_filelist, func_add_file,
32319         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32320         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32321         func_create_testdir, func_create_megatestdir): Update documentation.
32322
32323 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32324
32325         * gnulib-tool (func_cache_lookup_module): Store the module name
32326         belonging to the cache variable; error out if two different
32327         module names map to the same cache variable name.
32328
32329 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32330
32331         gnulib-tool: Make caching optional.
32332         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32333         Update matching short versions of --no-changelog.
32334         (func_usage): Update.
32335         (sed_extract_cache_prog): Renamed from ...
32336         (sed_extract_prog): ... this; revert to old extraction script.
32337         (func_get_description, func_get_status)
32338         (func_get_notice, func_get_applicability, func_get_filelist)
32339         (func_get_dependencies, func_get_autoconf_early_snippet)
32340         (func_get_autoconf_snippet, func_get_automake_snippet)
32341         (func_get_include_directive, func_get_link_directive)
32342         (func_get_license, func_get_maintainer): If $do_cache is false,
32343         use old, non-caching extraction scripts.
32344         Suggestion by Bruno Haible.
32345
32346 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32347
32348         gnulib-tool: cache module metainformation.
32349         * gnulib-tool (sed_extract_prog): Match newline before each
32350         header, and rewrite header to a shell variable suffix.
32351         (func_cache_var, func_cache_lookup_module): New functions,
32352         to turn a module name into a cache variable prefix, and to
32353         look up and cache module metainformation.
32354         (func_get_description, func_get_status)
32355         (func_get_notice, func_get_applicability, func_get_filelist)
32356         (func_get_dependencies, func_get_autoconf_early_snippet)
32357         (func_get_autoconf_snippet, func_get_automake_snippet)
32358         (func_get_include_directive, func_get_link_directive)
32359         (func_get_license, func_get_maintainer): Use
32360         func_cache_lookup_module.
32361
32362 2010-02-07  Bruno Haible  <bruno@clisp.org>
32363
32364         fnctl: Fix missing dependency.
32365         * modules/fcntl (Depends-on): Add getdtablesize.
32366         Reported by John W. Eaton <jwe@gnu.org>.
32367
32368 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32369
32370         Argp: fix recognition of short alias options.
32371
32372         * lib/argp-parse.c (convert_options): Fix improper use of
32373         `|' between character values.
32374         * tests/test-argp.c (group1_option): New alias option
32375         --read (-r).
32376         (group1_parser): Special handling for 'r'.
32377         (test15): New test case.
32378         (test_fun): Add test15.
32379         * tests/test-argp-2.sh: Update expected --help and --usage
32380         outputs.
32381
32382 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32383
32384         * tests/test-argp.c: Fix indentation.
32385
32386 2010-02-04  Eric Blake  <ebb9@byu.net>
32387
32388         gettimeofday: expose type of second argument
32389         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32390         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32391         * tests/test-gettimeofday.c: Use it to silence warning.
32392         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32393         the issue.
32394
32395 2010-02-03  Jim Meyering  <meyering@redhat.com>
32396
32397         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32398         * lib/regcomp.c (TYPE_SIGNED): Define.
32399         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32400
32401         regcomp.c: avoid a new -Wshadow warning
32402         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32403
32404 2010-02-01  Jim Meyering  <meyering@redhat.com>
32405
32406         removing useless parentheses in cpp #define directives
32407         For motivation, see commit c0221df4, "define STREQ(a,b)
32408         consistently, removing useless parentheses"
32409         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32410         * lib/mountlist.c (MNT_IGNORE): Likewise.
32411         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32412
32413 2010-02-01  Eric Blake  <ebb9@byu.net>
32414
32415         sys_time: use link-warning
32416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32417         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32418         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32419         * modules/sys_time (Depends-on): Add warn-on-use.
32420         (Makefile.am): Always build replacement.
32421         (configure.ac): Update substitutions.
32422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32423         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32424         bother with SYS_TIME_H.
32425         * modules/gettimeofday (configure.ac): Declare indicator.
32426         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32427         in use.
32428
32429         closein-tests: silence compiler warning
32430         * tests/test-closein.c (main): Ignore fread result.
32431         * modules/closein-tests (Depends-on): Add ignore-value.
32432
32433         tests: silence warning about system return
32434         * tests/test-areadlink-with-size.c (main): Ignore system result.
32435         * tests/test-areadlink.c (main): Likewise.
32436         * tests/test-areadlinkat-with-size.c (main): Likewise.
32437         * tests/test-areadlinkat.c (main): Likewise.
32438         * tests/test-canonicalize-lgpl.c (main): Likewise.
32439         * tests/test-canonicalize.c (main): Likewise.
32440         * tests/test-chown.c (main): Likewise.
32441         * tests/test-fchownat.c (main): Likewise.
32442         * tests/test-fdutimensat.c (main): Likewise.
32443         * tests/test-fstatat.c (main): Likewise.
32444         * tests/test-futimens.c (main): Likewise.
32445         * tests/test-lchown.c (main): Likewise.
32446         * tests/test-link.c (main): Likewise.
32447         * tests/test-linkat.c (main): Likewise.
32448         * tests/test-lstat.c (main): Likewise.
32449         * tests/test-mkdir.c (main): Likewise.
32450         * tests/test-mkdirat.c (main): Likewise.
32451         * tests/test-mkfifo.c (main): Likewise.
32452         * tests/test-mkfifoat.c (main): Likewise.
32453         * tests/test-mknod.c (main): Likewise.
32454         * tests/test-readlink.c (main): Likewise.
32455         * tests/test-remove.c (main): Likewise.
32456         * tests/test-rename.c (main): Likewise.
32457         * tests/test-renameat.c (main): Likewise.
32458         * tests/test-rmdir.c (main): Likewise.
32459         * tests/test-symlink.c (main): Likewise.
32460         * tests/test-symlinkat.c (main): Likewise.
32461         * tests/test-unlink.c (main): Likewise.
32462         * tests/test-unlinkat.c (main): Likewise.
32463         * tests/test-utimens.c (main): Likewise.
32464         * tests/test-utimensat.c (main): Likewise.
32465         * modules/areadlink-tests (Depends-on): Add ignore-value.
32466         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32467         * modules/areadlinkat-tests (Depends-on): Likewise.
32468         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32469         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32470         * modules/canonicalize-tests (Depends-on): Likewise.
32471         * modules/chown-tests (Depends-on): Likewise.
32472         * modules/fdutimensat-tests (Depends-on): Likewise.
32473         * modules/futimens-tests (Depends-on): Likewise.
32474         * modules/lchown-tests (Depends-on): Likewise.
32475         * modules/link-tests (Depends-on): Likewise.
32476         * modules/linkat-tests (Depends-on): Likewise.
32477         * modules/lstat-tests (Depends-on): Likewise.
32478         * modules/mkdir-tests (Depends-on): Likewise.
32479         * modules/mkfifo-tests (Depends-on): Likewise.
32480         * modules/mkfifoat-tests (Depends-on): Likewise.
32481         * modules/mknod-tests (Depends-on): Likewise.
32482         * modules/openat-tests (Depends-on): Likewise.
32483         * modules/readlink-tests (Depends-on): Likewise.
32484         * modules/remove-tests (Depends-on): Likewise.
32485         * modules/rename-tests (Depends-on): Likewise.
32486         * modules/renameat-tests (Depends-on): Likewise.
32487         * modules/rmdir-tests (Depends-on): Likewise.
32488         * modules/symlink-tests (Depends-on): Likewise.
32489         * modules/symlinkat-tests (Depends-on): Likewise.
32490         * modules/unlink-tests (Depends-on): Likewise.
32491         * modules/utimens-tests (Depends-on): Likewise.
32492         * modules/utimensat-tests (Depends-on): Likewise.
32493
32494 2010-01-31  Bruno Haible  <bruno@clisp.org>
32495
32496         Perform the same test for many <math.h> functions.
32497         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32498         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32499         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32500         of gl_MATHFUNC.
32501         * modules/acos (configure.ac): Likewise.
32502         * modules/asin (configure.ac): Likewise.
32503         * modules/atan (configure.ac): Likewise.
32504         * modules/atan2 (configure.ac): Likewise.
32505         * modules/cbrt (configure.ac): Likewise.
32506         * modules/copysign (configure.ac): Likewise.
32507         * modules/cos (configure.ac): Likewise.
32508         * modules/cosh (configure.ac): Likewise.
32509         * modules/erf (configure.ac): Likewise.
32510         * modules/erfc (configure.ac): Likewise.
32511         * modules/exp (configure.ac): Likewise.
32512         * modules/fmod (configure.ac): Likewise.
32513         * modules/hypot (configure.ac): Likewise.
32514         * modules/j0 (configure.ac): Likewise.
32515         * modules/j1 (configure.ac): Likewise.
32516         * modules/jn (configure.ac): Likewise.
32517         * modules/lgamma (configure.ac): Likewise.
32518         * modules/log (configure.ac): Likewise.
32519         * modules/log10 (configure.ac): Likewise.
32520         * modules/log1p (configure.ac): Likewise.
32521         * modules/pow (configure.ac): Likewise.
32522         * modules/remainder (configure.ac): Likewise.
32523         * modules/sin (configure.ac): Likewise.
32524         * modules/sinh (configure.ac): Likewise.
32525         * modules/tan (configure.ac): Likewise.
32526         * modules/tanh (configure.ac): Likewise.
32527         * modules/y0 (configure.ac): Likewise.
32528         * modules/y1 (configure.ac): Likewise.
32529         * modules/yn (configure.ac): Likewise.
32530         Suggested by Paolo Bonzini.
32531
32532 2010-01-31  Bruno Haible  <bruno@clisp.org>
32533
32534         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32535
32536 2010-01-31  Bruno Haible  <bruno@clisp.org>
32537
32538         Work around getdelim() bug on FreeBSD 8.0.
32539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32540         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32541         not work.
32542         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32543         is 1.
32544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32545         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32546         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32547         a non-zero size.
32548         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32549
32550 2010-01-31  Bruno Haible  <bruno@clisp.org>
32551
32552         Work around getline() bug on FreeBSD 8.0.
32553         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32554         and a non-zero size.
32555         * tests/test-getline.c (main): Likewise.
32556         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32557         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32558
32559 2010-01-28  Eric Blake  <ebb9@byu.net>
32560
32561         regex: fix build failure
32562         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32563         platforms.
32564
32565 2010-01-28  Jim Meyering  <meyering@redhat.com>
32566
32567         regex: do not ignore memory allocation failure
32568         * lib/regex_internal.c (create_cd_newstate): Detect
32569         re_node_set_init_copy failure.   Extracted from glibc commit
32570         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32571
32572         regex: sync more white-space changes from libc
32573         * lib/regex_internal.c: White-space only changes.
32574         * lib/regexec.c: Likewise.
32575
32576         regex: add many uses of __attribute_warn_unused_result__
32577         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32578         * lib/regexec.c: Likewise.
32579         Extracted from a messy glibc commit.
32580
32581         regcomp.c: spelling and merge-artifact from glibc
32582         * lib/regcomp.c: Merge remainder of glibc's
32583         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32584
32585         regcomp.c: sync white-space changes from glibc
32586         * lib/regcomp.c: Merge to accommodate white space
32587         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32588
32589         regcomp.c: do not ignore internal return values
32590         * lib/regcomp.c: Do not ignore internal return values.
32591         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32592         but without its white-space changes and spelling fixes.
32593
32594         regex_internal.h: define __attribute_warn_unused_result__
32595         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32596
32597         maint: add a syntax-check rule to check for vulnerable Makefile.in
32598         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32599
32600 2010-01-27  Jim Meyering  <meyering@redhat.com>
32601
32602         ncftpput-ftp: clean up spaces
32603         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32604         Remove trailing blanks.
32605
32606 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32607
32608         * build-aux/git-version-gen: Fix copyright statement.
32609         * build-aux/gnupload: Likewise.
32610         * tests/test-arcfour.c: Likewise.
32611         * tests/test-arctwo.c: Likewise.
32612         * tests/test-count-one-bits.c: Likewise.
32613         * tests/test-crc.c: Likewise.
32614         * tests/test-des.c: Likewise.
32615         * tests/test-gc-arcfour.c: Likewise.
32616         * tests/test-gc-arctwo.c: Likewise.
32617         * tests/test-gc-des.c: Likewise.
32618         * tests/test-gc-hmac-md5.c: Likewise.
32619         * tests/test-gc-hmac-sha1.c: Likewise.
32620         * tests/test-gc-md2.c: Likewise.
32621         * tests/test-gc-md4.c: Likewise.
32622         * tests/test-gc-md5.c: Likewise.
32623         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32624         * tests/test-gc-rijndael.c: Likewise.
32625         * tests/test-gc-sha1.c: Likewise.
32626         * tests/test-gc.c: Likewise.
32627         * tests/test-gethostname.c: Likewise.
32628         * tests/test-gettimeofday.c: Likewise.
32629         * tests/test-hash.c: Likewise.
32630         * tests/test-hmac-md5.c: Likewise.
32631         * tests/test-hmac-sha1.c: Likewise.
32632         * tests/test-md2.c: Likewise.
32633         * tests/test-md4.c: Likewise.
32634         * tests/test-md5.c: Likewise.
32635         * tests/test-memchr.c: Likewise.
32636         * tests/test-memchr2.c: Likewise.
32637         * tests/test-memcmp.c: Likewise.
32638         * tests/test-memmem.c: Likewise.
32639         * tests/test-memrchr.c: Likewise.
32640         * tests/test-rawmemchr.c: Likewise.
32641         * tests/test-read-file.c: Likewise.
32642         * tests/test-rijndael.c: Likewise.
32643         * tests/test-sockets.c: Likewise.
32644         * tests/test-strchrnul.c: Likewise.
32645         * tests/test-strstr.c: Likewise.
32646         * tests/test-strtod.c: Likewise.
32647         * build-aux/ncftpput-ftp: Likewise.
32648
32649 2010-01-26  Eric Blake  <ebb9@byu.net>
32650
32651         ignore-value: update recommended header name
32652         * modules/ignore-value (Include): Only use <> for headers that
32653         exist in glibc.
32654
32655 2010-01-26  Jim Meyering  <meyering@redhat.com>
32656
32657         test-userspec.c: avoid compiler warnings
32658         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32659         and "initialization discards qualifiers..." warnings.
32660         Put the first "uid" in its own scope, and make char* members "const".
32661
32662 2010-01-25  Bruno Haible  <bruno@clisp.org>
32663
32664         gnulib-tool: Make warning diagnostics consistent.
32665         * gnulib-tool (func_warning): New function.
32666         Use it everywhere where gnulib-tool produces output to stderr and it is
32667         not a fatal error.
32668
32669 2010-01-25  Bruno Haible  <bruno@clisp.org>
32670
32671         Fix test dependencies.
32672         * modules/xstrtol-tests (Depends-on): Add inttypes.
32673         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32674
32675 2010-01-25 Pádraig Brady <P@draigBrady.com>
32676
32677         syntax-check: detect incorrect boolean macro values in config.h
32678         * modules/maintainer-makefile (configure.ac): Parameterize the location
32679         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32680         The logic is from Eric Blake and the location indicated by Jim Meyering.
32681         Note the more natural CONFIG_HEADER name is prohibited by automake
32682         for backwards compatibility reasons.
32683         * top/maint.mk (sc_Wundef_boolean): New rule.
32684
32685 2010-01-25  Jim Meyering  <meyering@redhat.com>
32686
32687         bootstrap: detect MacOS 10.6's shasum, too
32688         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32689         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32690
32691 2010-01-23  Jim Meyering  <meyering@redhat.com>
32692
32693         xstrtoll: new module
32694         * modules/xstrtoll: New file.
32695         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32696         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32697         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32698         ./configure fails if you use this module and lack "long long".
32699         * modules/xstrtoll-tests: New module.
32700         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32701         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32702         new init.sh-based test framework.
32703
32704 2010-01-24  Bruno Haible  <bruno@clisp.org>
32705
32706         Tests for module 'yn'.
32707         * modules/yn-tests: New file.
32708         * tests/test-yn.c: New file.
32709
32710         Tests for module 'y1'.
32711         * modules/y1-tests: New file.
32712         * tests/test-y1.c: New file.
32713
32714         Tests for module 'y0'.
32715         * modules/y0-tests: New file.
32716         * tests/test-y0.c: New file.
32717
32718         Tests for module 'tanh'.
32719         * modules/tanh-tests: New file.
32720         * tests/test-tanh.c: New file.
32721
32722         Tests for module 'tan'.
32723         * modules/tan-tests: New file.
32724         * tests/test-tan.c: New file.
32725
32726         Tests for module 'sqrt'.
32727         * modules/sqrt-tests: New file.
32728         * tests/test-sqrt.c: New file.
32729
32730         Tests for module 'sinh'.
32731         * modules/sinh-tests: New file.
32732         * tests/test-sinh.c: New file.
32733
32734         Tests for module 'sin'.
32735         * modules/sin-tests: New file.
32736         * tests/test-sin.c: New file.
32737
32738         Tests for module 'rint'.
32739         * modules/rint-tests: New file.
32740         * tests/test-rint.c: New file.
32741
32742         Tests for module 'remainder'.
32743         * modules/remainder-tests: New file.
32744         * tests/test-remainder.c: New file.
32745
32746         Tests for module 'pow'.
32747         * modules/pow-tests: New file.
32748         * tests/test-pow.c: New file.
32749
32750         Tests for module 'nextafter'.
32751         * modules/nextafter-tests: New file.
32752         * tests/test-nextafter.c: New file.
32753
32754         Tests for module 'modf'.
32755         * modules/modf-tests: New file.
32756         * tests/test-modf.c: New file.
32757
32758         Tests for module 'logb'.
32759         * modules/logb-tests: New file.
32760         * tests/test-logb.c: New file.
32761
32762         Tests for module 'log1p'.
32763         * modules/log1p-tests: New file.
32764         * tests/test-log1p.c: New file.
32765
32766         Tests for module 'log10'.
32767         * modules/log10-tests: New file.
32768         * tests/test-log10.c: New file.
32769
32770         Tests for module 'log'.
32771         * modules/log-tests: New file.
32772         * tests/test-log.c: New file.
32773
32774         Tests for module 'lgamma'.
32775         * modules/lgamma-tests: New file.
32776         * tests/test-lgamma.c: New file.
32777
32778         Tests for module 'ldexp'.
32779         * modules/ldexp-tests: New file.
32780         * tests/test-ldexp.c: New file.
32781
32782         Tests for module 'jn'.
32783         * modules/jn-tests: New file.
32784         * tests/test-jn.c: New file.
32785
32786         Tests for module 'j1'.
32787         * modules/j1-tests: New file.
32788         * tests/test-j1.c: New file.
32789
32790         Tests for module 'j0'.
32791         * modules/j0-tests: New file.
32792         * tests/test-j0.c: New file.
32793
32794         Tests for module 'hypot'.
32795         * modules/hypot-tests: New file.
32796         * tests/test-hypot.c: New file.
32797
32798         Tests for module 'fmod'.
32799         * modules/fmod-tests: New file.
32800         * tests/test-fmod.c: New file.
32801
32802         Tests for module 'fabs'.
32803         * modules/fabs-tests: New file.
32804         * tests/test-fabs.c: New file.
32805
32806         Tests for module 'exp'.
32807         * modules/exp-tests: New file.
32808         * tests/test-exp.c: New file.
32809
32810         Tests for module 'erfc'.
32811         * modules/erfc-tests: New file.
32812         * tests/test-erfc.c: New file.
32813
32814         Tests for module 'erf'.
32815         * modules/erf-tests: New file.
32816         * tests/test-erf.c: New file.
32817
32818         Tests for module 'cosh'.
32819         * modules/cosh-tests: New file.
32820         * tests/test-cosh.c: New file.
32821
32822         Tests for module 'cos'.
32823         * modules/cos-tests: New file.
32824         * tests/test-cos.c: New file.
32825
32826         Tests for module 'copysign'.
32827         * modules/copysign-tests: New file.
32828         * tests/test-copysign.c: New file.
32829
32830         Tests for module 'cbrt'.
32831         * modules/cbrt-tests: New file.
32832         * tests/test-cbrt.c: New file.
32833
32834         Tests for module 'atan2'.
32835         * modules/atan2-tests: New file.
32836         * tests/test-atan2.c: New file.
32837
32838         Tests for module 'atan'.
32839         * modules/atan-tests: New file.
32840         * tests/test-atan.c: New file.
32841
32842         Tests for module 'asin'.
32843         * modules/asin-tests: New file.
32844         * tests/test-asin.c: New file.
32845
32846         Tests for module 'acos'.
32847         * modules/acos-tests: New file.
32848         * tests/test-acos.c: New file.
32849
32850 2010-01-24  Bruno Haible  <bruno@clisp.org>
32851
32852         Fix tests for common <math.h> functions.
32853         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32854         code snippet that references the function pointer, rather than merely
32855         calling the function. Substitute the FUNC_LIBM variable.
32856         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32857         * modules/acos (configure.ac): Likewise.
32858         * modules/asin (configure.ac): Likewise.
32859         * modules/atan (configure.ac): Likewise.
32860         * modules/atan2 (configure.ac): Likewise.
32861         * modules/cbrt (configure.ac): Likewise.
32862         * modules/copysign (configure.ac): Likewise.
32863         * modules/cos (configure.ac): Likewise.
32864         * modules/cosh (configure.ac): Likewise.
32865         * modules/erf (configure.ac): Likewise.
32866         * modules/erfc (configure.ac): Likewise.
32867         * modules/exp (configure.ac): Likewise.
32868         * modules/fabs (configure.ac): Likewise.
32869         * modules/fmod (configure.ac): Likewise.
32870         * modules/hypot (configure.ac): Likewise.
32871         * modules/j0 (configure.ac): Likewise.
32872         * modules/j1 (configure.ac): Likewise.
32873         * modules/jn (configure.ac): Likewise.
32874         * modules/ldexp (configure.ac): Likewise.
32875         * modules/lgamma (configure.ac): Likewise.
32876         * modules/log (configure.ac): Likewise.
32877         * modules/log10 (configure.ac): Likewise.
32878         * modules/log1p (configure.ac): Likewise.
32879         * modules/logb (configure.ac): Likewise.
32880         * modules/modf (configure.ac): Likewise.
32881         * modules/nextafter (configure.ac): Likewise.
32882         * modules/pow (configure.ac): Likewise.
32883         * modules/remainder (configure.ac): Likewise.
32884         * modules/rint (configure.ac): Likewise.
32885         * modules/sin (configure.ac): Likewise.
32886         * modules/sinh (configure.ac): Likewise.
32887         * modules/tan (configure.ac): Likewise.
32888         * modules/tanh (configure.ac): Likewise.
32889         * modules/y0 (configure.ac): Likewise.
32890         * modules/y1 (configure.ac): Likewise.
32891         * modules/yn (configure.ac): Likewise.
32892
32893 2010-01-24  Bruno Haible  <bruno@clisp.org>
32894
32895         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32896         * tests/test-acosl.c (x): New variable.
32897         (main): Store argument in x and fetch it from x.
32898         * tests/test-asinl.c (x): New variable.
32899         (main): Store argument in x and fetch it from x.
32900         * tests/test-atanl.c (x): New variable.
32901         (main): Store argument in x and fetch it from x.
32902         * tests/test-cosl.c (x): New variable.
32903         (main): Store argument in x and fetch it from x.
32904         * tests/test-expl.c (x): New variable.
32905         (main): Store argument in x and fetch it from x.
32906         * tests/test-logl.c (x): New variable.
32907         (main): Store argument in x and fetch it from x.
32908         * tests/test-sinl.c (x): New variable.
32909         (main): Store argument in x and fetch it from x.
32910         * tests/test-sqrtl.c (x): New variable.
32911         (main): Store argument in x and fetch it from x.
32912         * tests/test-tanl.c (x): New variable.
32913         (main): Store argument in x and fetch it from x.
32914
32915 2010-01-24  Bruno Haible  <bruno@clisp.org>
32916
32917         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32918         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32919         assignments to the initial TESTS_ENVIRONMENT.
32920         * doc/gnulib.texi (Unit test modules): Document it.
32921         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32922         TESTS_ENVIRONMENT.
32923         * modules/btowc-tests (Makefile.am): Likewise.
32924         * modules/c-stack-tests (Makefile.am): Likewise.
32925         * modules/c-strcase-tests (Makefile.am): Likewise.
32926         * modules/copy-file-tests (Makefile.am): Likewise.
32927         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32928         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32929         * modules/mbrtowc-tests (Makefile.am): Likewise.
32930         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32931         * modules/mbscasestr-tests (Makefile.am): Likewise.
32932         * modules/mbschr-tests (Makefile.am): Likewise.
32933         * modules/mbscspn-tests (Makefile.am): Likewise.
32934         * modules/mbsinit-tests (Makefile.am): Likewise.
32935         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32936         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32937         * modules/mbspbrk-tests (Makefile.am): Likewise.
32938         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32939         * modules/mbsrchr-tests (Makefile.am): Likewise.
32940         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32941         * modules/mbsspn-tests (Makefile.am): Likewise.
32942         * modules/mbsstr-tests (Makefile.am): Likewise.
32943         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32944         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32945         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32946         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32947         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32948         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32949         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32950         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32951         * modules/wcrtomb-tests (Makefile.am): Likewise.
32952         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32953         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32954         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32955         assignments from TESTS_ENVIRONMENT.
32956         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32957         augmentation.
32958         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32959         * modules/atexit-tests (Makefile.am): Likewise.
32960         * modules/binary-io-tests (Makefile.am): Likewise.
32961         * modules/closein-tests (Makefile.am): Likewise.
32962         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32963         * modules/exclude-tests (Makefile.am): Likewise.
32964         * modules/fflush-tests (Makefile.am): Likewise.
32965         * modules/fpending-tests (Makefile.am): Likewise.
32966         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32967         * modules/freadahead-tests (Makefile.am): Likewise.
32968         * modules/freadptr-tests (Makefile.am): Likewise.
32969         * modules/freadseek-tests (Makefile.am): Likewise.
32970         * modules/fseek-tests (Makefile.am): Likewise.
32971         * modules/fseeko-tests (Makefile.am): Likewise.
32972         * modules/ftell-tests (Makefile.am): Likewise.
32973         * modules/ftello-tests (Makefile.am): Likewise.
32974         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32975         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32976         * modules/lseek-tests (Makefile.am): Likewise.
32977         * modules/parse-duration-tests (Makefile.am): Likewise.
32978         * modules/perror-tests (Makefile.am): Likewise.
32979         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32980         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32981         * modules/pipe-tests (Makefile.am): Likewise.
32982         * modules/pread-tests (Makefile.am): Likewise.
32983         * modules/printf-posix-tests (Makefile.am): Likewise.
32984         * modules/select-tests (Makefile.am): Likewise.
32985         * modules/sigpipe-tests (Makefile.am): Likewise.
32986         * modules/tsearch-tests (Makefile.am): Likewise.
32987         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32988         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32989         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32990         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32991         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32992         * modules/version-etc-tests (Makefile.am): Likewise.
32993         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32994         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32995         * modules/xalloc-die-tests (Makefile.am): Likewise.
32996         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32997         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32998         * modules/xstrtol-tests (Makefile.am): Likewise.
32999         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33000         * modules/yesno-tests (Makefile.am): Likewise.
33001         Suggested by Jim Meyering.
33002
33003 2010-01-24  Bruno Haible  <bruno@clisp.org>
33004
33005         More documentation.
33006         * doc/gnulib.texi (Writing modules): New chapter.
33007         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33008         the new chapter.
33009
33010 2010-01-24  Jim Meyering  <meyering@redhat.com>
33011
33012         maint.mk: do not prepend "./" after filtering
33013         * top/maint.mk (_prepend_srcdir_prefix): New variable
33014         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33015         "./" when $(srcdir) is ".".
33016
33017         define STREQ(a,b) consistently, removing useless parentheses
33018         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33019         since the only risk is that "a" or "b" contains an unparenthesized
33020         comma, but if either did that, STREQ would have 3 or more arguments.
33021         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33022         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33023         * lib/hash-triple.c (STREQ): Likewise.
33024         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33025         * lib/getugroups.c (STREQ): Likewise.
33026
33027 2010-01-23  Jim Meyering  <meyering@redhat.com>
33028
33029         maint.mk: fix syntax-check in a non-srcdir build directory
33030         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33031         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33032
33033 2010-01-22  Jim Meyering  <meyering@redhat.com>
33034
33035         userspec: add unit tests
33036         * tests/test-userspec.c: New file.
33037         * modules/userspec-tests: Likewise.
33038
33039 2010-01-21  Jim Meyering  <meyering@redhat.com>
33040
33041         maint.mk: handle source file names containing "." robustly
33042         * top/maint.mk (_dot_escaped_srcdir): Define.
33043         (VC_LIST): Use it in LHS of sed substitution.
33044
33045 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33046
33047         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33048         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33049         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33050         from a non-srcdir build.
33051
33052 2010-01-20  Eric Blake  <ebb9@byu.net>
33053
33054         warn-on-use: use instead of link-warning
33055         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33056         * modules/unistd (Depends-on, Makefile.am): Likewise.
33057         * modules/arpa_inet (Depends-on): Replace link-warning with
33058         warn-on-use.
33059         (Makefile.am): Update rules accordingly.
33060         * modules/ctype (Depends-on, Makefile.am): Likewise.
33061         * modules/dirent (Depends-on, Makefile.am): Likewise.
33062         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33063         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33064         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33065         * modules/locale (Depends-on, Makefile.am): Likewise.
33066         * modules/math (Depends-on, Makefile.am): Likewise.
33067         * modules/search (Depends-on, Makefile.am): Likewise.
33068         * modules/signal (Depends-on, Makefile.am): Likewise.
33069         * modules/spawn (Depends-on, Makefile.am): Likewise.
33070         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33071         * modules/string (Depends-on, Makefile.am): Likewise.
33072         * modules/strings (Depends-on, Makefile.am): Likewise.
33073         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33074         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33075         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33076         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33077         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33078         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33079         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33080         * modules/wchar (Depends-on, Makefile.am): Likewise.
33081         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33082         should be poisoned.
33083         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33084         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33085         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33086         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33087         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33088         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33089         * m4/math_h.m4 (gl_MATH_H): Likewise.
33090         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33091         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33092         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33093         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33094         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33095         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33096         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33097         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33098         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33101         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33102         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33103         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33104         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33105         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33106         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33107         GL_LINK_WARNING.
33108         * lib/ctype.in.h: Likewise.
33109         * lib/dirent.in.h: Likewise.
33110         * lib/fcntl.in.h: Likewise.
33111         * lib/inttypes.in.h: Likewise.
33112         * lib/langinfo.in.h: Likewise.
33113         * lib/locale.in.h: Likewise.
33114         * lib/math.in.h: Likewise.
33115         * lib/search.in.h: Likewise.
33116         * lib/signal.in.h: Likewise.
33117         * lib/spawn.in.h: Likewise.
33118         * lib/stdio.in.h: Likewise.
33119         * lib/stdlib.in.h: Likewise.
33120         * lib/string.in.h: Likewise.
33121         * lib/strings.in.h: Likewise.
33122         * lib/sys_file.in.h: Likewise.
33123         * lib/sys_ioctl.in.h: Likewise.
33124         * lib/sys_select.in.h: Likewise.
33125         * lib/sys_socket.in.h: Likewise.
33126         * lib/sys_stat.in.h: Likewise.
33127         * lib/sys_times.in.h: Likewise.
33128         * lib/sys_utsname.in.h: Likewise.
33129         * lib/unistd.in.h: Likewise.
33130         * lib/wchar.in.h: Likewise.
33131
33132 2010-01-20  Bruno Haible  <bruno@clisp.org>
33133
33134         Avoid duplicate -lm.
33135         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33136         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33139         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33140         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33141         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33142         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33143         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33144         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33145         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33146         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33147         Reported by Paolo Bonzini.
33148
33149 2010-01-19  Bruno Haible  <bruno@clisp.org>
33150
33151         langinfo, nl_langinfo: Relicense under LGPLv2+.
33152         * modules/langinfo (License): Change to LGPLv2+.
33153         * modules/nl_langinfo (License): Likewise.
33154         Patch by David Lutterkort <lutter@redhat.com>.
33155
33156 2010-01-19  Bruno Haible  <bruno@clisp.org>
33157
33158         Avoid compilation error with cc on OSF/1 5.1.
33159         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33160         statement, not before.
33161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33162
33163 2010-01-18  Bruno Haible  <bruno@clisp.org>
33164
33165         Avoid a link error due to the __printf__ symbol.
33166         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33167         and 2.6.x.
33168         (__format__, __printf__): Remove definitions.
33169         * lib/argp-fmtstream.h: Likewise.
33170         * lib/argp.h: Likewise.
33171         * lib/error.h: Likewise.
33172         * lib/vasnprintf.h: Likewise.
33173         * lib/xprintf.h: Likewise.
33174         * lib/xvasprintf.h: Likewise.
33175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33176
33177 2010-01-18  Bruno Haible  <bruno@clisp.org>
33178
33179         Tests for module 'tanl'.
33180         * modules/tanl-tests: New file.
33181         * tests/test-tanl.c: New file.
33182
33183         Tests for module 'sqrtl'.
33184         * modules/sqrtl-tests: New file.
33185         * tests/test-sqrtl.c: New file.
33186
33187         Tests for module 'sinl'.
33188         * modules/sinl-tests: New file.
33189         * tests/test-sinl.c: New file.
33190
33191         Tests for module 'logl'.
33192         * modules/logl-tests: New file.
33193         * tests/test-logl.c: New file.
33194
33195         Tests for module 'expl'.
33196         * modules/expl-tests: New file.
33197         * tests/test-expl.c: New file.
33198
33199         Tests for module 'cosl'.
33200         * modules/cosl-tests: New file.
33201         * tests/test-cosl.c: New file.
33202
33203         Tests for module 'atanl'.
33204         * modules/atanl-tests: New file.
33205         * tests/test-atanl.c: New file.
33206
33207         Tests for module 'asinl'.
33208         * modules/asinl-tests: New file.
33209         * tests/test-asinl.c: New file.
33210
33211         Tests for module 'acosl'.
33212         * modules/acosl-tests: New file.
33213         * tests/test-acosl.c: New file.
33214
33215         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33216         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33217         tanl): Use the standard gnulib idiom.
33218         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33219         * lib/sinl.c: Likewise.
33220         * lib/tanl.c: Don't include trigl.c.
33221         (kernel_tanl): Make static.
33222         * lib/sincosl.c: Include trigl.h first.
33223         * lib/trigl.c: Likewise.
33224         * m4/acosl.m4: New file.
33225         * m4/asinl.m4: New file.
33226         * m4/atanl.m4: New file.
33227         * m4/cosl.m4: New file.
33228         * m4/expl.m4: New file.
33229         * m4/logl.m4: New file.
33230         * m4/sinl.m4: New file.
33231         * m4/sqrtl.m4: New file.
33232         * m4/tanl.m4: New file.
33233         * m4/mathl.m4: Remove file.
33234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33235         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33236         Don't initialize GNULIB_MATHL.
33237         * modules/acosl: New file.
33238         * modules/asinl: New file.
33239         * modules/atanl: New file.
33240         * modules/cosl: New file.
33241         * modules/expl: New file.
33242         * modules/logl: New file.
33243         * modules/sinl: New file.
33244         * modules/sqrtl: New file.
33245         * modules/tanl: New file.
33246         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33247         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33248         substitute GNULIB_MATHL.
33249         * modules/mathl: Rewritten.
33250         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33251         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33252         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33253         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33254         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33255         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33256         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33257         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33258         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33259
33260 2010-01-18  Bruno Haible  <bruno@clisp.org>
33261
33262         sqrt: Make gl_FUNC_SQRT requirable.
33263         * m4/sqrt.m4: New file.
33264         * modules/sqrt (Files): Add it.
33265         (configure.ac): Invoke gl_FUNC_SQRT.
33266
33267 2010-01-18  Bruno Haible  <bruno@clisp.org>
33268
33269         New modules for common <math.h> functions.
33270         * m4/mathfunc.m4: New file.
33271         * modules/acos: New file.
33272         * modules/asin: New file.
33273         * modules/atan: New file.
33274         * modules/atan2: New file.
33275         * modules/cbrt: New file.
33276         * modules/copysign: New file.
33277         * modules/cos: New file.
33278         * modules/cosh: New file.
33279         * modules/erf: New file.
33280         * modules/erfc: New file.
33281         * modules/exp: New file.
33282         * modules/fabs: New file.
33283         * modules/fmod: New file.
33284         * modules/hypot: New file.
33285         * modules/j0: New file.
33286         * modules/j1: New file.
33287         * modules/jn: New file.
33288         * modules/ldexp: New file.
33289         * modules/lgamma: New file.
33290         * modules/log: New file.
33291         * modules/log10: New file.
33292         * modules/log1p: New file.
33293         * modules/logb: New file.
33294         * modules/modf: New file.
33295         * modules/nextafter: New file.
33296         * modules/pow: New file.
33297         * modules/remainder: New file.
33298         * modules/rint: New file.
33299         * modules/sin: New file.
33300         * modules/sinh: New file.
33301         * modules/sqrt: New file.
33302         * modules/tan: New file.
33303         * modules/tanh: New file.
33304         * modules/y0: New file.
33305         * modules/y1: New file.
33306         * modules/yn: New file.
33307         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33308         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33309         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33310         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33311         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33312         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33313         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33314         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33315         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33316         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33317         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33318         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33319         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33320         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33321         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33322         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33323         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33324         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33325         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33326         * doc/posix-functions/log.texi: Mention the 'log' module.
33327         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33328         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33329         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33330         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33331         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33332         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33333         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33334         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33335         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33336         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33337         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33338         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33339         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33340         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33341         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33342         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33343
33344 2010-01-18  Jim Meyering  <meyering@redhat.com>
33345
33346         ignore-value: relax license to LGPLv2+
33347         * modules/ignore-value (License): Relax to LGPLv2+.
33348
33349         getdate: don't leak when TZ contains two or more '"'s
33350         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33351         double quote in TZ after the first one.
33352
33353         readtokens: do not leak internal token_lengths buffer
33354         * lib/readtokens.c (readtokens): Free the local, lengths,
33355         when the supplied "token_lengths" parameter is NULL.
33356
33357 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33358
33359         Fix a couple of missing LIBTHREAD link failures on AIX.
33360         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33361         $(LIBTHREAD).
33362         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33363
33364         Link test-poll against INET_PTON_LIB.
33365         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33366         for inet_pton on Solaris 10.
33367
33368 2010-01-17  Bruno Haible  <bruno@clisp.org>
33369
33370         unistdio/*-sprintf: Fix typo in module description.
33371         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33372         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33373         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33374         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33375         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33376         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33377         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33379
33380 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33381
33382         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33383         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33384         variables in shell case patterns, for AIX and HP-UX ksh.
33385
33386         Split large sed scripts, for HP-UX sed.
33387         * modules/stdio: Split sed scripts around 50 sed commands,
33388         to avoid HP-UX limit of 99 commands, in the near future.
33389         * modules/string: Likewise.
33390         * modules/unistd: Likewise.
33391
33392         gnulib-tool: avoid writing in the current directory.
33393         * gnulib-tool (func_emit_lib_Makefile_am)
33394         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33395         not in the current directory, so concurrent gnulib-tool
33396         instances do not interfere.
33397
33398 2010-01-16  Jim Meyering  <meyering@redhat.com>
33399
33400         doc: update users.txt
33401         * users.txt: Add grep.
33402         (diffutils, gzip): Update URLs.
33403
33404 2010-01-12  Bruno Haible  <bruno@clisp.org>
33405
33406         posix_spawn: Avoid test failure on Cygwin.
33407         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33408         characters.
33409         Reported by Simon Josefsson.
33410
33411 2010-01-12  Bruno Haible  <bruno@clisp.org>
33412
33413         * tests/test-cond.c (main): When skipping the test, show the reason.
33414
33415 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33416
33417         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33418
33419 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33420
33421         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33422         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33423
33424 2010-01-12  Eric Blake  <ebb9@byu.net>
33425
33426         build: guarantee AS_VAR_IF
33427         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33428         (gl_AS_VAR_IF): Move...
33429         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33430         Reported by Simon Josefsson.
33431
33432 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33433
33434         * lib/stdio.in.h: Fix typo.
33435
33436 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33437
33438         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33439         libgpg-error.
33440
33441 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33442
33443         * tests/test-xalloc-die.sh: Use $EXEEXT.
33444
33445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33446             Bruno Haible  <bruno@clisp.org>
33447
33448         getlogin, getlogin_r: Avoid test failure.
33449         * tests/test-getlogin.c: Include <stdio.h>.
33450         (main): Skip the test when the function fails because stdin is not a
33451         tty.
33452         * tests/test-getlogin_r.c: Include <stdio.h>.
33453         (main): Skip the test when the function fails because stdin is not a
33454         tty.
33455
33456 2010-01-11  Eric Blake  <ebb9@byu.net>
33457
33458         tests: avoid more large file warnings
33459         * tests/test-fflush.c: Avoid warning about ftell use.
33460         * tests/test-fseek.c: Avoid warning about fseek use.
33461
33462 2010-01-10  Bruno Haible  <bruno@clisp.org>
33463
33464         nproc: Work better on Linux when /proc and /sys are not mounted.
33465         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33466         as lower bound when, on glibc/Linux systems,
33467         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33468         Suggested by Pádraig Brady <P@draigbrady.com>.
33469         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33470
33471         nproc: Refactor.
33472         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33473         extracted from num_processors.
33474         (num_processors): Call it.
33475
33476 2010-01-11  Jim Meyering  <meyering@redhat.com>
33477
33478         utimecmp: avoid new warning from upcoming gcc-4.5.0
33479         * lib/utimecmp.c (BILLION): Define using #define rather than an
33480         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33481
33482 2010-01-11  Eric Blake  <ebb9@byu.net>
33483
33484         math: add portability warnings for classification macros
33485         * modules/math (Depends-on): Add warn-on-use.
33486         (Makefile.am): Provide new substitutions.
33487         * m4/math_h.m4 (gl_MATH_H): Require inline.
33488         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33489         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33490         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33491         implement warnings.
33492
33493         unistd: warn on use of environ without module
33494         * modules/unistd (Depends-on): Add warn-on-use.
33495         (Makefile.am): Provide new substitutions.
33496         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33497         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33498
33499         stdio: warn on suspicious uses
33500         * modules/stdio (Depends-on): Add warn-on-use.
33501         (Makefile.am): Provide new substitutions.
33502         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33503         fseeko.
33504         * lib/stdio.in.h (gets): Always warn on use.
33505         (fseek, ftell): Adjust when warnings are issued, and honor
33506         _GL_NO_LARGE_FILES as a way to silence the warning.
33507         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33508         any warning about large file offsets.
33509         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33510         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33511         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33512         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33513         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33514         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33515         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33516         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33517
33518         warn-on-use: new module
33519         * modules/warn-on-use: New file.
33520         * build-aux/warn-on-use.h: Likewise.
33521         * m4/warn-on-use.m4: Likewise.
33522         * MODULES.html.sh (Support for building): Mention it.
33523
33524 2010-01-10  Bruno Haible  <bruno@clisp.org>
33525
33526         Tests for module 'unistr/u32-strdup'.
33527         * modules/unistr/u32-strdup-tests: New file.
33528         * tests/unistr/test-u32-strdup.c: New file.
33529
33530         Tests for module 'unistr/u16-strdup'.
33531         * modules/unistr/u16-strdup-tests: New file.
33532         * tests/unistr/test-u16-strdup.c: New file.
33533
33534         Tests for module 'unistr/u8-strdup'.
33535         * modules/unistr/u8-strdup-tests: New file.
33536         * tests/unistr/test-u8-strdup.c: New file.
33537         * tests/unistr/test-strdup.h: New file.
33538
33539         Tests for module 'unistr/u32-strncmp'.
33540         * modules/unistr/u32-strncmp-tests: New file.
33541         * tests/unistr/test-u32-strncmp.c: New file.
33542
33543         Tests for module 'unistr/u16-strncmp'.
33544         * modules/unistr/u16-strncmp-tests: New file.
33545         * tests/unistr/test-u16-strncmp.c: New file.
33546
33547         Tests for module 'unistr/u8-strncmp'.
33548         * modules/unistr/u8-strncmp-tests: New file.
33549         * tests/unistr/test-u8-strncmp.c: New file.
33550         * tests/unistr/test-strncmp.h: New file.
33551
33552         Tests for module 'unistr/u32-strcoll'.
33553         * modules/unistr/u32-strcoll-tests: New file.
33554         * tests/unistr/test-u32-strcoll.c: New file.
33555
33556         Tests for module 'unistr/u16-strcoll'.
33557         * modules/unistr/u16-strcoll-tests: New file.
33558         * tests/unistr/test-u16-strcoll.c: New file.
33559
33560         Tests for module 'unistr/u8-strcoll'.
33561         * modules/unistr/u8-strcoll-tests: New file.
33562         * tests/unistr/test-u8-strcoll.c: New file.
33563
33564         Tests for module 'unistr/u32-strcmp'.
33565         * modules/unistr/u32-strcmp-tests: New file.
33566         * tests/unistr/test-u32-strcmp.c: New file.
33567         * tests/unistr/test-u32-strcmp.h: New file.
33568
33569         Tests for module 'unistr/u16-strcmp'.
33570         * modules/unistr/u16-strcmp-tests: New file.
33571         * tests/unistr/test-u16-strcmp.c: New file.
33572         * tests/unistr/test-u16-strcmp.h: New file.
33573
33574         Tests for module 'unistr/u8-strcmp'.
33575         * modules/unistr/u8-strcmp-tests: New file.
33576         * tests/unistr/test-u8-strcmp.c: New file.
33577         * tests/unistr/test-u8-strcmp.h: New file.
33578         * tests/unistr/test-strcmp.h: New file.
33579
33580         Tests for module 'unistr/u32-strncat'.
33581         * modules/unistr/u32-strncat-tests: New file.
33582         * tests/unistr/test-u32-strncat.c: New file.
33583
33584         Tests for module 'unistr/u16-strncat'.
33585         * modules/unistr/u16-strncat-tests: New file.
33586         * tests/unistr/test-u16-strncat.c: New file.
33587
33588         Tests for module 'unistr/u8-strncat'.
33589         * modules/unistr/u8-strncat-tests: New file.
33590         * tests/unistr/test-u8-strncat.c: New file.
33591         * tests/unistr/test-strncat.h: New file.
33592
33593         Tests for module 'unistr/u32-strcat'.
33594         * modules/unistr/u32-strcat-tests: New file.
33595         * tests/unistr/test-u32-strcat.c: New file.
33596
33597         Tests for module 'unistr/u16-strcat'.
33598         * modules/unistr/u16-strcat-tests: New file.
33599         * tests/unistr/test-u16-strcat.c: New file.
33600
33601         Tests for module 'unistr/u8-strcat'.
33602         * modules/unistr/u8-strcat-tests: New file.
33603         * tests/unistr/test-u8-strcat.c: New file.
33604         * tests/unistr/test-strcat.h: New file.
33605
33606         Tests for module 'unistr/u32-stpncpy'.
33607         * modules/unistr/u32-stpncpy-tests: New file.
33608         * tests/unistr/test-u32-stpncpy.c: New file.
33609
33610         Tests for module 'unistr/u16-stpncpy'.
33611         * modules/unistr/u16-stpncpy-tests: New file.
33612         * tests/unistr/test-u16-stpncpy.c: New file.
33613
33614         Tests for module 'unistr/u8-stpncpy'.
33615         * modules/unistr/u8-stpncpy-tests: New file.
33616         * tests/unistr/test-u8-stpncpy.c: New file.
33617         * tests/unistr/test-stpncpy.h: New file.
33618
33619         Tests for module 'unistr/u32-strncpy'.
33620         * modules/unistr/u32-strncpy-tests: New file.
33621         * tests/unistr/test-u32-strncpy.c: New file.
33622
33623         Tests for module 'unistr/u16-strncpy'.
33624         * modules/unistr/u16-strncpy-tests: New file.
33625         * tests/unistr/test-u16-strncpy.c: New file.
33626
33627         Tests for module 'unistr/u8-strncpy'.
33628         * modules/unistr/u8-strncpy-tests: New file.
33629         * tests/unistr/test-u8-strncpy.c: New file.
33630         * tests/unistr/test-strncpy.h: New file.
33631
33632         Tests for module 'unistr/u32-stpcpy'.
33633         * modules/unistr/u32-stpcpy-tests: New file.
33634         * tests/unistr/test-u32-stpcpy.c: New file.
33635
33636         Tests for module 'unistr/u16-stpcpy'.
33637         * modules/unistr/u16-stpcpy-tests: New file.
33638         * tests/unistr/test-u16-stpcpy.c: New file.
33639
33640         Tests for module 'unistr/u8-stpcpy'.
33641         * modules/unistr/u8-stpcpy-tests: New file.
33642         * tests/unistr/test-u8-stpcpy.c: New file.
33643         * tests/unistr/test-stpcpy.h: New file.
33644
33645         Tests for module 'unistr/u32-strcpy'.
33646         * modules/unistr/u32-strcpy-tests: New file.
33647         * tests/unistr/test-u32-strcpy.c: New file.
33648
33649         Tests for module 'unistr/u16-strcpy'.
33650         * modules/unistr/u16-strcpy-tests: New file.
33651         * tests/unistr/test-u16-strcpy.c: New file.
33652
33653         Tests for module 'unistr/u8-strcpy'.
33654         * modules/unistr/u8-strcpy-tests: New file.
33655         * tests/unistr/test-u8-strcpy.c: New file.
33656         * tests/unistr/test-strcpy.h: New file.
33657
33658         Tests for module 'unistr/u32-strnlen'.
33659         * modules/unistr/u32-strnlen-tests: New file.
33660         * tests/unistr/test-u32-strnlen.c: New file.
33661
33662         Tests for module 'unistr/u16-strnlen'.
33663         * modules/unistr/u16-strnlen-tests: New file.
33664         * tests/unistr/test-u16-strnlen.c: New file.
33665
33666         Tests for module 'unistr/u8-strnlen'.
33667         * modules/unistr/u8-strnlen-tests: New file.
33668         * tests/unistr/test-u8-strnlen.c: New file.
33669         * tests/unistr/test-strnlen.h: New file.
33670
33671         Tests for module 'unistr/u32-strlen'.
33672         * modules/unistr/u32-strlen-tests: New file.
33673         * tests/unistr/test-u32-strlen.c: New file.
33674
33675         Tests for module 'unistr/u16-strlen'.
33676         * modules/unistr/u16-strlen-tests: New file.
33677         * tests/unistr/test-u16-strlen.c: New file.
33678
33679         Tests for module 'unistr/u8-strlen'.
33680         * modules/unistr/u8-strlen-tests: New file.
33681         * tests/unistr/test-u8-strlen.c: New file.
33682
33683         Tests for module 'unistr/u32-prev'.
33684         * modules/unistr/u32-prev-tests: New file.
33685         * tests/unistr/test-u32-prev.c: New file.
33686
33687         Tests for module 'unistr/u16-prev'.
33688         * modules/unistr/u16-prev-tests: New file.
33689         * tests/unistr/test-u16-prev.c: New file.
33690
33691         Tests for module 'unistr/u8-prev'.
33692         * modules/unistr/u8-prev-tests: New file.
33693         * tests/unistr/test-u8-prev.c: New file.
33694
33695         Tests for module 'unistr/u32-next'.
33696         * modules/unistr/u32-next-tests: New file.
33697         * tests/unistr/test-u32-next.c: New file.
33698
33699         Tests for module 'unistr/u16-next'.
33700         * modules/unistr/u16-next-tests: New file.
33701         * tests/unistr/test-u16-next.c: New file.
33702
33703         Tests for module 'unistr/u8-next'.
33704         * modules/unistr/u8-next-tests: New file.
33705         * tests/unistr/test-u8-next.c: New file.
33706
33707         Tests for module 'unistr/u32-strmbtouc'.
33708         * modules/unistr/u32-strmbtouc-tests: New file.
33709         * tests/unistr/test-u32-strmbtouc.c: New file.
33710
33711         Tests for module 'unistr/u16-strmbtouc'.
33712         * modules/unistr/u16-strmbtouc-tests: New file.
33713         * tests/unistr/test-u16-strmbtouc.c: New file.
33714
33715         Tests for module 'unistr/u8-strmbtouc'.
33716         * modules/unistr/u8-strmbtouc-tests: New file.
33717         * tests/unistr/test-u8-strmbtouc.c: New file.
33718
33719         Tests for module 'unistr/u32-strmblen'.
33720         * modules/unistr/u32-strmblen-tests: New file.
33721         * tests/unistr/test-u32-strmblen.c: New file.
33722
33723         Tests for module 'unistr/u16-strmblen'.
33724         * modules/unistr/u16-strmblen-tests: New file.
33725         * tests/unistr/test-u16-strmblen.c: New file.
33726
33727         Tests for module 'unistr/u8-strmblen'.
33728         * modules/unistr/u8-strmblen-tests: New file.
33729         * tests/unistr/test-u8-strmblen.c: New file.
33730
33731         Tests for module 'unistr/u32-cpy-alloc'.
33732         * modules/unistr/u32-cpy-alloc-tests: New file.
33733         * tests/unistr/test-u32-cpy-alloc.c: New file.
33734
33735         Tests for module 'unistr/u16-cpy-alloc'.
33736         * modules/unistr/u16-cpy-alloc-tests: New file.
33737         * tests/unistr/test-u16-cpy-alloc.c: New file.
33738
33739         Tests for module 'unistr/u8-cpy-alloc'.
33740         * modules/unistr/u8-cpy-alloc-tests: New file.
33741         * tests/unistr/test-u8-cpy-alloc.c: New file.
33742         * tests/unistr/test-cpy-alloc.h: New file.
33743
33744         Tests for module 'unistr/u32-mbsnlen'.
33745         * modules/unistr/u32-mbsnlen-tests: New file.
33746         * tests/unistr/test-u32-mbsnlen.c: New file.
33747
33748         Tests for module 'unistr/u16-mbsnlen'.
33749         * modules/unistr/u16-mbsnlen-tests: New file.
33750         * tests/unistr/test-u16-mbsnlen.c: New file.
33751
33752         Tests for module 'unistr/u8-mbsnlen'.
33753         * modules/unistr/u8-mbsnlen-tests: New file.
33754         * tests/unistr/test-u8-mbsnlen.c: New file.
33755
33756         Tests for module 'unistr/u32-chr'.
33757         * modules/unistr/u32-chr-tests: New file.
33758         * tests/unistr/test-u32-chr.c: New file.
33759
33760         Tests for module 'unistr/u16-chr'.
33761         * modules/unistr/u16-chr-tests: New file.
33762         * tests/unistr/test-u16-chr.c: New file.
33763
33764         Tests for module 'unistr/u8-chr'.
33765         * modules/unistr/u8-chr-tests: New file.
33766         * tests/unistr/test-u8-chr.c: New file.
33767         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33768
33769         Tests for module 'unistr/u32-cmp2'.
33770         * modules/unistr/u32-cmp2-tests: New file.
33771         * tests/unistr/test-u32-cmp2.c: New file.
33772
33773         Tests for module 'unistr/u16-cmp2'.
33774         * modules/unistr/u16-cmp2-tests: New file.
33775         * tests/unistr/test-u16-cmp2.c: New file.
33776
33777         Tests for module 'unistr/u8-cmp2'.
33778         * modules/unistr/u8-cmp2-tests: New file.
33779         * tests/unistr/test-u8-cmp2.c: New file.
33780         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33781
33782         Tests for module 'unistr/u32-cmp'.
33783         * modules/unistr/u32-cmp-tests: New file.
33784         * tests/unistr/test-u32-cmp.c: New file.
33785
33786         Tests for module 'unistr/u16-cmp'.
33787         * modules/unistr/u16-cmp-tests: New file.
33788         * tests/unistr/test-u16-cmp.c: New file.
33789
33790         Tests for module 'unistr/u8-cmp'.
33791         * modules/unistr/u8-cmp-tests: New file.
33792         * tests/unistr/test-u8-cmp.c: New file.
33793         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33794
33795         Tests for module 'unistr/u32-set'.
33796         * modules/unistr/u32-set-tests: New file.
33797         * tests/unistr/test-u32-set.c: New file.
33798
33799         Tests for module 'unistr/u16-set'.
33800         * modules/unistr/u16-set-tests: New file.
33801         * tests/unistr/test-u16-set.c: New file.
33802
33803         Tests for module 'unistr/u8-set'.
33804         * modules/unistr/u8-set-tests: New file.
33805         * tests/unistr/test-u8-set.c: New file.
33806         * tests/unistr/test-set.h: New file.
33807
33808         Tests for module 'unistr/u32-move'.
33809         * modules/unistr/u32-move-tests: New file.
33810         * tests/unistr/test-u32-move.c: New file.
33811
33812         Tests for module 'unistr/u16-move'.
33813         * modules/unistr/u16-move-tests: New file.
33814         * tests/unistr/test-u16-move.c: New file.
33815
33816         Tests for module 'unistr/u8-move'.
33817         * modules/unistr/u8-move-tests: New file.
33818         * tests/unistr/test-u8-move.c: New file.
33819         * tests/unistr/test-move.h: New file.
33820
33821         Tests for module 'unistr/u32-cpy'.
33822         * modules/unistr/u32-cpy-tests: New file.
33823         * tests/unistr/test-u32-cpy.c: New file.
33824
33825         Tests for module 'unistr/u16-cpy'.
33826         * modules/unistr/u16-cpy-tests: New file.
33827         * tests/unistr/test-u16-cpy.c: New file.
33828
33829         Tests for module 'unistr/u8-cpy'.
33830         * modules/unistr/u8-cpy-tests: New file.
33831         * tests/unistr/test-u8-cpy.c: New file.
33832         * tests/unistr/test-cpy.h: New file.
33833
33834 2010-01-09  Bruno Haible  <bruno@clisp.org>
33835
33836         Tests for module 'unistr/u32-uctomb'.
33837         * modules/unistr/u32-uctomb-tests: New file.
33838         * tests/unistr/test-u32-uctomb.c: New file.
33839
33840         Tests for module 'unistr/u16-uctomb'.
33841         * modules/unistr/u16-uctomb-tests: New file.
33842         * tests/unistr/test-u16-uctomb.c: New file.
33843
33844         Tests for module 'unistr/u8-uctomb'.
33845         * modules/unistr/u8-uctomb-tests: New file.
33846         * tests/unistr/test-u8-uctomb.c: New file.
33847
33848         Tests for module 'unistr/u32-mbtoucr'.
33849         * modules/unistr/u32-mbtoucr-tests: New file.
33850         * tests/unistr/test-u32-mbtoucr.c: New file.
33851
33852         Tests for module 'unistr/u16-mbtoucr'.
33853         * modules/unistr/u16-mbtoucr-tests: New file.
33854         * tests/unistr/test-u16-mbtoucr.c: New file.
33855
33856         Tests for module 'unistr/u8-mbtoucr'.
33857         * modules/unistr/u8-mbtoucr-tests: New file.
33858         * tests/unistr/test-u8-mbtoucr.c: New file.
33859
33860         Tests for module 'unistr/u32-mbtouc'.
33861         * modules/unistr/u32-mbtouc-tests: New file.
33862         * tests/unistr/test-u32-mbtouc.c: New file.
33863
33864         Tests for module 'unistr/u16-mbtouc'.
33865         * modules/unistr/u16-mbtouc-tests: New file.
33866         * tests/unistr/test-u16-mbtouc.c: New file.
33867
33868         Tests for module 'unistr/u8-mbtouc'.
33869         * modules/unistr/u8-mbtouc-tests: New file.
33870         * tests/unistr/test-u8-mbtouc.c: New file.
33871
33872         Tests for module 'unistr/u32-mbtouc-unsafe'.
33873         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33874         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33875         * tests/unistr/test-u32-mbtouc.h: New file.
33876
33877         Tests for module 'unistr/u16-mbtouc-unsafe'.
33878         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33879         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33880         * tests/unistr/test-u16-mbtouc.h: New file.
33881
33882         Tests for module 'unistr/u8-mbtouc-unsafe'.
33883         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33884         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33885         * tests/unistr/test-u8-mbtouc.h: New file.
33886
33887         Tests for module 'unistr/u32-mblen'.
33888         * modules/unistr/u32-mblen-tests: New file.
33889         * tests/unistr/test-u32-mblen.c: New file.
33890
33891         Tests for module 'unistr/u16-mblen'.
33892         * modules/unistr/u16-mblen-tests: New file.
33893         * tests/unistr/test-u16-mblen.c: New file.
33894
33895         Tests for module 'unistr/u8-mblen'.
33896         * modules/unistr/u8-mblen-tests: New file.
33897         * tests/unistr/test-u8-mblen.c: New file.
33898
33899         Tests for module 'unistr/u32-to-u16'.
33900         * modules/unistr/u32-to-u16-tests: New file.
33901         * tests/unistr/test-u32-to-u16.c: New file.
33902
33903         Tests for module 'unistr/u32-to-u8'.
33904         * modules/unistr/u32-to-u8-tests: New file.
33905         * tests/unistr/test-u32-to-u8.c: New file.
33906
33907         Tests for module 'unistr/u16-to-u32'.
33908         * modules/unistr/u16-to-u32-tests: New file.
33909         * tests/unistr/test-u16-to-u32.c: New file.
33910
33911         Tests for module 'unistr/u16-to-u8'.
33912         * modules/unistr/u16-to-u8-tests: New file.
33913         * tests/unistr/test-u16-to-u8.c: New file.
33914
33915         Tests for module 'unistr/u8-to-u32'.
33916         * modules/unistr/u8-to-u32-tests: New file.
33917         * tests/unistr/test-u8-to-u32.c: New file.
33918
33919         Tests for module 'unistr/u8-to-u16'.
33920         * modules/unistr/u8-to-u16-tests: New file.
33921         * tests/unistr/test-u8-to-u16.c: New file.
33922
33923         Tests for module 'unistr/u32-check'.
33924         * modules/unistr/u32-check-tests: New file.
33925         * tests/unistr/test-u32-check.c: New file.
33926
33927         Tests for module 'unistr/u16-check'.
33928         * modules/unistr/u16-check-tests: New file.
33929         * tests/unistr/test-u16-check.c: New file.
33930
33931         Tests for module 'unistr/u8-check'.
33932         * modules/unistr/u8-check-tests: New file.
33933         * tests/unistr/test-u8-check.c: New file.
33934
33935         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33936         (category_equals): New function.
33937         (main): Add more tests.
33938         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33939
33940         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33941
33942 2010-01-10  Bruno Haible  <bruno@clisp.org>
33943
33944         unistr/u*-strcoll: Try harder to distinguish different strings.
33945         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33946         compare s1 and s2 to see if they are different.
33947
33948 2010-01-10  Bruno Haible  <bruno@clisp.org>
33949
33950         unistr/u*-stpncpy: Fix the return value.
33951         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33952         description of the return value consistent with stpncpy in glibc.
33953         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33954         written non-NUL unit.
33955
33956 2010-01-10  Bruno Haible  <bruno@clisp.org>
33957
33958         unistr/u*-next: Add missing dependencies.
33959         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33960         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33961         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33962
33963 2010-01-10  Bruno Haible  <bruno@clisp.org>
33964
33965         unistr/u8-mbsnlen: Fix return value for incomplete character.
33966         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33967         u8_mblen.
33968         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33969         Remove unistr/u8-mblen.
33970         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33971         u16_mblen.
33972         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33973         Remove unistr/u16-mblen.
33974
33975 2010-01-10  Bruno Haible  <bruno@clisp.org>
33976
33977         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33978         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33979         Reported by Brian Gough <bjg@gnu.org> and
33980         Chris Clayton <chris2553@googlemail.com> via
33981         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33982
33983 2010-01-09  Bruno Haible  <bruno@clisp.org>
33984
33985         unistr/u16-to-u32: Reject invalid input.
33986         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33987         u16_mbtouc.
33988         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33989         Remove unistr/u16-mbtouc.
33990
33991         unistr/u16-to-u8: Reject invalid input.
33992         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33993         u16_mbtouc.
33994         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33995         Remove unistr/u16-mbtouc.
33996
33997         unistr/u8-to-u32: Reject invalid input.
33998         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33999         u8_mbtouc.
34000         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34001         Remove unistr/u8-mbtouc.
34002
34003         unistr/u8-to-u16: Reject invalid input.
34004         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34005         u8_mbtouc.
34006         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34007         Remove unistr/u8-mbtouc.
34008
34009 2010-01-09  Bruno Haible  <bruno@clisp.org>
34010
34011         Tests for module 'getlogin'.
34012         * modules/getlogin-tests: New file.
34013         * tests/test-getlogin.c: New file.
34014
34015         New module 'getlogin'.
34016         * lib/unistd.in.h (getlogin): New declaration.
34017         * lib/getlogin.c: New file.
34018         * m4/getlogin.m4: New file.
34019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34020         HAVE_GETLOGIN.
34021         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34022         HAVE_GETLOGIN.
34023         * modules/getlogin: New file.
34024         * doc/posix-functions/getlogin.texi: Mention the new module.
34025         Reported by John W. Eaton <jwe@gnu.org>.
34026
34027 2010-01-09  Bruno Haible  <bruno@clisp.org>
34028
34029         getlogin_r: Support for native Windows.
34030         * lib/getlogin_r.c: Include <windows.h>
34031         (getlogin_r): Implement for native Windows.
34032         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34033         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34034         via John W. Eaton <jwe@gnu.org>.
34035
34036 2010-01-09  Bruno Haible  <bruno@clisp.org>
34037
34038         getlogin_r: Small fixes.
34039         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34040         succeeds.
34041         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34042         before testing whether getlogin_r is declared. No need to set
34043         HAVE_DECL_GETLOGIN_R to 1.
34044         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34045
34046 2010-01-09  Bruno Haible  <bruno@clisp.org>
34047
34048         * lib/unistd.in.h (getlogin_r): Add comment.
34049
34050 2010-01-09  Bruno Haible  <bruno@clisp.org>
34051
34052         Tests for module 'getlogin_r'.
34053         * modules/getlogin_r-tests: New file.
34054         * tests/test-getlogin_r.c: New file.
34055
34056 2010-01-09  Jim Meyering  <meyering@redhat.com>
34057
34058         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34059         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34060         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34061
34062 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34063
34064         * lib/dup2.c (rpl_dup2): Improve comment.
34065
34066 2010-01-08  Eric Blake  <ebb9@byu.net>
34067
34068         maint.mk: allow packages to add makefile @@ exceptions
34069         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34070         (sc_makefile_check): Rename...
34071         (sc_makefile_at_at_check): ...to this, and use hook.
34072
34073         dup2: work around mingw bug
34074         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34075         Reported by Simon Josefsson.
34076
34077 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34078
34079         glob: Fix C++ compilation.
34080         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34081         C++.
34082
34083 2010-01-07  Bruno Haible  <bruno@clisp.org>
34084
34085         Fix indentation of wctype.in.h, broken since 2007-01-06.
34086         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34087
34088 2010-01-07  Bruno Haible  <bruno@clisp.org>
34089
34090         mbslen: Avoid collision with system function.
34091         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34092         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34093         * m4/mbslen.m4: New file.
34094         * modules/mbslen (Files): Add it.
34095         (configure.ac): Invoke gl_MBSLEN.
34096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34097         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34099         via Ian Beckwith <ianb@erislabs.net>.
34100
34101 2010-01-07  Bruno Haible  <bruno@clisp.org>
34102
34103         dirent: Document the last fix.
34104         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34105
34106 2010-01-07  Bruno Haible  <bruno@clisp.org>
34107
34108         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34109         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34110         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34111         va_list are defined.
34112         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34113         Reported by Eric Blake.
34114
34115 2010-01-07  Bruno Haible  <bruno@clisp.org>
34116
34117         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34118         * modules/xlist (Depends-on): Add 'list',
34119         * modules/xoset (Depends-on): Add 'oset'.
34120         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34121
34122 2010-01-07  Bruno Haible  <bruno@clisp.org>
34123
34124         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34125         * doc/posix-functions/strncasecmp.texi: Likewise.
34126
34127 2010-01-07  Bruno Haible  <bruno@clisp.org>
34128
34129         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34130
34131 2010-01-07  John W. Eaton  <jwe@octave.org>
34132
34133         wctype: allow C++ use
34134         * lib/wctype.in.h: Add extern "C" block for C++.
34135
34136 2010-01-06  Eric Blake  <ebb9@byu.net>
34137
34138         maint.mk: detect incorrect GFDL usage
34139         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34140
34141 2010-01-06  Jim Meyering  <meyering@redhat.com>
34142         and Eric Blake  <ebb9@byu.net>
34143
34144         maint.mk: ignore multi-line copyright in NEWS
34145         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34146
34147 2010-01-06  Eric Blake  <ebb9@byu.net>
34148
34149         select: add missing dependency
34150         * modules/select-tests (Depends-on): Move sockets dependency...
34151         * modules/select (Depends-on): ...here.
34152         Reported by Ian Beckwith.
34153
34154         doc: regenerate INSTALL
34155         * doc/INSTALL: Reflect recent autoconf update.
34156         * doc/INSTALL.ISO: Likewise.
34157         * doc/INSTALL.UTF-8: Likewise.
34158
34159         pread: fix compilation on glibc
34160         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34161         Reported by Ralf Wildenhues.
34162
34163         dirent: fix test failure
34164         * lib/dirent.in.h (includes): Guarantee ino_t.
34165         Reported by Ralf Wildenhues.
34166
34167 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34168
34169         linkat, renameat: avoid bad free
34170         * lib/at-func2.c (at_func2): Fix typo.
34171         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34172
34173 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34174
34175         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34176         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34177         to avoid failure of symlink test later.
34178
34179 2010-01-06  Eric Blake  <ebb9@byu.net>
34180
34181         stdio, unistd: guarantee ssize_t
34182         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34183         2008 are exposed when needed.
34184         * lib/stdio.in.h (includes): Likewise.
34185         Reported by Ralf Wildenhues.
34186
34187 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34188
34189         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34190         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34191         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34192
34193 2010-01-06  Jim Meyering  <meyering@redhat.com>
34194
34195         readtokens: this module *does* require xalloc.h
34196         It uses only functions that were omitted by the old syntax-check rule.
34197         * lib/readtokens.c: Include "xalloc.h" once again.
34198         * modules/readtokens (Depends-on): Add xalloc.
34199         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34200
34201 2010-01-05  Eric Blake  <ebb9@byu.net>
34202
34203         maint: support 'make announcement' from a VPATH build
34204         * top/maint.mk (announcement): Look for correct NEWS file.
34205
34206 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34207
34208         utimens (fdutimens): ignore a negative FD, per contract
34209         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34210         when we have a valid file descriptor.  Otherwise, using a brand
34211         new glibc (with just-patched futimens that now fails with EBADF)
34212         would cause this function to fail with ENOSYS.
34213         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34214         See also http://bugzilla.redhat.com/552320.
34215
34216 2010-01-05  Eric Blake  <ebb9@byu.net>
34217
34218         strcase: document what it provides
34219         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34220         gnulib module.
34221         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34222         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34223
34224 2010-01-05  Jim Meyering  <meyering@redhat.com>
34225
34226         maint: remove useless inclusions of "xalloc.h"
34227         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34228         * lib/readtokens.c: Likewise.
34229         * lib/same.c: Likewise.
34230         * modules/getloadavg (Depends-on): Remove xalloc.
34231         * modules/readtokens: Likewise.
34232         * modules/same: Likewise.
34233
34234         maint.mk: include 4 more function names in alloca.h-checking regexp
34235         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34236         regexp.  Before, we would give a false-positive (saying alloca.h
34237         is included unnecessarily) when the only uses involved omitted symbols.
34238
34239         xalloc.h: use consistent formatting
34240         * lib/xalloc.h: Move declarations to start in the first column.
34241
34242 2010-01-05  Eric Blake  <ebb9@byu.net>
34243
34244         mkdir: avoid xalloc
34245         * lib/mkdir.c (includes): Drop unused header.
34246         Reported by John W. Eaton.
34247
34248 2010-01-04  Jim Meyering  <meyering@redhat.com>
34249
34250         nl_langinfo: avoid configure-time syntax error
34251         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34252         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34253         the empty string.  Don't let that provoke a shell syntax error.
34254
34255         regcomp, regexec, fnmatch: avoid array bounds read error
34256         * lib/regcomp.c (build_equiv_class): From glibc:
34257         Use only the low 24 bits of a findidx return value as an index
34258         into the weights array.  Patch by Ulrich Drepper:
34259         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34260         * lib/regexec.c (check_node_accept_bytes): Likewise.
34261         * lib/fnmatch_loop.c (FCT): Likewise.
34262
34263         regcomp: skip collseq lookup when there are no rules
34264         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34265         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34266
34267         regcomp: recognize ill-formed { } expressions
34268         * lib/regcomp.c (parse_dup_op): From glibc:
34269         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34270
34271         regcomp: fix typo in comment
34272         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34273         s/satisfy/satisfies/.
34274
34275         regcomp: sync from glibc: remove dead store
34276         * lib/regcomp.c (duplicate_node_closure): Remove useless
34277         search_duplicated_node call and dead store.
34278
34279         regcomp: sync from glibc; always use nl_langinfo
34280         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34281         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34282         * modules/regex (Depends-on): Add nl_langinfo.
34283
34284 2010-01-04  Eric Blake  <ebb9@byu.net>
34285
34286         fdopendir: fix configure test
34287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34288
34289 2010-01-01  Bruno Haible  <bruno@clisp.org>
34290
34291         wchar: Remove unused configure check.
34292         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34293
34294 2010-01-01  Eric Blake  <ebb9@byu.net>
34295
34296         headers: make check of system header explicit
34297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34298         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34299         ourselves.
34300         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34302         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34303         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34304         internals.
34305         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34306         missing.
34307         Suggested by Bruno Haible.
34308
34309 2010-01-01  Jim Meyering  <meyering@redhat.com>
34310
34311         ChangeLog: tweak to eliminate unnecessary copyright line
34312         * ChangeLog: Remove a copyright line that was mistakenly updated
34313         by today's update-copyright run.  Reported by Eric Blake.
34314
34315         test-update-copyright: don't let envvar setting cause test failure
34316         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34317
34318 2010-01-01  Bruno Haible  <bruno@clisp.org>
34319
34320         localename: Avoid gcc warning.
34321         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34322         function if it is not used.
34323
34324 2010-01-01  Jim Meyering  <meyering@redhat.com>
34325
34326         update nearly all FSF copyright year lists to include 2010
34327         Use the same procedure as for 2009, outlined in
34328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34329
34330         version-etc: set COPYRIGHT_YEAR to 2010
34331         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34332
34333 2009-12-31  Eric Blake  <ebb9@byu.net>
34334
34335         doc: correct availability of cygwin 1.5.x getopt
34336         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34337         variables.
34338         * doc/posix-functions/opterr.texi (opterr): Likewise.
34339         * doc/posix-functions/optind.texi (optind): Likewise.
34340         * doc/posix-functions/optopt.texi (optopt): Likewise.
34341         * doc/posix-functions/tzname.texi (tzname): Likewise.
34342
34343         openat: update maintainer
34344         * modules/openat (Maintainer): Add myself.
34345
34346         utimens: avoid shadowing warning
34347         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34348         buffers into one, to avoid shadowing, as well as avoiding a
34349         redundant stat.
34350         Reported by Jim Meyering.
34351
34352         test-dup2: avoid compiler warning
34353         * tests/test-dup2.c (is_inheritable): Only define if used.
34354
34355 2010-01-01  Bruno Haible  <bruno@clisp.org>
34356
34357         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34358         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34359         defined, use wctomb instead of wcrtomb.
34360
34361 2010-01-01  Bruno Haible  <bruno@clisp.org>
34362
34363         iconv: Reject native Solaris iconv.
34364         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34365         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34366
34367 2009-12-31  Bruno Haible  <bruno@clisp.org>
34368
34369         * tests/test-signal.c (main): Remove test of 'SIG'.
34370
34371 2009-12-31  Bruno Haible  <bruno@clisp.org>
34372
34373         spawn: Fix incomplete fix.
34374         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34375         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34376         warnings for GNULIB_POSIXCHECK again.
34377         Reported by Eric Blake.
34378
34379 2009-12-31  Bruno Haible  <bruno@clisp.org>
34380
34381         Avoid namespace pollution on glibc systems.
34382         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34383         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34384         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34385         glibc systems.
34386
34387 2009-12-31  Bruno Haible  <bruno@clisp.org>
34388
34389         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34390         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34391         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34392         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34393         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34394         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34395         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34396
34397 2009-12-31  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34400         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34401         afterwards.
34402
34403 2009-12-31  Bruno Haible  <bruno@clisp.org>
34404
34405         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34406         SYS_UTSNAME_H.
34407
34408 2009-12-31  Bruno Haible  <bruno@clisp.org>
34409
34410         spawn: Fix misapplied patch.
34411         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34412         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34413         warnings for GNULIB_POSIXCHECK.
34414
34415 2009-12-31  Bruno Haible  <bruno@clisp.org>
34416
34417         times: Update after sys_times changed.
34418         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34419         * modules/times (Files): Add it.
34420         (configure.ac): Invoke gl_FUNC_TIMES.
34421
34422 2009-12-31  Bruno Haible  <bruno@clisp.org>
34423
34424         Use AC_C_INLINE where necessary.
34425         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34426         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34428         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34429         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34430         * m4/mbiter.m4 (gl_MBITER): Likewise.
34431         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34432         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34433         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34434         * modules/u64 (configure.ac): Likewise.
34435
34436 2009-12-31  Bruno Haible  <bruno@clisp.org>
34437
34438         Use AC_C_INLINE instead of module 'inline' where possible.
34439         * modules/inline (Description): Clarify purpose.
34440         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34441         * modules/count-one-bits (Depends-on): Remove inline.
34442         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34443         * modules/openat (Depends-on): Remove inline.
34444         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34445         instead of depending on module 'inline'.
34446         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34447         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34448         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34449         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34450         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34451         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34452         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34453         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34454         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34455         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34456         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34457         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34458         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34459         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34460         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34461         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34462         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34463         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34464         Likewise.
34465         * modules/unictype/property-ascii-hex-digit (Depends-on,
34466         configure.ac): Likewise.
34467         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34468         configure.ac): Likewise.
34469         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34470         configure.ac): Likewise.
34471         * modules/unictype/property-bidi-block-separator (Depends-on,
34472         configure.ac): Likewise.
34473         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34474         configure.ac): Likewise.
34475         * modules/unictype/property-bidi-common-separator (Depends-on,
34476         configure.ac): Likewise.
34477         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34478         Likewise.
34479         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34480         configure.ac): Likewise.
34481         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34482         configure.ac): Likewise.
34483         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34484         configure.ac): Likewise.
34485         * modules/unictype/property-bidi-european-digit (Depends-on,
34486         configure.ac): Likewise.
34487         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34488         configure.ac): Likewise.
34489         * modules/unictype/property-bidi-left-to-right (Depends-on,
34490         configure.ac): Likewise.
34491         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-bidi-other-neutral (Depends-on,
34494         configure.ac): Likewise.
34495         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34496         Likewise.
34497         * modules/unictype/property-bidi-segment-separator (Depends-on,
34498         configure.ac): Likewise.
34499         * modules/unictype/property-bidi-whitespace (Depends-on,
34500         configure.ac): Likewise.
34501         * modules/unictype/property-combining (Depends-on, configure.ac):
34502         Likewise.
34503         * modules/unictype/property-composite (Depends-on, configure.ac):
34504         Likewise.
34505         * modules/unictype/property-currency-symbol (Depends-on,
34506         configure.ac): Likewise.
34507         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34508         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34509         Likewise.
34510         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34511         configure.ac): Likewise.
34512         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34513         Likewise.
34514         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34515         Likewise.
34516         * modules/unictype/property-extender (Depends-on, configure.ac):
34517         Likewise.
34518         * modules/unictype/property-format-control (Depends-on, configure.ac):
34519         Likewise.
34520         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34521         Likewise.
34522         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34523         Likewise.
34524         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34525         Likewise.
34526         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34527         Likewise.
34528         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34529         Likewise.
34530         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34531         Likewise.
34532         * modules/unictype/property-id-start (Depends-on, configure.ac):
34533         Likewise.
34534         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34535         Likewise.
34536         * modules/unictype/property-ids-binary-operator (Depends-on,
34537         configure.ac): Likewise.
34538         * modules/unictype/property-ids-trinary-operator (Depends-on,
34539         configure.ac): Likewise.
34540         * modules/unictype/property-ignorable-control (Depends-on,
34541         configure.ac): Likewise.
34542         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34543         Likewise.
34544         * modules/unictype/property-join-control (Depends-on, configure.ac):
34545         Likewise.
34546         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34547         Likewise.
34548         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34549         Likewise.
34550         * modules/unictype/property-logical-order-exception (Depends-on,
34551         configure.ac): Likewise.
34552         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34553         Likewise.
34554         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34555         * modules/unictype/property-non-break (Depends-on, configure.ac):
34556         Likewise.
34557         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34558         Likewise.
34559         * modules/unictype/property-numeric (Depends-on, configure.ac):
34560         Likewise.
34561         * modules/unictype/property-other-alphabetic (Depends-on,
34562         configure.ac): Likewise.
34563         * modules/unictype/property-other-default-ignorable-code-point
34564         (Depends-on, configure.ac): Likewise.
34565         * modules/unictype/property-other-grapheme-extend (Depends-on,
34566         configure.ac): Likewise.
34567         * modules/unictype/property-other-id-continue (Depends-on,
34568         configure.ac): Likewise.
34569         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34570         Likewise.
34571         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34572         Likewise.
34573         * modules/unictype/property-other-math (Depends-on, configure.ac):
34574         Likewise.
34575         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34576         Likewise.
34577         * modules/unictype/property-paired-punctuation (Depends-on,
34578         configure.ac): Likewise.
34579         * modules/unictype/property-paragraph-separator (Depends-on,
34580         configure.ac): Likewise.
34581         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34582         Likewise.
34583         * modules/unictype/property-pattern-white-space (Depends-on,
34584         configure.ac): Likewise.
34585         * modules/unictype/property-private-use (Depends-on, configure.ac):
34586         Likewise.
34587         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34588         Likewise.
34589         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34590         Likewise.
34591         * modules/unictype/property-radical (Depends-on, configure.ac):
34592         Likewise.
34593         * modules/unictype/property-sentence-terminal (Depends-on,
34594         configure.ac): Likewise.
34595         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34596         Likewise.
34597         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34598         * modules/unictype/property-terminal-punctuation (Depends-on,
34599         configure.ac): Likewise.
34600         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34601         Likewise.
34602         * modules/unictype/property-unassigned-code-value (Depends-on,
34603         configure.ac): Likewise.
34604         * modules/unictype/property-unified-ideograph (Depends-on,
34605         configure.ac): Likewise.
34606         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34607         Likewise.
34608         * modules/unictype/property-variation-selector (Depends-on,
34609         configure.ac): Likewise.
34610         * modules/unictype/property-white-space (Depends-on, configure.ac):
34611         Likewise.
34612         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34613         Likewise.
34614         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34615         Likewise.
34616         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34617         Likewise.
34618         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34619         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34620         Likewise.
34621
34622 2009-12-31  Bruno Haible  <bruno@clisp.org>
34623
34624         Remove unnecessary AC_C_INLINE invocation.
34625         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34626         since 2009-08-21.
34627
34628 2009-12-31  Jim Meyering  <meyering@redhat.com>
34629
34630         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34631         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34632         With this change, we can all remove the gpg_key_ID = ... definition
34633         from our respective cfg.mk files.
34634
34635         maint.mk: create announcement template in ~/, not in /tmp
34636         * top/maint.mk (emit_upload_commands): Adjust.
34637         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34638         Remove temporary file, .ci-msg.
34639
34640 2009-12-31  Eric Blake  <ebb9@byu.net>
34641
34642         link-warning: always build headers with link warnings
34643         * modules/arpa_inet (Makefile.am): Always build replacement
34644         header.
34645         * modules/ctype (Makefile.am): Likewise.
34646         * modules/dirent (Makefile.am): Likewise.
34647         * modules/inttypes (Makefile.am): Likewise.
34648         * modules/langinfo (Makefile.am): Likewise.
34649         * modules/locale (Makefile.am): Likewise.
34650         * modules/spawn (Makefile.am): Likewise.
34651         * modules/sys_file (Makefile.am): Likewise.
34652         * modules/sys_ioctl (Makefile.am): Likewise.
34653         * modules/sys_select (Makefile.am): Likewise.
34654         * modules/sys_socket (Makefile.am): Likewise.
34655         * modules/sys_times (Makefile.am): Likewise.
34656         * modules/sys_utsname (Makefile.am): Likewise.
34657         * modules/sys_wait (Makefile.am): Likewise.
34658         * modules/wchar (Makefile.am): Likewise.
34659         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34660         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34661         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34662         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34663         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34664         Likewise.
34665         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34666         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34667         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34668         Likewise.
34669         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34670         Likewise.
34671         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34672         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34673         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34676         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34677         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34678         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34679         (gl_WCHAR_H_DEFAULTS): Likewise.
34680
34681 2009-12-31  Eric Blake  <ebb9@byu.net>
34682
34683         signal, spawn: use link warnings
34684         * lib/signal.in.h (sigset_t): Make unconditional.
34685         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34686         (sigpending, sigprocmask, sigaction): Add link warnings.
34687         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34688         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34689         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34690         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34691         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34692         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34693         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34694         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34695         (posix_spawn_file_actions_destroy)
34696         (posix_spawn_file_actions_addopen)
34697         (posix_spawn_file_actions_addclose)
34698         (posix_spawn_file_actions_adddup2): Likewise.
34699         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34700         * tests/test-signal.c (main): Enhance test.
34701
34702         spawn: improve wrapper support
34703         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34704         (gl_SPAWN_H_DEFAULTS): New defaults.
34705         * modules/spawn (Makefile.am): Substitute them.
34706         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34707         Only declare if missing or broken.
34708
34709         sys_times, sys_utsname: use include_next
34710         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34711         header.
34712         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34713         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34714         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34715         * modules/sys_times (Depends-on): Add include_next.
34716         (Makefile.am): Substitute additional values.
34717         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34718         * lib/sys_times.in.h (includes): Include native header, if
34719         available.
34720         * lib/sys_utsname.in.h (includes): Likewise.
34721         * tests/test-sys_times.c (main): Enhance test.
34722
34723         fdutimensat: revert prior patch
34724         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34725         utimens.h.
34726         Reported by Bruno Haible.
34727
34728 2009-12-30  Eric Blake  <ebb9@byu.net>
34729
34730         sys_wait: drop link-warning dependency
34731         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34732         link-warning efforts.
34733         * lib/sys_wait.in.h: Likewise.
34734
34735         fdutimensat: remove bogus dependency
34736         * modules/fdutimensat (Depends-on): Drop inline.
34737
34738         unistd: fix typo
34739         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34740
34741 2009-12-30  Bruno Haible  <bruno@clisp.org>
34742
34743         Fix compilation error with Solaris cc.
34744         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34745         * lib/unicase/u16-is-invariant.c: Likewise.
34746         * lib/unicase/u32-is-invariant.c: Likewise.
34747         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34748
34749 2009-12-30  Bruno Haible  <bruno@clisp.org>
34750
34751         Fix test crash.
34752         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34753         locales.
34754         Reported by Simon Josefsson <simon@josefsson.org>.
34755
34756 2009-12-30  Bruno Haible  <bruno@clisp.org>
34757
34758         Fix compilation error on most platforms.
34759         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34760         Reported by Simon Josefsson <simon@josefsson.org>
34761         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34762
34763 2009-12-30  Eric Blake  <ebb9@byu.net>
34764
34765         futimens, utimensat: work around ntfs-3g bug
34766         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34767         a ctime bug is present, and expand workaround to cover ntfs-3g.
34768         * lib/utimens.c (fdutimens, lutimens): Likewise.
34769         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34770         (validate_timespec): Adjust return value.
34771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34772         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34773         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34774
34775 2009-12-29  Eric Blake  <ebb9@byu.net>
34776
34777         link-warning: make usage consistent
34778         * modules/ctype (Depends-on): Add link-warning.
34779         (Makefile.am): Update rules accordingly.
34780         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34781         * modules/locale (Depends-on, Makefile.am): Likewise.
34782         * modules/sys_file (Makefile.am): Likewise.
34783         * modules/getopt-posix (Makefile.am): Delete unused link warning
34784         efforts.
34785         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34786         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34787         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34788         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34789
34790         stdio: remove unused variables
34791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34793         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34794
34795         tests: test more substitute headers
34796         * modules/ctype-tests: New file.
34797         * modules/dirent-tests: Likewise.
34798         * modules/spawn-tests: Likewise.
34799         * modules/sys_file-tests: Likewise.
34800         * modules/sys_ioctl-tests: Likewise.
34801         * modules/sys_wait-tests: Likewise.
34802         * tests/test-ctype.c: Likewise.
34803         * tests/test-dirent.c: Likewise.
34804         * tests/test-spawn.c: Likewise.
34805         * tests/test-sys_file.c: Likewise.
34806         * tests/test-sys_ioctl.c: Likewise.
34807         * tests/test-sys_wait.c: Likewise.
34808         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34809         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34810         whether or not flock is in use.
34811
34812         tests: remove License section from module
34813         * modules/arpa_inet-tests: Remove unneeded section.
34814         * modules/byteswap-tests: Likewise.
34815         * modules/ceilf-tests: Likewise.
34816         * modules/ceill-tests: Likewise.
34817         * modules/crypto/des-tests: Likewise.
34818         * modules/crypto/gc-arcfour-tests: Likewise.
34819         * modules/crypto/gc-arctwo-tests: Likewise.
34820         * modules/crypto/gc-des-tests: Likewise.
34821         * modules/crypto/gc-hmac-md5-tests: Likewise.
34822         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34823         * modules/crypto/gc-md2-tests: Likewise.
34824         * modules/crypto/gc-md4-tests: Likewise.
34825         * modules/crypto/gc-md5-tests: Likewise.
34826         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34827         * modules/crypto/gc-rijndael-tests: Likewise.
34828         * modules/crypto/gc-sha1-tests: Likewise.
34829         * modules/crypto/gc-tests: Likewise.
34830         * modules/crypto/md2-tests: Likewise.
34831         * modules/crypto/md4-tests: Likewise.
34832         * modules/fcntl-h-tests: Likewise.
34833         * modules/floorf-tests: Likewise.
34834         * modules/floorl-tests: Likewise.
34835         * modules/frexp-nolibm-tests: Likewise.
34836         * modules/frexp-tests: Likewise.
34837         * modules/frexpl-nolibm-tests: Likewise.
34838         * modules/frexpl-tests: Likewise.
34839         * modules/getaddrinfo-tests: Likewise.
34840         * modules/inttypes-tests: Likewise.
34841         * modules/isfinite-tests: Likewise.
34842         * modules/isinf-tests: Likewise.
34843         * modules/ldexpl-tests: Likewise.
34844         * modules/locale-tests: Likewise.
34845         * modules/math-tests: Likewise.
34846         * modules/netdb-tests: Likewise.
34847         * modules/netinet_in-tests: Likewise.
34848         * modules/printf-frexp-tests: Likewise.
34849         * modules/printf-frexpl-tests: Likewise.
34850         * modules/priv-set-tests: Likewise.
34851         * modules/random_r-tests: Likewise.
34852         * modules/round-tests: Likewise.
34853         * modules/roundf-tests: Likewise.
34854         * modules/roundl-tests: Likewise.
34855         * modules/search-tests: Likewise.
34856         * modules/select-tests: Likewise.
34857         * modules/signal-tests: Likewise.
34858         * modules/stdbool-tests: Likewise.
34859         * modules/stddef-tests: Likewise.
34860         * modules/stdint-tests: Likewise.
34861         * modules/stdio-tests: Likewise.
34862         * modules/stdlib-tests: Likewise.
34863         * modules/string-tests: Likewise.
34864         * modules/strings-tests: Likewise.
34865         * modules/sys_select-tests: Likewise.
34866         * modules/sys_socket-tests: Likewise.
34867         * modules/sys_stat-tests: Likewise.
34868         * modules/sys_time-tests: Likewise.
34869         * modules/sys_utsname-tests: Likewise.
34870         * modules/sysexits-tests: Likewise.
34871         * modules/time-tests: Likewise.
34872         * modules/trunc-tests: Likewise.
34873         * modules/truncf-tests: Likewise.
34874         * modules/truncl-tests: Likewise.
34875         * modules/tsearch-tests: Likewise.
34876         * modules/unistd-tests: Likewise.
34877         * modules/wchar-tests: Likewise.
34878         * modules/wctype-tests: Likewise.
34879
34880         tests: fix license on several tests
34881         * tests/test-des.c: Update to GPLv3+.
34882         * tests/test-flock.c: Likewise.
34883         * tests/test-fsync.c: Likewise.
34884         * tests/test-futimens.h: Likewise.
34885         * tests/test-gc-arcfour.c: Likewise.
34886         * tests/test-gc-arctwo.c: Likewise.
34887         * tests/test-gc-des.c: Likewise.
34888         * tests/test-gc-hmac-md5.c: Likewise.
34889         * tests/test-gc-hmac-sha1.c: Likewise.
34890         * tests/test-gc-md2.c: Likewise.
34891         * tests/test-gc-md4.c: Likewise.
34892         * tests/test-gc-md5.c: Likewise.
34893         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34894         * tests/test-gc-rijndael.c: Likewise.
34895         * tests/test-gc-sha1.c: Likewise.
34896         * tests/test-gc.c: Likewise.
34897         * tests/test-getcwd.c: Likewise.
34898         * tests/test-link.c: Likewise.
34899         * tests/test-link.h: Likewise.
34900         * tests/test-lutimens.h: Likewise.
34901         * tests/test-md2.c: Likewise.
34902         * tests/test-md4.c: Likewise.
34903         * tests/test-mkdir.h: Likewise.
34904         * tests/test-rename.c: Likewise.
34905         * tests/test-rename.h: Likewise.
34906         * tests/test-safe-alloc.c: Likewise.
34907         * tests/test-utimens-common.h: Likewise.
34908         * tests/test-utimens.h: Likewise.
34909
34910         maint: sync license texts
34911         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34912         * doc/gpl-3.0.texi: Revert copyright year update.
34913         * doc/lgpl-3.0.texi: Likewise.
34914
34915 2009-12-29  Jim Meyering  <meyering@redhat.com>
34916
34917         update nearly all FSF copyright year lists to include 2009
34918         The files named by the following are exempted:
34919             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34920               test -f "$dst" && { echo "$dst"; continue; }
34921               test -d "$dst" || continue
34922               echo "$dst"/$(basename "$src")
34923             done > exempt
34924             git ls-files tests/unictype >> exempt
34925         In the remaining files, convert to all-interval notation if
34926         - there is already at least one year interval like 2000-2003
34927         - the file is maintained by me
34928         - the file is in lib/uni*/, where that style already prevails
34929         Otherwise, use update-copyright's default.
34930
34931 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34932         and Eric Blake  <ebb9@byu.net>
34933
34934         tests: don't require debug system() to pass
34935         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34936         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34937         * tests/test-unlink.h (test_unlink_func): Likewise.
34938         * tests/test-fstatat.c (main): ...into callers.
34939         * tests/test-lstat.c (main): Likewise.
34940         * tests/test-rmdir.c (main): Likewise.
34941         * tests/test-unlink.c (main): Likewise.
34942         * tests/test-unlinkat.c (main): Likewise.
34943         * tests/test-areadlink-with-size.c (main): Don't require a
34944         debug-only system call to pass, aiding cross-testing to mingw.
34945         * tests/test-areadlink.c (main): Likewise.
34946         * tests/test-areadlinkat-with-size.c (main): Likewise.
34947         * tests/test-areadlinkat.c (main): Likewise.
34948         * tests/test-canonicalize-lgpl.c (main): Likewise.
34949         * tests/test-canonicalize.c (main): Likewise.
34950         * tests/test-chown.c (main): Likewise.
34951         * tests/test-fchownat.c (main): Likewise.
34952         * tests/test-lchown.c (main): Likewise.
34953         * tests/test-fdutimensat.c (main): Likewise.
34954         * tests/test-futimens.c (main): Likewise.
34955         * tests/test-link.c (main): Likewise.
34956         * tests/test-linkat.c (main): Likewise.
34957         * tests/test-mkdir.c (main): Likewise.
34958         * tests/test-mkdirat.c (main): Likewise.
34959         * tests/test-mkfifo.c (main): Likewise.
34960         * tests/test-mkfifoat.c (main): Likewise.
34961         * tests/test-mknod.c (main): Likewise.
34962         * tests/test-readlink.c (main): Likewise.
34963         * tests/test-remove.c (main): Likewise.
34964         * tests/test-rename.c (main): Likewise.
34965         * tests/test-renameat.c (main): Likewise.
34966         * tests/test-symlink.c (main): Likewise.
34967         * tests/test-symlinkat.c (main): Likewise.
34968         * tests/test-utimens.c (main): Likewise.
34969         * tests/test-utimensat.c (main): Likewise.
34970
34971 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34972
34973         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34974         on $(UNUSED_PARAMETER_H) to avoid build failure.
34975
34976 2009-12-28  Jim Meyering  <meyering@redhat.com>
34977
34978         update-copyright: you may specify a max. line length other than 72
34979         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34980
34981         maint: use consistent FSF copyright line syntax
34982         * lib/posixtm.c: Add missing comma in FSF copyright line.
34983         * lib/posixtm.h: Likewise.
34984         * lib/getugroups.c: Add missing ", Inc.".
34985
34986         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34987         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34988         FSF copyright line.  Remove trailing blanks.
34989
34990 2009-12-28  Eric Blake  <ebb9@byu.net>
34991
34992         test-dup2: reduce dependencies
34993         * modules/cloexec (Configure.ac): Set witness.
34994         * modules/dup2-tests (Depends-on): Drop cloexec.
34995         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34996         not present.
34997         Suggested by Bruno Haible.
34998
34999 2009-12-26  Bruno Haible  <bruno@clisp.org>
35000
35001         Remove an unneeded dependency.
35002         * modules/fseterr (Depends-on): Remove dup2.
35003
35004 2009-12-26  Eric Blake  <ebb9@byu.net>
35005
35006         tests: use macros.h in more places
35007         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35008         (ASSERT_STREAM): Provide default of stderr.
35009         * tests/test-dirent-safer.c: Include macros.h, using alternate
35010         stream for assertions.
35011         * tests/test-dup-safer.c: Likewise.
35012         * tests/test-freopen-safer.c: Likewise.
35013         * tests/test-getopt.c: Likewise.
35014         * tests/test-openat-safer.c: Likewise.
35015         * tests/test-pipe.c: Likewise.
35016         * tests/test-popen-safer.c: Likewise.
35017         * modules/dirent-safer-tests (Files): Include macros.h.
35018         * modules/unistd-safer-tests (Files): Likewise.
35019         * modules/freopen-safer-tests (Files): Likewise.
35020         * modules/getopt-posix-tests (Files): Likewise.
35021         * modules/openat-safer-tests (Files): Likewise.
35022         * modules/pipe-tests (Files): Likewise.
35023
35024 2009-12-26  Bruno Haible  <bruno@clisp.org>
35025
35026         javacomp: Portability fix.
35027         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35028         that it also works on Solaris.
35029
35030 2009-12-26  Bruno Haible  <bruno@clisp.org>
35031
35032         localename: Fix storage allocation of gl_locale_name_thread's result.
35033         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35034         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35035         all platforms that have 'uselocale'.
35036         (gl_locale_name_thread_unsafe): New function, extracted from
35037         gl_locale_name_thread.
35038         (gl_locale_name_thread): Call struniq on all platforms that have
35039         'uselocale'.
35040         * tests/test-localename.c (test_locale_name_thread): Check that the
35041         resulting strings are permanently allocated.
35042         * modules/localename-tests (Depends-on): Add strdup.
35043
35044 2009-12-26  Bruno Haible  <bruno@clisp.org>
35045
35046         * tests/test-localename.c (categories): Fill in the strings.
35047
35048 2009-12-26  Jim Meyering  <meyering@redhat.com>
35049
35050         isdir: complete the removal of m4/isdir.m4
35051         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35052
35053         isdir: clean up, since at least grep still uses it
35054         * lib/isdir.c: Include "isdir.h".
35055         (S_ISDIR): Remove now-unneeded definition.
35056         * modules/isdir (Files): Add lib/isdir.h.
35057         * lib/isdir.h: New file, with declaration.
35058         * m4/isdir.m4: Remove file -- unneeded.
35059
35060 2009-12-25  Bruno Haible  <bruno@clisp.org>
35061
35062         selinux-h: Make generated .h files standalone.
35063         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35064         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35065         * lib/se-selinux.in.h: Likewise.
35066         * modules/selinux-h (Depends-on): Add unused-parameter.
35067         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35068         selinux/selinux.h and selinux/context.h.
35069         Suggested by Eric Blake.
35070
35071 2009-12-25  Bruno Haible  <bruno@clisp.org>
35072
35073         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35074         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35075         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35076         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35077         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35078
35079 2009-12-24  Bruno Haible  <bruno@clisp.org>
35080
35081         openat: Fix warning.
35082         * lib/openat-proc.c: Include <unistd.h>.
35083
35084 2009-12-24  Bruno Haible  <bruno@clisp.org>
35085
35086         New module 'unused-parameter'.
35087         * build-aux/unused-parameter.h: New file, extracted from earlier
35088         gnulib-common.m4.
35089         * modules/unused-parameter: New file.
35090         * lib/unistr.h: Include unused-parameter.h.
35091         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35092         _GL_UNUSED.
35093         * modules/unistr/base (Depends-on): Add unused-parameter.
35094
35095 2009-12-24  Bruno Haible  <bruno@clisp.org>
35096
35097         Add missing dependencies to 'extensions' module.
35098         * m4/extensions.m4: Add comment.
35099         * modules/accept4 (Depends-on): Add extensions.
35100         * modules/dup3 (Depends-on): Likewise.
35101         * modules/fcntl (Depends-on): Likewise.
35102         * modules/futimens (Depends-on): Likewise.
35103         * modules/mknod (Depends-on): Likewise.
35104         * modules/pipe2 (Depends-on): Likewise.
35105         * modules/stat-time (Depends-on): Likewise.
35106         * modules/strcasestr-simple (Depends-on): Likewise.
35107         * modules/strsignal (Depends-on): Likewise.
35108         * modules/utimensat (Depends-on): Likewise.
35109         * modules/localcharset (Depends-on): Likewise. Needed because of
35110         gl_FCNTL_O_FLAGS.
35111         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35112         AC_TYPE_MBSTATE_T.
35113         * modules/wcsnrtombs (Depends-on): Likewise.
35114         * modules/wcsrtombs (Depends-on): Likewise.
35115
35116 2009-12-24  Bruno Haible  <bruno@clisp.org>
35117
35118         binary-io: Avoid gcc warning due to SET_BINARY.
35119         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35120         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35121
35122 2009-12-24  Bruno Haible  <bruno@clisp.org>
35123
35124         Avoid future namespace pollution on glibc systems.
35125         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35126         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35127         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35128         glibc systems.
35129
35130 2009-12-24  Bruno Haible  <bruno@clisp.org>
35131
35132         Refactor common macros used in tests.
35133         * tests/macros.h: New file.
35134         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35135         and/or <stdlib.h>, if appropriate.
35136         (ASSERT, SIZEOF): Remove macros.
35137         * tests/test-areadlink-with-size.c: Likewise.
35138         * tests/test-areadlinkat.c: Likewise.
35139         * tests/test-areadlinkat-with-size.c: Likewise.
35140         * tests/test-argmatch.c: Likewise.
35141         * tests/test-argv-iter.c: Likewise.
35142         * tests/test-array-mergesort.c: Likewise.
35143         * tests/test-array_list.c: Likewise.
35144         * tests/test-array_oset.c: Likewise.
35145         * tests/test-avltree_list.c: Likewise.
35146         * tests/test-avltree_oset.c: Likewise.
35147         * tests/test-avltreehash_list.c: Likewise.
35148         * tests/test-base64.c: Likewise.
35149         * tests/test-binary-io.c: Likewise.
35150         * tests/test-bitrotate.c: Likewise.
35151         * tests/test-btowc.c: Likewise.
35152         * tests/test-byteswap.c: Likewise.
35153         * tests/test-c-ctype.c: Likewise.
35154         * tests/test-c-stack.c: Likewise.
35155         * tests/test-c-strcasecmp.c: Likewise.
35156         * tests/test-c-strcasestr.c: Likewise.
35157         * tests/test-c-strncasecmp.c: Likewise.
35158         * tests/test-c-strstr.c: Likewise.
35159         * tests/test-canonicalize-lgpl.c: Likewise.
35160         * tests/test-canonicalize.c: Likewise.
35161         * tests/test-carray_list.c: Likewise.
35162         * tests/test-ceilf1.c: Likewise.
35163         * tests/test-ceilf2.c: Likewise.
35164         * tests/test-ceill.c: Likewise.
35165         * tests/test-chown.c: Likewise.
35166         * tests/test-cloexec.c: Likewise.
35167         * tests/test-copy-acl.c: Likewise.
35168         * tests/test-copy-file.c: Likewise.
35169         * tests/test-count-one-bits.c: Likewise.
35170         * tests/test-dprintf-posix.c: Likewise.
35171         * tests/test-dup2.c: Likewise.
35172         * tests/test-dup3.c: Likewise.
35173         * tests/test-duplocale.c: Likewise.
35174         * tests/test-fbufmode.c: Likewise.
35175         * tests/test-fchdir.c: Likewise.
35176         * tests/test-fchownat.c: Likewise.
35177         * tests/test-fcntl-safer.c: Likewise.
35178         * tests/test-fcntl.c: Likewise.
35179         * tests/test-fdopendir.c: Likewise.
35180         * tests/test-fdutimensat.c: Likewise.
35181         * tests/test-fflush2.c: Likewise.
35182         * tests/test-file-has-acl.c: Likewise.
35183         * tests/test-filevercmp.c: Likewise.
35184         * tests/test-flock.c: Likewise.
35185         * tests/test-floorf1.c: Likewise.
35186         * tests/test-floorf2.c: Likewise.
35187         * tests/test-floorl.c: Likewise.
35188         * tests/test-fnmatch.c: Likewise.
35189         * tests/test-fopen.h: Likewise.
35190         * tests/test-fpending.c: Likewise.
35191         * tests/test-fprintf-posix.c: Likewise.
35192         * tests/test-fpurge.c: Likewise.
35193         * tests/test-freadable.c: Likewise.
35194         * tests/test-freadahead.c: Likewise.
35195         * tests/test-freading.c: Likewise.
35196         * tests/test-freadptr.c: Likewise.
35197         * tests/test-freadptr2.c: Likewise.
35198         * tests/test-freadseek.c: Likewise.
35199         * tests/test-freopen.c: Likewise.
35200         * tests/test-frexp.c: Likewise.
35201         * tests/test-frexpl.c: Likewise.
35202         * tests/test-fseek.c: Likewise.
35203         * tests/test-fseeko.c: Likewise.
35204         * tests/test-fstatat.c: Likewise.
35205         * tests/test-fstrcmp.c: Likewise.
35206         * tests/test-fsync.c: Likewise.
35207         * tests/test-ftell.c: Likewise.
35208         * tests/test-ftello.c: Likewise.
35209         * tests/test-func.c: Likewise.
35210         * tests/test-futimens.c: Likewise.
35211         * tests/test-fwritable.c: Likewise.
35212         * tests/test-fwriting.c: Likewise.
35213         * tests/test-getcwd.c: Likewise.
35214         * tests/test-getdate.c: Likewise.
35215         * tests/test-getdelim.c: Likewise.
35216         * tests/test-getdtablesize.c: Likewise.
35217         * tests/test-getgroups.c: Likewise.
35218         * tests/test-getline.c: Likewise.
35219         * tests/test-getndelim2.c: Likewise.
35220         * tests/test-glob.c: Likewise.
35221         * tests/test-hash.c: Likewise.
35222         * tests/test-i-ring.c: Likewise.
35223         * tests/test-iconv-utf.c: Likewise.
35224         * tests/test-iconv.c: Likewise.
35225         * tests/test-idpriv-drop.c: Likewise.
35226         * tests/test-idpriv-droptemp.c: Likewise.
35227         * tests/test-inet_ntop.c: Likewise.
35228         * tests/test-inet_pton.c: Likewise.
35229         * tests/test-isblank.c: Likewise.
35230         * tests/test-isfinite.c: Likewise.
35231         * tests/test-isinf.c: Likewise.
35232         * tests/test-isnan.c: Likewise.
35233         * tests/test-isnand.h: Likewise.
35234         * tests/test-isnanf.h: Likewise.
35235         * tests/test-isnanl.h: Likewise.
35236         * tests/test-lchown.c: Likewise.
35237         * tests/test-ldexpl.c: Likewise.
35238         * tests/test-link.c: Likewise.
35239         * tests/test-linkat.c: Likewise.
35240         * tests/test-linked_list.c: Likewise.
35241         * tests/test-linkedhash_list.c: Likewise.
35242         * tests/test-localename.c: Likewise.
35243         * tests/test-lseek.c: Likewise.
35244         * tests/test-lstat.c: Likewise.
35245         * tests/test-mbmemcasecmp.c: Likewise.
35246         * tests/test-mbmemcasecoll.c: Likewise.
35247         * tests/test-mbrtowc.c: Likewise.
35248         * tests/test-mbscasecmp.c: Likewise.
35249         * tests/test-mbscasestr1.c: Likewise.
35250         * tests/test-mbscasestr2.c: Likewise.
35251         * tests/test-mbscasestr3.c: Likewise.
35252         * tests/test-mbscasestr4.c: Likewise.
35253         * tests/test-mbschr.c: Likewise.
35254         * tests/test-mbscspn.c: Likewise.
35255         * tests/test-mbsinit.c: Likewise.
35256         * tests/test-mbsncasecmp.c: Likewise.
35257         * tests/test-mbsnrtowcs.c: Likewise.
35258         * tests/test-mbspbrk.c: Likewise.
35259         * tests/test-mbspcasecmp.c: Likewise.
35260         * tests/test-mbsrchr.c: Likewise.
35261         * tests/test-mbsrtowcs.c: Likewise.
35262         * tests/test-mbsspn.c: Likewise.
35263         * tests/test-mbsstr1.c: Likewise.
35264         * tests/test-mbsstr2.c: Likewise.
35265         * tests/test-mbsstr3.c: Likewise.
35266         * tests/test-memchr.c: Likewise.
35267         * tests/test-memchr2.c: Likewise.
35268         * tests/test-memcmp.c: Likewise.
35269         * tests/test-memmem.c: Likewise.
35270         * tests/test-memrchr.c: Likewise.
35271         * tests/test-mkdir.c: Likewise.
35272         * tests/test-mkdirat.c: Likewise.
35273         * tests/test-mkfifo.c: Likewise.
35274         * tests/test-mkfifoat.c: Likewise.
35275         * tests/test-mknod.c: Likewise.
35276         * tests/test-nanosleep.c: Likewise.
35277         * tests/test-nl_langinfo.c: Likewise.
35278         * tests/test-obstack-printf.c: Likewise.
35279         * tests/test-open.c: Likewise.
35280         * tests/test-openat.c: Likewise.
35281         * tests/test-pipe-filter-gi1.c: Likewise.
35282         * tests/test-pipe-filter-gi2-main.c: Likewise.
35283         * tests/test-pipe-filter-ii1.c: Likewise.
35284         * tests/test-pipe-filter-ii2-main.c: Likewise.
35285         * tests/test-pipe2.c: Likewise.
35286         * tests/test-popen.h: Likewise.
35287         * tests/test-posixtm.c: Likewise.
35288         * tests/test-pread.c: Likewise.
35289         * tests/test-printf-frexp.c: Likewise.
35290         * tests/test-printf-frexpl.c: Likewise.
35291         * tests/test-printf-posix.c: Likewise.
35292         * tests/test-priv-set.c: Likewise.
35293         * tests/test-quotearg.c: Likewise.
35294         * tests/test-random_r.c: Likewise.
35295         * tests/test-rawmemchr.c: Likewise.
35296         * tests/test-rbtree_list.c: Likewise.
35297         * tests/test-rbtree_oset.c: Likewise.
35298         * tests/test-rbtreehash_list.c: Likewise.
35299         * tests/test-readlink.c: Likewise.
35300         * tests/test-remove.c: Likewise.
35301         * tests/test-rename.c: Likewise.
35302         * tests/test-renameat.c: Likewise.
35303         * tests/test-rmdir.c: Likewise.
35304         * tests/test-round1.c: Likewise.
35305         * tests/test-roundf1.c: Likewise.
35306         * tests/test-roundl.c: Likewise.
35307         * tests/test-safe-alloc.c: Likewise.
35308         * tests/test-sameacls.c: Likewise.
35309         * tests/test-set-mode-acl.c: Likewise.
35310         * tests/test-setenv.c: Likewise.
35311         * tests/test-sigaction.c: Likewise.
35312         * tests/test-signbit.c: Likewise.
35313         * tests/test-sleep.c: Likewise.
35314         * tests/test-snprintf-posix.c: Likewise.
35315         * tests/test-snprintf.c: Likewise.
35316         * tests/test-sprintf-posix.c: Likewise.
35317         * tests/test-stat-time.c: Likewise.
35318         * tests/test-stat.c: Likewise.
35319         * tests/test-strcasestr.c: Likewise.
35320         * tests/test-strchrnul.c: Likewise.
35321         * tests/test-strerror.c: Likewise.
35322         * tests/test-striconv.c: Likewise.
35323         * tests/test-striconveh.c: Likewise.
35324         * tests/test-striconveha.c: Likewise.
35325         * tests/test-strsignal.c: Likewise.
35326         * tests/test-strstr.c: Likewise.
35327         * tests/test-strtod.c: Likewise.
35328         * tests/test-strverscmp.c: Likewise.
35329         * tests/test-symlink.c: Likewise.
35330         * tests/test-symlinkat.c: Likewise.
35331         * tests/test-trunc1.c: Likewise.
35332         * tests/test-trunc2.c: Likewise.
35333         * tests/test-truncf1.c: Likewise.
35334         * tests/test-truncf2.c: Likewise.
35335         * tests/test-truncl.c: Likewise.
35336         * tests/test-uname.c: Likewise.
35337         * tests/test-unlink.c: Likewise.
35338         * tests/test-unlinkat.c: Likewise.
35339         * tests/test-unsetenv.c: Likewise.
35340         * tests/test-usleep.c: Likewise.
35341         * tests/test-utimens.c: Likewise.
35342         * tests/test-utimensat.c: Likewise.
35343         * tests/test-vasnprintf-posix.c: Likewise.
35344         * tests/test-vasnprintf-posix2.c: Likewise.
35345         * tests/test-vasnprintf.c: Likewise.
35346         * tests/test-vasprintf-posix.c: Likewise.
35347         * tests/test-vasprintf.c: Likewise.
35348         * tests/test-vdprintf-posix.c: Likewise.
35349         * tests/test-vfprintf-posix.c: Likewise.
35350         * tests/test-vprintf-posix.c: Likewise.
35351         * tests/test-vsnprintf-posix.c: Likewise.
35352         * tests/test-vsnprintf.c: Likewise.
35353         * tests/test-vsprintf-posix.c: Likewise.
35354         * tests/test-wcrtomb.c: Likewise.
35355         * tests/test-wcsnrtombs.c: Likewise.
35356         * tests/test-wcsrtombs.c: Likewise.
35357         * tests/test-wctype.c: Likewise.
35358         * tests/test-wcwidth.c: Likewise.
35359         * tests/test-xfprintf-posix.c: Likewise.
35360         * tests/test-xmemdup0.c: Likewise.
35361         * tests/test-xprintf-posix.c: Likewise.
35362         * tests/test-xvasprintf.c: Likewise.
35363         * tests/unicase/test-locale-language.c: Likewise.
35364         * tests/unicase/test-mapping-part1.h: Likewise.
35365         * tests/unicase/test-predicate-part1.h: Likewise.
35366         * tests/unicase/test-u8-casecmp.c: Likewise.
35367         * tests/unicase/test-u8-casecoll.c: Likewise.
35368         * tests/unicase/test-u8-casefold.c: Likewise.
35369         * tests/unicase/test-u8-is-cased.c: Likewise.
35370         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35371         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35372         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35373         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35374         * tests/unicase/test-u8-tolower.c: Likewise.
35375         * tests/unicase/test-u8-totitle.c: Likewise.
35376         * tests/unicase/test-u8-toupper.c: Likewise.
35377         * tests/unicase/test-u16-casecmp.c: Likewise.
35378         * tests/unicase/test-u16-casecoll.c: Likewise.
35379         * tests/unicase/test-u16-casefold.c: Likewise.
35380         * tests/unicase/test-u16-is-cased.c: Likewise.
35381         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35382         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35383         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35384         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35385         * tests/unicase/test-u16-tolower.c: Likewise.
35386         * tests/unicase/test-u16-totitle.c: Likewise.
35387         * tests/unicase/test-u16-toupper.c: Likewise.
35388         * tests/unicase/test-u32-casecmp.c: Likewise.
35389         * tests/unicase/test-u32-casecoll.c: Likewise.
35390         * tests/unicase/test-u32-casefold.c: Likewise.
35391         * tests/unicase/test-u32-is-cased.c: Likewise.
35392         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35393         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35394         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35395         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35396         * tests/unicase/test-u32-tolower.c: Likewise.
35397         * tests/unicase/test-u32-totitle.c: Likewise.
35398         * tests/unicase/test-u32-toupper.c: Likewise.
35399         * tests/unicase/test-ulc-casecmp.c: Likewise.
35400         * tests/unicase/test-ulc-casecoll.c: Likewise.
35401         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35402         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35403         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35404         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35405         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35406         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35407         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35408         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35409         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35410         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35411         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35412         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35413         * tests/unictype/test-bidi_byname.c: Likewise.
35414         * tests/unictype/test-bidi_name.c: Likewise.
35415         * tests/unictype/test-bidi_of.c: Likewise.
35416         * tests/unictype/test-bidi_test.c: Likewise.
35417         * tests/unictype/test-block_list.c: Likewise.
35418         * tests/unictype/test-block_of.c: Likewise.
35419         * tests/unictype/test-block_test.c: Likewise.
35420         * tests/unictype/test-categ_and.c: Likewise.
35421         * tests/unictype/test-categ_and_not.c: Likewise.
35422         * tests/unictype/test-categ_byname.c: Likewise.
35423         * tests/unictype/test-categ_name.c: Likewise.
35424         * tests/unictype/test-categ_none.c: Likewise.
35425         * tests/unictype/test-categ_of.c: Likewise.
35426         * tests/unictype/test-categ_or.c: Likewise.
35427         * tests/unictype/test-categ_test_withtable.c: Likewise.
35428         * tests/unictype/test-combining.c: Likewise.
35429         * tests/unictype/test-decdigit.c: Likewise.
35430         * tests/unictype/test-digit.c: Likewise.
35431         * tests/unictype/test-mirror.c: Likewise.
35432         * tests/unictype/test-numeric.c: Likewise.
35433         * tests/unictype/test-pr_byname.c: Likewise.
35434         * tests/unictype/test-pr_test.c: Likewise.
35435         * tests/unictype/test-predicate-part1.h: Likewise.
35436         * tests/unictype/test-scripts.c: Likewise.
35437         * tests/unictype/test-sy_c_ident.c: Likewise.
35438         * tests/unictype/test-sy_java_ident.c: Likewise.
35439         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35440         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35441         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35442         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35443         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35444         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35445         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35446         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35447         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35448         * tests/uninorm/test-compat-decomposition.c: Likewise.
35449         * tests/uninorm/test-composition.c: Likewise.
35450         * tests/uninorm/test-decomposing-form.c: Likewise.
35451         * tests/uninorm/test-decomposition.c: Likewise.
35452         * tests/uninorm/test-u8-nfc.c: Likewise.
35453         * tests/uninorm/test-u8-nfd.c: Likewise.
35454         * tests/uninorm/test-u8-nfkc.c: Likewise.
35455         * tests/uninorm/test-u8-nfkd.c: Likewise.
35456         * tests/uninorm/test-u8-normcmp.c: Likewise.
35457         * tests/uninorm/test-u8-normcoll.c: Likewise.
35458         * tests/uninorm/test-u16-nfc.c: Likewise.
35459         * tests/uninorm/test-u16-nfd.c: Likewise.
35460         * tests/uninorm/test-u16-nfkc.c: Likewise.
35461         * tests/uninorm/test-u16-nfkd.c: Likewise.
35462         * tests/uninorm/test-u16-normcmp.c: Likewise.
35463         * tests/uninorm/test-u16-normcoll.c: Likewise.
35464         * tests/uninorm/test-u32-nfc.c: Likewise.
35465         * tests/uninorm/test-u32-nfd.c: Likewise.
35466         * tests/uninorm/test-u32-nfkc.c: Likewise.
35467         * tests/uninorm/test-u32-nfkd.c: Likewise.
35468         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35469         * tests/uninorm/test-u32-normcmp.c: Likewise.
35470         * tests/uninorm/test-u32-normcoll.c: Likewise.
35471         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35472         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35473         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35474         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35475         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35476         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35477         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35478         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35479         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35480         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35481         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35482         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35483         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35484         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35485         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35486         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35487         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35488         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35489         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35490         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35491         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35492         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35493         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35494         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35495         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35496         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35497         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35498         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35499         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35500         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35501         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35502         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35503         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35504         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35505         * tests/uniwidth/test-u8-width.c: Likewise.
35506         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35507         * tests/uniwidth/test-u16-width.c: Likewise.
35508         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35509         * tests/uniwidth/test-u32-width.c: Likewise.
35510         * tests/uniwidth/test-uc_width.c: Likewise.
35511         * tests/uniwidth/test-uc_width2.c: Likewise.
35512         * modules/acl-tests (Files): Add tests/macros.h.
35513         * modules/areadlink-tests (Files): Likewise.
35514         * modules/areadlink-with-size-tests (Files): Likewise.
35515         * modules/areadlinkat-tests (Files): Likewise.
35516         * modules/areadlinkat-with-size-tests (Files): Likewise.
35517         * modules/argmatch-tests (Files): Likewise.
35518         * modules/argv-iter-tests (Files): Likewise.
35519         * modules/array-list-tests (Files): Likewise.
35520         * modules/array-mergesort-tests (Files): Likewise.
35521         * modules/array-oset-tests (Files): Likewise.
35522         * modules/avltree-list-tests (Files): Likewise.
35523         * modules/avltree-oset-tests (Files): Likewise.
35524         * modules/avltreehash-list-tests (Files): Likewise.
35525         * modules/base64-tests (Files): Likewise.
35526         * modules/binary-io-tests (Files): Likewise.
35527         * modules/bitrotate-tests (Files): Likewise.
35528         * modules/btowc-tests (Files): Likewise.
35529         * modules/byteswap-tests (Files): Likewise.
35530         * modules/c-ctype-tests (Files): Likewise.
35531         * modules/c-stack-tests (Files): Likewise.
35532         * modules/c-strcase-tests (Files): Likewise.
35533         * modules/c-strcasestr-tests (Files): Likewise.
35534         * modules/c-strstr-tests (Files): Likewise.
35535         * modules/canonicalize-lgpl-tests (Files): Likewise.
35536         * modules/canonicalize-tests (Files): Likewise.
35537         * modules/carray-list-tests (Files): Likewise.
35538         * modules/ceilf-tests (Files): Likewise.
35539         * modules/ceill-tests (Files): Likewise.
35540         * modules/chown-tests (Files): Likewise.
35541         * modules/cloexec-tests (Files): Likewise.
35542         * modules/copy-file-tests (Files): Likewise.
35543         * modules/count-one-bits-tests (Files): Likewise.
35544         * modules/dprintf-posix-tests (Files): Likewise.
35545         * modules/dup2-tests (Files): Likewise.
35546         * modules/dup3-tests (Files): Likewise.
35547         * modules/duplocale-tests (Files): Likewise.
35548         * modules/fbufmode-tests (Files): Likewise.
35549         * modules/fchdir-tests (Files): Likewise.
35550         * modules/fcntl-safer-tests (Files): Likewise.
35551         * modules/fcntl-tests (Files): Likewise.
35552         * modules/fdopendir-tests (Files): Likewise.
35553         * modules/fdutimensat-tests (Files): Likewise.
35554         * modules/fflush-tests (Files): Likewise.
35555         * modules/filevercmp-tests (Files): Likewise.
35556         * modules/flock-tests (Files): Likewise.
35557         * modules/floorf-tests (Files): Likewise.
35558         * modules/floorl-tests (Files): Likewise.
35559         * modules/fnmatch-tests (Files): Likewise.
35560         * modules/fopen-safer-tests (Files): Likewise.
35561         * modules/fopen-tests (Files): Likewise.
35562         * modules/fpending-tests (Files): Likewise.
35563         * modules/fprintf-posix-tests (Files): Likewise.
35564         * modules/fpurge-tests (Files): Likewise.
35565         * modules/freadable-tests (Files): Likewise.
35566         * modules/freadahead-tests (Files): Likewise.
35567         * modules/freading-tests (Files): Likewise.
35568         * modules/freadptr-tests (Files): Likewise.
35569         * modules/freadseek-tests (Files): Likewise.
35570         * modules/freopen-tests (Files): Likewise.
35571         * modules/frexp-nolibm-tests (Files): Likewise.
35572         * modules/frexp-tests (Files): Likewise.
35573         * modules/frexpl-nolibm-tests (Files): Likewise.
35574         * modules/frexpl-tests (Files): Likewise.
35575         * modules/fseek-tests (Files): Likewise.
35576         * modules/fseeko-tests (Files): Likewise.
35577         * modules/fstrcmp-tests (Files): Likewise.
35578         * modules/fsync-tests (Files): Likewise.
35579         * modules/ftell-tests (Files): Likewise.
35580         * modules/ftello-tests (Files): Likewise.
35581         * modules/func-tests (Files): Likewise.
35582         * modules/futimens-tests (Files): Likewise.
35583         * modules/fwritable-tests (Files): Likewise.
35584         * modules/fwriting-tests (Files): Likewise.
35585         * modules/getcwd-tests (Files): Likewise.
35586         * modules/getdate-tests (Files): Likewise.
35587         * modules/getdelim-tests (Files): Likewise.
35588         * modules/getdtablesize-tests (Files): Likewise.
35589         * modules/getgroups-tests (Files): Likewise.
35590         * modules/getline-tests (Files): Likewise.
35591         * modules/getndelim2-tests (Files): Likewise.
35592         * modules/glob-tests (Files): Likewise.
35593         * modules/hash-tests (Files): Likewise.
35594         * modules/i-ring-tests (Files): Likewise.
35595         * modules/iconv-tests (Files): Likewise.
35596         * modules/iconv_open-utf-tests (Files): Likewise.
35597         * modules/idpriv-drop-tests (Files): Likewise.
35598         * modules/idpriv-droptemp-tests (Files): Likewise.
35599         * modules/inet_ntop-tests (Files): Likewise.
35600         * modules/inet_pton-tests (Files): Likewise.
35601         * modules/isblank-tests (Files): Likewise.
35602         * modules/isfinite-tests (Files): Likewise.
35603         * modules/isinf-tests (Files): Likewise.
35604         * modules/isnan-tests (Files): Likewise.
35605         * modules/isnand-nolibm-tests (Files): Likewise.
35606         * modules/isnand-tests (Files): Likewise.
35607         * modules/isnanf-nolibm-tests (Files): Likewise.
35608         * modules/isnanf-tests (Files): Likewise.
35609         * modules/isnanl-nolibm-tests (Files): Likewise.
35610         * modules/isnanl-tests (Files): Likewise.
35611         * modules/lchown-tests (Files): Likewise.
35612         * modules/ldexpl-tests (Files): Likewise.
35613         * modules/link-tests (Files): Likewise.
35614         * modules/linkat-tests (Files): Likewise.
35615         * modules/linked-list-tests (Files): Likewise.
35616         * modules/linkedhash-list-tests (Files): Likewise.
35617         * modules/localename-tests (Files): Likewise.
35618         * modules/lseek-tests (Files): Likewise.
35619         * modules/lstat-tests (Files): Likewise.
35620         * modules/mbmemcasecmp-tests (Files): Likewise.
35621         * modules/mbmemcasecoll-tests (Files): Likewise.
35622         * modules/mbrtowc-tests (Files): Likewise.
35623         * modules/mbscasecmp-tests (Files): Likewise.
35624         * modules/mbscasestr-tests (Files): Likewise.
35625         * modules/mbschr-tests (Files): Likewise.
35626         * modules/mbscspn-tests (Files): Likewise.
35627         * modules/mbsinit-tests (Files): Likewise.
35628         * modules/mbsncasecmp-tests (Files): Likewise.
35629         * modules/mbsnrtowcs-tests (Files): Likewise.
35630         * modules/mbspbrk-tests (Files): Likewise.
35631         * modules/mbspcasecmp-tests (Files): Likewise.
35632         * modules/mbsrchr-tests (Files): Likewise.
35633         * modules/mbsrtowcs-tests (Files): Likewise.
35634         * modules/mbsspn-tests (Files): Likewise.
35635         * modules/mbsstr-tests (Files): Likewise.
35636         * modules/memchr-tests (Files): Likewise.
35637         * modules/memchr2-tests (Files): Likewise.
35638         * modules/memcmp-tests (Files): Likewise.
35639         * modules/memmem-tests (Files): Likewise.
35640         * modules/memrchr-tests (Files): Likewise.
35641         * modules/mkdir-tests (Files): Likewise.
35642         * modules/mkfifo-tests (Files): Likewise.
35643         * modules/mkfifoat-tests (Files): Likewise.
35644         * modules/mknod-tests (Files): Likewise.
35645         * modules/nanosleep-tests (Files): Likewise.
35646         * modules/nl_langinfo-tests (Files): Likewise.
35647         * modules/obstack-printf-tests (Files): Likewise.
35648         * modules/open-tests (Files): Likewise.
35649         * modules/openat-tests (Files): Likewise.
35650         * modules/pipe-filter-gi-tests (Files): Likewise.
35651         * modules/pipe-filter-ii-tests (Files): Likewise.
35652         * modules/pipe2-tests (Files): Likewise.
35653         * modules/popen-safer-tests (Files): Likewise.
35654         * modules/popen-tests (Files): Likewise.
35655         * modules/posixtm-tests (Files): Likewise.
35656         * modules/pread-tests (Files): Likewise.
35657         * modules/printf-frexp-tests (Files): Likewise.
35658         * modules/printf-frexpl-tests (Files): Likewise.
35659         * modules/printf-posix-tests (Files): Likewise.
35660         * modules/priv-set-tests (Files): Likewise.
35661         * modules/quotearg-tests (Files): Likewise.
35662         * modules/random_r-tests (Files): Likewise.
35663         * modules/rawmemchr-tests (Files): Likewise.
35664         * modules/rbtree-list-tests (Files): Likewise.
35665         * modules/rbtree-oset-tests (Files): Likewise.
35666         * modules/rbtreehash-list-tests (Files): Likewise.
35667         * modules/readlink-tests (Files): Likewise.
35668         * modules/remove-tests (Files): Likewise.
35669         * modules/rename-tests (Files): Likewise.
35670         * modules/renameat-tests (Files): Likewise.
35671         * modules/rmdir-tests (Files): Likewise.
35672         * modules/round-tests (Files): Likewise.
35673         * modules/roundf-tests (Files): Likewise.
35674         * modules/roundl-tests (Files): Likewise.
35675         * modules/safe-alloc-tests (Files): Likewise.
35676         * modules/setenv-tests (Files): Likewise.
35677         * modules/sigaction-tests (Files): Likewise.
35678         * modules/signbit-tests (Files): Likewise.
35679         * modules/sleep-tests (Files): Likewise.
35680         * modules/snprintf-posix-tests (Files): Likewise.
35681         * modules/snprintf-tests (Files): Likewise.
35682         * modules/sprintf-posix-tests (Files): Likewise.
35683         * modules/stat-tests (Files): Likewise.
35684         * modules/stat-time-tests (Files): Likewise.
35685         * modules/strcasestr-tests (Files): Likewise.
35686         * modules/strchrnul-tests (Files): Likewise.
35687         * modules/strerror-tests (Files): Likewise.
35688         * modules/striconv-tests (Files): Likewise.
35689         * modules/striconveh-tests (Files): Likewise.
35690         * modules/striconveha-tests (Files): Likewise.
35691         * modules/strsignal-tests (Files): Likewise.
35692         * modules/strstr-tests (Files): Likewise.
35693         * modules/strtod-tests (Files): Likewise.
35694         * modules/strverscmp-tests (Files): Likewise.
35695         * modules/symlink-tests (Files): Likewise.
35696         * modules/symlinkat-tests (Files): Likewise.
35697         * modules/trunc-tests (Files): Likewise.
35698         * modules/truncf-tests (Files): Likewise.
35699         * modules/truncl-tests (Files): Likewise.
35700         * modules/uname-tests (Files): Likewise.
35701         * modules/unicase/cased-tests (Files): Likewise.
35702         * modules/unicase/ignorable-tests (Files): Likewise.
35703         * modules/unicase/locale-language-tests (Files): Likewise.
35704         * modules/unicase/tolower-tests (Files): Likewise.
35705         * modules/unicase/totitle-tests (Files): Likewise.
35706         * modules/unicase/toupper-tests (Files): Likewise.
35707         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35708         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35709         * modules/unicase/u8-casefold-tests (Files): Likewise.
35710         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35711         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35712         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35713         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35714         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35715         * modules/unicase/u8-tolower-tests (Files): Likewise.
35716         * modules/unicase/u8-totitle-tests (Files): Likewise.
35717         * modules/unicase/u8-toupper-tests (Files): Likewise.
35718         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35719         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35720         * modules/unicase/u16-casefold-tests (Files): Likewise.
35721         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35722         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35723         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35724         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35725         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35726         * modules/unicase/u16-tolower-tests (Files): Likewise.
35727         * modules/unicase/u16-totitle-tests (Files): Likewise.
35728         * modules/unicase/u16-toupper-tests (Files): Likewise.
35729         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35730         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35731         * modules/unicase/u32-casefold-tests (Files): Likewise.
35732         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35733         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35734         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35735         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35736         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35737         * modules/unicase/u32-tolower-tests (Files): Likewise.
35738         * modules/unicase/u32-totitle-tests (Files): Likewise.
35739         * modules/unicase/u32-toupper-tests (Files): Likewise.
35740         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35741         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35742         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35743         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35744         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35745         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35746         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35747         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35748         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35749         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35750         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35751         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35752         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35753         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35754         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35755         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35756         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35757         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35758         * modules/unictype/block-list-tests (Files): Likewise.
35759         * modules/unictype/block-of-tests (Files): Likewise.
35760         * modules/unictype/block-test-tests (Files): Likewise.
35761         * modules/unictype/category-C-tests (Files): Likewise.
35762         * modules/unictype/category-Cc-tests (Files): Likewise.
35763         * modules/unictype/category-Cf-tests (Files): Likewise.
35764         * modules/unictype/category-Cn-tests (Files): Likewise.
35765         * modules/unictype/category-Co-tests (Files): Likewise.
35766         * modules/unictype/category-Cs-tests (Files): Likewise.
35767         * modules/unictype/category-L-tests (Files): Likewise.
35768         * modules/unictype/category-Ll-tests (Files): Likewise.
35769         * modules/unictype/category-Lm-tests (Files): Likewise.
35770         * modules/unictype/category-Lo-tests (Files): Likewise.
35771         * modules/unictype/category-Lt-tests (Files): Likewise.
35772         * modules/unictype/category-Lu-tests (Files): Likewise.
35773         * modules/unictype/category-M-tests (Files): Likewise.
35774         * modules/unictype/category-Mc-tests (Files): Likewise.
35775         * modules/unictype/category-Me-tests (Files): Likewise.
35776         * modules/unictype/category-Mn-tests (Files): Likewise.
35777         * modules/unictype/category-N-tests (Files): Likewise.
35778         * modules/unictype/category-Nd-tests (Files): Likewise.
35779         * modules/unictype/category-Nl-tests (Files): Likewise.
35780         * modules/unictype/category-No-tests (Files): Likewise.
35781         * modules/unictype/category-P-tests (Files): Likewise.
35782         * modules/unictype/category-Pc-tests (Files): Likewise.
35783         * modules/unictype/category-Pd-tests (Files): Likewise.
35784         * modules/unictype/category-Pe-tests (Files): Likewise.
35785         * modules/unictype/category-Pf-tests (Files): Likewise.
35786         * modules/unictype/category-Pi-tests (Files): Likewise.
35787         * modules/unictype/category-Po-tests (Files): Likewise.
35788         * modules/unictype/category-Ps-tests (Files): Likewise.
35789         * modules/unictype/category-S-tests (Files): Likewise.
35790         * modules/unictype/category-Sc-tests (Files): Likewise.
35791         * modules/unictype/category-Sk-tests (Files): Likewise.
35792         * modules/unictype/category-Sm-tests (Files): Likewise.
35793         * modules/unictype/category-So-tests (Files): Likewise.
35794         * modules/unictype/category-Z-tests (Files): Likewise.
35795         * modules/unictype/category-Zl-tests (Files): Likewise.
35796         * modules/unictype/category-Zp-tests (Files): Likewise.
35797         * modules/unictype/category-Zs-tests (Files): Likewise.
35798         * modules/unictype/category-and-not-tests (Files): Likewise.
35799         * modules/unictype/category-and-tests (Files): Likewise.
35800         * modules/unictype/category-byname-tests (Files): Likewise.
35801         * modules/unictype/category-name-tests (Files): Likewise.
35802         * modules/unictype/category-none-tests (Files): Likewise.
35803         * modules/unictype/category-of-tests (Files): Likewise.
35804         * modules/unictype/category-or-tests (Files): Likewise.
35805         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35806         * modules/unictype/combining-class-tests (Files): Likewise.
35807         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35808         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35809         * modules/unictype/ctype-blank-tests (Files): Likewise.
35810         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35811         * modules/unictype/ctype-digit-tests (Files): Likewise.
35812         * modules/unictype/ctype-graph-tests (Files): Likewise.
35813         * modules/unictype/ctype-lower-tests (Files): Likewise.
35814         * modules/unictype/ctype-print-tests (Files): Likewise.
35815         * modules/unictype/ctype-punct-tests (Files): Likewise.
35816         * modules/unictype/ctype-space-tests (Files): Likewise.
35817         * modules/unictype/ctype-upper-tests (Files): Likewise.
35818         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35819         * modules/unictype/decimal-digit-tests (Files): Likewise.
35820         * modules/unictype/digit-tests (Files): Likewise.
35821         * modules/unictype/mirror-tests (Files): Likewise.
35822         * modules/unictype/numeric-tests (Files): Likewise.
35823         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35824         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35825         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35826         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35827         Likewise.
35828         * modules/unictype/property-bidi-block-separator-tests (Files):
35829         Likewise.
35830         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35831         Likewise.
35832         * modules/unictype/property-bidi-common-separator-tests (Files):
35833         Likewise.
35834         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35835         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35836         Likewise.
35837         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35838         Likewise.
35839         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35840         Likewise.
35841         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35842         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35843         Likewise.
35844         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35845         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35846         Likewise.
35847         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35848         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35849         * modules/unictype/property-bidi-segment-separator-tests (Files):
35850         Likewise.
35851         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35852         * modules/unictype/property-byname-tests (Files): Likewise.
35853         * modules/unictype/property-combining-tests (Files): Likewise.
35854         * modules/unictype/property-composite-tests (Files): Likewise.
35855         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35856         * modules/unictype/property-dash-tests (Files): Likewise.
35857         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35858         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35859         Likewise.
35860         * modules/unictype/property-deprecated-tests (Files): Likewise.
35861         * modules/unictype/property-diacritic-tests (Files): Likewise.
35862         * modules/unictype/property-extender-tests (Files): Likewise.
35863         * modules/unictype/property-format-control-tests (Files): Likewise.
35864         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35865         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35866         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35867         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35868         * modules/unictype/property-hyphen-tests (Files): Likewise.
35869         * modules/unictype/property-id-continue-tests (Files): Likewise.
35870         * modules/unictype/property-id-start-tests (Files): Likewise.
35871         * modules/unictype/property-ideographic-tests (Files): Likewise.
35872         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35873         * modules/unictype/property-ids-trinary-operator-tests (Files):
35874         Likewise.
35875         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35876         * modules/unictype/property-iso-control-tests (Files): Likewise.
35877         * modules/unictype/property-join-control-tests (Files): Likewise.
35878         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35879         * modules/unictype/property-line-separator-tests (Files): Likewise.
35880         * modules/unictype/property-logical-order-exception-tests (Files):
35881         Likewise.
35882         * modules/unictype/property-lowercase-tests (Files): Likewise.
35883         * modules/unictype/property-math-tests (Files): Likewise.
35884         * modules/unictype/property-non-break-tests (Files): Likewise.
35885         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35886         * modules/unictype/property-numeric-tests (Files): Likewise.
35887         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35888         * modules/unictype/property-other-default-ignorable-code-point-tests
35889         (Files): Likewise.
35890         * modules/unictype/property-other-grapheme-extend-tests (Files):
35891         Likewise.
35892         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35893         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35894         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35895         * modules/unictype/property-other-math-tests (Files): Likewise.
35896         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35897         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35898         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35899         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35900         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35901         * modules/unictype/property-private-use-tests (Files): Likewise.
35902         * modules/unictype/property-punctuation-tests (Files): Likewise.
35903         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35904         * modules/unictype/property-radical-tests (Files): Likewise.
35905         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35906         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35907         * modules/unictype/property-space-tests (Files): Likewise.
35908         * modules/unictype/property-terminal-punctuation-tests (Files):
35909         Likewise.
35910         * modules/unictype/property-test-tests (Files): Likewise.
35911         * modules/unictype/property-titlecase-tests (Files): Likewise.
35912         * modules/unictype/property-unassigned-code-value-tests (Files):
35913         Likewise.
35914         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35915         * modules/unictype/property-uppercase-tests (Files): Likewise.
35916         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35917         * modules/unictype/property-white-space-tests (Files): Likewise.
35918         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35919         * modules/unictype/property-xid-start-tests (Files): Likewise.
35920         * modules/unictype/property-zero-width-tests (Files): Likewise.
35921         * modules/unictype/scripts-tests (Files): Likewise.
35922         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35923         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35924         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35925         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35926         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35927         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35928         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35929         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35930         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35931         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35932         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35933         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35934         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35935         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35936         * modules/uninorm/composition-tests (Files): Likewise.
35937         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35938         * modules/uninorm/decomposition-tests (Files): Likewise.
35939         * modules/uninorm/filter-tests (Files): Likewise.
35940         * modules/uninorm/nfc-tests (Files): Likewise.
35941         * modules/uninorm/nfd-tests (Files): Likewise.
35942         * modules/uninorm/nfkc-tests (Files): Likewise.
35943         * modules/uninorm/nfkd-tests (Files): Likewise.
35944         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35945         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35946         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35947         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35948         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35949         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35950         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35951         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35952         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35953         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35954         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35955         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35956         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35957         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35958         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35959         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35960         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35961         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35962         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35963         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35964         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35965         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35966         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35967         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35968         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35969         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35970         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35971         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35972         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35973         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35974         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35975         * modules/uniwidth/u8-width-tests (Files): Likewise.
35976         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35977         * modules/uniwidth/u16-width-tests (Files): Likewise.
35978         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35979         * modules/uniwidth/u32-width-tests (Files): Likewise.
35980         * modules/uniwidth/width-tests (Files): Likewise.
35981         * modules/unlink-tests (Files): Likewise.
35982         * modules/unsetenv-tests (Files): Likewise.
35983         * modules/usleep-tests (Files): Likewise.
35984         * modules/utimens-tests (Files): Likewise.
35985         * modules/utimensat-tests (Files): Likewise.
35986         * modules/vasnprintf-posix-tests (Files): Likewise.
35987         * modules/vasnprintf-tests (Files): Likewise.
35988         * modules/vasprintf-posix-tests (Files): Likewise.
35989         * modules/vasprintf-tests (Files): Likewise.
35990         * modules/vdprintf-posix-tests (Files): Likewise.
35991         * modules/vfprintf-posix-tests (Files): Likewise.
35992         * modules/vprintf-posix-tests (Files): Likewise.
35993         * modules/vsnprintf-posix-tests (Files): Likewise.
35994         * modules/vsnprintf-tests (Files): Likewise.
35995         * modules/vsprintf-posix-tests (Files): Likewise.
35996         * modules/wcrtomb-tests (Files): Likewise.
35997         * modules/wcsnrtombs-tests (Files): Likewise.
35998         * modules/wcsrtombs-tests (Files): Likewise.
35999         * modules/wctype-tests (Files): Likewise.
36000         * modules/wcwidth-tests (Files): Likewise.
36001         * modules/xmemdup0-tests (Files): Likewise.
36002         * modules/xprintf-posix-tests (Files): Likewise.
36003         * modules/xvasprintf-tests (Files): Likewise.
36004
36005 2009-12-24  Eric Blake  <ebb9@byu.net>
36006
36007         test-nanosleep: fix typo
36008         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36009         patch.
36010         Reported by Bruno Haible.
36011
36012 2009-12-24  Bruno Haible  <bruno@clisp.org>
36013
36014         Reduce namespace pollution on glibc systems.
36015         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36016         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36017         systems.
36018         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36019         <getopt.h> on glibc systems.
36020         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36021         systems.
36022         * lib/fcntl.c: Include <unistd.h> here instead.
36023
36024 2009-12-24  Bruno Haible  <bruno@clisp.org>
36025
36026         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36027
36028 2009-12-24  Eric Blake  <ebb9@byu.net>
36029
36030         tests: add signature checks
36031         * tests/signature.h (SIGNATURE_CHECK): New file.
36032         * modules/atexit-tests (Files): Use it.
36033         * modules/btowc-tests (Files): Likewise.
36034         * modules/canonicalize-lgpl-tests (Files): Likewise.
36035         * modules/ceilf-tests (Files): Likewise.
36036         * modules/ceill-tests (Files): Likewise.
36037         * modules/chown-tests (Files): Likewise.
36038         * modules/dprintf-posix-tests (Files): Likewise.
36039         * modules/dup2-tests (Files): Likewise.
36040         * modules/dup3-tests (Files): Likewise.
36041         * modules/duplocale-tests (Files): Likewise.
36042         * modules/fchdir-tests (Files): Likewise.
36043         * modules/fcntl-tests (Files): Likewise.
36044         * modules/fdopendir-tests (Files): Likewise.
36045         * modules/fflush-tests (Files): Likewise.
36046         * modules/flock-tests (Files): Likewise.
36047         * modules/floorf-tests (Files): Likewise.
36048         * modules/floorl-tests (Files): Likewise.
36049         * modules/fnmatch-tests (Files): Likewise.
36050         * modules/fopen-tests (Files): Likewise.
36051         * modules/fprintf-posix-tests (Files): Likewise.
36052         * modules/freopen-tests (Files): Likewise.
36053         * modules/frexp-nolibm-tests (Files): Likewise.
36054         * modules/frexp-tests (Files): Likewise.
36055         * modules/frexpl-nolibm-tests (Files): Likewise.
36056         * modules/frexpl-tests (Files): Likewise.
36057         * modules/fseek-tests (Files): Likewise.
36058         * modules/fseeko-tests (Files): Likewise.
36059         * modules/fsync-tests (Files): Likewise.
36060         * modules/ftell-tests (Files): Likewise.
36061         * modules/ftello-tests (Files): Likewise.
36062         * modules/futimens-tests (Files): Likewise.
36063         * modules/getaddrinfo-tests (Files): Likewise.
36064         * modules/getcwd-tests (Files): Likewise.
36065         * modules/getdelim-tests (Files): Likewise.
36066         * modules/getdtablesize-tests (Files): Likewise.
36067         * modules/getgroups-tests (Files): Likewise.
36068         * modules/gethostname-tests (Files): Likewise.
36069         * modules/getline-tests (Files): Likewise.
36070         * modules/getopt-posix-tests (Files): Likewise.
36071         * modules/gettimeofday-tests (Files): Likewise.
36072         * modules/glob-tests (Files): Likewise.
36073         * modules/iconv-tests (Files): Likewise.
36074         * modules/inet_ntop-tests (Files): Likewise.
36075         * modules/inet_pton-tests (Files): Likewise.
36076         * modules/isblank-tests (Files): Likewise.
36077         * modules/lchown-tests (Files): Likewise.
36078         * modules/ldexpl-tests (Files): Likewise.
36079         * modules/link-tests (Files): Likewise.
36080         * modules/linkat-tests (Files): Likewise.
36081         * modules/lseek-tests (Files): Likewise.
36082         * modules/lstat-tests (Files): Likewise.
36083         * modules/mbrtowc-tests (Files): Likewise.
36084         * modules/mbsinit-tests (Files): Likewise.
36085         * modules/mbsnrtowcs-tests (Files): Likewise.
36086         * modules/mbsrtowcs-tests (Files): Likewise.
36087         * modules/memchr-tests (Files): Likewise.
36088         * modules/memcmp-tests (Files): Likewise.
36089         * modules/memmem-tests (Files): Likewise.
36090         * modules/memrchr-tests (Files): Likewise.
36091         * modules/mkdir-tests (Files): Likewise.
36092         * modules/mkfifo-tests (Files): Likewise.
36093         * modules/mkfifoat-tests (Files): Likewise.
36094         * modules/mknod-tests (Files): Likewise.
36095         * modules/nanosleep-tests (Files): Likewise.
36096         * modules/nl_langinfo-tests (Files): Likewise.
36097         * modules/obstack-printf-tests (Files): Likewise.
36098         * modules/open-tests (Files): Likewise.
36099         * modules/openat-tests (Files): Likewise.
36100         * modules/perror-tests (Files): Likewise.
36101         * modules/pipe2-tests (Files): Likewise.
36102         * modules/poll-tests (Files): Likewise.
36103         * modules/popen-tests (Files): Likewise.
36104         * modules/posix_spawn-tests (Files): Likewise.
36105         * modules/posix_spawnp-tests (Files): Likewise.
36106         * modules/pread-tests (Files): Likewise.
36107         * modules/printf-posix-tests (Files): Likewise.
36108         * modules/pty-tests (Files): Likewise.
36109         * modules/random_r-tests (Files): Likewise.
36110         * modules/rawmemchr-tests (Files): Likewise.
36111         * modules/readlink-tests (Files): Likewise.
36112         * modules/remove-tests (Files): Likewise.
36113         * modules/rename-tests (Files): Likewise.
36114         * modules/renameat-tests (Files): Likewise.
36115         * modules/rmdir-tests (Files): Likewise.
36116         * modules/round-tests (Files): Likewise.
36117         * modules/roundf-tests (Files): Likewise.
36118         * modules/roundl-tests (Files): Likewise.
36119         * modules/select-tests (Files): Likewise.
36120         * modules/setenv-tests (Files): Likewise.
36121         * modules/sigaction-tests (Files): Likewise.
36122         * modules/sleep-tests (Files): Likewise.
36123         * modules/snprintf-posix-tests (Files): Likewise.
36124         * modules/snprintf-tests (Files): Likewise.
36125         * modules/sprintf-posix-tests (Files): Likewise.
36126         * modules/stat-tests (Files): Likewise.
36127         * modules/strcasestr-tests (Files): Likewise.
36128         * modules/strchrnul-tests (Files): Likewise.
36129         * modules/strerror-tests (Files): Likewise.
36130         * modules/strsignal-tests (Files): Likewise.
36131         * modules/strstr-tests (Files): Likewise.
36132         * modules/strtod-tests (Files): Likewise.
36133         * modules/strverscmp-tests (Files): Likewise.
36134         * modules/symlink-tests (Files): Likewise.
36135         * modules/symlinkat-tests (Files): Likewise.
36136         * modules/times-tests (Files): Likewise.
36137         * modules/trunc-tests (Files): Likewise.
36138         * modules/truncf-tests (Files): Likewise.
36139         * modules/truncl-tests (Files): Likewise.
36140         * modules/tsearch-tests (Files): Likewise.
36141         * modules/uname-tests (Files): Likewise.
36142         * modules/unlink-tests (Files): Likewise.
36143         * modules/unsetenv-tests (Files): Likewise.
36144         * modules/usleep-tests (Files): Likewise.
36145         * modules/utimensat-tests (Files): Likewise.
36146         * modules/vasprintf-tests (Files): Likewise.
36147         * modules/vdprintf-posix-tests (Files): Likewise.
36148         * modules/vfprintf-posix-tests (Files): Likewise.
36149         * modules/vprintf-posix-tests (Files): Likewise.
36150         * modules/vsnprintf-posix-tests (Files): Likewise.
36151         * modules/vsnprintf-tests (Files): Likewise.
36152         * modules/vsprintf-posix-tests (Files): Likewise.
36153         * modules/wcrtomb-tests (Files): Likewise.
36154         * modules/wcsnrtombs-tests (Files): Likewise.
36155         * modules/wcsrtombs-tests (Files): Likewise.
36156         * modules/wcwidth-tests (Files): Likewise.
36157         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36158         * tests/test-isinf.c (isinf): Likewise.
36159         * tests/test-isnan.c (isnan): Likewise.
36160         * tests/test-signbit.c (signbit): Likewise.
36161         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36162         declaration, either as macro or with correct signature.
36163         (select): Ensure function under test is declared with correct
36164         signature in correct header.
36165         * tests/test-atexit.c (atexit): Likewise.
36166         * tests/test-btowc.c (btowc): Likewise.
36167         * tests/test-canonicalize-lgpl.c (realpath)
36168         (canonicalize_file_name): Likewise.
36169         * tests/test-ceilf1.c (ceilf): Likewise.
36170         * tests/test-ceill.c (ceill): Likewise.
36171         * tests/test-chown.c (chown): Likewise.
36172         * tests/test-dprintf-posix.c (dprintf): Likewise.
36173         * tests/test-dup2.c (dup2): Likewise.
36174         * tests/test-dup3.c (dup3): Likewise.
36175         * tests/test-duplocale.c (duplocale): Likewise.
36176         * tests/test-fchdir.c (fchdir): Likewise.
36177         * tests/test-fchownat.c (fchownat): Likewise.
36178         * tests/test-fcntl.c (fcntl): Likewise.
36179         * tests/test-fdopendir.c (fdopendir): Likewise.
36180         * tests/test-fflush.c (fflush): Likewise.
36181         * tests/test-flock.c (flock): Likewise.
36182         * tests/test-floorf1.c (floorf): Likewise.
36183         * tests/test-floorl.c (floorl): Likewise.
36184         * tests/test-fnmatch.c (fnmatch): Likewise.
36185         * tests/test-fopen.c (fopen): Likewise.
36186         * tests/test-fprintf-posix.c (fprintf): Likewise.
36187         * tests/test-freopen.c (freopen): Likewise.
36188         * tests/test-frexp.c (frexp): Likewise.
36189         * tests/test-frexpl.c (frexpl): Likewise.
36190         * tests/test-fseek.c (fseek): Likewise.
36191         * tests/test-fseeko.c (fseeko): Likewise.
36192         * tests/test-fstatat.c (fstatat): Likewise.
36193         * tests/test-fsync.c (fsync): Likewise.
36194         * tests/test-ftell.c (ftell): Likewise.
36195         * tests/test-ftello.c (ftello): Likewise.
36196         * tests/test-futimens.c (futimens): Likewise.
36197         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36198         (gai_strerror): Likewise.
36199         * tests/test-getcwd.c (getcwd): Likewise.
36200         * tests/test-getdelim.c (getdelim): Likewise.
36201         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36202         * tests/test-getgroups.c (getgroups): Likewise.
36203         * tests/test-gethostname.c (gethostname): Likewise.
36204         * tests/test-getline.c (getline): Likewise.
36205         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36206         Likewise.
36207         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36208         * tests/test-glob.c (glob, globfree): Likewise.
36209         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36210         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36211         * tests/test-inet_pton.c (inet_pton): Likewise.
36212         * tests/test-isblank.c (isblank): Likewise.
36213         * tests/test-lchown.c (lchown): Likewise.
36214         * tests/test-ldexpl.c (ldexpl): Likewise.
36215         * tests/test-link.c (link): Likewise.
36216         * tests/test-linkat.c (linkat): Likewise.
36217         * tests/test-lseek.c (lseek): Likewise.
36218         * tests/test-lstat.c (lstat): Likewise.
36219         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36220         * tests/test-mbsinit.c (mbsinit): Likewise.
36221         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36222         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36223         * tests/test-memchr.c (memchr): Likewise.
36224         * tests/test-memcmp.c (memcmp): Likewise.
36225         * tests/test-memmem.c (memmem): Likewise.
36226         * tests/test-memrchr.c (memrchr): Likewise.
36227         * tests/test-mkdir.c (mkdir): Likewise.
36228         * tests/test-mkdirat.c (mkdirat): Likewise.
36229         * tests/test-mkfifo.c (mkfifo): Likewise.
36230         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36231         * tests/test-mknod.c (mknod): Likewise.
36232         * tests/test-nanosleep.c (nanosleep): Likewise.
36233         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36234         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36235         Likewise.
36236         * tests/test-open.c (open): Likewise.
36237         * tests/test-openat.c (openat): Likewise.
36238         * tests/test-perror.c (perror): Likewise.
36239         * tests/test-pipe2.c (pipe2): Likewise.
36240         * tests/test-poll.c (poll): Likewise.
36241         * tests/test-popen.c (popen, pclose): Likewise.
36242         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36243         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36244         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36245         (posix_spawn_file_actions_destroy)
36246         (posix_spawn_file_actions_addclose)
36247         (posix_spawn_file_actions_addopen)
36248         (posix_spawn_file_actions_adddup2): Likewise.
36249         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36250         * tests/test-pread.c (pread): Likewise.
36251         * tests/test-printf-posix.c (printf): Likewise.
36252         * tests/test-pty.c (openpty, forkpty): Likewise.
36253         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36254         (random_r): Likewise.
36255         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36256         * tests/test-readlink.c (readlink): Likewise.
36257         * tests/test-remove.c (remove): Likewise.
36258         * tests/test-rename.c (rename): Likewise.
36259         * tests/test-renameat.c (renameat): Likewise.
36260         * tests/test-rmdir.c (rmdir): Likewise.
36261         * tests/test-round1.c (round): Likewise.
36262         * tests/test-roundf1.c (roundf): Likewise.
36263         * tests/test-roundl.c (roundl): Likewise.
36264         * tests/test-setenv.c (setenv): Likewise.
36265         * tests/test-sigaction.c (sigaction): Likewise.
36266         * tests/test-sleep.c (sleep): Likewise.
36267         * tests/test-snprintf.c (snprintf): Likewise.
36268         * tests/test-sprintf-posix.c (sprintf): Likewise.
36269         * tests/test-stat.c (stat): Likewise.
36270         * tests/test-stpncpy.c (stpncpy): Likewise.
36271         * tests/test-strcasestr.c (strcasestr): Likewise.
36272         * tests/test-strchrnul.c (strchrnul): Likewise.
36273         * tests/test-strerror.c (strerror): Likewise.
36274         * tests/test-strsignal.c (strsignal): Likewise.
36275         * tests/test-strstr.c (strstr): Likewise.
36276         * tests/test-strtod.c (strtod): Likewise.
36277         * tests/test-strverscmp.c (strverscmp): Likewise.
36278         * tests/test-symlink.c (symlink): Likewise.
36279         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36280         * tests/test-times.c (times): Likewise.
36281         * tests/test-trunc1.c (trunc): Likewise.
36282         * tests/test-truncf1.c (truncf): Likewise.
36283         * tests/test-truncl.c (truncl): Likewise.
36284         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36285         Likewise.
36286         * tests/test-uname.c (uname): Likewise.
36287         * tests/test-unlink.c (unlink): Likewise.
36288         * tests/test-unlinkat.c (unlinkat): Likewise.
36289         * tests/test-unsetenv.c (unsetenv): Likewise.
36290         * tests/test-usleep.c (usleep): Likewise.
36291         * tests/test-utimensat.c (utimensat): Likewise.
36292         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36293         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36294         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36295         * tests/test-vprintf-posix.c (vprintf): Likewise.
36296         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36297         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36298         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36299         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36300         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36301         * tests/test-wcwidth.c (wcwidth): Likewise.
36302
36303         build: pull in conditional headers during GNULIB_POSIXCHECK
36304         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36305         definitions from any conditionally-included headers.
36306         * lib/stdlib.in.h (includes): Likewise.
36307         * lib/unistd.in.h (includes): Likewise.
36308
36309 2009-12-24  Bruno Haible  <bruno@clisp.org>
36310
36311         * tests/test-argv-iter.c: Include header file being tested immediately
36312         after config.h.
36313         * tests/test-base64.c: Likewise.
36314         * tests/test-flock.c: Likewise.
36315         * tests/test-fsync.c: Likewise.
36316         * tests/test-getdate.c: Likewise.
36317         * tests/test-getndelim2.c: Likewise.
36318         * tests/test-isfinite.c: Likewise.
36319         * tests/test-isinf.c: Likewise.
36320         * tests/test-strerror.c: Likewise.
36321         * tests/test-strsignal.c: Likewise.
36322
36323 2009-12-23  Eric Blake  <ebb9@byu.net>
36324
36325         unistd: work around cygwin bug
36326         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36327         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36328         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36329
36330 2009-12-23  Bruno Haible  <bruno@clisp.org>
36331
36332         localename: More tests.
36333         * tests/test-localename.c (SIZEOF): New macro.
36334         (categories): New variable.
36335         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36336         test_locale_name_default): Add test w.r.t. thread locale.
36337         (test_locale_name_thread): New function.
36338         (main): Invoke it.
36339
36340         localename: Make aware of thread locale.
36341         * lib/localename.h (gl_locale_name_thread): New declaration.
36342         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36343         behaviour with respect to thread locale.
36344         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36345         <langinfo.h>, glthread/lock.h.
36346         (SIZE_BITS): New macro.
36347         (string_hash): New function.
36348         (struct hash_node): New type.
36349         (HASH_TABLE_SIZE): New macro.
36350         (struniq_hash_table, struniq_lock): New variables.
36351         (struniq): New function.
36352         (gl_locale_name_thread): New function.
36353         (gl_locale_name): Invoke it.
36354         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36355         * modules/localename (Depends-on): Add lock.
36356         Reported by Mike Gran <spk121@yahoo.com>.
36357
36358 2009-12-23  Eric Blake  <ebb9@byu.net>
36359
36360         va-args: new module
36361         * modules/va-args: New file.
36362         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36363         * MODULES.html.sh (Core language properties): Mention it.
36364
36365         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36366         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36367         named alias for __attribute__((__unused__)).
36368         * lib/chown.c: Update client.
36369         * lib/fchmodat.c: Likewise.
36370         * lib/fts.c: Likewise.
36371         * lib/getdate.y: Likewise.
36372         * lib/getgroups.c: Likewise.
36373         * lib/getopt.c: Likewise.
36374         * lib/getugroups.c: Likewise.
36375         * lib/mkdir.c: Likewise.
36376         * lib/mkfifo.c: Likewise.
36377         * lib/mkfifoat.c: Likewise.
36378         * lib/mknod.c: Likewise.
36379         * lib/mknodat.c: Likewise.
36380         * lib/readlink.c: Likewise.
36381         * lib/se-context.in.h: Likewise.
36382         * lib/se-selinux.in.h: Likewise.
36383         * lib/sockets.c: Likewise.
36384         * lib/symlink.c: Likewise.
36385         * lib/symlinkat.c: Likewise.
36386         * lib/unicodeio.c: Likewise.
36387         * lib/unistr.h: Likewise.
36388         * tests/test-areadlink.c: Likewise.
36389         * tests/test-areadlinkat.c: Likewise.
36390         * tests/test-filenamecat.c: Likewise.
36391         * tests/test-fseeko.c: Likewise.
36392         * tests/test-ftello.c: Likewise.
36393         * tests/test-getdate.c: Likewise.
36394         * tests/test-getgroups.c: Likewise.
36395         * tests/test-gethostname.c: Likewise.
36396         * tests/test-quotearg.c: Likewise.
36397         * tests/test-version-etc.c: Likewise.
36398         * tests/test-xalloc-die.c: Likewise.
36399         * tests/test-xfprintf-posix.c: Likewise.
36400         * tests/test-xprintf-posix.c: Likewise.
36401         * tests/test-xvasprintf.c: Likewise.
36402
36403         tests: avoid compiler warnings
36404         * tests/test-fcntl.c (main): Delete unused parameters.
36405         * tests/test-freopen-safer.c (main): Likewise.
36406         * tests/test-xalloc-die.c (main): Mark unused parameters.
36407         * tests/test-fseeko.c (main): Likewise.
36408         * tests/test-ftello.c (main): Likewise.
36409         * tests/test-nanosleep.c (main): Avoid declaration warning.
36410         * tests/test-sleep.c (main): Likewise.
36411         * tests/test-unsetenv.c (main): Silence warning about string
36412         literal.
36413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36414
36415 2009-12-23  Bruno Haible  <bruno@clisp.org>
36416
36417         * tests/test-localename.c (test_locale_name): New function, extracted
36418         from main. Also test mixed situations.
36419         (test_locale_name_posix, test_locale_name_environ,
36420         test_locale_name_default): New functions.
36421         (main): Invoke them all.
36422         * modules/localename-tests (configure.ac): Test for newlocale.
36423
36424 2009-12-23  Bruno Haible  <bruno@clisp.org>
36425
36426         unistd: Ensure getcwd gets declared before being overridden.
36427         * lib/unistd.in.h: Conditionally include <io.h>.
36428
36429 2009-12-22  Bruno Haible  <bruno@clisp.org>
36430
36431         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36432         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36433         (gl_WCHAR_H): Invoke it.
36434         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36435         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36436         Reported by Karl Berry <karl@freefriends.org>.
36437
36438 2009-12-22  Eric Blake  <ebb9@byu.net>
36439
36440         math, unistd: avoid redundant includes
36441         * lib/math.in.h (isnan): No need to re-include <math.h>.
36442         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36443
36444         getsubopt: work around cygwin bug
36445         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36446         avoid conflicting with system getsubopt.
36447         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36448         bug.
36449
36450         getopt: synchronize from glibc
36451         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36452         parameter order.  Adjust all callers.
36453         (_getopt_internal_r, main): Adjust quoting in error messages.
36454         Drop considerations for outdated POSIX 1003.2 error message.
36455         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36456         callers.
36457         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36458
36459         test-getopt: test stderr behavior
36460         * modules/getopt-posix-tests (Depends-on): Add dup2.
36461         * tests/test-getopt.c (ASSERT): Avoid stderr.
36462         (main): Move stderr to a temporary file.
36463         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36464         Instead, add parameter to inform caller if output occurred.
36465         (test_getopt): Adjust all existing tests to expect silence, and
36466         add new tests of leading ":".
36467         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36468         glibc shortcomings with leading "-:" or "+:" in optstring.
36469         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36470         Likewise.
36471         * doc/posix-functions/getopt.texi (getopt): Likewise.
36472
36473         test-getopt: enhance test
36474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36475         supports optind=0.
36476         * tests/test-getopt.c (OPTIND_MIN): Move...
36477         * tests/test-getopt.h (OPTIND_MIN): ...here.
36478         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36479         Require that optind=0 works, since modern BSD supports it in
36480         addition to optreset, and since coreutils expects it.
36481         (test_getopt_long_only): New test.
36482         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36483         glibc shortcomings with 'W;', and enforcement of optind=0.
36484         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36485         Likewise.
36486
36487 2009-12-21  Bruno Haible  <bruno@clisp.org>
36488
36489         localename: Improvements for MacOS X and Cygwin.
36490         * lib/localename.h (gl_locale_name_environ): New declaration.
36491         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36492         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36493         (gl_locale_name_posix): Invoke it.
36494         (gl_locale_name_default): Add comments. Use Windows native API also on
36495         Cygwin.
36496
36497 2009-12-21  Bruno Haible  <bruno@clisp.org>
36498
36499         Update list of Win32 locale ids.
36500         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36501         (LANG_SAMI): Renamed from LANG_SAAMI.
36502         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36503         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36504         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36505         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36506         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36507         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36508         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36509         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36510         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36511         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36512         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36513         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36514         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36515         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36516         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36517         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36518         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36519         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36520         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36521         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36522         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36523         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36524         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36525         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36526         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36527         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36528         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36529         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36530         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36531         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36532         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36533         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36534         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36535         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36536         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36537         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36538         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36539         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36540         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36541         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36542         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36543         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36544         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36545         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36546         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36547         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36548         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36549         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36550         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36551         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36552         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36553         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36554         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36555         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36556         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36557         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36558         Add more languages and countries for Sami, Sorbian. Add more countries
36559         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36560         for Pashto. Change country for Syriac, Tswana.
36561
36562 2009-12-21  Eric Blake  <ebb9@byu.net>
36563
36564         test-utimens: avoid spurious failure
36565         * tests/test-chown.h (nap): Factor...
36566         * tests/nap.h: ...into new file.
36567         * tests/test-lchown.h (nap): Avoid duplication.
36568         * tests/test-utimens-common.h (nap): Use shared implementation,
36569         necessary on file systems with 1-second resolution.
36570         * modules/chown-tests (Files): Include new file.
36571         * modules/fdutimensat-tests (Files): Likewise.
36572         * modules/futimens-tests (Files): Likewise.
36573         * modules/lchown-tests (Files): Likewise.
36574         * modules/openat-tests (Files): Likewise.
36575         * modules/utimens-tests (Files): Likewise.
36576         * modules/utimensat-tests (Files): Likewise.
36577
36578 2009-12-19  Eric Blake  <ebb9@byu.net>
36579
36580         futimens, utimensat: work around Linux bug
36581         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36582         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36583         * lib/utimensat.c (rpl_utimensat): Work around it.
36584         * lib/futimens.c (rpl_futimens): Adjust comment.
36585
36586         utimens: work around Linux ctime bug
36587         * lib/utimens.c (detect_ctime_bug): New helper function.
36588         (update_timespec): Differentiate between workaround needed for
36589         this bug vs. what is needed for systems that lack utimensat.
36590         (fdutimens, lutimens): Work around bug.
36591
36592         utimens: check for ctime update
36593         * tests/test-utimens-common.h (check_ctime): Define.
36594         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36595         * tests/test-futimens.h (test_futimens): Likewise.
36596         * tests/test-lutimens.h (test_lutimens): Likewise.
36597         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36598         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36599
36600 2009-12-19  Bruno Haible  <bruno@clisp.org>
36601
36602         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36603         * tests/test-dprintf-posix2.sh: New file.
36604         * tests/test-dprintf-posix2.c: New file.
36605         * modules/dprintf-posix-tests (Files): Add them.
36606         (configure.ac): Check for getrlimit and setrlimit.
36607         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36608
36609 2009-12-19  Bruno Haible  <bruno@clisp.org>
36610
36611         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36612         * tests/test-fprintf-posix3.sh: New file.
36613         * tests/test-fprintf-posix3.c: New file.
36614         * modules/fprintf-posix-tests (Files): Add them.
36615         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36616
36617 2009-12-19  Eric Blake  <ebb9@byu.net>
36618
36619         dirfd: fix prototype
36620         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36621         * lib/dirfd.c (dirfd): Likewise.
36622
36623         canonicalize: reduce memory usage
36624         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36625         allocation to size.
36626         Reported by Solar Designer <solar@openwall.com>.
36627
36628 2009-12-19  Bruno Haible  <bruno@clisp.org>
36629
36630         New module attribute 'Applicability'.
36631         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36632         * gnulib-tool: New option --extract-applicability.
36633         (func_usage): Document it.
36634         (sed_extract_prog): Recognize it.
36635         (func_get_applicability): New function.
36636         (func_import): Generalize handling of 'link-warning' module.
36637         * modules/link-warning (Applicability): New section.
36638         * modules/arg-nonnull (Applicability): New section.
36639         Repoted by Simon Josefsson <simon@josefsson.org>.
36640
36641 2009-12-19  Bruno Haible  <bruno@clisp.org>
36642
36643         fflush: tweak
36644         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36645         * lib/fseeko.c (rpl_fseeko): Likewise.
36646
36647 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36648
36649         * lib/gl_list.h: Fix typo in comment.
36650
36651 2009-12-16  Eric Blake  <ebb9@byu.net>
36652
36653         fcntl: use to simplify other modules
36654         * modules/cloexec (Depends-on): Add fcntl.
36655         * modules/fchdir (Depends-on): Likewise.
36656         * modules/fd-safer-flag (Depends-on): Likewise.
36657         * modules/unistd-safer (Depends-on): Likewise.
36658         * modules/dup3 (configure.ac): Set module indicator.
36659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36660         missing.
36661         * lib/fchdir.c (_gl_register_dup): Fix comment.
36662         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36663         * lib/dup-safer.c (dup_safer): Likewise.
36664         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36665         * lib/dup3.c (dup3): Likewise.
36666         * tests/test-fchdir.c (main): Enhance test.
36667         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36668
36669         fcntl: port portions of fcntl to mingw
36670         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36671         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36672         replacement for mingw.
36673         * modules/fcntl (Description): Update.
36674         (Depends-on): Add dup2.
36675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36676         * modules/fcntl-h (Makefile.am): Substitute it.
36677         * lib/fcntl.in.h (fcntl): Update declaration.
36678         (F_DUPFD, F_GETFD): New macros, when needed.
36679         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36680         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36681         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36682         we now guarantee.
36683
36684         fcntl: work around cygwin bug in F_DUPFD
36685         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36686         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36687         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36688         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36689         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36690
36691         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36692         * modules/fcntl (Files): List new files.
36693         (configure.ac): Run a test.
36694         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36695         * lib/fcntl.c (rpl_fcntl): Likewise.
36696         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36697         (gl_FCNTL_H): Always replace fcntl.h.
36698         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36699         * lib/fcntl.in.h (fcntl): Declare replacement.
36700         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36701         needed, plus a witness.
36702         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36703         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36704         * tests/test-fcntl.c: New file.
36705         * modules/fcntl-tests: Likewise.
36706
36707         binary-io: avoid potential compilation warning
36708         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36709         directives.
36710
36711         fflush: avoid compilation error on NetBSD
36712         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36713         between off_t and fpos_t, since the latter is sometimes a struct.
36714         * lib/fseeko.c (rpl_fseeko): Likewise.
36715         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36716
36717 2009-12-15  Eric Blake  <ebb9@byu.net>
36718
36719         fcntl-h, stdio, sys_ioctl: fix declarations
36720         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36721         function must not take arguments.
36722         * lib/sys_ioctl.in.h (ioctl): Likewise.
36723         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36724         (open): Add a link warning.
36725
36726 2009-12-15  Jim Meyering  <meyering@redhat.com>
36727
36728         areadlink, areadlink-with-size: relax license to LGPLv2+
36729         * modules/areadlink (License): Relax to LGPLv2+.
36730         * modules/areadlink-with-size (License): Likewise.
36731
36732 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36733             Bruno Haible  <bruno@clisp.org>
36734
36735         *printf: Fix memory leak.
36736         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36737         * lib/vfprintf.c (vfprintf): Likewise.
36738         * lib/dprintf.c (dprintf): Likewise.
36739         * lib/vdprintf.c (vdprintf): Likewise.
36740
36741 2009-12-14  Eric Blake  <ebb9@byu.net>
36742
36743         accept4: adjust module dependencies
36744         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36745
36746         utimens: one more try at avoiding compiler warning
36747         * lib/utimens.c (lutimens): Lower scope of result.
36748
36749 2009-12-13  Bruno Haible  <bruno@clisp.org>
36750
36751         Move the malloc checking from module 'list' to new module 'xlist'.
36752         * modules/xlist: New file.
36753         * lib/gl_xlist.h: New file.
36754         * lib/gl_xlist.c: New file.
36755         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36756         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36757         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36758         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36759         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36760         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36761         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36762         gl_sortedlist_nx_add): New declarations.
36763         (struct gl_list_implementation): Rename and change methods accordingly.
36764         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36765         (gl_list_nx_create): Renamed from gl_list_create.
36766         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36767         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36768         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36769         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36770         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36771         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36772         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36773         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36774         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36775         gl_list_create_empty.
36776         (gl_list_nx_create): Renamed from gl_list_create.
36777         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36778         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36779         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36780         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36781         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36782         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36783         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36784         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36785         * lib/gl_array_list.c: Don't include xalloc.h.
36786         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36787         NULL upon out-of-memory.
36788         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36789         out-of-memory.
36790         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36791         Change return type to 'int'.
36792         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36793         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36794         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36795         upon out-of-memory.
36796         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36797         upon out-of-memory.
36798         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36799         upon out-of-memory.
36800         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36801         upon out-of-memory.
36802         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36803         out-of-memory.
36804         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36805         Update.
36806         (gl_array_list_implementation): Update.
36807         * lib/gl_carray_list.c: Don't include xalloc.h.
36808         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36809         Return NULL upon out-of-memory.
36810         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36811         out-of-memory.
36812         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36813         Change return type to 'int'.
36814         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36815         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36816         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36817         upon out-of-memory.
36818         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36819         upon out-of-memory.
36820         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36821         out-of-memory.
36822         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36823         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36824         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36825         Update.
36826         (gl_carray_list_implementation): Update.
36827         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36828         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36829         gl_linked_create_empty. Return NULL upon out-of-memory.
36830         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36831         out-of-memory.
36832         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36833         Change return type to 'int'. Return -1 upon out-of-memory.
36834         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36835         out-of-memory.
36836         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36837         upon out-of-memory.
36838         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36839         upon out-of-memory.
36840         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36841         NULL upon out-of-memory.
36842         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36843         upon out-of-memory.
36844         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36845         out-of-memory.
36846         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36847         Update.
36848         * lib/gl_linked_list.c: Don't include xalloc.h.
36849         (gl_linked_list_implementation): Update.
36850         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36851         (add_to_bucket): Change return type to 'int'.
36852         (gl_linkedhash_list_implementation): Update.
36853         * lib/gl_anytree_list1.h (free_subtree): New function.
36854         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36855         gl_tree_create_empty. Return NULL upon out-of-memory.
36856         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36857         Change return type to 'int'. Return -1 upon out-of-memory.
36858         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36859         out-of-memory.
36860         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36861         (gl_tree_remove_node): New function, moved here from
36862         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36863         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36864         Update.
36865         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36866         malloc, not xmalloc. Return NULL upon out-of-memory.
36867         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36868         out-of-memory.
36869         (gl_tree_remove_node_from_tree): New function, extracted from
36870         gl_tree_remove_node.
36871         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36872         upon out-of-memory.
36873         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36874         out-of-memory.
36875         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36876         upon out-of-memory.
36877         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36878         upon out-of-memory.
36879         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36880         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36881         not xmalloc. Return NULL upon out-of-memory.
36882         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36883         out-of-memory.
36884         (gl_tree_remove_node_from_tree): New function, extracted from
36885         gl_tree_remove_node.
36886         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36887         upon out-of-memory.
36888         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36889         out-of-memory.
36890         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36891         upon out-of-memory.
36892         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36893         upon out-of-memory.
36894         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36895         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36896         gl_anytree_list1.h before gl_anyavltree_list2.h.
36897         (gl_avltree_list_implementation): Update.
36898         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36899         gl_anytree_list1.h before gl_anyavltree_list2.h.
36900         (gl_rbtree_list_implementation): Update.
36901         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36902         Change return type to 'int'. Return -1 upon out-of-memory. Use
36903         __builtin_expect.
36904         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36905         (gl_avltreehash_list_implementation): Update.
36906         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36907         (gl_rbtreehash_list_implementation): Update.
36908         * modules/array-list (Depends-on): Remove xalloc.
36909         * modules/carray-list (Depends-on): Likewise.
36910         * modules/linked-list (Depends-on): Likewise.
36911         * modules/linkedhash-list (Depends-on): Likewise.
36912         * modules/avltree-list (Depends-on): Likewise.
36913         * modules/rbtree-list (Depends-on): Likewise.
36914         * modules/avltreehash-list (Depends-on): Likewise.
36915         * modules/rbtreehash-list (Depends-on): Likewise.
36916
36917         * modules/xsublist: New file.
36918         * lib/gl_xsublist.h: New file.
36919         * lib/gl_xsublist.c: New file.
36920         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36921         (gl_sublist_nx_create): New declaration.
36922         * lib/gl_sublist.c: Don't include xalloc.h.
36923         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36924         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36925         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36926         Change return type to 'int'. Return -1 upon out-of-memory.
36927         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36928         upon out-of-memory.
36929         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36930         NULL upon out-of-memory.
36931         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36932         upon out-of-memory.
36933         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36934         NULL upon out-of-memory.
36935         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36936         NULL upon out-of-memory.
36937         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36938         upon out-of-memory.
36939         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36940         (gl_sublist_list_implementation): Update.
36941         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36942         upon out-of-memory.
36943         * modules/sublist (Depends-on): Remove xalloc.
36944
36945         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36946         * tests/test-carray_list.c: Likewise.
36947         * tests/test-linked_list.c: Likewise.
36948         * tests/test-linkedhash_list.c: Likewise.
36949         * tests/test-avltree_list.c: Likewise.
36950         * tests/test-rbtree_list.c: Likewise.
36951         * tests/test-avltreehash_list.c: Likewise.
36952         * tests/test-rbtreehash_list.c: Likewise.
36953         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36954         * modules/carray-list-tests (Makefile.am): Likewise.
36955         * modules/linked-list-tests (Makefile.am): Likewise.
36956         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36957         * modules/avltree-list-tests (Makefile.am): Likewise.
36958         * modules/rbtree-list-tests (Makefile.am): Likewise.
36959         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36960         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36961
36962         * NEWS: Mention the changes.
36963
36964         * lib/clean-temp.c: Include gl_xlist.h.
36965         * modules/clean-temp (Depends-on): Add xlist.
36966
36967         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36968         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36969
36970         * tests/test-array_oset.c: Include gl_xlist.h.
36971         * modules/array-oset-tests (Depends-on): Add xlist.
36972
36973         Reported by José E. Marchesi <jemarch@gnu.org>.
36974
36975 2009-12-13  Bruno Haible  <bruno@clisp.org>
36976
36977         Move the malloc checking from module 'oset' to new module 'xoset'.
36978         * modules/xoset: New file.
36979         * lib/gl_xoset.h: New file.
36980         * lib/gl_xoset.c: New file.
36981         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36982         declarations.
36983         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36984         (struct gl_oset_implementation): Rename and change methods accordingly.
36985         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36986         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36987         'int'. Mark as __warn_unused_result__.
36988         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36989         gl_oset_create_empty.
36990         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36991         'int'.
36992         * lib/gl_array_oset.c: Don't include xalloc.h.
36993         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36994         malloc, not xmalloc.
36995         (grow): Change return type to 'int'. Don't call xalloc_die.
36996         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36997         to 'int'.
36998         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36999         'int'.
37000         (gl_array_oset_implementation): Update.
37001         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37002         gl_tree_create_empty.
37003         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37004         'int'.
37005         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37006         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37007         xmalloc.
37008         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37009         not xmalloc.
37010         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37011         xmalloc.
37012         (gl_avltree_oset_implementation): Update.
37013         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37014         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37015         xmalloc.
37016         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37017         not xmalloc.
37018         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37019         xmalloc.
37020         (gl_rbtree_oset_implementation): Update.
37021         * modules/array-oset (Depends-on): Remove xalloc.
37022         * modules/avltree-oset (Depends-on): Likewise.
37023         * modules/rbtree-oset (Depends-on): Likewise.
37024         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37025         * tests/test-avltree_oset.c: Likewise.
37026         * tests/test-rbtree_oset.c: Likewise.
37027         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37028         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37029         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37030         * NEWS: Mention the change.
37031
37032 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37033
37034         maint.mk: allow a project to override release-prep commands
37035         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37036         commands into a new rule.
37037         (release-prep): New rule.
37038         (release-prep-hook): New overridable variable.
37039
37040 2009-12-13  Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37043
37044 2009-12-13  Jim Meyering  <meyering@redhat.com>
37045
37046         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37047         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37048
37049 2009-12-12  Bruno Haible  <bruno@clisp.org>
37050
37051         duplocale: Tweak.
37052         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37053
37054 2009-12-12  Karl Berry  <karl@gnu.org>
37055
37056         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37057
37058 2009-12-12  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/po.m4: Undo incorrect untabification.
37061
37062 2009-12-12  Bruno Haible  <bruno@clisp.org>
37063
37064         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37065         * modules/c-strtod (Depends-on): Add locale.
37066         * modules/c-strtold (Depends-on): Likewise.
37067
37068 2009-12-12  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37071
37072 2009-12-11  Eric Blake  <ebb9@byu.net>
37073
37074         setenv: relax requirement in light of POSIX ruling
37075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37076         not NULL.
37077         * tests/test-setenv.c (main): Relax test.
37078         * tests/test-unsetenv.c (main): Likewise.
37079         * doc/posix-functions/setenv.texi (setenv): Document this.
37080         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37081
37082 2009-12-11  Bruno Haible  <bruno@clisp.org>
37083
37084         New module 'fd-safer-flag'.
37085         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37086         * lib/dup-safer.c (dup_safer_flag): Remove function.
37087         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37088         * lib/fd-safer.c (fd_safer_flag): Remove function.
37089         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37090         * modules/cloexec (configure.ac): Drop indicator macro.
37091         * modules/fd-safer-flag: New file.
37092         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37093         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37094         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37095
37096 2009-12-11  Bruno Haible  <bruno@clisp.org>
37097
37098         Tests for module 'nl_langinfo'.
37099         * modules/nl_langinfo-tests: New file.
37100         * tests/test-nl_langinfo.sh: New file.
37101         * tests/test-nl_langinfo.c: New file.
37102
37103         New module 'nl_langinfo'.
37104         * lib/nl_langinfo.c: New file.
37105         * m4/nl_langinfo.m4: New file.
37106         * modules/nl_langinfo: New file.
37107         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37108
37109 2009-12-11  Bruno Haible  <bruno@clisp.org>
37110
37111         Tests for module 'langinfo'.
37112         * modules/langinfo-tests: New file.
37113         * tests/test-langinfo.c: New file.
37114
37115         New module 'langinfo'.
37116         * lib/langinfo.in.h: New file.
37117         * m4/langinfo_h.m4: New file.
37118         * modules/langinfo: New file.
37119         * doc/posix-headers/langinfo.texi: Mention the new module.
37120
37121 2009-12-11  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/config.charset: Untabify.
37124
37125 2009-12-11  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/unistd-safer (configure.ac): Drop indicator macro.
37128
37129 2009-12-11  Bruno Haible  <bruno@clisp.org>
37130
37131         Move pipe2-safer code to its own file.
37132         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37133         * lib/pipe-safer.c (pipe2_safer): Remove function.
37134         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37135         (Makefile.am): Add it to lib_SOURCES.
37136
37137 2009-12-10  Bruno Haible  <bruno@clisp.org>
37138
37139         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37140
37141 2009-12-10  Bruno Haible  <bruno@clisp.org>
37142
37143         Declare which arguments expect non-NULL values, for GCC and clang.
37144         * build-aux/arg-nonnull.h: New file.
37145         * modules/arg-nonnull: New file.
37146         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37147         (inet_ntop, inet_pton): Use it.
37148         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37149         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37150         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37151         (open, openat): Use it.
37152         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37153         (fnmatch): Use it.
37154         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37155         (getopt, getopt_long, getopt_long_only): Use it.
37156         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37157         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37158         Use it.
37159         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37160         (iconv_open): Use it.
37161         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37162         (strtoimax, strtoumax): Use it.
37163         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37164         (duplocale): Use it.
37165         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37166         (frexp, frexpl): Use it.
37167         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37168         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37169         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37170         (tsearch, tfind, tdelete, twalk): Use it.
37171         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37172         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37173         sigpending): Use it.
37174         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37175         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37176         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37177         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37178         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37179         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37180         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37181         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37182         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37183         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37184         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37185         Use it.
37186         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37187         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37188         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37189         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37190         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37191         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37192         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37193         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37194         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37195         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37196         strtoull, unsetenv): Use it.
37197         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37198         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37199         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37200         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37201         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37202         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37203         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37204         (strcasecmp, strncasecmp): Use it.
37205         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37206         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37207         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37208         rpl_setsockopt): Use it.
37209         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37210         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37211         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37212         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37213         (gettimeofday): Use it.
37214         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37215         (times): Use it.
37216         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37217         (uname): Use it.
37218         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37219         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37220         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37221         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37222         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37223         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37224         unlinkat, write): Use it.
37225         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37226         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37227         * lib/argv-iter.h: Include arg-nonnull.h.
37228         (_ATTRIBUTE_NONNULL_): Remove macro.
37229         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37230         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37231         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37232         optimization.
37233         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37234         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37235         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37236         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37237         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37238         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37239         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37240         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37241         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37242         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37243         * modules/dirent (Depends-on): Add arg-nonnull.
37244         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37245         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37246         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37247         * modules/fnmatch (Depends-on): Add arg-nonnull.
37248         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37249         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37250         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37251         * modules/glob (Depends-on): Add arg-nonnull.
37252         (Makefile.am): Insert arg-nonnull.h into glob.h.
37253         * modules/iconv_open (Depends-on): Add arg-nonnull.
37254         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37255         * modules/inttypes (Depends-on): Add arg-nonnull.
37256         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37257         * modules/locale (Depends-on): Add arg-nonnull.
37258         (Makefile.am): Insert arg-nonnull.h into locale.h.
37259         * modules/math (Depends-on): Add arg-nonnull.
37260         (Makefile.am): Insert arg-nonnull.h into math.h.
37261         * modules/netdb (Depends-on): Add arg-nonnull.
37262         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37263         * modules/search (Depends-on): Add arg-nonnull.
37264         (Makefile.am): Insert arg-nonnull.h into search.h.
37265         * modules/signal (Depends-on): Add arg-nonnull.
37266         (Makefile.am): Insert arg-nonnull.h into signal.h.
37267         * modules/spawn (Depends-on): Add arg-nonnull.
37268         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37269         * modules/stdio (Depends-on): Add arg-nonnull.
37270         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37271         * modules/stdlib (Depends-on): Add arg-nonnull.
37272         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37273         * modules/string (Depends-on): Add arg-nonnull.
37274         (Makefile.am): Insert arg-nonnull.h into string.h.
37275         * modules/strings (Depends-on): Add arg-nonnull.
37276         (Makefile.am): Insert arg-nonnull.h into strings.h.
37277         * modules/sys_socket (Depends-on): Add arg-nonnull.
37278         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37279         * modules/sys_stat (Depends-on): Add arg-nonnull.
37280         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37281         * modules/sys_time (Depends-on): Add arg-nonnull.
37282         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37283         * modules/sys_times (Depends-on): Add arg-nonnull.
37284         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37285         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37286         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37287         * modules/time (Depends-on): Add arg-nonnull.
37288         (Makefile.am): Insert arg-nonnull.h into time.h.
37289         * modules/unistd (Depends-on): Add arg-nonnull.
37290         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37291         * modules/wchar (Depends-on): Add arg-nonnull.
37292         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37293         * modules/argv-iter (Depends-on): Add arg-nonnull.
37294         * tests/test-canonicalize.c (null_ptr): New function.
37295         (main): Use it.
37296         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37297         (main): Use it.
37298         * tests/test-memmem.c (null_ptr): New function.
37299         (main): Use it.
37300         Reported by Jim Meyering.
37301
37302 2009-12-10  Bruno Haible  <bruno@clisp.org>
37303
37304         Use spaces for indentation, not tabs.
37305         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37306         * m4/*.m4: Untabify.
37307         * build-aux/*.h: Untabify.
37308         * tests/**/*.[hc]: Untabify.
37309         * README: New section "Indent with spaces, not TABs", based on
37310         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37311         * NEWS: Mention the change.
37312
37313 2009-12-10  Bruno Haible  <bruno@clisp.org>
37314
37315         pty test: Fix link error.
37316         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37317         test_pty_LDADD.
37318
37319 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37320
37321         * modules/pty: New file.
37322         * modules/pty-tests: New file.
37323         * m4/pty.m4: New file.
37324         * tests/test-pty.c: New file.
37325         * doc/glibc-headers/pty.texi: Modified.
37326         * doc/glibc-functions/forkpty.texi: Modified.
37327         * doc/glibc-functions/openpty.texi: Modified.
37328
37329 2009-12-10  Bruno Haible  <bruno@clisp.org>
37330
37331         Avoid syntax error in C++ mode.
37332         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37333
37334 2009-12-10  Bruno Haible  <bruno@clisp.org>
37335
37336         Use sed with option -e.
37337         * gnulib-tool (func_version, func_emit_copyright_notice,
37338         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37339         option -e to sed.
37340         * modules/link-warning (Makefile.am): Likewise.
37341
37342 2009-12-10  Jim Meyering  <meyering@redhat.com>
37343
37344         mgetgroups: do not write bytes beyond end of malloc'd buffer
37345         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37346         username, we call getgroups with a one-element-shorter buffer,
37347         but still told it the length was original, max_n_groups.
37348
37349 2009-12-09  Eric Blake  <ebb9@byu.net>
37350
37351         cloexec: relax license
37352         * modules/cloexec (Maintainer): Add myself.
37353         (License): Use LGPL, not GPL.
37354
37355         link-warning: optimize generation
37356         * modules/link-warning (Makefile.am): Reduce process usage.
37357
37358 2009-12-09  Bruno Haible  <bruno@clisp.org>
37359
37360         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37361         workaround was added on 2009-11-17.
37362
37363 2009-12-09  Jim Meyering  <meyering@redhat.com>
37364             Bruno Haible  <bruno@clisp.org>
37365
37366         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37367         * modules/link-warning (Makefile.am): Make the comment-removing sed
37368         command more robust in the face of bootstrap-prepended comment lines.
37369
37370 2009-12-09  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37373         most one group.
37374
37375 2009-12-09  Simon Josefsson <simon@josefsson.org>
37376             Bruno Haible  <bruno@clisp.org>
37377
37378         * build-aux/link-warning.h: Add copyright notice.
37379         * modules/link-warning (Makefile.am): Generate link-warning.h from
37380         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37381         * NEWS: Mention change in link-warning module.
37382         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37383         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37384         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37385         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37386         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37387         * modules/math (Makefile.am): Add dependency to math.h.
37388         * modules/search (Makefile.am): Add dependency to search.h.
37389         * modules/signal (Makefile.am): Add dependency to signal.h.
37390         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37391         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37392         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37393         * modules/string (Makefile.am): Add dependency to string.h.
37394         * modules/strings (Makefile.am): Add dependency to strings.h.
37395         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37396         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37397         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37398         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37399         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37400         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37401         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37402         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37403         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37404
37405 2009-12-09  Bruno Haible  <bruno@clisp.org>
37406
37407         fchdir: Optimize away rpl_fstat when possible.
37408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37409         REPLACE_OPEN_DIRECTORY.
37410         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37411
37412 2009-12-09  Bruno Haible  <bruno@clisp.org>
37413
37414         * lib/fchdir.c: Update comment.
37415
37416 2009-12-09  Bruno Haible  <bruno@clisp.org>
37417
37418         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37419
37420 2009-12-08  Eric Blake  <ebb9@byu.net>
37421
37422         fchdir: avoid memory leak on re-registration.
37423         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37424
37425 2009-12-08  Jim Meyering  <meyering@redhat.com>
37426
37427         init.sh: avoid Solaris 10 /bin/sh portability problem
37428         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37429         sourced script:
37430           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37431           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37432           bar
37433         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37434         and two tests used that idiom.
37435         * tests/init.sh: Update suggested usage comments.
37436         (path_prepend_): New function, to be used in place
37437         of the --src-path=DIR option.
37438         (setup_): Move PATH-prepending code into path_prepend_.
37439         * tests/test-pread.sh: Adapt to new usage.
37440         * tests/test-xalloc-die.sh: Likewise.
37441
37442 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37443
37444         * doc/gnulib.texi (Glibc pty.h): Add.
37445         * doc/glibc-functions/forkpty.texi: Add.
37446         * doc/glibc-functions/openpty.texi: Add.
37447         Suggested by Bruno Haible.
37448
37449 2009-12-08  Eric Blake  <ebb9@byu.net>
37450
37451         fchdir: fix logic bugs
37452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37453         * tests/test-fchdir.c (main): Enhance test.
37454         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37455         is in use.
37456
37457         dup2: fix logic bugs
37458         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37459         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37460         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37461         exists.
37462         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37463
37464 2009-12-07  Eric Blake  <ebb9@byu.net>
37465
37466         unlink: fix m4 detection
37467         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37468
37469         unistd-safer: add unit test
37470         * modules/unistd-safer-tests: New file.
37471         * tests/test-dup-safer.c: Likewise.
37472         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37473         * tests/test-dup2.c (setmode): Likewise.
37474         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37475
37476         cloexec: preserve text vs. binary across dup_cloexec
37477         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37478         mode.
37479         * modules/dup2-tests (Depends-on): Add binary-io.
37480         * modules/cloexec-tests (Depends-on): Likewise.
37481         * tests/test-dup2.c (setmode, is_mode): New helpers.
37482         (main): Add tests that translation mode is preserved.
37483         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37484         Reported by Bruno Haible.
37485
37486         mgetgroups: reduce duplicate listings
37487         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37488         resulting array.
37489         * tests/test-chown.h (test_chown): Simplify client.
37490         * tests/test-lchown.h (test_lchown): Likewise.
37491
37492 2009-12-06  Bruno Haible  <bruno@clisp.org>
37493
37494         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37495         value.
37496
37497 2009-12-06  Bruno Haible  <bruno@clisp.org>
37498
37499         * lib/progname.c: Include stdio.h, stdlib.h.
37500         (set_program_name): Reject a NULL argument.
37501
37502 2009-12-05  Eric Blake  <ebb9@byu.net>
37503
37504         pipe2-safer: new module
37505         * modules/pipe2-safer: New file.
37506         * lib/unistd-safer.h (pipe2_safer): New prototype.
37507         * lib/unistd--.h (pipe2): New wrapper.
37508         * lib/pipe-safer.c (pipe2_safer): New function.
37509         * modules/pipe (Depends-on): Add pipe2-safer.
37510         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37511
37512         stdlib-safer: preserve cloexec flag for mkostemp[s]
37513         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37514         fd_safer_flag.
37515
37516         unistd-safer: allow preservation of cloexec status via flag
37517         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37518         prototypes.
37519         * lib/dup-safer.c (dup_safer_flag): New function.
37520         * lib/fd-safer.c (fd_safer_flag): Likewise.
37521         * modules/cloexec (configure.ac): Set witness.
37522
37523         test-dup2: enhance test
37524         * modules/dup2-tests (Depends-on): Add cloexec.
37525         * tests/test-dup2.c (main): Enhance test.
37526
37527         cloexec: add dup_cloexec
37528         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37529         header and comments.
37530         * lib/cloexec.c (set_cloexec_flag): Add comments.
37531         (dup_cloexec): New function, with mingw implementation borrowed
37532         from...
37533         * lib/w32spawn.h (dup_noinherit): ...here.
37534         * modules/execute (Depends-on): Add cloexec.
37535         * modules/pipe (Depends-on): Likewise.
37536         * modules/cloexec (Depends-on): Add dup2.
37537         * modules/cloexec-tests (Files): New file.
37538         * tests/test-cloexec.c: Likewise.
37539
37540         test-xalloc-die: fix test for mingw
37541         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37542         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37543         directory and .exe suffix off argv[0] output.
37544
37545         test-fseeko: fix test for mingw
37546         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37547         than undefining fseek, so test will pass on mingw.
37548
37549 2009-12-05  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/progname.h (set_program_name): Clarify specification.
37552         * lib/progname.c (set_program_name): Likewise.
37553         Reported by Jim Meyering.
37554
37555 2009-12-05  Jim Meyering  <meyering@redhat.com>
37556
37557         maint.mk: backslash-escape parens in default regexp
37558         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37559         backslash-escape the literal parentheses.
37560
37561         maint.mk: news-date-check: use grep -E
37562         * top/maint.mk (today): Define a Make variable, not a...
37563         (news-date-check): ...shell variable.
37564         (news-date-regexp): Use the Make variable.
37565         Use grep's -E option.  Change the failing diagnostic to mention
37566         the variable, $(news-date-regexp).
37567
37568 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37569
37570         maintainer-makefile: allow customization of NEWS entry format
37571         * top/maint.mk (news-date-regexp): New overridable variable.
37572         (news-date-check): Use it.
37573
37574 2009-12-04  Eric Blake  <ebb9@byu.net>
37575
37576         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37577         * lib/mgetgroups.h (xgetgroups): New prototype.
37578         * lib/mgetgroups.c (xgetgroups): New wrapper.
37579         (mgetgroups): Handle ENOSYS.
37580         * modules/mgetgroups (Depends-on): Add realloc.
37581         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37582
37583         mgetgroups: avoid argument promotion issues with -1
37584         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37585         for invalid gid_t.
37586         * tests/test-chown.h (getegid, test_chown): Likewise.
37587         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37588
37589 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37590
37591         exclude: Fix header file problems.
37592         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37593
37594 2009-12-01  Jim Meyering  <meyering@redhat.com>
37595
37596         fts: fts_open: do not let an empty string cause immediate failure
37597         This is required in support of GNU rm, for which the command
37598         "rm A '' B" must process and remove both A and B, in spite of
37599         the empty string argument.
37600         * lib/fts.c (fts_open): Do not let the presence of an empty string
37601         cause fts_open to fail immediately.  Most fts-using tools must be
37602         able to process all arguments, in order, and can be expected to
37603         diagnose such arguments themselves.
37604
37605 2009-11-30  Eric Blake  <ebb9@byu.net>
37606
37607         utimens: fix compilation error
37608         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37609         Declare variable at right scope.
37610
37611 2009-11-29  Jim Meyering  <meyering@redhat.com>
37612
37613         bootstrap: handle perl-5.11's changed --version output
37614         * build-aux/bootstrap (get_version): Handle perl separately,
37615         since perl-5.11's --version output is different.
37616
37617 2009-11-28  Jim Meyering  <meyering@redhat.com>
37618
37619         userspec: depend on the inttostr module, too
37620         * modules/userspec (Depends-on): Add inttostr.
37621
37622         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37623         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37624         number of MAXUID when it evaluates to (uid_t) -1.
37625         Likewise for group ID.  Reported by Matt McCutchen in
37626         <http://savannah.gnu.org/bugs/?28113>
37627
37628         userspec: reformat to use spaces, not TABs
37629         * lib/userspec.c: Expand TABs to spaces.
37630         Add Emacs' "indent-tabs-mode: nil" hint.
37631
37632 2009-11-27  Eric Blake  <ebb9@byu.net>
37633
37634         getopt-gnu: flush out another BSD bug
37635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37636         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37637         flush out BSD bug.
37638         * tests/test-getopt.h (test_getopt): End lists with NULL.
37639         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37640         (test_getopt_long_posix): Enhance test.
37641         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37642         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37643         getopt-gnu.
37644         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37645         Likewise.
37646
37647 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37648
37649         * modules/idpriv-droptemp-tests (Notice): Fix text.
37650
37651 2009-11-27  Jim Meyering  <meyering@redhat.com>
37652
37653         test-xalloc-die: avoid spurious failure due to libtool argv difference
37654         In a libtool-enabled project, this test would fail due to a difference
37655         in the emitted program name, e.g.,
37656         -test-xalloc-die: memory exhausted
37657         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37658         Use program to avoid that.
37659         * modules/xalloc-die-tests (Depends-on): Add progname.
37660         * tests/test-xalloc-die.c: Include progname.h".
37661         (program_name): Remove decl.
37662         (main): Call set_program_name.
37663         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37664
37665 2009-11-26  Richard Jones  <rjones@redhat.com>
37666
37667         w32sock: leave win32 error in place.
37668         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37669
37670 2009-11-26  Eric Blake  <ebb9@byu.net>
37671
37672         init.sh: suggest to use skip_ and fail_ functions in comments
37673         * tests/init.sh: Add a sentence.
37674
37675 2009-11-25  Bruno Haible  <bruno@clisp.org>
37676
37677         init.sh: add documentation in comments
37678         * tests/init.sh: Add some developer and user documentation.
37679
37680 2009-11-26  Jim Meyering  <meyering@redhat.com>
37681
37682         init.sh: accommodate even those who specify bogus srcdir manually
37683         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37684         configure-time tests to be sanitized, so that there is no need to
37685         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37686         (with no double quotes) suffices.  However, since tests may be
37687         invoked manually, and since you may explicitly set srcdir to the
37688         name of a directory containing spaces, do quote its uses here.
37689         * tests/test-pread.sh: Likewise.
37690         Suggested by Bruno Haible.
37691
37692         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37693         * tests/test-pread.sh: Write no data into the pipe, because
37694         test-pread actually reads none.  This avoids a diagnostic,
37695         "bash: echo: write error: Broken pipe", that arises in the unusual
37696         event something is ignoring SIGPIPE, and might be interpreted
37697         as some sort of failure.  Reported by Bruno Haible.
37698
37699 2009-11-25  Jim Meyering  <meyering@redhat.com>
37700
37701         test-pread: cover failure with ESPIPE and EINVAL
37702         * tests/test-pread.c (main): Test for failure, too.
37703         * tests/test-pread.sh: Invoke with stdin on a pipe.
37704         Suggested by Eric Blake.
37705
37706         pread: improvement and fix
37707         * modules/pread (Depends-on): Depend on lseek, for portability to
37708         e.g., mingw.  Suggested by Eric Blake.
37709         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37710
37711         unistd.in.h: correct declaration of pread
37712         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37713         Reported by Richard W.M. Jones.
37714
37715         test-pread.sh: distribute the test script
37716         * modules/pread-tests (Files): Include test-pread.sh.
37717
37718         test-pread.sh: clean up
37719         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37720         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37721         That is unnecessary, since it's always ".".
37722         Suggestion from Eric Blake.
37723
37724         test-pread.sh: make executable
37725         * tests/test-pread.sh: Set executable bit.
37726         Reported by Eric Blake.
37727
37728         correct typo in test-pread.sh
37729         * tests/test-pread.sh: Add #! line.
37730
37731         test pread
37732         * tests/test-pread.c: New file.
37733         * tests/test-pread.sh: Likewise.
37734         * modules/pread-tests: Likewise.
37735
37736         pread: new module
37737         * modules/pread: New file.
37738         * lib/unistd.in.h (pread): Define/declare.
37739         * lib/pread.c (pread): New file.
37740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37741         * modules/unistd (Makefile.am): Substitute witnesses.
37742         * doc/posix-functions/pread.texi (pread): Update.
37743         * MODULES.html.sh: Add pread.
37744
37745 2009-11-25  Jim Meyering  <meyering@redhat.com>
37746
37747         tests/init.sh: new file to be used via most *.sh tests
37748         * tests/init.sh: New file.
37749
37750 2009-11-25  Eric Blake  <ebb9@byu.net>
37751
37752         utimens: work around older Linux failure with symlinks
37753         * lib/utimens.c (lutimensat_works_really): New variable.
37754         (fdutimens, lutimens): Use it to manage kernels that support
37755         nanosecond times on files, but not on symlinks.
37756         Reported by OndÅ™ej Vašík.
37757
37758         utimes: fix configure grammar
37759         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37760
37761 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37762
37763         regex: Fix fastmap for multibyte character ranges.
37764         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37765         characters when a multibyte character range is included.
37766
37767 2009-11-22  Andy Wingo  <wingo@pobox.com>
37768
37769         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37770         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37771
37772 2009-11-24  Bruno Haible  <bruno@clisp.org>
37773
37774         doc: Most *_l functions exist in MacOS X 10.5.
37775         * doc/posix-functions/duplocale.texi: Update platforms list.
37776         * doc/posix-functions/freelocale.texi: Likewise.
37777         * doc/posix-functions/newlocale.texi: Likewise.
37778         * doc/posix-functions/uselocale.texi: Likewise.
37779         * doc/posix-functions/isalnum_l.texi: Likewise.
37780         * doc/posix-functions/isalpha_l.texi: Likewise.
37781         * doc/posix-functions/isblank_l.texi: Likewise.
37782         * doc/posix-functions/iscntrl_l.texi: Likewise.
37783         * doc/posix-functions/isdigit_l.texi: Likewise.
37784         * doc/posix-functions/isgraph_l.texi: Likewise.
37785         * doc/posix-functions/islower_l.texi: Likewise.
37786         * doc/posix-functions/isprint_l.texi: Likewise.
37787         * doc/posix-functions/ispunct_l.texi: Likewise.
37788         * doc/posix-functions/isspace_l.texi: Likewise.
37789         * doc/posix-functions/isupper_l.texi: Likewise.
37790         * doc/posix-functions/iswalnum_l.texi: Likewise.
37791         * doc/posix-functions/iswalpha_l.texi: Likewise.
37792         * doc/posix-functions/iswblank_l.texi: Likewise.
37793         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37794         * doc/posix-functions/iswctype_l.texi: Likewise.
37795         * doc/posix-functions/iswdigit_l.texi: Likewise.
37796         * doc/posix-functions/iswgraph_l.texi: Likewise.
37797         * doc/posix-functions/iswlower_l.texi: Likewise.
37798         * doc/posix-functions/iswprint_l.texi: Likewise.
37799         * doc/posix-functions/iswpunct_l.texi: Likewise.
37800         * doc/posix-functions/iswspace_l.texi: Likewise.
37801         * doc/posix-functions/iswupper_l.texi: Likewise.
37802         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37803         * doc/posix-functions/isxdigit_l.texi: Likewise.
37804         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37805         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37806         * doc/posix-functions/strcoll_l.texi: Likewise.
37807         * doc/posix-functions/strfmon_l.texi: Likewise.
37808         * doc/posix-functions/strftime_l.texi: Likewise.
37809         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37810         * doc/posix-functions/strxfrm_l.texi: Likewise.
37811         * doc/posix-functions/tolower_l.texi: Likewise.
37812         * doc/posix-functions/toupper_l.texi: Likewise.
37813         * doc/posix-functions/towctrans_l.texi: Likewise.
37814         * doc/posix-functions/towlower_l.texi: Likewise.
37815         * doc/posix-functions/towupper_l.texi: Likewise.
37816         * doc/posix-functions/wcscoll_l.texi: Likewise.
37817         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37818         * doc/posix-functions/wctrans_l.texi: Likewise.
37819         * doc/posix-functions/wctype_l.texi: Likewise.
37820         * doc/glibc-functions/strptime_l.texi: Likewise.
37821         * doc/glibc-functions/strtod_l.texi: Likewise.
37822         * doc/glibc-functions/strtof_l.texi: Likewise.
37823         * doc/glibc-functions/strtol_l.texi: Likewise.
37824         * doc/glibc-functions/strtold_l.texi: Likewise.
37825         * doc/glibc-functions/strtoll_l.texi: Likewise.
37826         * doc/glibc-functions/strtoul_l.texi: Likewise.
37827         * doc/glibc-functions/strtoull_l.texi: Likewise.
37828         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37829         * doc/glibc-functions/wcstod_l.texi: Likewise.
37830         * doc/glibc-functions/wcstof_l.texi: Likewise.
37831         * doc/glibc-functions/wcstol_l.texi: Likewise.
37832         * doc/glibc-functions/wcstold_l.texi: Likewise.
37833         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37834         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37835         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37836
37837 2009-11-24  Bruno Haible  <bruno@clisp.org>
37838
37839         duplocale: Fix logic bug.
37840         * lib/duplocale.c: Don't include <langinfo.h>.
37841         (_NL_LOCALE_NAME): Remove macro.
37842         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37843         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37844
37845 2009-11-23  Jim Meyering  <meyering@redhat.com>
37846
37847         test-update-copyright: don't hard-code /usr/bin/perl
37848         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37849         perl to print the current year.  Gilles Espinasse reported that
37850         the replaced use of perl was hard-coded as /usr/bin/perl.
37851
37852 2009-11-23  Bruno Haible  <bruno@clisp.org>
37853
37854         duplocale: Add support for glibc 2.3.x.
37855         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37856
37857 2009-11-22  Bruno Haible  <bruno@clisp.org>
37858
37859         vasnprintf: Tiny optimization.
37860         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37861         MacOS X.
37862
37863 2009-11-22  Bruno Haible  <bruno@clisp.org>
37864
37865         Tests for module 'duplocale'.
37866         * modules/duplocale-tests: New file.
37867         * tests/test-duplocale.c: New file.
37868
37869         New module 'duplocale'.
37870         * m4/duplocale.m4: New file.
37871         * lib/locale.in.h (duplocale): New declaration.
37872         * lib/duplocale.c: New file.
37873         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37874         gl_LOCALE_H_DEFAULTS): New macros.
37875         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37876         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37877         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37878         REPLACE_DUPLOCALE.
37879         * modules/duplocale: New file.
37880         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37881
37882 2009-11-22  Bruno Haible  <bruno@clisp.org>
37883
37884         * modules/locale-tests (configure.ac): Test for newlocale function.
37885         * tests/test-locale.c: When the system has extended locale functions,
37886         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37887
37888         locale: Make locale_t available when possible.
37889         * lib/locale.in.h: Include <xlocale.h> when it exists.
37890         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37891         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37892         * modules/locale (Depends-on): Add extensions.
37893         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37894         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37895
37896 2009-11-22  Bruno Haible  <bruno@clisp.org>
37897
37898         Add comments.
37899         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37900         invocation.
37901         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37902         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37903         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37904
37905 2009-11-22  Bruno Haible  <bruno@clisp.org>
37906
37907         error: account for the possibility of freopen (stdout).
37908         * lib/error.c: Include <unistd.h>.
37909         (flush_stdout): New function, extracted from error and error_at_line.
37910         Determine stdout's fd dynamically.
37911         (error, error_at_line): Invoke flush_stdout.
37912         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37913         * modules/error (Depends-on): Add unistd.
37914
37915 2009-11-22  Bruno Haible  <bruno@clisp.org>
37916
37917         diffseq: Add comment.
37918         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37919
37920 2009-11-22  Jim Meyering  <meyering@redhat.com>
37921
37922         c-stack: avoid defining an unused static function
37923         * lib/c-stack.c (find_stack_direction): Do not define this function
37924         when it will not be used.
37925
37926         diffseq: avoid spurious gcc warnings
37927         * lib/diffseq.h (IF_LINT2): Define.
37928         (compareseq): Use it to initialize two members of "part".
37929         This avoids two used-uninitialized warnings.
37930
37931 2009-11-21  Jim Meyering  <meyering@redhat.com>
37932
37933         c-stack: avoid "ignoring return value of `write'" warning
37934         * lib/c-stack.c: Include "ignore-value.h".
37935         (die): Explicitly ignore each write return value.
37936         * modules/c-stack (Depends-on): Add ignore-value.
37937
37938 2009-11-21  Bruno Haible  <bruno@clisp.org>
37939
37940         diffseq: reduce scope of variable 'best'.
37941         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37942         variable, earlier used for two different purposes.
37943
37944 2009-11-21  Jim Meyering  <meyering@redhat.com>
37945
37946         diffseq: remove useless assignment to "best"
37947         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37948         assignment.  At that point "best" is already guaranteed to be zero.
37949
37950 2009-11-20  Eric Blake  <ebb9@byu.net>
37951
37952         build: mention ftp redirector in release announcements
37953         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37954         values that used to come from cfg.mk; mention FTP redirect URL.
37955         * build-aux/announce-gen: Mention the mirror list.
37956         Suggested by Karl Berry.
37957
37958         nanosleep: improve port to mingw
37959         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37961         LIB_NANOSLEEP, but only when needed.
37962         * modules/select (Link): Document LIBSOCKET.
37963         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37964         enough.
37965
37966         nanosleep: work around cygwin bug
37967         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37968         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37969         bug.
37970         (getnow): Delete, not needed.
37971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37972         LIB_CLOCK_GETTIME.
37973         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37974         clock-time, gettime.
37975         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37976         bug.
37977         * modules/nanosleep-tests: New test.
37978         * tests/test-nanosleep.c: New file.
37979
37980         sleep: work around cygwin bug
37981         * lib/sleep.c (rpl_sleep): Work around the bug.
37982         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37983         (gl_PREREQ_SLEEP): Delete unused macro.
37984         * modules/sleep (Depends-on): Add verify.
37985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37986         * modules/unistd (Makefile.am): Substitute witness.
37987         * lib/unistd.in.h (sleep): Update prototype.
37988         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37989         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37990         * modules/sleep-tests (Depends-on): Check for alarm.
37991
37992 2009-11-20  Jim Meyering  <meyering@redhat.com>
37993
37994         maint.mk: improve sc_prohibit_magic_number_exit
37995         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37996         so it does not match uses like System.exit(1).
37997         Add comments showing how to correct all offenders.
37998
37999 2009-11-19  Eric Blake  <ebb9@byu.net>
38000
38001         xalloc-die-tests: add missing library
38002         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38003
38004         test-xvasprintf: silence compiler warnings
38005         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38006         empty string from gcc.
38007
38008 2009-11-19  Jim Meyering  <meyering@redhat.com>
38009
38010         xfreopen: new module, from coreutils
38011         * modules/xfreopen: New module.
38012         * lib/xfreopen.c: New file.
38013         * lib/xfreopen.h: New file.
38014         * MODULES.html.sh (File stream based Input/Output"): Add it.
38015
38016 2009-11-19  Eric Blake  <ebb9@byu.net>
38017
38018         manywarnings: depend on warnings
38019         * modules/manywarnings (Depends-on): Add warnings.
38020
38021         build: avoid compiler warnings
38022         * lib/select.c (rpl_select): Delete unused variable.
38023         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38024
38025 2009-11-18  Eric Blake  <ebb9@byu.net>
38026
38027         tests: avoid false negative with --with-packager
38028         * tests/test-version-etc.sh: Discard packager information.
38029         * tests/test-argp-version-etc-1.sh: Likewise.
38030         Reported by Mike Frysinger.
38031
38032         utimens: fix regression on Solaris
38033         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38034         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38035         can only change fd timestamps via futimesat.  Instead, use an
38036         additional witness macro to avoid BSD bug.
38037         Reported by Jim Meyering.
38038
38039 2009-11-17  Eric Blake  <ebb9@byu.net>
38040
38041         usleep: use it to simplify tests
38042         * modules/stat-time-tests (Depends-on): Add usleep.
38043         (configure.ac): Drop usleep check.
38044         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38045         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38046         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38047         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38048         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38049         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38050         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38051         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38052         Likewise.
38053         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38054         * tests/test-lchown.h (nap): Likewise.
38055         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38056         * tests/test-stat-time.c (nap): Likewise.
38057         * tests/test-utimens-common.h (nap): Update comments.
38058
38059         usleep: new module
38060         * modules/usleep: New file.
38061         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38062         * lib/usleep.c (usleep): Likewise.
38063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38064         * modules/unistd (Makefile.am): Substitute witnesses.
38065         * lib/unistd.in.h (usleep): Add declaration.
38066         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38067         * MODULES.html.sh (Date and time): Likewise.
38068         * modules/usleep-tests (Depends-on): New test.
38069         * tests/test-usleep.c: New file.
38070
38071         chown: work around OpenBSD bug
38072         * lib/chown.c (rpl_chown): Work around the bug.
38073         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38074         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38075         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38076         * modules/chown (Depends-on): Add stdbool.
38077         * modules/lchown (Depends-on): Likewise.
38078         * doc/posix-functions/chown.texi (chown): Document the bug.
38079         * doc/posix-functions/lchown.texi (lchown): Likewise.
38080         * tests/test-lchown.h (test_chown): Relax test.
38081
38082         mkstemp: avoid conflict with C++ keyword template
38083         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38084         * lib/mkostemp.c (mkostemp): Likewise.
38085         * lib/mkostemps.c (mkostemps): Likewise.
38086         * lib/mkstemp.c (mkstemp): Likewise.
38087         * lib/mkstemps.c (mkstemps): Likewise.
38088
38089         xalloc-die-tests: optimize
38090         * tests/test-xalloc-die.sh: Reduce number of processes.
38091
38092 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38093
38094         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38095         patch from ludo@gnu.org (Ludovic Courtès).
38096
38097 2009-11-17  Jim Meyering  <meyering@redhat.com>
38098
38099         version-etc: use proper license string
38100         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38101         * modules/version-etc-fsf: Likewise.
38102
38103 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38104
38105         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38106         printed to stdout.  Deal with EOL differences.
38107
38108 2009-11-17  Eric Blake  <ebb9@byu.net>
38109
38110         unsetenv: work around Solaris bug
38111         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38112         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38113         Reported by Jim Meyering.
38114
38115         vasnprintf: avoid compiler warnings
38116         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38117         variables.
38118         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38119
38120 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38121
38122         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38123         settings since xalloc-die is no longer the self test,
38124         xalloc-die.sh is.
38125
38126 2009-11-17  Jim Meyering  <meyering@redhat.com>
38127
38128         test-xalloc-die.sh: make the code agree with the commit log
38129         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38130         at the end, just in case you happen to have a test-xalloc-die
38131         program in some other PATH directory.
38132
38133         test-xalloc-die.sh: fix a portability bug
38134         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38135         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38136         Otherwise, argv[0] (as often seen in diagnostics) would be too
38137         system-dependent, sometimes with, and sometimes without the leading "./".
38138
38139         version-etc-fsf: relax license to LGPLv3+
38140         * modules/version-etc-fsf (License): Relax license.
38141
38142 2009-11-16  Eric Blake  <ebb9@byu.net>
38143
38144         xalloc-die-tests: avoid printing null pointer
38145         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38146         shell script.
38147         * tests/test-xalloc-die.c (program_name): Declare.
38148         * tests/test-xalloc-die.sh (tmpfiles): New file.
38149
38150         setenv, unsetenv: work around various bugs
38151         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38152         (setenv) [HAVE_SETENV]: Work around bugs.
38153         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38154         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38155         for bugs.
38156         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38157         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38159         * modules/stdlib (Makefile.am): Update substitutions.
38160         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38161         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38162         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38163         * modules/setenv-tests: New test.
38164         * modules/unsetenv-tests: Likewise.
38165         * tests/test-setenv.c: New file.
38166         * tests/test-unsetenv.c: Likewise.
38167
38168 2009-11-16  Jim Meyering  <meyering@redhat.com>
38169
38170         version-etc: relax license to LGPLv3+
38171         * modules/version-etc (License): Relax license.
38172
38173         better AC_REQUIRE expanded-before-required-warning avoidance
38174         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38175         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38176         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38177         which is no longer needed.
38178
38179 2009-11-16  Eric Blake  <ebb9@byu.net>
38180
38181         test-freading: clean up temporary file
38182         * tests/test-freading.c (main): Remove file on success, and use
38183         ASSERT more liberally.
38184         Reported by Jim Meyering.
38185
38186 2009-11-16  Jim Meyering  <meyering@redhat.com>
38187
38188         avoid new AC_REQUIRE expanded-before-required warnings
38189         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38190         merely using it.
38191         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38192         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38193
38194 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38195
38196         * tests/test-xalloc-die.c: New file.
38197         * modules/xalloc-die-tests: New file.
38198         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38199         XFAIL_TESTS so it can be appended by modules.
38200
38201 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38202
38203         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38204         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38205
38206 2009-11-14  Eric Blake  <ebb9@byu.net>
38207
38208         fnmatch: avoid compiler warning
38209         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38210         to silence compiler warning about mismatch signedness in ?:.
38211         Reported by Robert Millan.
38212
38213         intprops: add double-inclusion guard
38214         * lib/intprops.h: Allow idempotent includes.
38215         Suggested by Bruce Korb.
38216
38217         openat: detect Solaris fchownat bug
38218         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38219         penalizing glibc chownat when only lchownat is broken.
38220         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38221         trailing slash bugs.
38222         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38223         * modules/openat-tests (Files): Include more files.
38224         (Depends-on): Add mgetgroups, sleep, stat-time.
38225         (configure.ac): Add additional checks.
38226         (Makefile.am): Build new test.
38227         * tests/test-fchownat.c: New file.
38228
38229         lchown: detect Solaris and FreeBSD bug
38230         * lib/lchown.c (rpl_lchown): Work around bug.
38231         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38233         * modules/unistd (Makefile.am): Populate it.
38234         * lib/unistd.in.h (lchown): Update declaration.
38235         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38236         * modules/lchown-tests: New file.
38237         * tests/test-lchown.h (test_lchown): Likewise.
38238         * tests/test-lchown.c (main): Likewise.
38239
38240         chown: detect Solaris and FreeBSD bug
38241         * lib/chown.c (rpl_chown): Work around bug.
38242         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38243         (gl_PREREQ_CHOWN): Delete.
38244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38245         * modules/unistd (Makefile.am): Populate it.
38246         * lib/unistd.in.h (chown): Update declaration.
38247         * lib/lchown.c (chown): Update client.
38248         * modules/lchown (Depends-on): Add lstat.
38249         * doc/posix-functions/chown.texi (chown): Document the bug.
38250         * doc/posix-functions/getgroups.texi (getgroups): Document
38251         getgroups pitfall.
38252         * modules/chown-tests: New file.
38253         * tests/test-chown.h (test_chown): Likewise.
38254         * tests/test-chown.c (main): Likewise.
38255
38256 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38257
38258         gnulib-tool: correctly detect absence of m4 directories
38259         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38260
38261 2009-11-14  Jim Meyering  <meyering@redhat.com>
38262
38263         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38264         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38265
38266 2009-11-14  John W. Eaton  <jwe@gnu.org>
38267
38268         strftime.h: wrap funtion declaration in extern "C" block
38269         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38270
38271 2009-11-13  Eric Blake  <ebb9@byu.net>
38272
38273         getgroups: avoid compiler warning
38274         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38275
38276         getgroups: work around FreeBSD bug
38277         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38278         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38279         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38280         * tests/test-getgroups.c (main): Fix buffer overrun.
38281
38282         getgroups: avoid compilation failure
38283         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38284         * modules/getgroups (Depends-on): Add stdint.
38285
38286 2009-11-13  Jim Meyering  <meyering@redhat.com>
38287
38288         test-getgroups: avoid compilation failure
38289         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38290
38291 2009-11-13  Eric Blake  <ebb9@byu.net>
38292
38293         mgetgroups: new module, taken from coreutils
38294         * modules/mgetgroups: New file.
38295         * lib/mgetgroups.h: Likewise.
38296         * lib/mgetgroups.c (mgetgroups): Likewise.
38297         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38298         * MODULES.html.sh (Users and groups): Mention it.
38299
38300         getgroups: don't expose GETGROUPS_T to user
38301         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38302         an element at a time if GETGROUPS_T is wrong size.
38303         * lib/getugroups.h (getugroups): Change signature.
38304         * lib/unistd.in.h (getgroups): Likewise.
38305         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38306         signature needs fixing.
38307         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38308         AC_TYPE_GETGROUPS.
38309         * modules/group-member (Depends-on): Add getgroups.
38310         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38311         (group_member): Rely on getgroups replacement.
38312         * lib/getugroups.c (getugroups): Use gid_t.
38313         * tests/test-getgroups.c (main): Likewise.
38314         * NEWS: Mention the signature change.
38315         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38316         problem with signature.
38317         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38318         GETGROUPS_T is still useful for setgroups.
38319
38320         getgroups, getugroups: provide stubs for mingw
38321         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38322         * lib/getugroups.c (getugroups): Likewise.
38323         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38324         function.  Modernize replacement scheme.
38325         (gl_PREREQ_GETGROUPS): Delete.
38326         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38327         * modules/getgroups (configure.ac): Declare witness.
38328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38329         * modules/unistd (Depends-on): Substitute witness.
38330         * lib/unistd.in.h (getgroups): Declare replacement.
38331
38332         getgroups: avoid calling exit
38333         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38334         drop xalloc.
38335         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38336         dependencies.
38337         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38338         exiting, in the rare case of malloc failure.
38339
38340         getgroups: fix logic error
38341         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38342         has more than 20 groups.
38343         * modules/getgroups-tests: New test.
38344         * tests/test-getgroups.c: New file.
38345
38346 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38347
38348         * tests/test-base64.c: Improve.
38349
38350 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38351
38352         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38353         Blake <ebb9@byu.net>.
38354
38355 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38356
38357         * tests/test-xvasprintf.c: Add %s%s related checks.
38358
38359 2009-11-12  Eric Blake  <ebb9@byu.net>
38360
38361         version-etc: match standards.texi style
38362         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38363         and use <> only for URLs.
38364
38365 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38366
38367         fts: do not fail on a submount during traversal
38368         * lib/fts.c (fts_build): Read the stat info again after opening
38369         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38370         Original report at http://bugzilla.redhat.com/501848.
38371
38372 2009-11-12  Jim Meyering  <meyering@redhat.com>
38373
38374         bootstrap: sync from coreutils
38375         * build-aux/bootstrap (bootstrap_epilogue): New function.
38376         Use git_modules_config in one more place.  This make bootstrap's
38377         --gnulib-srcdir option more useful for testing.
38378
38379         bootstrap: generalize autoheader check
38380         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38381         AC_CONFIG_HEADERS.
38382
38383 2009-11-11  Eric Blake  <ebb9@byu.net>
38384
38385         mkfifoat: use new modules for Solaris and BSD bugs
38386         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38387         * lib/mkfifoat.c (mknodat): Split...
38388         * lib/mknodat.c (mknodat): ...into new file.
38389         * modules/mkfifoat (Files): Ship new file.
38390         (Depends-on): Add mkfifo, mknod.
38391         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38392         (Depends-on): Add symlink.
38393         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38394         redundant with test_mkfifo.h.
38395         (do_mkfifoat, do_mknodat): New helpers.
38396
38397         mknod: new module
38398         * modules/mknod: New file.
38399         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38400         * lib/mknod.c (mknod): Likewise.
38401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38402         defaults.
38403         * modules/sys_stat (Makefile.am): Substitute them.
38404         * lib/sys_stat.in.h (mknod): Declare replacement.
38405         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38406         Document it.
38407         * doc/posix-functions/mknod.texi (mknod): Likewise.
38408         * modules/mknod-tests: New test.
38409         * tests/test-mknod.c: Likewise.
38410
38411         mkfifo: new module
38412         * modules/mkfifo: New file.
38413         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38414         * lib/mkfifo.c (mkfifo): Likewise.
38415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38416         defaults.
38417         * modules/sys_stat (Makefile.am): Substitute them.
38418         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38419         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38420         Document it.
38421         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38422         * modules/mkfifo-tests: New test.
38423         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38424         from test-mkfifoat.c.
38425         * tests/test-mkfifo.c: New file.
38426
38427         readlink: detect FreeBSD bug
38428         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38429         slash on symlink.
38430         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38431         * tests/test-readlink.h (test_readlink): Enhance test.
38432
38433         symlink: detect FreeBSD bug
38434         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38435         slash on symlink.
38436         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38437         * tests/test-symlink.h (test_symlink): Enhance test.
38438
38439 2009-11-10  Eric Blake  <ebb9@byu.net>
38440
38441         link: detect FreeBSD bug
38442         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38443         symlink.
38444         * doc/posix-functions/link.texi (link): Document the bug.
38445         * tests/test-link.h (test_link): Enhance test.
38446         * tests/test-linkat.c (main): Update caller.
38447
38448         unlink, remove: detect FreeBSD bug
38449         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38450         slash on symlink.
38451         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38452         * doc/posix-functions/remove.texi (remove): Likewise.
38453         * tests/test-unlink.h (test_unlink): Enhance test.
38454         * tests/test-remove.c (main): Likewise.
38455
38456 2009-11-09  Eric Blake  <ebb9@byu.net>
38457
38458         rename: detect FreeBSD bug
38459         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38460         slash on symlink.
38461         * modules/renameat-tests (Depends-on): Add filenamecat.
38462         * tests/test-rename.h (test_rename): Allow one more errno.
38463         * tests/test-renameat.c (main): Likewise.
38464         * doc/posix-functions/rename.texi (rename): Document the bug.
38465
38466         open: detect FreeBSD bug
38467         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38468         symlink.
38469         * doc/posix-functions/open.texi (open): Document the bug.
38470         * doc/posix-functions/utimes.texi (utimes): Likewise.
38471         * tests/test-open.h (test_open): Add parameters, and test symlink
38472         handling.
38473         * tests/test-open.c (main): Adjust caller.
38474         * tests/test-fcntl-safer.c (main): Likewise.
38475         * modules/open-tests (Depends-on): Add stdbool, symlink.
38476         * modules/fcntl-safer-tests (Depends-on): Likewise.
38477         * tests/test-openat.c (main): Add test-open tests.
38478
38479         stat: detect FreeBSD bug
38480         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38481         symlink.
38482         * doc/posix-functions/stat.texi (stat): Document the bug.
38483         * tests/test-stat.h (test_stat_func): Add argument.
38484         * tests/test-stat.c (main): Adjust caller.
38485         * tests/test-fstatat.c (main): Likewise.
38486         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38487         Reported by Jim Meyering.
38488
38489 2009-11-09  James Youngman  <jay@gnu.org>
38490
38491         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38492         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38493
38494 2009-11-08  Jim Meyering  <meyering@redhat.com>
38495
38496         utimens: remove invalid futimesat call
38497         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38498         It used the file descriptor of the target file as the DIR_FD
38499         parameter and NULL as the file name.  That caused failure with
38500         errno == EFAULT on FreeBSD-8.0-rc2
38501
38502 2009-11-07  Eric Blake  <ebb9@byu.net>
38503
38504         fflush, freadseek: use fseeko, not fseek
38505         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38506         (clear_ungetc_buffer): Avoid potential problems on large files.
38507         * lib/freadseek.c (freadseek): Likewise.
38508         * modules/freadseek (Depends-on): Add fseeko.
38509         * modules/fseek (configure.ac): Set a witness.
38510         * tests/test-fflush.c (main): Use fseeko.
38511         * tests/test-fpurge.c (fseek): Disable link warning.
38512         * tests/test-freadable.c (fseek): Likewise.
38513         * tests/test-freading.c (fseek): Likewise.
38514         * tests/test-fseeko.c (fseek): Likewise.
38515         * tests/test-ftell.c (fseek): Likewise.
38516         * tests/test-ftello.c (fseek): Likewise.
38517         * tests/test-fwritable.c (fseek): Likewise.
38518         * tests/test-fwriting.c (fseek): Likewise.
38519
38520 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38521
38522         * modules/memchr (Depends-on): Drop getpagesize dependency.
38523
38524 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38525
38526         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38527         Reported by Ludovic Courtès.
38528         * build-aux/pmccabe2html: Improve example usage.
38529         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38530
38531 2009-11-06  Jim Meyering  <meyering@redhat.com>
38532
38533         do-release-commit-and-tag: New module.
38534         Automate the release-commit and tag process.
38535         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38536         * modules/do-release-commit-and-tag: New file.
38537         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38538
38539 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38540
38541         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38542         because test-select.c uses inet_pton.
38543
38544 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38545
38546         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38547         GETADDRINFO_LIB.  Bump serial number.
38548         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38549         Suggested by Eric Blake <ebb9@byu.net>.
38550
38551 2009-11-05  Eric Blake  <ebb9@byu.net>
38552
38553         strtod: detect darwin bug
38554         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38555         Reported by Leo Davis.
38556
38557         freopen-safer: new module
38558         * modules/freopen-safer: New module.
38559         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38560         * lib/freopen-safer.c (freopen_safer): New file.
38561         * lib/stdio-safer.h (freopen_safer): New declaration.
38562         * lib/stdio--.h (freopen): New override.
38563         * MODULES.html.sh (File stream based Input/Output): Mention it.
38564         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38565         freopen-safer module.
38566         * doc/posix-functions/stderr.texi (stderr): Likewise.
38567         * doc/posix-functions/stdin.texi (stdin): Likewise.
38568         * doc/posix-functions/stdout.texi (stdout): Likewise.
38569         * modules/freopen-safer-tests: New test.
38570         * tests/test-reopen-safer.c: New file.
38571
38572 2009-11-05  Jim Meyering  <meyering@redhat.com>
38573
38574         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38575         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38576
38577 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38578
38579         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38580
38581 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38582
38583         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38584
38585 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38586
38587         Fix link error.
38588         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38589         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38590
38591 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38592
38593         * tests/test-func.c: Also test value of __func__.
38594
38595 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38596
38597         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38598         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38599
38600 2009-11-05  Bruno Haible  <bruno@clisp.org>
38601
38602         Fix link error.
38603         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38604         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38605         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38606
38607 2009-11-05  Bruno Haible  <bruno@clisp.org>
38608
38609         Tests for module 'inet_pton'.
38610         * modules/inet_pton-tests: New file.
38611         * tests/test-inet_pton.c: New file.
38612
38613 2009-11-05  Bruno Haible  <bruno@clisp.org>
38614
38615         Tests for module 'inet_ntop'.
38616         * modules/inet_ntop-tests: New file.
38617         * tests/test-inet_ntop.c: New file.
38618
38619 2009-11-04  Eric Blake  <ebb9@byu.net>
38620
38621         stdlib-safer: wrap all mkstemp variants
38622         * modules/mkostemp (configure.ac): Set witness.
38623         * modules/mkostemps (configure.ac): Likewise.
38624         * modules/mkstemps (configure.ac): Likewise.
38625         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38626         (mkstemps_safer): Wrap more functions.
38627         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38628         wrapping.
38629         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38630         (mkstemps_safer): Implement the wrappers.
38631
38632         mkstemps, mkostemps: new modules
38633         * modules/mkostemps: New module.
38634         * modules/mkstemps: Likewise.
38635         * lib/mkostemps.c (mkostemps): New file.
38636         * lib/mkstemps.c (mkstemps): Likewise.
38637         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38638         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38640         * modules/stdlib (Makefile.am): Substitute them.
38641         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38642         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38643         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38644         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38645         * MODULES.html.sh (File system functions): Mention them.
38646
38647         tempname: resync from glibc
38648         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38649         same values for __GT_FILE as glibc.  Abort even when assertions
38650         are disabled.
38651         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38652         match its value otherwise.  Allow idempotent inclusion.
38653         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38654         * lib/mkostemp.c (mkostemp): Likewise.
38655         * lib/mkstemp.c (mkstemp): Likewise.
38656         * lib/tmpfile.c (tmpfile): Likewise.
38657         * NEWS: Document this.
38658
38659         utimens: fix use of futimens on older Linux
38660         * lib/utimens.c (fdutimens): Use updated, rather than original,
38661         timespec to avoid bug in older Linux kernel.
38662         Reported by Simon Josefsson.
38663
38664 2009-11-04  Bruno Haible  <bruno@clisp.org>
38665
38666         Make num_processors more flexible and consistent.
38667         * lib/nproc.h (enum nproc_query): New type.
38668         (num_processors): Add a 'query' argument.
38669         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38670         (num_processors): Add a 'query' argument. Test the value of the
38671         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38672         mingw, count the number of CPUs available for the current process.
38673         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38674         Check for sched_getaffinity and sched_getaffinity_np.
38675         * modules/nproc (Depends-on): Add c-ctype, extensions.
38676         * NEWS: Mention the change.
38677
38678 2009-11-03  Bruno Haible  <bruno@clisp.org>
38679
38680         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38681
38682 2009-11-03  Jim Meyering  <meyering@redhat.com>
38683
38684         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38685         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38686         if it is defined.
38687
38688 2009-11-02  Eric Blake  <ebb9@byu.net>
38689
38690         mktime, timegm: share common declaration
38691         * lib/mktime-internal.h: New file.
38692         * lib/mktime.c: Use it rather than open-coding a declaration.
38693         * lib/timegm.c: Likewise.
38694         * modules/mktime (Files): Ship it.
38695         * modules/timegm (Files): Likewise.
38696         Suggested by Bruno Haible.
38697
38698         test-update-copyright: update test to match script changes
38699         * tests/test-update-copyright.sh: Avoid hard-coding perl
38700         location.  Don't update *.bak created by earlier runs.
38701
38702 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38703             Simon Josefsson  <simon@josefsson.org>
38704             Bruno Haible  <bruno@clisp.org>
38705
38706         Fix link error on Solaris 8.
38707         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38708         also in libnsl. Define also INET_PTON_LIB.
38709         * modules/inet_pton (Link): New section.
38710
38711 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38712             Bruno Haible  <bruno@clisp.org>
38713
38714         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38715         * modules/inet_ntop (Link): New section.
38716         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38717
38718 2009-11-02  Eric Blake  <ebb9@byu.net>
38719
38720         maint: avoid compiler warnings in m4 macros
38721         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38722         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38723
38724 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38725
38726         * m4/pmccabe2html.m4: Remove file.
38727         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38728         function.  Change maintainer.
38729         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38730         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38731         Courtès).
38732
38733 2009-10-31  Eric Blake  <ebb9@byu.net>
38734
38735         fseeko: fix m4 regression
38736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38737         regression from 2009-10-27.
38738         Reported by Ralf Wildenhues.
38739
38740 2009-10-31  Jim Meyering  <meyering@redhat.com>
38741
38742         inttostr: aesthetics and improved (compile-time) safety
38743         Define inttype_is_signed rather than inttype_is_unsigned,
38744         since the sole use is via "#if inttype_is_signed".
38745         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38746         inttype_is_unsigned.
38747         * lib/offtostr.c (inttype_is_signed): Likewise.
38748         * lib/uinttostr.c (inttype_is_signed): Likewise.
38749         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38750         * lib/inttostr.c (inttostr): Use verify to cross-check the
38751         inttype_is_signed value and the signedness of the actual type.
38752         * modules/inttostr (Depends-on): Add verify.
38753
38754 2009-10-30  Eric Blake  <ebb9@byu.net>
38755
38756         build: avoid compiler warnings
38757         * lib/fchmodat.c (lchmod): Mark unused variables.
38758         * lib/getopt.c (_getopt_initialize): Likewise.
38759         * lib/mktime.c (__mktime_internal): Provide prototype.
38760         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38761         older gcc that do not understand #pragma GCC diagnostic.
38762         * lib/uinttostr.c (inttype_is_unsigned): Define.
38763         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38764
38765 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38766
38767         stat: fix compilation on AIX
38768         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38769         only see struct stat64.
38770
38771 2009-10-30  Eric Blake  <ebb9@byu.net>
38772
38773         exclude: make more robust
38774         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38775         rather than masking a coding bug.
38776         Suggested by Bruno Haible.
38777
38778 2009-10-30  Jim Meyering  <meyering@redhat.com>
38779
38780         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38781         Rather than putting #!/usr/bin/perl on the first line,
38782         start with a variant of what's recommended by "man perlrun" that
38783         invokes the first "perl" program from your shell's search path.
38784         * build-aux/gitlog-to-changelog: Replace #!... as above.
38785         Add a "Local Variables" perl mode setting.
38786         Prompted by a patch from Ludovic Courtès.
38787         Improved by Eric Blake.
38788         * build-aux/useless-if-before-free: Likewise.
38789         * build-aux/announce-gen: Likewise.
38790         * build-aux/update-copyright: Likewise.
38791
38792 2009-10-29  Eric Blake  <ebb9@byu.net>
38793
38794         filenamecat-lgpl: adjust clients
38795         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38796         filenamecat.
38797         * modules/renameat (Depends-on): Likewise.
38798
38799         filenamecat: split into filenamecat-lgpl
38800         * modules/filenamecat-lgpl: New module.
38801         * modules/filenamecat (Files): Move library-safe files into
38802         filenamecat-lgpl.
38803         (Depends-on): Add filenamecat-lgpl.
38804         (configure.ac): Declare witness.
38805         * lib/filenamecat.h (file_name_concat): Only declare when using
38806         GPL module.
38807         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38808         Move...
38809         * lib/filenamecat-lgpl.c: ...into new file.
38810         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38811         (gl_FILE_NAME_CONCAT): Use it.
38812         * MODULES.html.sh (File system functions): Mention new module.
38813
38814         argp: avoid memory leak
38815         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38816         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38817         base_name, since the latter malloc()s and can call exit().
38818         Leak introduced 2006-07-03.
38819
38820         dirname-lgpl: adjust clients that don't need full dirname
38821         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38822         * modules/filenamecat (Depends-on): Likewise.
38823         * modules/linkat (Depends-on): Likewise.
38824         * modules/mkancesdirs (Depends-on): Likewise.
38825         * modules/mkdir (Depends-on): Likewise.
38826         * modules/openat (Depends-on): Likewise.
38827         * modules/savewd (Depends-on): Likewise.
38828         * modules/rename (Depends-on): Likewise.
38829         (License): Relax license.
38830         * modules/mkdir-tests (Depends-on): Drop progname.
38831         (Makefile.am): Delete unneeded LDADD.
38832         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38833
38834         dirname: split into dirname-lgpl
38835         * modules/dirname-lgpl: New module.
38836         * modules/dirname (Files): Move library-safe files into
38837         dirname-lgpl.
38838         (Depends-on): Add dirname-lgpl.
38839         (configure.ac): Declare witness.
38840         * modules/double-slash-root (License): Relax license.
38841         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38842         module.
38843         * lib/dirname.c (dir_len, mdir_name): Move...
38844         * lib/dirname-lgpl.c: ...into new file.
38845         * lib/basename.c (last_component, base_len): Move...
38846         * lib/basename-lgpl.c: ...into new file.
38847         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38848         (gl_DIRNAME): Use it.
38849         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38850         Mention new module.
38851         * modules/dirname-tests (Depends-on): Add progname.
38852         * tests/test-dirname.c (program_name): Delete.
38853
38854         mkdir: make safe for libraries
38855         * modules/mkdir (Depends-on): Drop xalloc.
38856         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38857         exit.
38858
38859         tests: avoid some compiler warnings
38860         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38861         literals.
38862         * tests/test-memchr.c (main): Avoid type mismatch.
38863         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38864         * tests/test-base64.c (main): Likewise.
38865         * tests/test-getdelim.c (main): Likewise.
38866         * tests/test-gethostname.c (main): Likewise.
38867         * tests/test-getline.c (main): Likewise.
38868         * tests/test-netinet_in.c (main): Likewise.
38869         * tests/test-select.c (open_server_socket, main): Likewise.
38870         * tests/test-select-stdin.c (main): Likewise.
38871         * tests/test-sockets.c (main): Likewise.
38872         * tests/test-strsignal.c (main): Likewise.
38873         * tests/test-sys_select.c (main): Likewise.
38874         * tests/test-sys_socket.c (main): Likewise.
38875         * tests/test-u64.c (main): Likewise.
38876         * tests/test-xfprintf-posix.c (main): Likewise.
38877         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38878
38879         sockets: avoid compiler warning
38880         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38881
38882         maint: detect usage(1) and other suspicious exits
38883         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38884
38885 2009-10-29  Jim Meyering  <meyering@redhat.com>
38886
38887         timespec: long-to-int truncation could make timespec_cmp malfunction
38888         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38889         a multiple of 2^32 nanoseconds as no difference.
38890
38891 2009-10-28  Jim Meyering  <meyering@redhat.com>
38892
38893         fprintftime: wrap macro code argument in "do {...} while(0)"
38894         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38895         cpy macro must be a statement that can be followed by a semicolon.
38896         Now that the else clause contains a comment and is hence longer
38897         than one line, I require curly braces.  That in turn requires
38898         that we wrap this code block in the standard do...while(0).
38899
38900         fprintftime: remove stray semicolon from previous change
38901         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38902
38903         fprintftime: avoid a warning about ignored fwrite return value
38904         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38905         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38906         that is unsafe.
38907         * modules/fprintftime (Depends-on): Add ignore-value.
38908
38909         exclude: avoid an unwarranted warning
38910         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38911
38912 2009-10-27  Eric Blake  <ebb9@byu.net>
38913
38914         fseek: avoid compilation failure when fflush is replaced
38915         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38916         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38917         module is in use.
38918         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38919         module is not in use; since REPLACE_FSEEK worked otherwise.
38920         (GNULIB_FTELLO): Likewise for ftell.
38921         Reported by Ian Beckwith and others.
38922
38923 2009-10-27  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38926         Reported by Jim Meyering.
38927
38928 2009-10-27  Jim Meyering  <jim@meyering.net>
38929             Bruno Haible  <bruno@clisp.org>
38930
38931         Avoid warning despite dropping the return value of fwrite.
38932         * lib/unicodeio.c: Include ignore-value.h.
38933         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38934         * modules/unicodeio (Depends-on): Add ignore-value.
38935
38936 2009-10-26  Eric Blake  <ebb9@byu.net>
38937
38938         areadlinkat: fix fallback path
38939         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38940         pointer and zero.
38941
38942 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38943
38944         Use a better IO block size for modern systems
38945         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38946         * lib/md2.c: Likewise.
38947         * lib/md4.c: Likewise.
38948         * lib/md5.c: Likewise.
38949         * lib/sha1.c: Likewise.
38950         * lib/sha256.c: Likewise.
38951         * lib/sha512.c: Likewise.
38952
38953 2009-10-22  Eric Blake  <ebb9@byu.net>
38954
38955         tests: avoid several compiler warnings
38956         * tests/test-getcwd.c (main): Avoid buffer underflow.
38957         * tests/test-getdate.c (main): String literals are not safe with
38958         putenv, so use setenv.  Declare unused argument.
38959         * modules/getdate-tests (Depends-on): Add setenv.
38960         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38961         problems with string literals in char *.
38962         * tests/test-hash.c (main): Avoid shadowing declaration.
38963         (insert_new): Treat string literals as char const *.
38964         * tests/test-getopt.h (test_getopt): Likewise.
38965         (getopt_loop): Alter types to minimize casting elsewhere.
38966         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38967         (test_getopt_long_posix): Likewise.
38968         (do_getopt_long): Add wrapper to minimize casting.
38969         * tests/test-atexit.c (clear_temp_file): Use void.
38970         * tests/test-areadlink-with-size.c (main): Declare unused
38971         arguments.
38972         * tests/test-areadlink.c (main): Likewise.
38973         * tests/test-areadlinkat-with-size.c (main): Likewise.
38974         * tests/test-areadlinkat.c (main): Likewise.
38975         * tests/test-canonicalize-lgpl.c (main): Likewise.
38976         * tests/test-canonicalize.c (main): Likewise.
38977         * tests/test-dirent-safer.c (main): Likewise.
38978         * tests/test-dirname.c (main): Likewise.
38979         * tests/test-dup2.c (main): Likewise.
38980         * tests/test-fchdir.c (main): Likewise.
38981         * tests/test-fcntl-h.c (main): Likewise.
38982         * tests/test-fcntl-safer.c (main): Likewise.
38983         * tests/test-fdopendir.c (main): Likewise.
38984         * tests/test-fdutimensat.c (main): Likewise.
38985         * tests/test-fflush.c (main): Likewise.
38986         * tests/test-filenamecat.c (main): Likewise.
38987         * tests/test-filevercmp.c (main): Likewise.
38988         * tests/test-fopen-safer.c (main): Likewise.
38989         * tests/test-fopen.c (main): Likewise.
38990         * tests/test-fpending.c (main): Likewise.
38991         * tests/test-fpurge.c (main): Likewise.
38992         * tests/test-freading.c (main): Likewise.
38993         * tests/test-fstatat.c (main): Likewise.
38994         * tests/test-fsync.c (main): Likewise.
38995         * tests/test-futimens.c (main): Likewise.
38996         * tests/test-getndelim2.c (main): Likewise.
38997         * tests/test-gettimeofday.c (main): Likewise.
38998         * tests/test-getopt.c (main): Likewise.
38999         * tests/test-i-ring.c (main): Likewise.
39000         * tests/test-inttypes.c (main): Likewise.
39001         * tests/test-link.c (main): Likewise.
39002         * tests/test-lstat.c (main): Likewise.
39003         * tests/test-math.c (main): Likewise.
39004         * tests/test-md5.c (main): Likewise.
39005         * tests/test-memchr2.c (main): Likewise.
39006         * tests/test-memrchr.c (main): Likewise.
39007         * tests/test-mkdir.c (main): Likewise.
39008         * tests/test-mkdirat.c (main): Likewise.
39009         * tests/test-mkfifoat.c (main): Likewise.
39010         * tests/test-open.c (main): Likewise.
39011         * tests/test-openat-safer.c (main): Likewise.
39012         * tests/test-openat.c (main): Likewise.
39013         * tests/test-quotearg.c (main): Likewise.
39014         * tests/test-rawmemchr.c (main): Likewise.
39015         * tests/test-readlink.c (main): Likewise.
39016         * tests/test-remove.c (main): Likewise.
39017         * tests/test-rename.c (main): Likewise.
39018         * tests/test-renameat.c (main): Likewise.
39019         * tests/test-rmdir.c (main): Likewise.
39020         * tests/test-sha1.c (main): Likewise.
39021         * tests/test-signal.c (main): Likewise.
39022         * tests/test-sigaction.c (main): Likewise.
39023         * tests/test-stat.c (main): Likewise.
39024         * tests/test-stat-time.c (main): Likewise.
39025         * tests/test-stddef.c (main): Likewise.
39026         * tests/test-stdint.c (main): Likewise.
39027         * tests/test-stdio.c (main): Likewise.
39028         * tests/test-stdlib.c (main): Likewise.
39029         * tests/test-strchrnul.c (main): Likewise.
39030         * tests/test-strerror.c (main): Likewise.
39031         * tests/test-string.c (main): Likewise.
39032         * tests/test-strtod.c (main): Likewise.
39033         * tests/test-strverscmp.c (main): Likewise.
39034         * tests/test-symlink.c (main): Likewise.
39035         * tests/test-symlinkat.c (main): Likewise.
39036         * tests/test-sys_stat.c (main): Likewise.
39037         * tests/test-sys_time.c (main): Likewise.
39038         * tests/test-time.c (main): Likewise.
39039         * tests/test-unistd.c (main): Likewise.
39040         * tests/test-unlink.c (main): Likewise.
39041         * tests/test-unlinkat.c (main): Likewise.
39042         * tests/test-utimens.c (main): Likewise.
39043         * tests/test-utimensat.c (main): Likewise.
39044         * tests/test-version-etc.c (main): Likewise.
39045         * tests/test-wchar.c (main): Likewise.
39046         * tests/test-wctype.c (main): Likewise.
39047         * tests/test-xprintf-posix.c (main): Likewise.
39048         * tests/test-posixtm.c (main): Likewise.
39049         (STREQ): Delete unused macro.
39050         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39051         shadowed variables.
39052         * tests/test-memchr.c (main): Likewise.
39053
39054 2009-10-21  Eric Blake  <ebb9@byu.net>
39055
39056         areadlinkat: avoid failure on older glibc
39057         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39058         rather than mis-comparing 0 against FUNC_RESULT of char*.
39059
39060 2009-10-21  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/stpncpy (License): Relicense under LGPLv2+.
39063         Reported by David Lutterkort <lutter@redhat.com>.
39064
39065 2009-10-20  Eric Blake  <ebb9@byu.net>
39066
39067         utimensat: work around Solaris 9 bug
39068         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39069         has trailing slash bugs.
39070         * tests/test-lutimens.h (test_lutimens): Enhance test.
39071         * tests/test-utimens.h (test_utimens): Likewise.
39072         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39073         * doc/posix-functions/utimes.texi (utimes): Likewise.
39074         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39075         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39076         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39077         * doc/posix-functions/futimens.texi (futimens): Likewise.
39078
39079         fdutimensat: new module
39080         * modules/fdutimensat: New file.
39081         * lib/fdutimensat.c (fdutimensat): Likewise.
39082         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39083         * MODULES.html.sh (File system functions): Mention module.
39084         * modules/fdutimensat-tests: New test.
39085         * tests/test-fdutimensat.c: Likewise.
39086
39087         doc: regenerate INSTALL
39088         * doc/INSTALL: Reflect recent autoconf update.
39089         * doc/INSTALL.ISO: Likewise.
39090         * doc/INSTALL.UTF-8: Likewise.
39091
39092 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39093
39094         acl: warn if ACL support is not detected
39095         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39096
39097 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39098
39099         * lib/nproc.h: Add extern "C" block for C++.
39100
39101 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39102             Bruno Haible  <bruno@clisp.org>
39103
39104         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39105         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39106         * doc/posix-functions/isalpha.texi: Likewise.
39107         * doc/posix-functions/isblank.texi: Likewise.
39108         * doc/posix-functions/iscntrl.texi: Likewise.
39109         * doc/posix-functions/isdigit.texi: Likewise.
39110         * doc/posix-functions/isgraph.texi: Likewise.
39111         * doc/posix-functions/islower.texi: Likewise.
39112         * doc/posix-functions/isprint.texi: Likewise.
39113         * doc/posix-functions/ispunct.texi: Likewise.
39114         * doc/posix-functions/isspace.texi: Likewise.
39115         * doc/posix-functions/isupper.texi: Likewise.
39116         * doc/posix-functions/isxdigit.texi: Likewise.
39117
39118 2009-10-18  Bruno Haible  <bruno@clisp.org>
39119
39120         Tests for module 'isblank'.
39121         * modules/isblank-tests: New file.
39122         * tests/test-isblank.c: New file.
39123
39124         New module 'isblank'.
39125         * lib/isblank.c: New file.
39126         * m4/isblank.m4: New file.
39127         * modules/isblank: New file.
39128         * doc/posix-functions/isblank.texi: Mention the new module.
39129
39130 2009-10-18  Bruno Haible  <bruno@clisp.org>
39131
39132         New module 'ctype'.
39133         * lib/ctype.in.h: New file.
39134         * m4/ctype.m4: New file.
39135         * modules/ctype: New file.
39136         * doc/posix-headers/ctype.texi: Mention the new module.
39137
39138 2009-10-18  Jim Meyering  <meyering@redhat.com>
39139
39140         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39141         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39142         right after its initialization, rather than farther down.
39143         Keeping these in close proximity makes it easier to ensure
39144         that each such variable is initialized.  E.g.,
39145
39146             LIB_CLOCK_GETTIME=
39147             AC_SUBST([LIB_CLOCK_GETTIME])
39148
39149         This change also increments these serial numbers.
39150         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39151         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39153
39154 2009-10-18  Bruno Haible  <bruno@clisp.org>
39155
39156         Don't let environment variables perturb build.
39157         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39158         (gl_PREREQ_GETHRXTIME): ... not here.
39159
39160 2009-10-18  Bruno Haible  <bruno@clisp.org>
39161
39162         Avoid symlink attack in localcharset module.
39163         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39164         (O_NOFOLLOW): Define fallback.
39165         (get_charset_aliases): Don't open the file if it is a symbolic link.
39166         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39167         gl_FCNTL_H.
39168         (gl_FCNTL_H): Require it.
39169         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39170         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39171         Reported by Fergal Glynn <fglynn@veracode.com>.
39172
39173 2009-10-18  Bruno Haible  <bruno@clisp.org>
39174
39175         Implement nproc for mingw.
39176         * lib/nproc.c: Include <windows.h>
39177         (num_processors): On native Windows platforms, try GetSystemInfo.
39178
39179 2009-10-18  Bruno Haible  <bruno@clisp.org>
39180
39181         Implement nproc for IRIX.
39182         * lib/nproc.c: Include <sys/sysmp.h>.
39183         (num_processors): On IRIX systems, try sysmp.
39184         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39185
39186 2009-10-18  Bruno Haible  <bruno@clisp.org>
39187
39188         Implement nproc for HP-UX.
39189         * lib/nproc.c: Include <sys/pstat.h>
39190         (num_processors): On HP-UX systems, try pstat_getdynamic.
39191         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39192         pstat_getdynamic.
39193
39194 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39195             Bruno Haible  <bruno@clisp.org>
39196
39197         Implement nproc for NetBSD, OpenBSD.
39198         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39199         (ARRAY_SIZE): New macro.
39200         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39201         * m4/nproc.m4: New file.
39202         * modules/nproc (Files): Add m4/nproc.m4.
39203         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39204         (Makefile.am): Instead, augment lib_SOURCES.
39205
39206 2009-10-18  Bruno Haible  <bruno@clisp.org>
39207
39208         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39209         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39210         sys/param.h.
39211
39212 2009-10-16  Eric Blake  <ebb9@byu.net>
39213
39214         utimensat: new module
39215         * modules/utimensat: New file.
39216         * lib/utimensat.c (utimensat): Likewise.
39217         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39218         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39219         so we can work around Linux bugs.
39220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39221         * modules/sys_stat (Makefile.am): Substitute them.
39222         * lib/sys_stat.in.h (utimensat): Declare it.
39223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39224         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39225         * modules/utimensat-tests: New test.
39226         * tests/test-utimensat.c: Likewise.
39227
39228         utimens: let lutimens work on non-symlinks
39229         * lib/utimens.c (lutimens): Fall back to utimens rather than
39230         failing with ENOSYS, when file is not a symlink.
39231         (utimens): Reduce redirection.
39232         * tests/test-lutimens.h (test_lutimens): Update test to cover
39233         non-symlinks.
39234         * tests/test-utimens.h (test_utimens): Update test to cover
39235         symlinks.
39236         * tests/test-utimens.c (main): Update caller.
39237
39238         utimens: cache whether utimensat syscall works
39239         * lib/utimens.c (utimensat_works_really): New cache variable.
39240         (fdutimens, lutimens): Use it to avoid failing syscall.
39241
39242         test-stat-time, test-utimens: improve portability
39243         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39244         ext4 on alpha, and for cygwin.
39245         * tests/test-utimens-common.h: New file.
39246         (nap): Factor delays into single function.
39247         * tests/test-lutimens.h (test_lutimens): Use new header.
39248         * tests/test-futimens.h (test_futimens): Likewise.
39249         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39250         timestamps to occur from same machine, as was done previously for
39251         test_utimens.
39252         * modules/utimens-tests (Files): Ship new file.
39253         * modules/futimens-tests (Files): Likewise.
39254         Reported in part by Jim Meyering.
39255
39256         sys_stat: sort replacement declarations
39257         * lib/sys_stat.in.h: Sort declarations.
39258         * lib/futimens.c (futimens): Fix typo.
39259
39260 2009-10-15  Jim Meyering  <meyering@redhat.com>
39261
39262         don't let environment settings perturb build
39263         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39264         could cause a configure-time and/or build-time malfunction.
39265         Typically, a configure-time function-in-library test is performed
39266         via code like this:
39267
39268           LIB_VAR=
39269           AC_SUBST([LIB_VAR])
39270           prefix_saved_LIBS=$LIBS
39271             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39272                        [test "$ac_cv_search_FUNC" = "none required" ||
39273                         LIB_VAR=$ac_cv_search_FUNC])
39274           LIBS=$prefix_saved_LIBS
39275
39276         However, in each of the files affected by this change, the LIB_VAR=
39277         initialization was omitted.  Thus, when set in the environment, its
39278         value would propagate into generated Makefiles when FUNC is not found
39279         in LIB_NAME.
39280         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39281         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39283
39284 2009-10-14  Eric Blake  <ebb9@byu.net>
39285
39286         fchdir: avoid infinite recursion in mingw
39287         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39288         recursing.
39289
39290         test-stat-time: port to mingw
39291         * tests/test-stat-time.c (force_unlink): Return a value.
39292         (test_ctime) [W32]: Fix compilation error.
39293         (nap): Don't call usleep with too large an argument.  Use
39294         force_unlink.
39295         * doc/pastposix-functions/usleep.texi (usleep): Document the
39296         portability issue.
39297
39298 2009-10-13  Jim Meyering  <meyering@redhat.com>
39299
39300         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39301         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39302         * modules/pipe-filter-ii: Likewise.
39303         * modules/sys_socket-tests: Likewise.
39304         * modules/tsearch-tests: Likewise.
39305         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39306         (check): Depend on it.
39307
39308 2009-10-12  Eric Blake  <ebb9@byu.net>
39309
39310         utimens-tests: port to NFS file systems
39311         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39312         comparisons to avoid spurious failures from timestamp drift
39313         between NFS machines.
39314
39315 2009-10-12  Eric Blake  <ebb9@byu.net>
39316
39317         stat-time-tests: minor cleanups
39318         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39319         * tests/test-stat-time.c (nap): Separate assignment from call.
39320         Suggested by Paolo Bonzini and Bruno Haible.
39321
39322         sys_stat: guarantee struct timespec
39323         * lib/sys_stat.in.h (includes): Always include <time.h>
39324         * modules/sys_stat (Depends-on): Add time.
39325         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39326         mode_t permission values.
39327         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39328         get at subsecond timestamps.
39329
39330 2009-10-10  Eric Blake  <ebb9@byu.net>
39331
39332         futimens: new module
39333         * modules/futimens: New file.
39334         * lib/futimens.c (futimens): Likewise.
39335         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39336         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39337         we can work around Linux bugs.
39338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39339         * modules/sys_stat (Makefile.am): Substitute them.
39340         * lib/sys_stat.in.h (futimens): Declare it.
39341         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39342         * doc/posix-functions/futimens.texi (futimens): Likewise.
39343         * modules/futimens-tests: New test.
39344         * tests/test-futimens.c: Likewise.
39345
39346         utimens: introduce fdutimens
39347         * lib/utimens.h (fdutimens): New prototype.
39348         * lib/utimens.c (gl_futimens): Move guts...
39349         (fdutimens): ...to new interface.
39350         * tests/test-utimens.c (do_fdutimens): Use it.
39351
39352         utimens: add UTIME_NOW and UTIME_OMIT support
39353         * lib/utimens.c (validate_timespec, update_timespec): New helper
39354         functions.
39355         (gl_futimens, lutimens): Use them.
39356         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39357         stdbool, sys_stat.
39358         (Link): Mention resulting library dependency.
39359         * modules/utimecmp (Link): Likewise.
39360         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39361         (Makefile.am): Pick up library dependency.
39362         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39363         definition.
39364         * tests/test-sys_stat.c: Test the definitions.
39365         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39366         * NEWS: Document library dependency.
39367
39368         utimecmp: support symlink timestamps
39369         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39370         hashing when possible.  Use pathconf when available.
39371         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39372         * modules/utimecmp (Depends-on): Add lstat.
39373
39374         utimens: add lutimens interface
39375         * lib/utimens.c (lutimens): New function.
39376         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39377         * lib/utimens.h (lutimens): Declare new interface.
39378         * tests/test-utimens.c (main): Enhance test.
39379         * tests/test-lutimens.h (test_lutimens): New file.
39380         * modules/utimens-tests (Files): Distribute it.
39381         (Depends-on): Add symlink.
39382         (configure.ac): Check for usleep.
39383
39384         utimens: validate futimens usage
39385         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39386         fewer syscalls on failure later on.  Avoid compiler warning on
39387         mingw.
39388         * modules/utimens (Depends-on): Add dup2.
39389
39390         utimens: add test
39391         * modules/utimens-tests: New test.
39392         * tests/test-utimens.h: New file.
39393         * tests/test-futimens.h: Likewise.
39394         * tests/test-utimens.c: Likewise.
39395
39396         doc: mention timestamp portability issues
39397         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39398         instead.
39399         * doc/posix-functions/utime.texi (utime): Likewise.
39400         * doc/posix-functions/utimes.texi (utimes): Likewise.
39401         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39402         instead.
39403         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39404         module.
39405         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39406         Mention weakness with symlink timestamps.
39407         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39408         to utimensat/futimens instead.
39409         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39410
39411         test-dup2: enhance test
39412         * tests/test-dup2.c (main): Also check AT_FDCWD.
39413
39414         test-stat-time: avoid more spurious failures
39415         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39416         xfs; and avoid race if the two timestamps cross quantization edge.
39417
39418         relocatable: prefer 'file system' over 'filesystem'
39419         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39420         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39421         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39422         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39423         * lib/relocatable.c (compute_curr_prefix): Likewise.
39424
39425 2009-10-10  Jim Meyering  <meyering@redhat.com>
39426
39427         stat-time-tests: check for the usleep function
39428         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39429
39430 2009-10-10  Bruno Haible  <bruno@clisp.org>
39431
39432         * modules/xnanosleep: Put the Link section after the Include section.
39433
39434 2009-10-09  Eric Blake  <ebb9@byu.net>
39435
39436         dup2: work around FreeBSD 6.1 bug
39437         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39438         * doc/posix-functions/dup2.texi (dup2): Document it.
39439         Reported by Nelson H. F. Beebe and Jim Meyering.
39440
39441         test-stat-time: port to buggy NFS clients
39442         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39443         (test_ctime): Also skip test if mtime and ctime are skewed.
39444
39445         maint: prefer 'file system' over 'filesystem'
39446         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39447         * doc/posix-functions/lstat.texi (lstat): Likewise.
39448         * lib/file-has-acl.c (file_has_acl): Likewise.
39449         * lib/fwriteerror.c [TEST]: Likewise.
39450         * tests/test-areadlink.h (test_areadlink): Likewise.
39451         * tests/test-areadlinkat-with-size.c (main): Likewise.
39452         * tests/test-areadlinkat.c (main): Likewise.
39453         * tests/test-canonicalize-lgpl.c (main): Likewise.
39454         * tests/test-canonicalize.c (main): Likewise.
39455         * tests/test-fstatat.c (main): Likewise.
39456         * tests/test-linkat.c (main): Likewise.
39457         * tests/test-lstat.h (test_lstat_func): Likewise.
39458         * tests/test-mkdir.h (test_mkdir): Likewise.
39459         * tests/test-readlink.h (test_readlink): Likewise.
39460         * tests/test-remove.c (main): Likewise.
39461         * tests/test-rename.h (test_rename): Likewise.
39462         * tests/test-renameat.c (main): Likewise.
39463         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39464         * tests/test-symlink.h (test_symlink): Likewise.
39465         * tests/test-symlinkat.c (main): Likewise.
39466         * tests/test-unlink.h (test_unlink_func): Likewise.
39467         * tests/test-unlinkat.c (main): Likewise.
39468
39469         maint: make realtime library usage explicit
39470         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39471         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39472         * modules/settime (Link): Likewise.
39473         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39474
39475         test-stat-time: speed up execution
39476         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39477         warning on mingw.
39478         (nap): New helper function.
39479         (prepare_test): Use it to reduce sleep time.
39480         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39481         execution.
39482         * modules/stat-time-tests (configure.ac): Check for usleep.
39483
39484 2009-10-09  Jim Meyering  <meyering@redhat.com>
39485
39486         selinux-h: always use getfilecon wrappers
39487         * lib/getfilecon.c: New file.
39488         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39489         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39490         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39491         (fgetfilecon): Provide a stub.
39492         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39493         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39494         file unconditionally.
39495         When <selinux/selinux.h> is found, arrange to use wrappers.
39496         * modules/selinux-h (Files): Add getfilecon.c.
39497         (Makefile.am): Substitute include-next-related bits
39498         into the now-always-generated selinux/selinux.h file.
39499         * doc/glibc-functions/lgetfilecon.texi: New file.
39500         * doc/glibc-functions/fgetfilecon.texi: New file.
39501         * doc/glibc-functions/getfilecon.texi: New file.
39502         * doc/glibc-functions/getfilecon-desc.texi: New file.
39503         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39504         which to pull in the new files.
39505         * MODULES.html.sh (Misc): Add selinux-h.
39506
39507 2009-10-08  Jim Meyering  <meyering@redhat.com>
39508
39509         unistd: fix comment typo
39510         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39511
39512 2009-10-08  Eric Blake  <ebb9@byu.net>
39513
39514         areadlink: use SIZE_MAX consistently
39515         * modules/areadlink (Depends-on): Add stdint.
39516         * modules/areadlink-with-size (Depends-on): Likewise.
39517         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39518         gives NULL; drop sys/types, since unistd gives size_t; and add
39519         stdint for SIZE_MAX.
39520         (SIZE_MAX): Rely on headers.
39521         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39522         and add stdint.
39523         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39524         (SIZE_MAX): Likewise.
39525         (INITIAL_BUF_SIZE): Turn into enum.
39526         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39527
39528 2009-10-08  Jim Meyering  <meyering@redhat.com>
39529
39530         areadlinkat: avoid compilation failure
39531         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39532         Fix typo in comment.
39533
39534 2009-10-07  Eric Blake  <ebb9@byu.net>
39535
39536         areadlinkat-with-size: new module
39537         * modules/areadlinkat-with-size: New module.
39538         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39539         * lib/areadlink.h (areadlinkat): Declare it.
39540         * MODULES.html.sh (File system functions): Mention it.
39541         * modules/areadlinkat-with-size-tests: New test.
39542         * tests/test-areadlinkat-with-size.c: New file.
39543
39544         xreadlinkat: new module
39545         * modules/xreadlinkat: New module.
39546         * lib/xreadlinkat.c (xreadlinkat): New file.
39547         * lib/xreadlink.h (xreadlinkat): Declare it.
39548         * MODULES.html.sh (File system functions): Mention it.
39549
39550         areadlinkat: new module
39551         * lib/at-func.c (FUNC_FAIL): New define.
39552         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39553         * modules/areadlinkat: New module.
39554         * lib/linkat.c (areadlinkat): Move...
39555         * lib/areadlinkat.c (areadlinkat): ...to new file.
39556         * lib/areadlink.h (areadlinkat): Declare it.
39557         * modules/linkat (Depends-on): Add areadlinkat.
39558         * MODULES.html.sh (File system functions): Mention it.
39559         * modules/areadlinkat-tests: New test.
39560         * tests/test-areadlinkat.c: New file.
39561
39562         areadlink, areadlink-with-size: add tests
39563         * modules/areadlink-tests: New test.
39564         * modules/areadlink-with-size-tests: Likewise.
39565         * tests/test-areadlink.h: New file.
39566         * tests/test-areadlink.c: Likewise.
39567         * tests/test-areadlink-with-size.c: Likewise.
39568
39569         maint: minor cleanups
39570         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39571         _UNUSED_PARAMETER_ instead.
39572         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39573         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39574         * modules/linkat-tests (Files): Distribute test-link.h.
39575
39576         openat, utimens: whitespace cleanup
39577         * lib/openat.c: Prefer space throughout, rather than mix of 8
39578         spaces vs. tabs.
39579         * lib/at-func.c: Likewise.
39580         * lib/utimens.c: Likewise.
39581
39582         openat: avoid using wrong fd
39583         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39584         working directory chooses same fd.
39585         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39586
39587         mkdir, mkdirat: fix cygwin 1.5.x bug
39588         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39589         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39590         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39591         bug.
39592         (gl_PREREQ_MKDIR): Delete unused macro.
39593         * modules/mkdir (Files): Track file rename.
39594         (configure.ac): Update macro name.
39595         * modules/openat (Depends-on): Add mkdir.
39596         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39597
39598         mkdir, mkdirat: add tests
39599         * modules/mkdir-tests: New test.
39600         * tests/test-mkdir.h: New file.
39601         * tests/test-mkdir.c: Likewise.
39602         * tests/test-mkdirat.c: Likewise.
39603         * modules/openat-tests (Files): Add new files.
39604         (Makefile.am): Run new test.
39605
39606 2009-10-06  Eric Blake  <ebb9@byu.net>
39607
39608         doc: tweak *at function documentation
39609         * doc/posix-functions/faccessat.texi (faccessat): Mention
39610         known issue with replacement.
39611         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39612         * doc/posix-functions/linkat.texi (linkat): Likewise.
39613         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39614         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39615         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39616         * doc/posix-functions/renameat.texi (renameat): Likewise.
39617         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39618
39619         openat: fix GNU/Hurd bug in unlinkat
39620         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39621         broken.
39622         * doc/posix-functions/unlink.texi (unlink): Document this.
39623         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39624
39625         fdopendir: fix GNU/Hurd bug
39626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39627         allowing non-directory fds.
39628         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39629         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39630         * modules/dirent (Makefile.am): Substitute it.
39631         * lib/dirent.in.h (fdopendir): Declare replacement.
39632         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39633         * tests/test-fdopendir.c (main): Test something other than
39634         /dev/null, since on Hurd that behaves like a directory.
39635
39636         test-symlink: port to GNU/Hurd
39637         * tests/test-symlink.h (test_symlink): Relax expected errno.
39638
39639         doc: tweak more cygwin information
39640         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39641         now compatible with glibc.
39642         * doc/posix-functions/getopt.texi (getopt): Likewise.
39643
39644         getopt-gnu: add another test
39645         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39646         guarantee behavior relied on by m4.
39647         * tests/test-getopt.c (main): Use it.
39648         * modules/getopt-posix-tests (Depends-on): Add setenv.
39649         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39650
39651         getopt: fix compilation on darwin
39652         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39653         include.
39654         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39655         Reported by Ludovic Courtès.
39656
39657 2009-10-06  Bruno Haible  <bruno@clisp.org>
39658
39659         * modules/size_max (Description): Discourage its use.
39660         Reported by Simon Josefsson.
39661
39662 2009-10-06  Jim Meyering  <meyering@redhat.com>
39663
39664         linkat: avoid compilation failure
39665         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39666
39667 2009-10-05  Eric Blake  <ebb9@byu.net>
39668
39669         linkat: support Linux 2.6.17
39670         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39671         linkat on Linux, but allow cache variable override.
39672         * lib/linkat.c (rpl_linkat): Define override.
39673         * modules/linkat (Depends-on): Add symlinkat.
39674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39675         * modules/unistd (Makefile.am): Substitute it.
39676         * lib/unistd.in.h (linkat): Declare replacement.
39677         Reported by Pádraig Brady.
39678
39679         quotearg: port test to systems with C.UTF-8 locale
39680         * tests/test-quotearg.c (struct result_strings): Add another
39681         member, differentiating between C.ASCII and C.UTF-8 handling.
39682         (compare_strings): Add parameter.
39683         (main): Adjust all callers.
39684
39685         getopt: avoid clash with FreeBSD _getopt_internal
39686         * lib/getopt.in.h (_getopt_internal): Override the name.
39687         * lib/getopt_int.h (includes): Pick up any overrides.
39688         Reported by Reuben Thomas.
39689
39690         hash: allow C89 compilation
39691         * lib/hash.c (check_tuning): Move declaration before statement.
39692         Reported by Reuben Thomas.
39693
39694 2009-10-05  Karl Berry  <karl@gnu.org>
39695
39696         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39697
39698 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39699             Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/uname.c (uname): Use a table-driven algorithm to compute
39702         Windows NT versions.
39703
39704 2009-10-04  Bruno Haible  <bruno@clisp.org>
39705
39706         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39707         program_invocation_short_name.
39708         * modules/progname (configure.ac): Test for presence of
39709         program_invocation_short_name.
39710         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39711
39712 2009-10-04  Bruno Haible  <bruno@clisp.org>
39713
39714         * lib/progname.c (set_program_name): Fix comment.
39715         Reported by Jim Meyering.
39716
39717 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39718             Bruno Haible  <bruno@clisp.org>
39719
39720         * lib/uname.c: Include <string.h>.
39721         (uname): Do only one call to GetVersionEx in the common case.
39722
39723 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39724             Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39727         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39728         (uname): Add support for Windows CE and various non-x86 CPU types.
39729
39730 2009-10-03  Bruno Haible  <bruno@clisp.org>
39731
39732         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39733         invocation to tests/configure.ac.
39734         Reported by Ian Beckwith <ianb@erislabs.net>.
39735
39736 2009-10-02  Eric Blake  <ebb9@byu.net>
39737
39738         fchdir: avoid compiler warning
39739         * lib/fchdir.c (canonicalize_file_name)
39740         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39741
39742         test-open: support mingw errno values
39743         * tests/test-open.h (test_open): Relax test.
39744         * tests/test-fopen.h (test_fopen): Likewise.
39745         * tests/test-openat-safer.c (main): Likewise.
39746
39747         open: fix opening directory on mingw
39748         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39749
39750         test-open: on GNU/Hurd, /dev/null is a directory
39751         * tests/test-fopen.h (main): Rename...
39752         (test_fopen): ...to this.  Use a guaranteed non-directory when
39753         confirming open behavior on trailing slash.
39754         * tests/test-openat-safer.c (main): Likewise.
39755         * tests/test-open.h (main): Likewise....
39756         (test_open): ...to this.
39757         * tests/test-fopen.c (main): Adjust caller.
39758         * tests/test-fopen-safer.c (main): Likewise.
39759         * tests/test-open.c (main): Likewise.
39760         * tests/test-fcntl-safer.c (main): Likewise.
39761         Reported by Samuel Thibault.
39762
39763         rename, fchdir: don't ignore chdir failure
39764         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39765         * lib/rename.c (rpl_rename) [W32]: Likewise.
39766         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39767         an empty destination directory if source cannot be renamed,
39768         although there is still possibility for failure.
39769         * doc/posix-functions/rename.texi (rename): Document the race.
39770         Reported by Jim Meyering.
39771
39772         maint: cleanup whitespace in recent commits
39773         * lib/rename.c (rpl_rename): Remove tabs.
39774         * tests/test-link.h (test_link): Likewise.
39775         * lib/fchdir.c (get_name): Likewise.
39776         Reported by Jim Meyering.
39777
39778 2009-10-02  Ben Pfaff  <blp@gnu.org>
39779
39780         relocatable-prog-wrapper: Add missing dependency on
39781         double-slash-root.
39782         * modules/relocatable-prog-wrapper: Add dependency.
39783         Reported by Ian Beckwith <ianb@erislabs.net>.
39784
39785 2009-10-02  Eric Blake  <ebb9@byu.net>
39786
39787         renameat: fix Solaris bugs
39788         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39789         needed fixing.
39790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39791         * modules/stdio (Makefile.am): Substitute it.
39792         * lib/stdio.in.h (renameat): Declare replacement.
39793         * lib/renameat.c (rpl_renameat): Implement fix.
39794
39795         renameat: new module
39796         * modules/renameat: New file.
39797         * lib/renameat.c (renameat): Likewise.
39798         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39800         * modules/stdio (Makefile.am): Substitute them.
39801         * lib/stdio.in.h (renameat): Declare it.
39802         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39803         * doc/posix-functions/renameat.texi (renameat): Likewise.
39804         * modules/renameat-tests: New test.
39805         * tests/test-renameat.c: Likewise.
39806
39807         rename: fix mingw bugs
39808         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39809         directory overwrite bugs.
39810
39811         rename: fix another cygwin 1.5 bug
39812         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39813         checks.
39814         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39815         unnecessary cygwin workarounds.  Also work around bug with moving
39816         full directory onto an empty one.
39817         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39818
39819         rename-dest-slash: merge into rename module
39820         * modules/rename-dest-slash (Status): Mark obsolete.
39821         (Depends-on): Add rename.
39822         (Files): Let rename do it all.
39823         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39824         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39825         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39826         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39827         * lib/rename.c (rpl_rename): Update comments.
39828
39829         rename: fix cygwin 1.5.x bugs
39830         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39831         * lib/rename.c (rpl_rename): Work around them.
39832         * modules/rename (Depends-on): Add same-inode.
39833
39834         rename: fix Solaris 10 bug
39835         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39836         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39837         was the only bug.
39838
39839         rename: fix Solaris 9 bug
39840         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39841         on non-directory.  Avoid calling exit.
39842         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39843         strdup.
39844         * modules/rename-tests (Depends-on): Drop lstat.
39845         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39846         (gl_PREREQ_RENAME): Delete unused macro.
39847
39848         rename-dest-slash: fix NetBSD bug
39849         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39850         links.
39851         * modules/rename-dest-slash (Depends-on): Add same-inode.
39852
39853         rename-tests: new test, exposes several platform bugs
39854         * modules/rename-tests: New file.
39855         * tests/test-rename.h: Likewise.
39856         * tests/test-rename.c: Likewise.
39857         * doc/posix-functions/rename.texi (rename): Improve documentation,
39858         including bugs that will eventually be fixed in gnulib.
39859
39860 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39861
39862         * lib/uname.c: Include <stdlib.h>
39863         (uname): Assume version info is available.
39864
39865 2009-10-02  Jim Meyering  <meyering@redhat.com>
39866
39867         gnu-web-doc-update: correct --help output
39868         * build-aux/gnu-web-doc-update: Make --help output relevant.
39869
39870         gnu-web-doc-update: add standard options
39871         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39872
39873         gnu-web-doc-update: New module.
39874         Use this script to automatically update the on-line web documentation
39875         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39876         * modules/gnu-web-doc-update: New file, from coreutils.
39877         * build-aux/gnu-web-doc-update: New script.
39878
39879 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39880
39881         link: LoadLibrary is not needed.
39882         * lib/link.c: Use GetModuleHandle.
39883
39884 2009-10-01  Eric Blake  <ebb9@byu.net>
39885
39886         getopt: bump serial number
39887         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39888         change.
39889
39890         tests: tighten link, rmdir, and remove tests
39891         * tests/test-link.h (includes): No need to use <config.h> here.
39892         Clean up if directory hard link was created, otherwise test for
39893         trailing '.'.
39894         * tests/test-linkat.c (main): Simplify.
39895         * tests/test-remove.c (main): Enhance test for trailing '.'.
39896         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39897
39898 2009-10-01  Jim Meyering  <meyering@redhat.com>
39899
39900         maint.mk: requiring "make major" was annoying, for a "minor" release.
39901         What is intended is "stable", to contrast with alpha and beta,
39902         so require "make stable", not "make major".
39903         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39904         (get_tool_versions): Likewise.
39905         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39906
39907 2009-09-30  Ben Pfaff  <blp@gnu.org>
39908
39909         Fix broken build of replacement for Windows tmpfile().
39910         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39911         flags argument added along with the 'mkostemp' module.
39912
39913 2009-09-28  Bruno Haible  <bruno@clisp.org>
39914
39915         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39916         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39917         to 'remove_elt'.
39918         (gl_list_remove): Update.
39919         * lib/gl_list.c (gl_list_remove): Update.
39920         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39921         to 'remove_elt'.
39922         (gl_oset_remove): Update.
39923         * lib/gl_list.c (gl_oset_remove): Update.
39924         Reported by Eric Blake.
39925
39926 2009-09-28  Eric Blake  <ebb9@byu.net>
39927
39928         doc: mention yet more cygwin 1.7 status
39929         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39930         cygwin.
39931         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39932         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39933
39934         argp: fix test failure
39935         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39936         that are not upper-case.  Pass correct range to tolower.
39937
39938 2009-09-27  Jim Meyering  <meyering@redhat.com>
39939
39940         test-yesno: work around sparc-dash here-document infelicity
39941         Without this change, the literal \177 byte in a here document
39942         would make dash 0.5.5.1-3 access uninitialized memory.
39943         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39944         Instead, use a marker, "@", and filter through tr to create the desired
39945         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39946
39947 2009-09-27  Bruno Haible  <bruno@clisp.org>
39948
39949         Disable untested support for new flavours of ACLs on AIX.
39950         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39951         progress.
39952         * lib/set-mode-acl.c (qset_acl): Likewise.
39953
39954 2008-12-07  Bruno Haible  <bruno@clisp.org>
39955
39956         Add support for new flavours of ACLs on AIX. (Untested.)
39957         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39958         (file_has_acl): Add support for newer AIX.
39959         * lib/set-mode-acl.c (qset_acl): Likewise.
39960         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39961         Rainer Tammer <tammer@tammer.net>.
39962
39963 2009-09-26  Eric Blake  <ebb9@byu.net>
39964
39965         argp: fix compilation of getopt
39966         * lib/getopt.in.h (includes): Use different guard than glibc.
39967         Reported by Sergey Poznyakoff.
39968
39969         doc: mention more cygwin 1.7 status
39970         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39971         bug.
39972         * doc/posix-functions/execl.texi (execl): Likewise.
39973         * doc/posix-functions/execle.texi (execle): Likewise.
39974         * doc/posix-functions/execlp.texi (execlp): Likewise.
39975         * doc/posix-functions/execv.texi (execv): Likewise.
39976         * doc/posix-functions/execve.texi (execve): Likewise.
39977         * doc/posix-functions/execvp.texi (execvp): Likewise.
39978         * doc/glibc-functions/canonicalize_file_name.texi
39979         (canonicalize_file_name): Cygwin 1.7 now provides this.
39980         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39981         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39982         on AT_SYMLINK_NOFOLLOW.
39983
39984 2009-09-24  Eric Blake  <ebb9@byu.net>
39985
39986         test-linkat: make test more robust
39987         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39988
39989         getopt: fix inclusion guards for cygwin
39990         * modules/getopt-posix (Depends-on): Add include-next.
39991         (Makefile.am): Substitute more items in replacement header.
39992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39993         <getopt.h>.
39994         * lib/getopt.in.h (includes): Use split inclusion guard, and
39995         prefer <getopt.h> over include <unistd.h> when one is present.
39996         (option): Also override name of 'struct option'.
39997
39998         same-inode: revert prior change; it is not yet ready
39999         * NEWS: Undo mention of this change.
40000         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40001         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40002         * lib/cycle-check.c (cycle_check): Likewise.
40003         * lib/same.c (same_name): Likewise.
40004         * lib/at-func2.c (at_func2): Likewise.
40005
40006 2009-09-23  Eric Blake  <ebb9@byu.net>
40007
40008         linkat: new module
40009         * modules/linkat: New file.
40010         * lib/at-func2.c (at_func2): Likewise.
40011         * lib/linkat.c (linkat): Likewise.
40012         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40013         * lib/openat-priv.h (at_func2): Add declaration.
40014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40015         * modules/unistd (Makefile.am): Substitute them.
40016         * lib/unistd.in.h (linkat): Declare it.
40017         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40018         * doc/posix-functions/linkat.texi (linkat): Likewise.
40019         * doc/posix-functions/link.texi (link): Tweak wording.
40020         * tests/test-link.c (main): Move guts...
40021         * tests/test-link.h (test_link): ...into new file.
40022         * modules/linkat-tests: New test.
40023         * tests/test-linkat.c: Likewise.
40024         * modules/link-tests (Files): Ship new file.
40025         (Depends-on): Add stdbool.
40026
40027         dirname: add library-safe mdir_name
40028         * lib/dirname.h (mdir_name): New prototype.
40029         * lib/dirname.c (dir_name): Move guts...
40030         (mdir_name): ...to new function that avoids xalloc_die.
40031
40032         fchdir: another mingw fix
40033         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40034         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40035         on mingw (where it has not yet been ported), and make it optional
40036         elsewhere.
40037         (_gl_register_fd): Use it.
40038
40039         same-inode: make SAME_INODE tri-state, to port to mingw
40040         * NEWS: Mention this change.
40041         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40042         st_ino always being 0.
40043         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40044         * lib/cycle-check.c (cycle_check): Likewise.
40045         * lib/same.c (same_name): Likewise.
40046
40047         lstat: avoid mingw compilation error
40048         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40049         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40050         lstat ourselves.
40051         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40052         was adequate.
40053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40054         the checks for lstat.
40055         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40056
40057         link: fix test failure on Solaris 9
40058         * lib/link.c (rpl_link): Don't assume link will catch bogus
40059         trailing slash on source.
40060
40061         test-symlinkat: enhance test
40062         * tests/test-readlink.c (main): Move guts...
40063         * tests/test-readlink.h (test_readlink): ...into new file.
40064         * tests/test-symlink.c (main): Move guts...
40065         * tests/test-symlink.h (test_symlink): ...into new file.
40066         * tests/test-symlinkat.c (main): Use new files for further
40067         coverage.
40068         (do_symlink, do_readlink): New helper functions.
40069         * modules/symlink-tests (Files): Ship new file.
40070         (Depends-on): Add stdbool.
40071         * modules/readlink-tests (Files): Ship new file.
40072         (Depends-on): Add stdbool.
40073         * modules/symlinkat-tests (Files): Use new files.
40074
40075 2009-09-23  Eric Blake  <ebb9@byu.net>
40076
40077         readlink: document portability issue with symlink length
40078         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40079         systems have bogus st_size on symlinks, and mention the
40080         areadlink-with-size module.
40081         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40082         * doc/posix-functions/readlink.texi (readlink): Mention the
40083         areadlink module, and ERANGE failure.
40084         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40085         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40086
40087         readlink: fix Solaris 9 bug with trailing slash
40088         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40089         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40090         * doc/posix-functions/readlink.texi (readlink): Document this.
40091         * modules/readlink-tests: New test.
40092         * tests/test-readlink.c: Likewise.
40093
40094         readlink: fix cygwin 1.5.x bug with return type
40095         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40096         * lib/unistd.in.h (readlink): Use ssize_t.
40097         * lib/readlink.c (readlink): Likewise.
40098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40099         * modules/unistd (Makefile.am): Substitute it.
40100         * lib/unistd.in.h (readlink): Declare replacement.
40101         * doc/posix-functions/readlink.texi (readlink): Document this.
40102
40103         symlink: use throughout gnulib
40104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40105         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40106         symlink is not used.
40107         * modules/symlinkat (Depends-on): Add symlink.
40108         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40109         * modules/canonicalize-tests (Depends-on): Likewise.
40110         * modules/lstat-tests (Depends-on): Likewise.
40111         * modules/openat-tests (Depends-on): Likewise.
40112         * modules/remove-tests (Depends-on): Likewise.
40113         * modules/rmdir-tests (Depends-on): Likewise.
40114         * modules/unlink-tests (Depends-on): Likewise.
40115         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40116         * tests/test-canonicalize.c (symlink): Likewise.
40117         * tests/test-fstatat.c (symlink): Likewise.
40118         * tests/test-lstat.c (symlink): Likewise.
40119         * tests/test-remove.c (symlink): Likewise.
40120         * tests/test-rmdir.c (symlink): Likewise.
40121         * tests/test-unlink.c (symlink): Likewise.
40122         * tests/test-unlinkat.c (symlink): Likewise.
40123
40124         symlink: new module, for Solaris 9 bug
40125         * modules/symlink: New file.
40126         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40127         * lib/symlink.c: Likewise.
40128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40129         * modules/unistd (Makefile.am): Substitute them.
40130         * lib/unistd.in.h (symlink): Declare replacement.
40131         * MODULES.html.sh (File system functions): Mention it.
40132         * doc/posix-functions/symlink.texi (symlink): Likewise.
40133         * modules/symlink-tests: New test.
40134         * tests/test-symlink.c: Likewise.
40135
40136 2009-09-23  Bruno Haible  <bruno@clisp.org>
40137
40138         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40139         when needed.
40140         Test case: gnulib-tool --import --with-tests atexit inttypes.
40141         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40142
40143 2009-09-23  Bruno Haible  <bruno@clisp.org>
40144
40145         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40146         subcommand, not in a subshell.
40147
40148 2009-09-22  Eric Blake  <ebb9@byu.net>
40149
40150         unistd: sort replacement declarations
40151         * lib/unistd.in.h: Sort declarations.
40152
40153         open, openat: minor optimization
40154         * lib/open.c (open): If open succeeded, len is non-zero.
40155         * lib/openat.c (rpl_openat): Likewise.
40156
40157         link-follow: ensure correct result
40158         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40159         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40160         distinguish between possible failures.
40161
40162 2009-09-21  Eric Blake  <ebb9@byu.net>
40163
40164         fts: avoid compiler warning
40165         * lib/fts.c (dirent_inode_sort_may_be_useful)
40166         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40167
40168 2009-09-19  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/progreloc.c (canonicalize_file_name): New declaration.
40171
40172 2009-09-19  Eric Blake  <ebb9@byu.net>
40173
40174         link: fix quoting
40175         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40176
40177         openat: fix openat bugs on Solaris 9
40178         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40179         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40180         * modules/openat (Depends-on): Add open.
40181         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40182         * modules/fcntl-h (Makefile.am): Substitute it.
40183         * lib/fcntl.in.h (openat): Declare replacement.
40184         * doc/posix-functions/openat.texi (openat): Document this.
40185
40186         openat: move fstatat and unlinkat into correct files
40187         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40188         compiled.
40189         * lib/openat.c (fstatat, unlinkat): Move...
40190         * lib/fstatat.c (fstatat): ...into correct files.
40191         * lib/unlinkat.c (unlinkat): Likewise.
40192
40193         openat: fix unlinkat bugs on Solaris 9
40194         * lib/unlinkat.c (unlinkat): New file.
40195         * modules/openat (Depends-on): Add unlink.
40196         (Files): Distribute it.
40197         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40198         trailing slash behavior is broken.
40199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40200         * modules/unistd (Makefile.am): Substitute it.
40201         * lib/unistd.in.h (unlinkat): Declare replacement.
40202         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40203
40204         openat: fix fstatat bugs on Solaris 9
40205         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40206         stat.
40207         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40208
40209         test-unlinkat: enhance test, to expose Solaris 9 bug
40210         * tests/test-unlink.c (main): Factor guts...
40211         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40212         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40213         * tests/test-rmdir.c (main): Adjust caller.
40214         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40215         (unlinker): New helper function.
40216         (rmdirat): Enhance check.
40217         * modules/rmdir-tests (Depends-on): Add stdbool.
40218         * modules/unlink-tests (Depends-on): Likewise.
40219         (Files): Add test-unlink.h.
40220         * modules/openat-tests (Files): Likewise.
40221         (Depends-on): Add unlinkdir.
40222
40223         test-fstatat: new test, to expose Solaris 9 bugs
40224         * tests/test-stat.c (main): Factor guts...
40225         * tests/test-stat.h (test_stat_func): ...into new file.
40226         * tests/test-lstat.c (main): Factor guts...
40227         * tests/test-lstat.h (test_lstat_func): ...into new file.
40228         * tests/test-fstatat.c: New file.
40229         * modules/stat-tests (Files): Add test-stat.h.
40230         * modules/lstat-tests (Files): Add test-lstat.h.
40231         (Depends-on): Add stdbool.
40232         * modules/openat-tests (Depends-on): Add pathmax.
40233         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40234         (Makefile.am): Run new test.
40235
40236         remove: new module, for mingw and Solaris 9 bugs
40237         * modules/remove: New file.
40238         * lib/remove.c: Likewise.
40239         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40241         * modules/stdio (Makefile.am): Use them.
40242         * lib/stdio.in.h (remove): Declare replacement.
40243         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40244         * doc/posix-functions/remove.texi (remove): Likewise.
40245         * modules/remove-tests: New test.
40246         * tests/test-remove.c: Likewise.
40247
40248         unlink: new module, for Solaris 9 bug
40249         * modules/unlink: New file.
40250         * lib/unlink.c: Likewise.
40251         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40253         * modules/unistd (Makefile.am): Use them.
40254         * lib/unistd.in.h (stat): Declare replacement.
40255         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40256         * doc/posix-functions/unlink.texi (unlink): Likewise.
40257         * modules/unlink-tests: New test.
40258         * tests/test-unlink.c: Likewise.
40259
40260         lstat: fix Solaris 9 bug
40261         * lib/lstat.c (lstat): Also check for trailing slash on
40262         non-symlink, non-directories.  Use stat module to simplify logic.
40263         * doc/posix-functions/lstat.texi (lstat): Document it.
40264         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40265         (configure.ac): Check for symlink.
40266         * tests/test-lstat.c (main): Add more tests.
40267
40268         stat: add as dependency to other modules
40269         * modules/chown (Depends-on): Add stat.
40270         * modules/euidaccess (Depends-on): Likewise.
40271         * modules/fchdir (Depends-on): Likewise.
40272         * modules/isdir (Depends-on): Likewise.
40273         * modules/link (Depends-on): Likewise.
40274         * modules/lstat (Depends-on): Likewise.
40275         * modules/mkdir-p (Depends-on): Likewise.
40276         * modules/modechange (Depends-on): Likewise.
40277         * modules/open (Depends-on): Likewise.
40278         * modules/readlink (Depends-on): Likewise.
40279         * modules/same (Depends-on): Likewise.
40280
40281         stat: fix Solaris 9 bug
40282         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40283         slash.
40284         * lib/stat.c (rpl_stat): Work around it.
40285         * doc/posix-functions/stat.texi (stat): Update documentation.
40286
40287         stat: new module, for mingw bug
40288         * modules/stat: New file.
40289         * lib/stat.c: Likewise.
40290         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40292         * modules/sys_stat (Makefile.am): Use them.
40293         * lib/sys_stat.in.h (stat): Declare replacement.
40294         * lib/openat.c (fstatat): Deal with lstat and stat being function
40295         macros.
40296         * modules/openat (Depends-on): Add inline.
40297         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40298         * doc/posix-functions/stat.texi (stat): Likewise.
40299         * modules/stat-tests: New test.
40300         * tests/test-stat.c: Likewise.
40301
40302 2009-09-19  Jim Meyering  <meyering@redhat.com>
40303
40304         syntax-check: detect unnecessary inclusion of canonicalize.h
40305         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40306
40307 2009-09-19  Eric Blake  <ebb9@byu.net>
40308
40309         canonicalize-lgpl: adjust clients to use correct header
40310         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40311         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40312         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40313         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40314         * lib/progreloc.c (includes): Likewise.
40315
40316 2009-09-19  Jim Meyering  <meyering@redhat.com>
40317
40318         test-posixtm.c: correct a comment
40319         * tests/test-posixtm.c: Correct first-line comment.
40320         Spotted by Eric Blake.
40321
40322 2009-09-16  Jim Meyering  <meyering@redhat.com>
40323
40324         posixtm-tests: make T const-correct; add a test case
40325         * tests/test-posixtm.c (T): Declare const.
40326         Add a test for -(2^31+1).
40327         Remove useless can-succeed-only-in-2002 test.
40328
40329         posixtm-tests: adjust the sole failing test
40330         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40331         expected output matches what mktime now produces.  Cross-checked via
40332         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40333
40334         posixtm: move #ifdef'd tests into a new module
40335         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40336         * tests/test-posixtm.c: ... this new file.
40337         * modules/posixtm-tests: New module.
40338
40339 2009-09-19  Eric Blake  <ebb9@byu.net>
40340
40341         openat: simplify use of at-func.c
40342         * lib/at-func.c (includes): Include prerequisites here, to
40343         simplify requirements on client files.
40344         * lib/openat-priv.h: Add double-inclusion guard.
40345         * lib/faccessat.c (includes): Simplify.
40346         * lib/fchmodat.c (includes): Likewise.
40347         * lib/fchownat.c (includes): Likewise.
40348         * lib/mkdirat.c (includes): Likewise.
40349         * lib/mkfifoat.c (includes): Likewise.
40350         * lib/symlinkat.c (includes): Likewise.
40351
40352         openat: allow return of fd 0
40353         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40354         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40355         unistd-safer.
40356         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40357         <fcntl.h>; this module does not leak fds.
40358         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40359         must be allowed to return 0, leaving openat_safer to add the
40360         safety.
40361         (openat_permissive): Avoid writing to just-opened fd 2 if
40362         restoring the current directory fails.
40363         * lib/openat-die.c (openat_restore_fail): Add comment.
40364         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40365         (save_cwd): Guarantee safe fd, but without use of open_safer.
40366         * tests/test-openat.c: New test.
40367         * modules/openat-tests (Files, Makefile.am): Distribute and build
40368         new file.
40369
40370         relocatable-prog-wrapper: fix build
40371         * modules/relocatable-prog-wrapper (Files): Update name of
40372         canonicalize m4 file, broken on 2009-09-17.
40373         Reported by emad hajjar <aleppos@hotmail.com>.
40374
40375 2009-09-19  Bruno Haible  <bruno@clisp.org>
40376
40377         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40378         * lib/safe-alloc.c: Likewise.
40379         Reported by Ian Beckwith <ianb@erislabs.net>.
40380
40381 2009-09-18  Bruno Haible  <bruno@clisp.org>
40382
40383         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40384         Reported by <erobles@sensacd.com.mx>.
40385
40386 2009-09-17  Eric Blake  <ebb9@byu.net>
40387
40388         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40389         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40390         slashes when checking if last component is missing.
40391         * tests/test-canonicalize.c (main): Test this.
40392
40393         canonicalize, canonicalize-lgpl: honor // if distinct from /
40394         * modules/canonicalize (Files): Add double-slash-root.m4.
40395         * modules/canonicalize-lgpl (Files): Likewise.
40396         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40397         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40398         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40399         fallback definition.
40400         (canonicalize_filename_mode): Use it to protect //.
40401         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40402         (__realpath): Likewise.
40403         * tests/test-canonicalize.c (main): Test this.
40404         * tests/test-canonicalize-lgpl.c (main): Likewise.
40405         * modules/canonicalize-tests (Depends-on): Add same-inode.
40406         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40407
40408         canonicalize-lgpl: fix glibc bug with trailing slash
40409         * m4/canonicalize-lgpl.m4: Move contents...
40410         * m4/canonicalize.m4: ...here.
40411         (gl_CANONICALIZE_LGPL): Factor realpath check...
40412         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40413         glibc 2.3.5 bug, fixed 2005-04-27.
40414         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40415         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40416         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40417         * modules/canonicalize-lgpl (Files): Manage file rename.
40418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40419         * modules/stdlib (Makefile.am): Substitute witness.
40420         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40421         is needed.
40422         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40423         replacement is required.
40424         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40425         * doc/glibc-functions/canonicalize_file_name.texi
40426         (canonicalize_file_name): Document this.
40427         * doc/posix-functions/realpath.texi (realpath): Likewise.
40428
40429         canonicalize-lgpl: reject non-directory with trailing slash
40430         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40431         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40432         catches failures in glibc 2.3.5.
40433         * tests/test-canonicalize.c (main): Likewise.
40434
40435         canonicalize-lgpl: use native realpath if it works
40436         * lib/canonicalize-lgpl.c (realpath): Guard with
40437         FUNC_REALPATH_WORKS.
40438         * lib/stdlib.in.h (realpath): Make declaration optional based on
40439         HAVE_REALPATH.
40440         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40441         native realpath works.
40442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40443         * modules/stdlib (Makefile.am): Substitute witness.
40444
40445         canonicalize, canonicalize-lgpl: use <stdlib.h>
40446         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40447         (Include): Mention <stdlib.h>.
40448         (configure.ac): Mention functions we provide.
40449         * modules/canonicalize (configure.ac): Likewise.
40450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40451         realpath if canonicalize_file_name is missing.
40452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40453         * modules/stdlib (Makefile.am): Substitute witnesses.
40454         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40455         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40456         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40457         * NEWS: Document this.
40458         * doc/glibc-functions/canonicalize_file_name.texi
40459         (canonicalize_file_name): Likewise.
40460         * doc/posix-functions/realpath.texi (realpath): Likewise.
40461         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40462
40463         test-canonicalize: consolidate into single C program
40464         * tests/test-canonicalize.sh: Delete; move setup into...
40465         * tests/test-canonicalize.c (main): ...the program, making it
40466         easier to run in debugger.  Add some tests.
40467         * modules/canonicalize-tests (Files): Remove unused file.
40468         (Depends-on): Add progname.
40469         (configure.ac, Makefile.am): Simplify.
40470
40471         test-canonicalize-lgpl: consolidate into single C program
40472         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40473         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40474         easier to run in debugger.  Add some tests.
40475         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40476         (configure.ac, Makefile.am): Simplify.
40477
40478         canonicalize: avoid resolvepath
40479         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40480         unnecessary checks.
40481         * lib/canonicalize.c (includes): Simplify.
40482         (canonicalize_file_name): Drop resolvepath implementation.
40483         * modules/canonicalize (Depends-on): Drop filenamecat.
40484
40485         canonicalize: don't lose errno
40486         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40487         over calls to free.
40488
40489         canonicalize: simplify errno handling
40490         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40491         assignment.
40492
40493         canonicalize, canonicalize-lgpl: update module dependencies
40494         * modules/canonicalize (Depends-on): Add extensions, lstat,
40495         pathmax, stdlib.
40496         (Files): Drop pathmax.h.
40497         (configure.ac): Adjust macro name.
40498         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40499         lstat, stdlib, sys_stat.
40500         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40501         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40502         extensions.
40503         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40504         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40505         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40506         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40507         declaration, if available.
40508         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40509         we can rely on the readlink module.
40510         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40511         (includes): Use <unistd.h> unconditionally.
40512
40513 2009-09-17  Eric Blake  <ebb9@byu.net>
40514
40515         maint: make Include sections of modules consistent
40516         * modules/alloca: Use only header name; no need to list #include.
40517         * modules/alloca-opt: Likewise.
40518         * modules/arpa_inet: Likewise.
40519         * modules/canon-host: Likewise.
40520         * modules/configmake: Likewise.
40521         * modules/dirent: Likewise.
40522         * modules/eealloc: Likewise.
40523         * modules/environ: Likewise.
40524         * modules/fchdir: Likewise.
40525         * modules/fcntl: Likewise.
40526         * modules/fcntl-h: Likewise.
40527         * modules/gethrxtime: Likewise.
40528         * modules/gettime: Likewise.
40529         * modules/ignore-value: Likewise.
40530         * modules/inet_ntop: Likewise.
40531         * modules/inet_pton: Likewise.
40532         * modules/inttypes: Likewise.
40533         * modules/isnand-nolibm: Likewise.
40534         * modules/isnanf-nolibm: Likewise.
40535         * modules/mbchar: Likewise.
40536         * modules/mbfile: Likewise.
40537         * modules/mbiter: Likewise.
40538         * modules/mbuiter: Likewise.
40539         * modules/netdb: Likewise.
40540         * modules/netinet_in: Likewise.
40541         * modules/nproc: Likewise.
40542         * modules/pagealign_alloc: Likewise.
40543         * modules/poll: Likewise.
40544         * modules/printf-frexp: Likewise.
40545         * modules/pthread: Likewise.
40546         * modules/putenv: Likewise.
40547         * modules/random_r: Likewise.
40548         * modules/relocatable-prog: Likewise.
40549         * modules/search: Likewise.
40550         * modules/select: Likewise.
40551         * modules/selinux-h: Likewise.
40552         * modules/settime: Likewise.
40553         * modules/signal: Likewise.
40554         * modules/size_max: Likewise.
40555         * modules/socklen: Likewise.
40556         * modules/ssize_t: Likewise.
40557         * modules/stdarg: Likewise.
40558         * modules/stdbool: Likewise.
40559         * modules/stddef: Likewise.
40560         * modules/stdint: Likewise.
40561         * modules/stdio: Likewise.
40562         * modules/stdlib: Likewise.
40563         * modules/string: Likewise.
40564         * modules/strings: Likewise.
40565         * modules/sys_file: Likewise.
40566         * modules/sys_ioctl: Likewise.
40567         * modules/sys_select: Likewise.
40568         * modules/sys_socket: Likewise.
40569         * modules/sys_stat: Likewise.
40570         * modules/sys_time: Likewise.
40571         * modules/sys_times: Likewise.
40572         * modules/sys_utsname: Likewise.
40573         * modules/sys_wait: Likewise.
40574         * modules/sysexits: Likewise.
40575         * modules/time: Likewise.
40576         * modules/times: Likewise.
40577         * modules/tmpfile: Likewise.
40578         * modules/trim: Likewise.
40579         * modules/unistd: Likewise.
40580         * modules/wchar: Likewise.
40581         * modules/wctype: Likewise.
40582
40583 2009-09-17  Bruno Haible  <bruno@clisp.org>
40584
40585         Make getdate.y compile on QNX and NetBSD 5 / i386.
40586         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40587         TIME_T_FITS_IN_LONG_INT.
40588         * lib/getdate.y (long_time_t): New type.
40589         (relative_time): Change type of 'seconds' field to long_time_t.
40590         (get_date): Update types of local variables. Check against overflow
40591         during conversion from long_time_t to time_t.
40592         Reported by Matt Kraai <kraai@ftbfs.org>
40593         and Hasso Tepper <hasso@netbsd.org>.
40594
40595 2009-09-17  Bruno Haible  <bruno@clisp.org>
40596
40597         * modules/COPYING: Update copyright years.
40598         * modules/README: Likeiwse.
40599         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40600         Reported by Ian Beckwith <ianb@erislabs.net>.
40601
40602 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40603
40604         * users.txt: Update references for gnuit package.
40605
40606 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40607
40608         * m4/getdelim.m4: Fix typo in copyright line.
40609
40610 2009-09-17  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/atoll.c: Use the standard header with GPL copyright.
40613         * lib/argz.in.h: Likewise.
40614         * lib/glob.c: Likewise.
40615         * lib/glob-libc.h: Likewise.
40616         * lib/random_r.c: Likewise.
40617         * lib/siglist.h: Likewise.
40618         * lib/strsignal.c: Likewise.
40619         Reported by Ian Beckwith <ianb@erislabs.net>.
40620
40621 2009-09-17  Eric Blake  <ebb9@byu.net>
40622
40623         rmdir: ensure correct dependency order
40624         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40625
40626 2009-09-17  Bruno Haible  <bruno@clisp.org>
40627
40628         Disable assertion that fails on NetBSD 5 / i386.
40629         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40630         Reported by Sam Steingold <sds@gnu.org>
40631         and Hasso Tepper <hasso@netbsd.org>.
40632
40633 2009-09-16  Eric Blake  <ebb9@byu.net>
40634
40635         unlinkdir: port to mingw
40636         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40637         on which no one can unlink a directory.
40638
40639         stdlib: sort witness names
40640         * modules/stdlib (Makefile.am): Sort replacements.
40641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40642         * lib/stdlib.in.h: Likewise.
40643
40644         parse-duration-tests: avoid link failure
40645         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40646         LIBINTL.
40647         Reported by Tom G. Christensen.
40648
40649         openat-tests: ensure unlinkat behaves like rmdir
40650         * tests/test-rmdir.c (main): Factor guts...
40651         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40652         * modules/rmdir-tests (Files): Ship new file.
40653         * modules/openat-tests: New test.
40654         * tests/test-unlinkat.c: Likewise.
40655
40656         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40657         * modules/rmdir-errno (Status, Notice): Now obsolete.
40658
40659         rmdir: work around cygwin 1.5.x and mingw bugs
40660         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40661         * lib/rmdir.c (rmdir): Work around it.
40662         * modules/rmdir (Status, Notice): No longer obsolete.
40663         (Files): Add dos.m4.
40664         (Depends-on): Add unistd.
40665         (configure.ac): Set witnesses.
40666         (License): Relax to LGPLv2+.
40667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40668         * modules/unistd (Makefile.am): Substitute witnesses.
40669         * lib/unistd.in.h (rmdir): Declare replacement.
40670         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40671         * modules/rmdir-tests: New tests.
40672         * tests/test-rmdir.c: Likewise.
40673
40674 2009-09-15  Eric Blake  <ebb9@byu.net>
40675
40676         fchdir: improve use of replacement functions
40677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40680         REPLACE_CLOSEDIR.
40681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40682         * modules/sys_stat (Makefile.am): Substitute correct witness.
40683         * modules/dirent (Makefile.am): Likewise.
40684         * modules/unistd (Makefile.am): Likewise.
40685         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40686         * lib/unistd.in.h (dup): Likewise.
40687         * lib/sys_stat.in.h (fstat): Likewise.
40688
40689         maint: ignore gnulib-tool temp files
40690         * .gitignore: Ignore files created during gnulib-tool --test.
40691
40692 2009-09-13  Jim Meyering  <meyering@redhat.com>
40693
40694         posixtm: don't reject a time that specify "60" as the number of seconds
40695         * lib/posixtm.c (posixtime): The code to reject invalid dates
40696         would also reject a time specified with the .60 suffix.
40697         But POSIX allows that, in order to accommodate leap seconds.
40698         So don't reject it.
40699         (main): Adjust tests accordingly.
40700         * modules/posixtm (Depends-on): Add stpcpy.
40701
40702 2009-09-11  Jim Meyering  <meyering@redhat.com>
40703
40704         announce-gen: include [$release_type] in emitted Subject:
40705         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40706         e.g., [stable] in the emitted Subject: line.
40707
40708 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40709
40710         Remove obsolete macros from several modules.
40711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40712         obsolete Autoconf macros with their modern counterparts.
40713         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40714         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40716         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40718         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40720         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40721         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40722         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40723         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40725         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40726         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40727         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40728         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40729         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40730         * m4/time_r.m4 (gl_TIME_R): Likewise.
40731         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40732         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40733         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40734
40735         Fix copyright header in build-aux scripts.
40736         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40737         recommendation.
40738         * build-aux/ncftpput-ftp: Likewise.
40739         * build-aux/update-copyright: Likewise.
40740
40741 2009-09-09  Eric Blake  <ebb9@byu.net>
40742
40743         test-link: allow Linux choice of errno
40744         * tests/test-link.c (main): Relax test for alternate error.
40745
40746         strndup: fix improper m4 caching
40747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40748         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40749         (gl_PREREQ_STRNDUP): Delete.
40750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40751         * modules/string (Makefile.am): Substitute it.
40752         * lib/string.in.h (strndup): Modernize prototype.
40753
40754         getcwd: port to mingw
40755         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40756         different from the POSIX assumptions made throughout the getcwd
40757         module; fortunately, the mingw getcwd does not need replacement.
40758         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40759         * modules/getcwd-tests: New test.
40760         * tests/test-getcwd.c: Likewise.
40761
40762         link: fix platform bugs
40763         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40764         * lib/link.c (link): Work around them.  Fix related mingw bug.
40765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40766         * modules/unistd (Makefile.am): Substitute it.
40767         * lib/unistd.in.h (link): Declare replacement.
40768         * doc/posix-functions/link.texi (link): Document this.
40769         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40770
40771         test-link: consolidate into single C program, test more cases
40772         * tests/test-link.sh: Delete.
40773         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40774         at least Cygwin and Solaris.
40775         * modules/link-tests (Files): Remove unused file.
40776         (Depends-on): Add errno, sys_stat.
40777         (Makefile.am): Simplify.
40778
40779 2009-09-08  Bruno Haible  <bruno@clisp.org>
40780
40781         Work around towlower, towupper bug on mingw.
40782         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40783         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40784         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40785         * doc/posix-functions/towupper.texi: Likewise.
40786         Reported by Eric Blake.
40787
40788 2009-09-08  Jim Meyering  <meyering@redhat.com>
40789
40790         build: don't try to run autoheader if we don't use it
40791         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40792         is not used in configure.ac.
40793
40794 2009-09-08  Eric Blake  <ebb9@byu.net>
40795
40796         euidaccess: fix compilation error
40797         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40798
40799         rawmemchr: relax license
40800         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40801         okay.
40802         Reported by Jim Meyering.
40803
40804         mkfifoat: new module
40805         * modules/mkfifoat: New file.
40806         * lib/mkfifoat.c: Likewise.
40807         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40809         * modules/sys_stat (Makefile.am): Use them.
40810         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40811         * MODULES.html.sh (File system functions): Mention module.
40812         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40813         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40814         * modules/mkfifoat-tests: New test.
40815         * tests/test-mkfifoat.c: Likewise.
40816
40817         strchrnul: relax license
40818         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40819         okay.
40820         Reported by Jim Meyering.
40821
40822 2009-09-08  Eric Blake  <ebb9@byu.net>
40823
40824         fstatat: fix compilation on Solaris
40825         * lib/fstatat.c (includes): Add fcntl.h.
40826         Reported by Pádraig Brady.
40827
40828 2009-09-07  Eric Blake  <ebb9@byu.net>
40829
40830         rename: modernize replacement
40831         * modules/rename (Depends-on): Add stdio.
40832         (configure.ac): Declare witness.
40833         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40834         stdio take care of replacement.
40835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40836         * modules/stdio (Makefile.am): Substitute them.
40837         * lib/stdio.in.h (rename): Declare replacement.
40838         * lib/rename.c (includes): Allow cross-compilation to non-windows
40839         machines.
40840         * doc/posix-functions/rename.texi (rename): Improve
40841         documentation.
40842
40843         stdio: sort witness names
40844         * modules/stdio (Makefile.am): Sort replacements.
40845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40846         * lib/stdio.in.h: Likewise.
40847
40848         getcwd: minor cleanups
40849         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40850         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40851
40852         openat: provide more convenience names
40853         * modules/faccessat (configure.ac): Add C witness.
40854         * lib/unistd.in.h (readlinkat): Fix typo.
40855         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40856         convenience wrappers.
40857         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40858         wrappers in syntax checks.
40859
40860 2009-09-06  Eric Blake  <ebb9@byu.net>
40861
40862         doc: fix comments in recent patches
40863         * lib/faccessat.c: Mention correct function.
40864         * lib/fchmodat.c: Likewise.
40865         * lib/fchownat.c: Likewise.
40866         * lib/symlinkat.c: Likewise.
40867         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40868         constants.
40869
40870         faccessat, symlinkat: continue cleanup of previous patch
40871         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40872         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40873         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40875         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40876         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40877         set.
40878
40879 2009-09-06  Bruno Haible  <bruno@clisp.org>
40880
40881         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40882         (fstatat): Declare if GNULIB_FSTATAT is set.
40883         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40884         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40885         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40886         * modules/fcntl-h (Files): Remove m4/openat.m4.
40887         * modules/sys_stat (Files): Remove m4/openat.m4.
40888         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40889         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40890         * modules/unistd (Files): Remove m4/openat.m4.
40891         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40892         GNULIB_OPENAT.
40893         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40894         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40896         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40897         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40898         gl_OPENAT_DEFAULTS.
40899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40900         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40901         Don't require gl_OPENAT_DEFAULTS.
40902         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40903         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40904         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40905         (gl_OPENAT_DEFAULTS): Remove macro.
40906
40907 2009-09-06  Bruno Haible  <bruno@clisp.org>
40908
40909         * modules/openat (configure.ac): Remove unneeded witness.
40910
40911 2009-09-06  Bruno Haible  <bruno@clisp.org>
40912
40913         Set errno to ENOSYS when a function is entirely unsupported.
40914         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40915         EOPNOTSUPP.
40916         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40917         * modules/chown (Depends-on): Remove errno.
40918
40919 2009-09-06  Bruno Haible  <bruno@clisp.org>
40920
40921         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40922
40923 2009-09-06  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40926
40927 2009-09-06  Ben Pfaff  <blp@gnu.org>
40928             Bruno Haible  <bruno@clisp.org>
40929
40930         Work around a glibc bug in strtok_r.
40931         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40932         Undefine if UNDEFINE_STRTOK_R is set.
40933         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40935         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40936         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40937         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40938         UNDEFINE_STRTOK_R.
40939         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40940
40941 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40942
40943         exclude: minor fix
40944         * lib/exclude.c: Include wctype.h
40945
40946 2009-09-06  Akim Demaille  <demaille@gostai.com>
40947
40948         bootstrap: improve error message
40949         * build-aux/bootstrap (find_tool): Upon failure, report the list
40950         of candidates.
40951         Honor the initial value of the envvar.
40952
40953 2009-09-05  Eric Blake  <ebb9@byu.net>
40954
40955         symlinkat: new module
40956         * modules/symlinkat: New file.
40957         * lib/symlinkat.c: Likewise.
40958         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40960         * modules/unistd (Makefile.am): Use them.
40961         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40962         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40963         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40964         * MODULES.html.sh (File system functions): Mention module.
40965         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40967         * modules/symlinkat-tests: New test.
40968         * tests/test-symlinkat.c: Likewise.
40969
40970         test-openat-safer: add more checks
40971         * tests/test-openat-safer.c (main): Check more code paths.
40972
40973 2009-09-05  Jim Meyering  <meyering@redhat.com>
40974
40975         syntax-check: detect unnecessary inclusion of openat.h
40976         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40977
40978 2009-09-05  Bruno Haible  <bruno@clisp.org>
40979
40980         Support towlower, towupper.
40981         * doc/posix-functions/towlower.texi: Mention module wctype.
40982         * doc/posix-functions/towupper.texi: Likewise.
40983         * lib/wctype.in.h (towlower, towupper): New functions.
40984         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40985         (ASSERT): New macro.
40986         (e): New variable.
40987         (main): Test also towlower, towupper. Test WEOF argument.
40988         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40989
40990 2009-09-05  Bruno Haible  <bruno@clisp.org>
40991
40992         Fix conversion behaviour when the input is invalid.
40993         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40994         mark occurring in first pass of indirect conversion.
40995         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40996         input.
40997         Found by clang's static analyzer.
40998
40999 2009-09-05  Bruno Haible  <bruno@clisp.org>
41000
41001         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41002         where direct conversion is possible.
41003
41004 2009-09-04  Eric Blake  <ebb9@byu.net>
41005
41006         openat: fail with ENOENT on empty name
41007         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41008         buffer.
41009
41010         link-follow: fix logic bug in prior patch
41011         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41012         reversed sense of yes and no in prior patch.  Avoid confusing
41013         compilation failure with desired semantics.
41014
41015         link-follow: accomodate mingw and cross-compilation
41016         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41017         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41018         cross-compilation results to -1, to make linkat easier to
41019         implement when cross-compiling.  Trivially support mingw.
41020         * modules/link-follow (configure.ac): Call new name.
41021         * NEWS: Mention this.
41022
41023 2009-09-03  Eric Blake  <ebb9@byu.net>
41024
41025         faccessat: compile replacement
41026         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41027         needed.
41028
41029         fts: fix compilation error
41030         * lib/fts.c (includes): Re-add "openat.h", for
41031         openat_needs_fchdir.
41032
41033         faccessat: new module
41034         * modules/faccessat: New file.
41035         * lib/faccessat.c: Likewise.
41036         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41038         * modules/unistd (Makefile.am): Use it.
41039         * lib/unistd.in.h (faccessat): Declare it.
41040         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41041         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41042         * MODULES.html.sh (File system functions): Mention it.
41043         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41044         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41045
41046         euidaccess: prefer POSIX over non-standard implementation
41047         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41048         * lib/euidaccess.c (euidaccess): Use it if available.
41049
41050         openat: make template easier to use
41051         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41052         AT_FUNC_F2 to be undefined.
41053         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41054         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41055         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41056         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41057         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41058         Likewise.
41059         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41060         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41061         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41062         Likewise.
41063
41064         openat: declare in POSIX headers
41065         * NEWS: Mention this.
41066         * modules/openat (configure.ac): Declare witnesses.
41067         (Depends-on): Add fcntl-h, sys_stat, unistd.
41068         (Include): Mention correct headers.
41069         * modules/fcntl-h (Depends-on): Add link-warning.
41070         (Files): Add openat.m4.
41071         (Makefile.am): Substitute witnesses.
41072         * modules/sys_stat (Files, Makefile.am): Likewise.
41073         * modules/unistd (Files, Makefile.am): Likewise.
41074         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41075         (gl_OPENAT_DEFAULTS): New macro.
41076         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41079         (SYS_STAT_H): Remove unused variable.
41080         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41081         * lib/fcntl--.h (includes): Remove unneeded header.
41082         * lib/openat-safer.c (includes): Likewise.
41083         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41084         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41085         appropriate headers.
41086         (__OPENAT_PREFIX): Delete.
41087         * lib/fcntl.in.h (openat): Provide declaration.
41088         (AT_FDCWD): Fix Solaris bug.
41089         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41090         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41091         * lib/fchmodat.c (includes):  Adjust to find declaration.
41092         * lib/fchownat.c (includes): Likewise.
41093         * lib/mkdirat.c (includes): Likewise.
41094         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41095         still visible.
41096
41097 2009-09-02  Eric Blake  <ebb9@byu.net>
41098
41099         errno: use consistently
41100         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41101         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41102         * lib/canonicalize.c (ELOOP): Likewise.
41103         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41104         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41105         * lib/lchown.c (EOPNOTSUPP): Likewise.
41106         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41107         * lib/savewd.c (ESTALE): Likewise.
41108         * lib/settime.c (ENOSYS): Likewise.
41109         * lib/utimens.c (ENOSYS): Likewise.
41110         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41111         * lib/chdir-safer.c (ELOOP): Likewise.
41112         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41113         * modules/c-stack (Depends-on): Add errno.
41114         * modules/canonicalize (Depends-on): Likewise.
41115         * modules/chdir-safer (Depends-on): Likewise.
41116         * modules/fdopendir (Depends-on): Likewise.
41117         * modules/inet_ntop (Depends-on): Likewise.
41118         * modules/inet_pton (Depends-on): Likewise.
41119         * modules/lchown (Depends-on): Likewise.
41120         * modules/openat (Depends-on): Likewise.
41121         * modules/savewd (Depends-on): Likewise.
41122         * modules/settime (Depends-on): Likewise.
41123         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41124
41125         fts: avoid leaking fds
41126         * modules/fts (Depends-on): Add cloexec.
41127         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41128         flag.
41129
41130         fts: make directory fds more robust
41131         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41132         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41133
41134         backupfile, chdir-long, fts, savedir: make safer
41135         * lib/backupfile.c (includes): Use "dirent--.h", since
41136         numbered_backup can write to stderr during readdir.
41137         * lib/savedir.c (includes): Likewise.
41138         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41139         emulation can write to stderr on failure.
41140         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41141         * lib/getcwd.c: Document why opendir_safer is unused.
41142         * lib/glob.c: Likewise.
41143         * lib/scandir.c: Likewise.
41144         * lib/openat-proc.c: Likewise, for open_safer.
41145         * modules/backupfile (Depends-on): Add dirent-safer.
41146         * modules/savedir (Depends-on): Likewise.
41147         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41148         * modules/chdir-long (Depends-on): Add openat-safer.
41149
41150         openat-safer: new module
41151         * modules/openat-safer: New file.
41152         * lib/openat-safer.c: Likewise.
41153         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41154         * lib/fcntl-safer.h (openat_safer): Declare.
41155         * lib/fcntl--.h (openat): Override.
41156         * MODULES.html.sh (File descriptor based I/O): Mention it.
41157         * lib/openat.h: Add double-inclusion guards.
41158         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41159         "fcntl--.h", so we can implement openat.
41160         * modules/openat-safer-tests: New test.
41161         * tests/test-openat-safer.c: New file.
41162
41163         dirent-safer: new module
41164         * modules/dirent-safer: New file.
41165         * lib/dirent--.h: Likewise.
41166         * lib/dirent-safer.h: Likewise.
41167         * lib/opendir-safer.c: Likewise.
41168         * m4/dirent-safer.m4: Likewise.
41169         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41170         * modules/dirent-safer-tests: New test.
41171         * tests/test-dirent-safer.c: New file.
41172         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41173
41174         fdopendir: optimize on mingw
41175         * lib/unistd.in.h (_gl_directory_name): New prototype.
41176         * lib/fchdir.c (_gl_directory_name): Implement it.
41177         (fchdir): Use it to simplify implementation.
41178         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41179         fchdir, when available, to avoid calling [f]chdir().
41180
41181         fdopendir: split into its own module
41182         * lib/openat.c (fdopendir): Move...
41183         * lib/fdopendir.c: ...into new file.
41184         * modules/fdopendir: New module.
41185         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41186         * modules/openat (Depends-on): Add fdopendir.
41187         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41188         fdopendir here.
41189         * modules/savedir (Depends-on): Only need fdopendir, not full
41190         openat.
41191         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41192         * lib/openat.h (fdopendir): Drop prototype.
41193         * lib/dirent.in.h (fdopendir): Provide prototype.
41194         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41195         * modules/dirent (Makefile.am): Substitute them.
41196         * MODULES.html.sh (File system functions): Mention it.
41197         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41198         * modules/fdopendir-tests: New file.
41199         * tests/test-fdopendir.c: Likewise.
41200
41201         fchdir: use more consistent macro convention
41202         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41203         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41204         REPLACE_FCHDIR, rather than relying on config.h macros.
41205         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41206         inside a single make-time REPLACE_FCHDIR block, rather than using
41207         the config.h FCHDIR_REPLACEMENT.
41208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41209         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41210         Manage fstat replacement.
41211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41212         REPLACE_FCHDIR.
41213         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41214         (Makefile.am): Substitute REPLACE_FCHDIR.
41215         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41216         FCHDIR_REPLACEMENT.
41217         * lib/dup-safer.c (dup_safer): Likewise.
41218         * lib/dup2.c (rpl_dup2): Likewise.
41219         * lib/dup3.c (rpl_dup3): Likewise.
41220         * lib/open.c (rpl_open): Likewise.
41221
41222         fchdir: simplify error handling, and support dup3
41223         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41224         stdbool, malloc-posix, realloc-posix.
41225         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41226         (ensure_dirs_slot): Return false on allocation failure.
41227         (rpl_dup2): Delete.
41228         (_gl_register_dup): New function.
41229         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41230         (_gl_register_fd): Close fd on allocation failure.
41231         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41232         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41233         prototype.
41234         (rpl_dup2_fchdir): Delete prototype.
41235         * lib/open.c (open): Update caller.
41236         * lib/dup2.c (dup2): Track fchdir metadata.
41237         * lib/dup3.c (dup3): Likewise.
41238         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41240
41241 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41242
41243         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41244         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41245         don't pass arguments to AC_OUTPUT.
41246
41247 2009-09-02  Bruno Haible  <bruno@clisp.org>
41248
41249         * modules/mkdtemp (License): Relicense under LGPLv2+.
41250         Reported by Paolo Bonzini.
41251
41252 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41253
41254         Replace uses of obsolete autoconf macros in Jim's modules.
41255         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41256         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41257         can evoke a warning from autoconf when run with -Wobsolete
41258         enabled.  They were declared obsolete for good reasons (see
41259         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41260         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41261         should not continue using the deprecated macros.
41262         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41263         obsolete Autoconf macros with modern counterparts.
41264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41265         * m4/dos.m4 (gl_AC_DOS): Likewise.
41266         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41268         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41269         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41270         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41271         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41272         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41273         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41274         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41275         Likewise.
41276         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41277         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41278         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41279         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41280         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41281         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41282
41283 2009-09-01  Eric Blake  <ebb9@byu.net>
41284
41285         fchdir: fix off-by-one bug in previous patch
41286         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41287         (_gl_unregister_fd): Delete useless if.
41288
41289 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41290
41291         maint.mk: sort the list of syntax-check rules
41292         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41293         easier to get a sense of progress when the rules are run sequentially
41294         and take a long time.
41295
41296 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41297
41298         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41299         * modules/netinet_in: Likewise.
41300         * modules/sys_file: Likewise.
41301         * modules/sys_ioctl: Likewise.
41302         * modules/sys_select: Likewise.
41303         * modules/sys_socket: Likewise.
41304         * modules/sys_stat: Likewise.
41305         * modules/sys_time: Likewise.
41306         * modules/sys_times: Likewise.
41307         * modules/sys_utsname: Likewise.
41308         * modules/sys_wait: Likewise.
41309
41310 2009-09-01  Jim Meyering  <meyering@redhat.com>
41311
41312         fts: help ensure that return values are not ignored
41313         * lib/fts_.h (__GNUC_PREREQ): Define.
41314         (__attribute_warn_unused_result__): Define.
41315         (fts_children, fts_close, fts_open, fts_read): Declare with
41316         __attribute_warn_unused_result__.
41317
41318         fts: fts_close now fails also when closing a dir file descriptor fails
41319         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41320         and propagate to caller, along with errno.
41321
41322         announce-gen: correct formatting in --help output
41323         * build-aux/announce-gen (usage): Move the one-line description in
41324         --help output "up", to where it belongs, just after Usage:.
41325
41326 2009-08-31  Eric Blake  <ebb9@byu.net>
41327
41328         fchdir: port to mingw
41329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41330         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41331         opened, then use a substitute.
41332         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41333         replacement.
41334         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41335         (_gl_register_fd): No need to check stat if open already filters
41336         all directories.
41337         (fchdir): Fix error condition to match POSIX.
41338         * modules/fchdir (Depends-on): Add sys_stat.
41339         * doc/posix-functions/open.texi (open): Document the limitation.
41340         * modules/fchdir-tests: New file.
41341         * tests/test-fchdir.c: Likewise.
41342
41343         canonicalize: allow cross-testing from cygwin to mingw
41344         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41345         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41346         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41347         Likewise.
41348         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41349         target does not support symlinks.
41350         * tests/test-canonicalize-lgpl.sh: Likewise.
41351
41352         chown: avoid compilation warning on mingw
41353         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41354         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41355         mingw.
41356         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41357         * modules/chown (Depends-on): Add errno.
41358
41359 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41360
41361         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41362         command.
41363
41364 2009-08-31  Jim Meyering  <meyering@redhat.com>
41365
41366         canonicalize: remove useless initialization
41367         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41368         initialization of local, "end".
41369
41370 2009-08-30  Bruno Haible  <bruno@clisp.org>
41371
41372         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41373         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41374         ENOSYS.
41375
41376 2009-08-30  Bruno Haible  <bruno@clisp.org>
41377
41378         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41379         /usr/xpg4/bin/tr when it exists.
41380         * tests/test-pipe-filter-gi1.sh: Likewise.
41381
41382 2009-08-30  Bruno Haible  <bruno@clisp.org>
41383
41384         Work around deficient /usr/bin/id program on Solaris.
41385         * tests/test-file-has-acl.sh (ID): New variable.
41386         * tests/test-set-mode-acl.sh (ID): Likewise.
41387         * tests/test-copy-acl.sh (ID): Likewise.
41388         * tests/test-copy-file.sh (ID): Likewise.
41389
41390 2009-08-30  Bruno Haible  <bruno@clisp.org>
41391
41392         New module 'xstriconveh'.
41393         * lib/xstriconveh.h: New file.
41394         * lib/xstriconveh.c: New file.
41395         * modules/xstriconveh: New file.
41396
41397 2009-08-30  Bruno Haible  <bruno@clisp.org>
41398
41399         Make it easier to use mem_cd_iconveh.
41400         * lib/striconveh.h (iconveh_t): New type.
41401         (iconveh_open, iconveh_close): New declarations.
41402         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41403         with a single 'const iconveh_t *' argument.
41404         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41405         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41406         with a single 'const iconveh_t *' argument.
41407         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41408         * tests/test-striconveh.c (main): Update.
41409         * NEWS: Mention the change.
41410
41411 2009-08-30  Bruno Haible  <bruno@clisp.org>
41412
41413         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41414         problem.
41415
41416 2009-08-30  Bruno Haible  <bruno@clisp.org>
41417
41418         Work around iconv_open problem on Solaris.
41419         * lib/iconv_open-solaris.gperf: New file.
41420         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41421         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41422         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41423         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41424         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41425         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41426
41427 2009-08-29  Jim Meyering  <meyering@redhat.com>
41428
41429         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41430         * top/maint.mk (cvs-check): Remove target; it was just an alias
41431         to the better-named vc-diff-check.
41432         (maintainer-distcheck): Remove rule.  It was used only from
41433         the (alpha/beta/major) target, and all of its commands but one
41434         were coreutils-specific.
41435         (vc-dist): Remove rule.
41436         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41437         Run vc-diff-check, not vc-dist.
41438         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41439
41440 2009-08-27  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41443         of 0.
41444
41445 2009-08-27  Bruno Haible  <bruno@clisp.org>
41446
41447         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41448         compilers.
41449         * doc/func.texi: Document the SunPRO C bug.
41450
41451 2009-08-27  Bruno Haible  <bruno@clisp.org>
41452
41453         Fix link error on Solaris.
41454         * tests/test-parse-duration.c (xstrdup): Remove function.
41455
41456 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41457
41458         ignore-value: handle pointer types, too
41459         * lib/ignore-value.h (__attribute__): Remove definition.
41460         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41461         of a more concise and more-often effective "(void) i" statement.
41462         (ignore_ptr): New function to suppress warnings from functions that
41463         return pointers, and to make it explicit that one function doesn't
41464         handle all cases.
41465
41466 2009-08-25  Bruno Haible  <bruno@clisp.org>
41467
41468         dup2: work around a Linux bug.
41469         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41470         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41471         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41472         Reported by Simon Josefsson.
41473
41474 2009-08-25  Jim Meyering  <meyering@redhat.com>
41475
41476         libguestfs uses gnulib
41477         * users.txt: Add libguestfs.
41478
41479 2009-08-24  Eric Blake  <ebb9@byu.net>
41480
41481         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41482         * lib/pipe2.c (includes): Add binary-io.h.
41483         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41484
41485 2009-08-24  Bruno Haible  <bruno@clisp.org>
41486
41487         Tolerate declared but missing accept4 syscall.
41488         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41489         available.
41490         * lib/sys_socket.in.h (accept4): If the function is already present,
41491         override it.
41492         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41493         * modules/accept4 (Makefile.am): Compile accept4.c always.
41494         Reported by Paolo Bonzini and Eric Blake.
41495
41496 2009-08-23  Bruno Haible  <bruno@clisp.org>
41497
41498         New module 'accept4'.
41499         * lib/sys_socket.in.h (accept4): New declaration.
41500         * lib/accept4.c: New file.
41501         * m4/accept4.m4: New file.
41502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41503         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41504         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41505         HAVE_ACCEPT4.
41506         * modules/accept4: New file.
41507         * doc/glibc-functions/accept4.texi: Mention the new module.
41508
41509 2009-08-24  Jim Meyering  <meyering@redhat.com>
41510
41511         progname: also set global program_invocation_name, when possible
41512         Before this change, a libtool-enabled program that calls glibc's
41513         error function would report the program name as
41514         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41515         * modules/progname (configure.ac): Check for a declaration of
41516         program_invocation_name.
41517         * lib/progname.c:  Include <errno.h>.
41518         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41519         Set program_invocation_name.
41520
41521 2009-08-23  Bruno Haible  <bruno@clisp.org>
41522
41523         * lib/dup3.c: Include <string.h>.
41524
41525 2009-08-23  Bruno Haible  <bruno@clisp.org>
41526
41527         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41528         * lib/pipe2.c (pipe2): Likewise.
41529         Suggested by Eric Blake.
41530
41531 2009-08-23  Bruno Haible  <bruno@clisp.org>
41532
41533         Tolerate declared but missing dup3 syscall.
41534         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41535         * lib/unistd.in.h (dup3): If the function is already present,
41536         override it.
41537         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41538         * modules/dup3 (Makefile.am): Compile dup3.c always.
41539         Reported by Paolo Bonzini.
41540
41541 2009-08-23  Bruno Haible  <bruno@clisp.org>
41542
41543         Tolerate declared but missing pipe2 syscall.
41544         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41545         available.
41546         * lib/unistd.in.h (pipe2): If the function is already present,
41547         override it.
41548         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41549         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41550         Reported by Paolo Bonzini.
41551
41552 2009-08-23  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/pipe2.c (pipe2): Move #ifs inside function.
41555
41556 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41557
41558         quotearg: document limitations of quote_these_too
41559         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41560         those limitations are created.
41561         * lib/quotearg.h (set_char_quoting): Document that digits and
41562         letters that are special after backslash are not permitted.
41563         (quotearg_char): Cross-reference set_char_quoting documentation.
41564
41565 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41566
41567         quotearg: implement custom_quoting_style
41568         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41569         right_quote fields.
41570         (set_custom_quoting): New public function.
41571         (quotearg_buffer_restyled): Add left_quote and right_quote
41572         arguments, handle them very much like locale quoting, and update
41573         all uses.
41574         (quotearg_n_custom): New public function.
41575         (quotearg_n_custom_mem): New public function.
41576         (quotearg_custom): New public function.
41577         (quotearg_custom_mem): New public function.
41578         * lib/quotearg.h: Prototype and document new public functions.
41579         (enum quoting_style): For escape_quoting_style and
41580         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41581         ignored even though they're otherwise like c_quoting_style.
41582         Add custom_quoting_style member and document with comparison to
41583         clocale_quoting_style.
41584         * tests/test-quotearg.c (custom_quotes): New array.
41585         (custom_results): New array.
41586         (main): Extend to test custom quoting.
41587
41588 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41589
41590         quotearg: fix right quote escaping when it's in quote_these_too
41591         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41592         quote, be sure to prepend only one backslash.
41593         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41594         (main): Test it.
41595
41596 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41597
41598         quotearg-tests: test escaping of embedded locale quotes
41599         * tests/test-quotearg.c (struct result_strings): Add member for
41600         new input.
41601         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41602         (inputs): Add new input.
41603         (results_g): Add expected results.
41604         (flag_results): Likewise.
41605         (locale_results): Likewise.
41606         (compare_strings): Check those.
41607
41608 2009-08-23  Bruno Haible  <bruno@clisp.org>
41609
41610         Tests for module 'dup3'.
41611         * modules/dup3-tests: New file.
41612         * tests/test-dup3.c: New file.
41613
41614         New module 'dup3'.
41615         * lib/unistd.in.h (dup3): New declaration.
41616         * lib/dup3.c: New file.
41617         * m4/dup3.m4: New file.
41618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41619         HAVE_DUP3.
41620         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41621         * modules/dup3: New file.
41622         * doc/glibc-functions/dup3.texi: Mention the new module.
41623
41624 2009-08-23  Bruno Haible  <bruno@clisp.org>
41625
41626         Tweak the dup2 test.
41627         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41628         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41629         the test file is still empty. Fix argument order of lseek.
41630
41631 2009-08-23  Bruno Haible  <bruno@clisp.org>
41632
41633         Avoid test link errors when the modules getopt-gnu, gettext are used.
41634         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41636
41637 2009-08-23  Bruno Haible  <bruno@clisp.org>
41638
41639         Fix getdtablesize() on mingw.
41640         * lib/getdtablesize.c (getdtablesize): Implement differently.
41641         * lib/unistd.in.h (getdtablesize): Improve comment.
41642
41643 2009-08-23  Bruno Haible  <bruno@clisp.org>
41644
41645         New module 'mkostemp'.
41646         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41647         * lib/stdlib.in.h (mksotemp): New declaration.
41648         * lib/mkostemp.c: New file, from glibc with modifications.
41649         * lib/tempname.h (GT_FILE): Remove outdated comment.
41650         (gen_tempname): Add flags argument.
41651         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41652         (__GT_FILE): Map to 1.
41653         (small_open, large_open): Remove macros.
41654         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41655         * lib/mkstemp.c (mkstemp): Update.
41656         * lib/mkdtemp.c (mkdtemp): Likewise.
41657         * m4/mkostemp.m4: New file.
41658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41659         HAVE_MKOSTEMP.
41660         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41661         HAVE_MKOSTEMP.
41662         * modules/mkostemp: New file, based on modules/mkstemp.
41663         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41664         * NEWS: Mention the change.
41665
41666 2009-08-23  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41669         Reported by Eric Blake.
41670
41671 2009-08-23  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41674         Reported by Eric Blake.
41675
41676 2009-08-23  Bruno Haible  <bruno@clisp.org>
41677
41678         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41679         * modules/pipe2 (Depends-on): Likewise.
41680
41681 2009-08-23  Eric Blake  <ebb9@byu.net>
41682
41683         fcntl-h: add O_TTY_INIT support
41684         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41685         * tests/test-fcntl-h.c (o): Test it.
41686         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41687
41688         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41689         * modules/fcntl: Move <fcntl.h> header replacement...
41690         * modules/fcntl-h: ...to new name, so as not to collide with
41691         like-named function.
41692         * tests/test-fcntl.c: Rename...
41693         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41694         * modules/fcntl-tests: Rename...
41695         * modules/fcntl-h-tests: ...to this.  Update test file name.
41696         * modules/chdir-long (Depends-on): Update clients.
41697         * modules/chdir-safer (Depends-on): Likewise.
41698         * modules/fcntl-safer (Depends-on): Likewise.
41699         * modules/fts (Depends-on): Likewise.
41700         * modules/mkancesdirs (Depends-on): Likewise.
41701         * modules/mkdir-p (Depends-on): Likewise.
41702         * modules/open (Depends-on): Likewise.
41703         * modules/savewd (Depends-on): Likewise.
41704         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41705         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41706
41707 2009-08-22  Bruno Haible  <bruno@clisp.org>
41708
41709         * modules/binary-io (License): Relicense under LGPL.
41710         * modules/pipe2 (License): Likewise.
41711
41712 2009-08-22  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41715         return value.
41716         * lib/pipe-filter-gi.c (filter_init): Likewise.
41717         Reported by Eric Blake.
41718
41719 2009-08-22  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41722         * modules/pipe (Depends-on): Add pipe2.
41723
41724 2009-08-22  Bruno Haible  <bruno@clisp.org>
41725
41726         Tests for module 'pipe2'.
41727         * modules/pipe2-tests: New file.
41728         * tests/test-pipe2.c: New file.
41729
41730         New module 'pipe2'.
41731         * lib/unistd.in.h (pipe2): New declaration.
41732         * lib/pipe2.c: New file.
41733         * m4/pipe2.m4: New file.
41734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41735         HAVE_PIPE2.
41736         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41737         * modules/pipe2: New file.
41738         * doc/glibc-functions/pipe2.texi: Mention the new module.
41739
41740 2009-08-22  Bruno Haible  <bruno@clisp.org>
41741
41742         Reference some new glibc functions.
41743         * doc/glibc-functions/accept4.texi: New file.
41744         * doc/glibc-functions/dup3.texi: New file.
41745         * doc/glibc-functions/mkostemp.texi: New file.
41746         * doc/glibc-functions/pipe2.texi: New file.
41747         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41748         (Glibc sys/socket.h): Refer to accept4.
41749         (Glibc unistd.h): Refer to dup3, pipe2.
41750         Reported by Eric Blake.
41751
41752 2009-08-22  Jim Meyering  <meyering@redhat.com>
41753             Bruno Haible  <bruno@clisp.org>
41754
41755         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41756         This makes it so packages using automake-1.11's silent-rules option
41757         can print e.g., a single "GEN    configmake.h" line, rather than
41758         the 30+ statements that perform the job.  If you want to see the
41759         actual commands, you can still run "make V=1".
41760         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41761         so that make output is abbreviated when those variables are defined
41762         appropriately.
41763         * modules/argz: Likewise.
41764         * modules/arpa_inet: Likewise.
41765         * modules/byteswap: Likewise.
41766         * modules/configmake: Likewise.
41767         * modules/dirent: Likewise.
41768         * modules/errno: Likewise.
41769         * modules/fcntl: Likewise.
41770         * modules/float: Likewise.
41771         * modules/fnmatch: Likewise.
41772         * modules/getopt-posix: Likewise.
41773         * modules/glob: Likewise.
41774         * modules/iconv_open: Likewise.
41775         * modules/inttypes: Likewise.
41776         * modules/localcharset: Likewise.
41777         * modules/locale: Likewise.
41778         * modules/math: Likewise.
41779         * modules/netdb: Likewise.
41780         * modules/netinet_in: Likewise.
41781         * modules/poll: Likewise.
41782         * modules/posix_spawnp-tests: Likewise.
41783         * modules/sched: Likewise.
41784         * modules/search: Likewise.
41785         * modules/selinux-h: Likewise.
41786         * modules/signal: Likewise.
41787         * modules/spawn: Likewise.
41788         * modules/stdarg: Likewise.
41789         * modules/stdbool: Likewise.
41790         * modules/stddef: Likewise.
41791         * modules/stdint: Likewise.
41792         * modules/stdio: Likewise.
41793         * modules/stdlib: Likewise.
41794         * modules/string: Likewise.
41795         * modules/strings: Likewise.
41796         * modules/sys_file: Likewise.
41797         * modules/sys_ioctl: Likewise.
41798         * modules/sys_select: Likewise.
41799         * modules/sys_socket: Likewise.
41800         * modules/sys_stat: Likewise.
41801         * modules/sys_time: Likewise.
41802         * modules/sys_times: Likewise.
41803         * modules/sys_utsname: Likewise.
41804         * modules/sys_wait: Likewise.
41805         * modules/sysexits: Likewise.
41806         * modules/time: Likewise.
41807         * modules/unistd: Likewise.
41808         * modules/wchar: Likewise.
41809         * modules/wctype: Likewise.
41810
41811 2009-08-22  Jim Meyering  <meyering@redhat.com>
41812
41813         announce-gen: detect write failure
41814         * build-aux/announce-gen: Add Coda at end.
41815         Remove equivalent-but-more-verbose block at top.
41816
41817 2009-08-19  Akim Demaille  <demaille@gostai.com>
41818
41819         bootstrap: --help to stdout.
41820         * bootstrap (usage): Don't send --help to stderr.
41821         Use a here doc instead of a long string.
41822
41823 2009-08-21  Eric Blake  <ebb9@byu.net>
41824
41825         test-popen-safer: split from test-popen
41826         * tests/test-popen.c (main): Move...
41827         * tests/test-popen.h: ...into new file.
41828         * tests/test-popen-safer2.c: New file.
41829         * modules/popen-tests (Files): Add test-popen.h.
41830         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41831         Suggested by Bruno Haible.
41832
41833         test-fcntl-safer: split from test-open
41834         * tests/test-open.c (main): Move...
41835         * tests/test-open.h: ...into new file.
41836         * tests/test-fcntl-safer.c: New file.
41837         * modules/open-tests (Files): Add test-open.h.
41838         * modules/fcntl-safer-tests: New file.
41839         Suggested by Bruno Haible.
41840
41841         test-fopen-safer: split from test-fopen
41842         * tests/test-fopen.c (main): Move...
41843         * tests/test-fopen.h: ...into new file.
41844         * tests/test-fopen-safer.c: New file.
41845         * modules/fopen-tests (Files): Add test-fopen.h.
41846         * modules/fopen-safer-tests: New file.
41847         Suggested by Bruno Haible.
41848
41849 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41850
41851         popen-safer: test O_CLOEXEC at run-time.
41852         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41853
41854 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41855
41856         fcntl: move more flags to the header
41857         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41858         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41859         * lib/fcntl.in.h: Do both things here.
41860
41861 2009-08-21  Jim Meyering  <meyering@redhat.com>
41862
41863         consistently remove $@-t before redirecting to it
41864         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41865         * modules/alloca-opt: Likewise.
41866         * modules/byteswap: Likewise.
41867         * modules/fnmatch: Likewise.
41868         * modules/getopt-posix: Likewise.
41869         * modules/glob: Likewise.
41870         * modules/poll: Likewise.
41871         * modules/posix_spawnp-tests: Likewise.
41872         * modules/sys_socket: Likewise.
41873         * modules/sysexits: Likewise.
41874
41875 2009-08-21  Eric Blake  <ebb9@byu.net>
41876
41877         popen: simplify access to original popen
41878         * lib/popen.c (rpl_popen): No need to worry about popen being a
41879         macro.
41880         Reported by Bruno Haible.
41881
41882 2009-08-20  Eric Blake  <ebb9@byu.net>
41883
41884         build: avoid some compiler warnings
41885         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41886         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41887         type.
41888         (new_exclude_segment, excluded_file_pattern_p)
41889         (excluded_file_name_p): Reduce scope.
41890         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41891         old-style declaration.
41892
41893 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41894
41895         * tests/test-exclude1.sh: Handle Windows EOL.
41896         * tests/test-exclude2.sh: Likewise.
41897         * tests/test-exclude3.sh: Likewise.
41898         * tests/test-exclude4.sh: Likewise.
41899         * tests/test-exclude5.sh: Likewise.
41900         * tests/test-exclude6.sh: Likewise.
41901         * tests/test-exclude7.sh: Likewise.
41902
41903 2009-08-19  Akim Demaille  <demaille@gostai.com>
41904
41905         bootstrap: find sha1sum when named gsha1sum.
41906         * bootstrap (find_tool): New.
41907         ($SHA1SUM): New.
41908         Use it.
41909
41910 2009-08-20  Jim Meyering  <meyering@redhat.com>
41911
41912         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41913         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41914         expression that converts "." in a file name to "\." in the resulting
41915         regexp.  Start with a dummy statement, so that prior shell variable
41916         definitions are expanded portably.  Reported by Simon Josefsson.
41917
41918 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41919
41920         Fix polling for writeability of a screen buffer.
41921         * lib/poll.c: Distinguish input and screen buffers for the
41922         Win32 implementation.
41923         * lib/select.c: Likewise.
41924
41925 2009-08-19  Eric Blake  <ebb9@byu.net>
41926
41927         popen-safer: prevent popen from clobbering std descriptors
41928         * modules/popen-safer: New file.
41929         * lib/popen-safer.c: Likewise.
41930         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41931         * lib/stdio--.h (popen): Provide override.
41932         * lib/stdio-safer.h (popen_safer): Provide declaration.
41933         * tests/test-popen.c (includes): Partially test this.
41934         * modules/popen-safer-tests: New file, for more tests.
41935         * tests/test-popen-safer.c: Likewise.
41936         * MODULES.html.sh (file stream based Input/Output): Mention it.
41937
41938         tests: test some of the *-safer modules
41939         * modules/fopen-safer (Depends-on): Add fopen.
41940         * modules/fcntl-safer (Depends-on): Add fcntl.
41941         * modules/stdlib-safer (Depends-on): Add stdlib.
41942         (configure.ac): Set indicator.
41943         * modules/unistd-safer (configure.ac): Likewise.
41944         * modules/tmpfile-safer (configure.ac): Likewise.
41945         (Depends-on): Add tmpfile.
41946         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41947         active.
41948         * tests/test-fopen.c (includes): Test safer versions when they are
41949         in use.
41950         * tests/test-open.c (includes): Likewise.
41951
41952         popen: fix cygwin 1.5 bug when stdin closed
41953         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41954         * modules/popen: New file.
41955         * modules/popen-tests: Likewise.
41956         * tests/test-popen.c: Likewise.
41957         * m4/popen.m4: Likewise.
41958         * lib/popen.c: Likewise.
41959         * lib/stdio.in.h (popen): New declaration.
41960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41961         * modules/stdio (Makefile.am): Likewise.
41962         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41963
41964 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41965
41966         maint.mk: give full control over update-copyright exclusions
41967         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41968         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41969         (update-copyright): Don't force inclusion of top-level
41970         ChangeLog.  Don't force exclusion of all COPYING files, but make
41971         them the default exclusion instead.
41972
41973 2009-08-16  Bruno Haible  <bruno@clisp.org>
41974
41975         Fix test failures on Solaris 10.
41976         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41977         tests when Solaris iconv() is used.
41978         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41979         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41980         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41981         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41982         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41983
41984 2009-08-16  Bruno Haible  <bruno@clisp.org>
41985
41986         Fix test failures on Solaris 10.
41987         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41988         'tr' program and pass it as first argument.
41989         * tests/test-pipe-filter-gi1.sh: Likewise.
41990         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41991         program as first argument.
41992         * tests/test-pipe-filter-gi1.c (main): Likewise.
41993
41994 2009-08-16  Eric Blake  <ebb9@byu.net>
41995
41996         fpurge: fix previous commits
41997         * modules/fpurge (Makefile.am): Make replacement conditional,
41998         partially reverting 2007-04-29 change; missed in previous
41999         attempt.
42000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42001         is missing.
42002
42003 2009-08-16  Bruno Haible  <bruno@clisp.org>
42004
42005         Clarify fpurge's effect on the file position.
42006         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42007         * tests/test-fpurge.c (main): Make a second pass for checking the file
42008         position.
42009
42010 2009-08-16  Bruno Haible  <bruno@clisp.org>
42011
42012         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42013         declaration of fpurge is missing.
42014         * tests/test-fpurge.c (main): Check that the file has not more contents
42015         than expected. Close the file before removing it.
42016
42017 2009-08-15  Eric Blake  <ebb9@byu.net>
42018
42019         fpurge: don't wrap working cygwin implementation
42020         * lib/fpurge.c (fpurge): Fix comment typo.
42021         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42022         1.7 to avoid replacement.
42023         * tests/test-fpurge.c (main): Enhance test.
42024
42025 2009-08-15  Eric Blake  <ebb9@byu.net>
42026         and Jim Meyering  <meyering@redhat.com>
42027
42028         test-update-copyright: skip if perl is insufficient
42029         * tests/test-update-copyright.sh: Failure to run maintainer tool
42030         should not cause testsuite failure on cygwin 1.5.
42031
42032 2009-08-14  Eric Blake  <ebb9@byu.net>
42033
42034         doc: mention more functions added in cygwin 1.7.0
42035         * doc/posix-headers/limits.texi (limits.h): Update for recent
42036         cygwin additions.
42037         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42038         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42039         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42040         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42041         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42042
42043 2009-08-14  Eric Blake  <ebb9@byu.net>
42044
42045         maint.mk: simplify update-copyright rule
42046         * top/maint.mk (update-copyright-local): Delete, and document how
42047         to do it in cfg.mk instead.
42048         (update-copyright-exclude-regexp): Delete, and document how to do
42049         it in .x-update-copyright instead.
42050         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42051         exclude ChangeLog.
42052
42053 2009-08-14  Bruno Haible  <bruno@clisp.org>
42054
42055         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42056
42057 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42058
42059         maint.mk: support update-copyright-env
42060         * top/maint.mk (update-copyright-env): Define place-holder.
42061         (update-copyright): Expand $(update-copyright-env) before
42062         invoking update-copyright.
42063
42064 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42065
42066         update-copyright: implement forced reformatting
42067         * build-aux/update-copyright: Implement and document
42068         UPDATE_COPYRIGHT_FORCE.
42069         * tests/test-update-copyright.sh: Test it.
42070
42071 2009-08-14  Eric Blake  <ebb9@byu.net>
42072         and Bruno Haible  <bruno@clisp.org>
42073
42074         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42075         * tests/test-locale.c: Revert previous patch related to NULL.
42076         * tests/test-stdio.c: Likewise.
42077         * tests/test-stdlib.c: Likewise.
42078         * tests/test-string.c: Likewise.
42079         * tests/test-unistd.c: Likewise.
42080         * modules/time-tests (Depends-on): Add verify.
42081         * modules/wchar-tests (Depends-on): Likewise.
42082         * tests/test-time.c: Test for NULL compliance.
42083         * tests/test-wchar.c: Likewise.
42084         * modules/locale (Depends-on): Add stddef.
42085         * modules/stdio (Depends-on): Likewise.
42086         * modules/stdlib (Depends-on): Likewise.
42087         * modules/string (Depends-on): Likewise.
42088         * modules/time (Depends-on): Likewise.
42089         * modules/unistd (Depends-on): Likewise.
42090         * modules/wchar (Depends-on): Likewise.
42091         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42092         * lib/stdlib.in.h (includes): Likewise.
42093         * lib/string.in.h (includes): Likewise.
42094         * lib/time.in.h (includes): Likewise.
42095         * lib/unistd.in.h (includes): Likewise.
42096         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42097         replaced.
42098         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42099         * m4/stddef_h.m4: New file.
42100         * modules/stddef: Likewise.
42101         * lib/stddef.in.h: Likewise.
42102         * modules/stddef-tests: Likewise.
42103         * tests/test-stddef.c: Likewise.
42104         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42105         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42106         * doc/posix-headers/locale.texi (locale.h): Likewise.
42107         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42109         * doc/posix-headers/string.texi (string.h): Likewise.
42110         * doc/posix-headers/time.texi (time.h): Likewise.
42111         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42112         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42113
42114 2009-08-14  Eric Blake  <ebb9@byu.net>
42115
42116         doc: improve git diff of texinfo files
42117         * .gitattributes: Add rule for *.texi files, with hint on how to
42118         use it.
42119         Copied from m4, and based on a report by Bruno Haible.
42120
42121 2009-08-14  Bruno Haible  <bruno@clisp.org>
42122
42123         Disable multithread support by default on Cygwin 1.5.x for real.
42124         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42125
42126 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42127
42128         update-copyright: much ado about intervals
42129         * build-aux/update-copyright: Implement and document
42130         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42131         of copyright year intervals.
42132         Also, document UPDATE_COPYRIGHT_YEAR.
42133         * tests/test-update-copyright.sh: Test it.
42134
42135         update-copyright: convert 2-digit to 4-digit years
42136         * build-aux/update-copyright: Implement and document.
42137         * tests/test-update-copyright.sh: Update.
42138
42139 2009-08-14  Jim Meyering  <meyering@redhat.com>
42140
42141         test-exclude: avoid coreutils "make check" failure
42142         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42143         just as in test-argmatch.c.
42144
42145 2009-08-13  Eric Blake  <ebb9@byu.net>
42146
42147         test-dup2: fix bad assumption
42148         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42149         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42150
42151         test-version-etc: fix CRLF portability issue
42152         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42153         recognize \r.
42154         * tests/test-argp-version-etc-1.sh: Likewise.
42155
42156         getopt: update client modules
42157         * modules/argp (Depends-on): Use getopt-gnu.
42158         * modules/git-merge-changelog (Depends-on): Likewise.
42159         * modules/long-options (Depends-on): Likewise.
42160         * modules/xstrtol (Depends-on): Likewise.
42161
42162 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42163
42164         * tests/test-version-etc.sh: Don't fail on different
42165         project/version.  Don't fail on CRLF differences.  Rewrite to use
42166         multiple -e instead of multiple sed forks, suggested by Eric Blake
42167         <ebb9@byu.net>.
42168         * tests/test-argp-version-etc-1.sh: Likewise.
42169
42170 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42171
42172         * tests/test-version-etc.sh: Don't fail on different
42173         project/version.
42174
42175 2009-08-12  Bruno Haible  <bruno@clisp.org>
42176
42177         Tests for modules 'getopt-posix', 'getopt-gnu'.
42178         * modules/getopt-posix-tests: New file.
42179         * tests/test-getopt.c: New file.
42180         * tests/test-getopt.h: New file.
42181         * tests/test-getopt_long.h: New file.
42182
42183         New modules 'getopt-posix', 'getopt-gnu'.
42184         * modules/getopt-gnu: New file, renamed from modules/getopt.
42185         * modules/getopt-posix: New file.
42186         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42187         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42188         (gl_GETOPT): Remove macro.
42189         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42190         Disable the test against BSD systems that declare optreset. Test
42191         against mingw bug. Test against lack of support of optional arguments
42192         on many platforms.
42193         * doc/glibc-headers/getopt.texi: Update module name and list of
42194         relevant platforms.
42195         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42196         'getopt-gnu' and more portability problems.
42197         * NEWS: Mention the changes.
42198
42199 2009-08-12  Bruno Haible  <bruno@clisp.org>
42200
42201         Ensure that optarg etc. get declared by <unistd.h>.
42202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42203         AC_USE_SYSTEM_EXTENSIONS.
42204         * modules/getopt (Depends-on): Add 'extensions'.
42205
42206 2009-08-12  Bruno Haible  <bruno@clisp.org>
42207
42208         Avoid test link errors.
42209         * modules/pipe-filter-ii-tests (Makefile.am): Define
42210         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42211         * modules/pipe-filter-gi-tests (Makefile.am): Define
42212         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42214
42215 2009-08-12  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42218         gl_GETOPT_SUBSTITUTE before.
42219         (gl_GETOPT): Use it.
42220         * m4/argp.m4 (gl_ARGP): Update.
42221         Reported by Sergey Poznyakoff.
42222
42223         * m4/getopt.m4: Reorder macros.
42224         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42225         (gl_GETOPT_SUBSTITUTE): Remove macro.
42226
42227 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42228
42229         Minor improvement in gitlog-to-changelog
42230
42231         * build-aux/gitlog-to-changelog: New option `--format' makes
42232         output format string configurable.
42233
42234 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42235
42236         Optimize exclude: use hash tables for non-wildcard patterns.
42237
42238         * lib/exclude.c: Include hash.h and mbuiter.h
42239         (struct exclude_pattern, exclude_segment): New data types.
42240         (struct exclude): Rewrite.
42241         (fnmatch_pattern_has_wildcards): New function.
42242         (new_exclude_segment, free_exclude_segment): New functions.
42243         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42244         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42245         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42246         * modules/exclude: Depend on hash and mbuiter.
42247
42248         * modules/exclude-tests: New file.
42249         * tests/test-exclude.c: New file.
42250         * tests/test-exclude1.sh: New file.
42251         * tests/test-exclude2.sh: New file.
42252         * tests/test-exclude3.sh: New file.
42253         * tests/test-exclude4.sh: New file.
42254         * tests/test-exclude5.sh: New file.
42255         * tests/test-exclude6.sh: New file.
42256         * tests/test-exclude7.sh: New file.
42257
42258 2009-08-12  Bruno Haible  <bruno@clisp.org>
42259
42260         Ensure that getopt() gets declared by <unistd.h>.
42261         * lib/unistd.in.h: Conditionally include getopt.h.
42262         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42263         Set GNULIB_UNISTD_H_GETOPT.
42264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42265         GNULIB_UNISTD_H_GETOPT.
42266         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42267
42268 2009-08-12  Bruno Haible  <bruno@clisp.org>
42269
42270         Clarify logic.
42271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42272         gl_replace_getopt instead of GETOPT_H.
42273
42274 2009-08-12  Bruno Haible  <bruno@clisp.org>
42275
42276         * m4/getopt.m4: Add comments.
42277
42278 2009-08-12  Bruno Haible  <bruno@clisp.org>
42279
42280         Disable multithread support by default on Cygwin 1.5.x.
42281         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42282         set gl_use_threads=no if not specified otherwise.
42283
42284 2009-08-11  Bruno Haible  <bruno@clisp.org>
42285
42286         Avoid compilation error on NetBSD 5.0.
42287         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42288         * tests/test-stdio.c: Likewise.
42289         * tests/test-stdlib.c: Likewise.
42290         * tests/test-string.c: Likewise.
42291         * tests/test-unistd.c: Likewise.
42292         Reported by Greg Troxel <gdt@ir.bbn.com>
42293         at <https://savannah.gnu.org/support/?106973>.
42294
42295 2009-08-11  Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/dup2-tests (Depends-on): Remove close.
42298
42299         Undo 2009-07-19 commit.
42300         * modules/acl-tests (Depends-on): Remove close.
42301         * modules/binary-io-tests (Depends-on): Likewise.
42302         * modules/closein-tests (Depends-on): Likewise.
42303         * modules/flock-tests (Depends-on): Likewise.
42304         * modules/fsync-tests (Depends-on): Likewise.
42305         * modules/lseek-tests (Depends-on): Likewise.
42306         * modules/pipe-tests (Depends-on): Likewise.
42307         * modules/posix_spawn-tests (Depends-on): Likewise.
42308         * modules/posix_spawnp-tests (Depends-on): Likewise.
42309         * modules/stat-time-tests (Depends-on): Likewise.
42310         * modules/yesno-tests (Depends-on): Likewise.
42311
42312 2009-08-10  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42315
42316 2009-08-10  Bruno Haible  <bruno@clisp.org>
42317
42318         Fix a gcc warning.
42319         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42320
42321 2009-08-10  Bruno Haible  <bruno@clisp.org>
42322
42323         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42324         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42325         not only the first time.
42326         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42327         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42328         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42329         is 1, not only the the first time.
42330
42331 2009-08-10  Bruno Haible  <bruno@clisp.org>
42332
42333         Make it possible to use module 'gethostname' without module 'close'.
42334         * lib/unistd.in.h (close): Evoke a link error only if
42335         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42337         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42338         * modules/unistd (Makefile.am): Substitute
42339         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42340         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42341         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42342         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42343         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42344         * modules/sys_ioctl (Makefile.am): Substitute
42345         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42346         * modules/socket (configure.ac): On native Windows, set
42347         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42348         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42349         Reported by Sam Steingold <sds@gnu.org>.
42350
42351 2009-08-10  Bruno Haible  <bruno@clisp.org>
42352
42353         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42354         * modules/ioctl (configure.ac): Likewise.
42355
42356 2009-08-10  Bruno Haible  <bruno@clisp.org>
42357
42358         Avoid collision between gnulib wrapper and libintl wrapper.
42359         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42360         already defined in intl/printf.c.
42361         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42362         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42363
42364 2009-08-09  Bruno Haible  <bruno@clisp.org>
42365
42366         Make <sys/select.h> really self-contained, also on Solaris 10.
42367         * lib/sys_select.in.h: Include <string.h>.
42368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42369         Solaris 10 problem.
42370         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42371         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42372         Reported by Jim Meyering.
42373
42374 2009-08-09  Bruno Haible  <bruno@clisp.org>
42375
42376         Avoid warnings from 'aclocal' that are due to a use of macro name
42377         AM_XGETTEXT_OPTION that is not defined in automake.
42378         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42379         automake.
42380         * modules/error (configure.ac): Likewise.
42381         * modules/propername (configure.ac): Likewise.
42382         * modules/vasprintf (configure.ac): Likewise.
42383         * modules/verror (configure.ac): Likewise.
42384         * modules/xprintf (configure.ac): Likewise.
42385         * modules/xvasprintf (configure.ac): Likewise.
42386
42387 2009-08-08  Bruno Haible  <bruno@clisp.org>
42388
42389         Avoid compilation error in C++ mode.
42390         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42391         Reported by Sam Steingold <sds@gnu.org>.
42392
42393 2009-08-08  Bruno Haible  <bruno@clisp.org>
42394
42395         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42396         for the various Unix platforms.
42397         * doc/posix-headers/limits.texi: Update platforms list regarding
42398         HOST_NAME_MAX.
42399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42400
42401 2009-08-07  Jim Meyering  <meyering@redhat.com>
42402
42403         selinux-at: fix typo in a comment
42404         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42405         Spotted by Paolo Bonzini.
42406
42407         selinux-at: remove redundant m4 code, add documentation
42408         * modules/selinux-at (configure.ac): Remove redundant code.
42409         LIB_SELINUX is already set via the dependent module, selinux-h.
42410         (Include): Add quotes around selinux-at.h.
42411         * lib/selinux-at.h: Add documentation.
42412         Reported by Bruno Haible in
42413         http://marc.info/?l=gnulib-bug&m=124958988300749
42414
42415 2009-08-07  Bruno Haible  <bruno@clisp.org>
42416
42417         Avoid link error on MacOS X 10.3 and 10.4.
42418         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42419         on non-ELF systems.
42420         * lib/argp-pv.c (argp_program_version): Likewise.
42421         Reported by Simon Josefsson.
42422
42423 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42424
42425         * tests/test-version-etc.sh: Use $EXEEXT.
42426
42427 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42428
42429         update-copyright: update documentation to point to maint.mk
42430         * build-aux/update-copyright: Here.
42431
42432 2009-08-06  Jim Meyering  <meyering@redhat.com>
42433
42434         maint.mk: support update-copyright-local
42435         * top/maint.mk (update-copyright-local): Define place-holder.
42436         (update-copyright): Depend on $(update-copyright-local).
42437
42438 2009-08-06  Jim Meyering  <meyering@redhat.com>
42439
42440         selinux-at: new module
42441         Initially written for coreutils, this module will soon be
42442         used by findutils, too.
42443         * MODULES.html.sh [Misc]: Add selinux-at.
42444         * lib/selinux-at.h: New file, from coreutils.
42445         * lib/selinux-at.c: Likewise.
42446         * modules/selinux-at: Likewise.
42447         (License): Change from LGPL to GPL, since it depends
42448         on the GPL'd openat module.
42449
42450         doc: update README
42451         * README: Remove references to cogito.
42452         Remove cvs-repo-updating instructions from 2007.
42453         Don't imply that CVS is better if you have limited disk space.
42454
42455 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42456
42457         update-copyright: support C-style comments
42458         * build-aux/update-copyright: Implement and document.
42459         * tests/test-update-copyright.sh: Test.
42460
42461 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42462
42463         update-copyright: support omitted "(C)"
42464         * build-aux/update-copyright: Implement and document.  Also,
42465         allow variable whitespace before "(C)".
42466         * tests/test-update-copyright.sh: Test.
42467
42468 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42469
42470         update-copyright: don't trip on non-FSF copyright statements
42471         * build-aux/update-copyright: Fix so that the first correctly
42472         formatted FSF copyright statement is recognized no matter what
42473         appears before it.  Update documentation.
42474         * tests/test-update-copyright.sh: Test that.
42475
42476 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42477
42478         update-copyright: clean up code a little
42479         * build-aux/update-copyright: Append "_re" to the name of any
42480         variable holding a regular expression.
42481         Replace "old" and "new" with "stmt" in variable names.
42482         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42483         handled correctly.
42484         Format code more consistently.
42485
42486 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42487
42488         update-copyright-tests: improve portability
42489         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42490         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42491
42492 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42493
42494         update-copyright: support @copyright{} and &copy;
42495         * build-aux/update-copyright: Implement and document.
42496         * tests/test-update-copyright.sh: Test.
42497
42498 2009-08-04  Jim Meyering  <meyering@redhat.com>
42499
42500         update-copyright-tests: correctly test EOL=\r\n handling
42501         * tests/test-update-copyright.sh: Put \r at the end of some lines
42502         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42503
42504         maint.mk: make update-copyright exclusion list more configurable
42505         * top/maint.mk (update-copyright): Default to excluding COPYING,
42506         but allow an override, in case someone does want to update that file.
42507
42508         maint.mk: don't update copyright date in COPYING
42509         * top/maint.mk (update-copyright): Exclude COPYING.
42510
42511         maint.mk: add a copyright-updating rule
42512         * top/maint.mk (update-copyright): New rule.
42513         Derived from coreutils/Makefile.am.
42514
42515         update-copyright: rename some variables
42516         * build-aux/update-copyright: Rename a few variables for clarity.
42517         Tweak syntax.  List Joel E. Denny as coauthor.
42518
42519 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42520
42521         update-copyright: fix bug for 2-digit last year and add tests
42522         * build-aux/update-copyright: Fix bug.
42523         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42524         specified.
42525         * modules/update-copyright-tests: New
42526         * tests/test-update-copyright.sh: New.
42527
42528 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42529
42530         update-copyright: handle leading tabs in line prefix
42531         * build-aux/update-copyright: Count leading tabs as 8 spaces
42532         when computing margin.  This helps with the formatting of
42533         ChangeLogs, for example.
42534         Fix documentation a little.
42535
42536 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42537
42538         update-copyright: support EOL=\r\n
42539         * build-aux/update-copyright: Implement that.
42540
42541 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42542
42543         update-copyright: automatically format copyright statements
42544         * build-aux/update-copyright: Implement that.
42545         Also, be a little more predictable and safer by always failing
42546         when the full copyright format is not perfectly recognized as an
42547         unbroken whole.  Discussed at
42548         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42549         Rewrite documentation.
42550
42551 2009-08-03  Bruno Haible  <bruno@clisp.org>
42552
42553         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42554
42555 2009-08-02  Bruno Haible  <bruno@clisp.org>
42556
42557         Tests for module 'uname'.
42558         * modules/uname-tests: New file.
42559         * tests/test-uname.c: New file.
42560
42561         New module 'uname'.
42562         * lib/uname.c: New file.
42563         * m4/uname.m4: New file.
42564         * modules/uname: New file.
42565         * doc/posix-functions/uname.texi: Mention the new module.
42566
42567 2009-08-02  Bruno Haible  <bruno@clisp.org>
42568
42569         Tests for module 'sys_utsname'.
42570         * modules/sys_utsname-tests: New file.
42571         * tests/test-sys_utsname.c: New file.
42572
42573         New module 'sys_utsname'.
42574         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42575         * m4/sys_utsname_h.m4: New file.
42576         * modules/sys_utsname: New file.
42577         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42578
42579 2009-08-02  Bruno Haible  <bruno@clisp.org>
42580
42581         Implicitly initialize the sockets library.
42582         * lib/gethostname.c: Include sockets.h.
42583         (rpl_gethostname): Invoke gl_sockets_startup.
42584         * lib/socket.c: Include sockets.h.
42585         (rpl_socket): Invoke gl_sockets_startup.
42586         * modules/gethostname (Depends-on): Add sockets.
42587         * modules/socket (Depends-on): Likewise.
42588         * tests/test-poll.c: Don't include sockets.h.
42589         (main): Don't invoke gl_sockets_startup.
42590         * tests/test-select.c: Don't include sockets.h.
42591         (main): Don't invoke gl_sockets_startup.
42592
42593 2009-08-02  Bruno Haible  <bruno@clisp.org>
42594
42595         Allow multiple calls to gl_sockets_startup.
42596         * lib/sockets.c (initialized_sockets_version): New variable.
42597         (gl_sockets_startup): Do nothing if already called for this or a higher
42598         version.
42599         (gl_sockets_cleanup): Reset initialized_sockets_version.
42600
42601 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42602
42603         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42604         different project/version.
42605
42606 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42607             Bruno Haible  <bruno@clisp.org>
42608
42609         Tests for module 'pipe-filter-gi'.
42610         * modules/pipe-filter-gi-tests: New file.
42611         * tests/test-pipe-filter-gi1.sh: New file.
42612         * tests/test-pipe-filter-gi1.c: New file.
42613         * tests/test-pipe-filter-gi2.sh: New file.
42614         * tests/test-pipe-filter-gi2-main.c: New file.
42615         * tests/test-pipe-filter-gi2-child.c: New file.
42616
42617         New module 'pipe-filter-gi'.
42618         * lib/pipe-filter-gi.c: New file.
42619         * modules/pipe-filter-gi: New file.
42620
42621 2009-08-02  Bruno Haible  <bruno@clisp.org>
42622             Paolo Bonzini  <bonzini@gnu.org>
42623
42624         Tests for module 'pipe-filter-ii'.
42625         * modules/pipe-filter-ii-tests: New file.
42626         * tests/test-pipe-filter-ii1.sh: New file.
42627         * tests/test-pipe-filter-ii1.c: New file.
42628         * tests/test-pipe-filter-ii2.sh: New file.
42629         * tests/test-pipe-filter-ii2-main.c: New file.
42630         * tests/test-pipe-filter-ii2-child.c: New file.
42631
42632         New module 'pipe-filter-ii'.
42633         * lib/pipe-filter.h: New file.
42634         * lib/pipe-filter-ii.c: New file.
42635         * lib/pipe-filter-aux.h: New file.
42636         * modules/pipe-filter-ii: New file.
42637
42638 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42639
42640         * lib/gc-libgcrypt.c: Change copyright to FSF.
42641         * lib/gc-gnulib.c: Likewise.
42642
42643 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42644
42645         * lib/gethostname.c: Include limits.h.
42646
42647 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42648             Bruno Haible  <bruno@clisp.org>
42649
42650         Ensure HOST_NAME_MAX as part of the gethostname module.
42651         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42652         define also HOST_NAME_MAX.
42653         * tests/test-gethostname.c: Include <limits.h>.
42654         (main): Check also HOST_NAME_MAX.
42655         * doc/posix-headers/limits.texi: Document the mingw problem.
42656
42657 2009-08-02  Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42660         Add comments.
42661
42662 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42663
42664         * lib/gethostname.c: Add Windows wrapper.
42665         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42666         * modules/gethostname: Depend on sys_socket & errno, for also
42667         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42668         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42669
42670 2009-07-31  Jim Meyering  <meyering@redhat.com>
42671
42672         getloadavg: fix symbol name in comment
42673         * lib/getloadavg.c: Correct a typo I introduced when adding
42674         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42675         Matt Kraai spotted the problem.
42676
42677 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42678
42679         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42680         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42681         code also if ! defined N_NAME_POINTER.
42682         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42683         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42684         but the n_name member is a 12-byte array.
42685
42686 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42687
42688         update-copyright: generalize comment handling
42689         * build-aux/update-copyright: Handle copyright statements
42690         within more comment styles.
42691         Document usage.
42692         Report any file with an external copyright holder or parse failure.
42693
42694 2009-07-29  Jim Meyering  <meyering@redhat.com>
42695
42696         mktime: correct setting of REPLACE_MKTIME
42697         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42698
42699         update-copyright: new module
42700         * modules/update-copyright: New file.
42701         * build-aux/update-copyright: New file.
42702         * MODULES.html.sh (maint+release support): Add update-copyright.
42703
42704 2009-07-27  Bruno Haible  <bruno@clisp.org>
42705
42706         Fix compilation error when <ctime> is used and mktime is replaced.
42707         * lib/time.in.h (mktime): New declaration.
42708         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42709         REPLACE_MKTIME instead of defining mktime in config.h.
42710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42711         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42712         Reported by Ross McFarland <rwmcfa1@neces.com>.
42713
42714 2009-07-27  Bruno Haible  <bruno@clisp.org>
42715
42716         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42717         Reported by Matt Kraai <mkraai@beckman.com>.
42718
42719 2009-07-25  Jim Meyering  <meyering@redhat.com>
42720
42721         maint.mk: avoid warnings about missing files
42722         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42723         diagnostic when .prev-version does not exist.
42724         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42725         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42726         nonexistent cfg.mk.
42727         Suggestions from Simon Josefsson.
42728
42729 2009-07-25  Bruno Haible  <bruno@clisp.org>
42730
42731         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42732         defined as macros. Needed on QNX 6.4.1.
42733         Reported by Matt Kraai <mkraai@beckman.com>.
42734
42735 2009-07-23  Jim Meyering  <meyering@redhat.com>
42736
42737         maint.mk: invoke "make dist" with a working value of XZ_OPT
42738         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42739
42740 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42741
42742         Make fseeko.c compile on QNX.
42743         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42744
42745 2009-07-22  Peter Simons  <simons@cryp.to>
42746
42747         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42748         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42749         * lib/md4.h: Likewise.
42750         * lib/md5.h: Likewise.
42751         * lib/sha1.h: Likewise.
42752         * lib/sha256.h: Likewise.
42753         * lib/sha512.h: Likewise.
42754
42755         tests-sha1: don't assign literal string to 'char *' variable
42756         * tests/test-sha1.c (main): Declare locals with "const" to match
42757         attributes of the right hand side.
42758
42759 2009-07-21  Eric Blake  <ebb9@byu.net>
42760
42761         dup2: fix more mingw problems
42762         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42763         fd to itself.
42764         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42765         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42766         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42767         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42768         care of mingw bugs.
42769
42770 2009-07-21  Jim Meyering  <meyering@redhat.com>
42771
42772         vc-list-files: avoid failure when /bin/sh is dash
42773         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42774         On some Debian based systems, /bin/sh is a symlink to dash, and running
42775         this command would omit the "/" following each 'tests' prefix:
42776           dash -x build-aux/vc-list-files -C . tests
42777         That is because bash and dash work differently:
42778           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42779           bash ok
42780           dash odd
42781
42782 2009-07-21  Eric Blake  <ebb9@byu.net>
42783
42784         dup2-tests: test previous patch
42785         * modules/dup2-tests: New file.
42786         * tests/test-dup2.c: Likewise.
42787         * tests/test-open.c (main): Avoid unspecified behavior.
42788         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42789         test.
42790
42791         dup2: work around mingw and cygwin 1.5 bug
42792         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42794         * modules/unistd (Makefile.am): Substitute it.
42795         * lib/unistd.in.h (dup2): Declare the replacement.
42796         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42797         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42798         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42799         * modules/execute (Depends-on): Add dup2.
42800         * modules/fseterr (Depends-on): Likewise.
42801         * modules/pipe (Depends-on): Likewise.
42802         * modules/posix_spawn-internal (Depends-on): Likewise.
42803
42804 2009-07-21  Bruno Haible  <bruno@clisp.org>
42805
42806         * modules/.gitattributes: New file.
42807
42808 2009-07-20  Bruno Haible  <bruno@clisp.org>
42809
42810         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42811         (main): Use it.
42812
42813 2009-07-20  Eric Blake  <ebb9@byu.net>
42814
42815         test-pipe: make a bit more robust.
42816         * tests/test-pipe.c (myerr): Allow error messages regardless of
42817         what we do to stderr.
42818         (test_pipe): Rearrange to avoid deadlock.
42819         (child_main): Try a larger read, to ensure we avoided deadlock.
42820         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42821         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42822         if misused.
42823
42824 2009-07-19  Jim Meyering  <meyering@redhat.com>
42825
42826         fts: avoid false-positive cycle-detection
42827         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42828         for each new command line argument.
42829
42830 2009-07-19  Bruno Haible  <bruno@clisp.org>
42831
42832         Fix build error on mingw with the modules sys_select and unistd.
42833         * modules/acl-tests (Depends-on): Add close.
42834         * modules/binary-io-tests (Depends-on): Likewise.
42835         * modules/closein-tests (Depends-on): Likewise.
42836         * modules/flock-tests (Depends-on): Likewise.
42837         * modules/fsync-tests (Depends-on): Likewise.
42838         * modules/lseek-tests (Depends-on): Likewise.
42839         * modules/pipe-tests (Depends-on): Likewise.
42840         * modules/posix_spawn-tests (Depends-on): Likewise.
42841         * modules/posix_spawnp-tests (Depends-on): Likewise.
42842         * modules/stat-time-tests (Depends-on): Likewise.
42843         * modules/yesno-tests (Depends-on): Likewise.
42844
42845 2009-07-19  Bruno Haible  <bruno@clisp.org>
42846
42847         Unify conditionals.
42848         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42849         macros, not at the compiler macros.
42850         * lib/pipe.c: Likewise.
42851         * lib/execute.c: Likewise.
42852         * lib/spawni.c: Likewise.
42853
42854 2009-07-19  Bruno Haible  <bruno@clisp.org>
42855
42856         Fix handling of closed stdin/stdout/stderr on mingw.
42857         * lib/w32spawn.h: Include unistd.h.
42858         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42859         file descriptor with O_NOINHERIT flag.
42860         (fd_safer_noinherit): New function, based on fd-safer.c.
42861         (dup_safer_noinherit): New function, based on dup-safer.c.
42862         (undup_safer_noinherit): New function.
42863         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42864         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42865         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42866         instead of fd_safer.
42867         * tests/test-pipe.c: Include <windows.h>.
42868         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42869         result.
42870
42871         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42872         from main.
42873         (test_pipe): Pass an extra argument for disambiguation.
42874         (main): Invoke parent_main or child_main.
42875
42876         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42877         consistently.
42878
42879 2009-07-18  Eric Blake  <ebb9@byu.net>
42880
42881         test-pipe: fix mingw build
42882         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42883
42884 2009-07-18  Bruno Haible  <bruno@clisp.org>
42885
42886         * modules/pipe-tests (Makefile.am): Fix typo.
42887
42888 2009-07-18  Eric Blake  <ebb9@byu.net>
42889
42890         error: fix mingw build
42891         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42892         Reported by Bruno Haible.
42893
42894         error: avoid undefined use of stdout
42895         * lib/error.c (error, error_at_line): Check that fd 1 is open
42896         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42897         is handling faults and the close_stdout module wants to report the
42898         detection of closed stdout as an error.
42899
42900 2009-07-17  Eric Blake  <ebb9@byu.net>
42901
42902         pipe: be robust in face of closed fds
42903         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42904         should cause child to misbehave.
42905         * modules/pipe-tests: New module.
42906         * tests/test-pipe.c: New file.
42907         * tests/test-pipe.sh: New file.
42908         Reported by Akim Demaille.
42909
42910 2009-07-14  Bruno Haible  <bruno@clisp.org>
42911
42912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42913         Reported by anonymous kc.
42914
42915 2009-07-07  Jim Meyering  <meyering@redhat.com>
42916
42917         maint.mk: don't look for translatable strings in *.m4 or *.mk
42918         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42919         when searching for translatable strings.
42920
42921 2009-07-05  Jim Meyering  <meyering@redhat.com>
42922
42923         remove superfluous parentheses in STREQ definition
42924         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42925         * lib/getugroups.c (STREQ): Likewise.
42926         * lib/fnmatch.c (STREQ): Likewise.
42927         Spotted by Bruno Haible.
42928
42929 2009-07-04  Jim Meyering  <meyering@redhat.com>
42930
42931         argv-iter: new module
42932         * MODULES.html.sh: Add argv-iter.
42933         * lib/argv-iter.c, lib/argv-iter.h: New files.
42934         * modules/argv-iter: New file.
42935         * modules/argv-iter-tests: New file.
42936         * tests/test-argv-iter.c: Test it.
42937
42938 2009-07-04  Bruno Haible  <bruno@clisp.org>
42939
42940         Fix assertion.
42941         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42942         contains more exact copies of a given entry than file2, leave the extra
42943         copies unpaired rather than aborting.
42944         Reported by Eric Blake.
42945
42946 2009-07-02  Bruno Haible  <bruno@clisp.org>
42947
42948         Speedup git-merge-changelog for git cherry-pick.
42949         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42950         (entries_mapping_get): New function, extracted from compute_mapping.
42951         (entries_mapping_reverse_get): New function.
42952         (compute_mapping): Add a 'full' argument. Return the result in a
42953         'struct entries_mapping'.
42954         (main): Update. Access the mappings through entries_mapping_get.
42955         Reported by Eric Blake.
42956
42957 2009-07-02  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42960         best_i.
42961
42962 2009-07-02  Bruno Haible  <bruno@clisp.org>
42963
42964         Speed up approximate search for matching ChangeLog entries.
42965         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42966         argument. Call fstrcmp_bounded instead of fstrcmp.
42967         (compute_mapping, try_split_merged_entry, main): Update callers.
42968
42969 2009-07-02  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42972
42973 2009-06-30  Bruno Haible  <bruno@clisp.org>
42974
42975         Reduce the number of uc_is_cased calls.
42976         * lib/unicase.h (casing_suffix_context_t): Add
42977         'first_char_except_ignorable' field.
42978         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42979         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42980         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42981         Update initializer.
42982         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42983         case-ignorable characters.
42984         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42985         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42986         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42987         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42988         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42989
42990 2009-06-30  Bruno Haible  <bruno@clisp.org>
42991
42992         Tests for module 'unicase/ignorable'.
42993         * modules/unicase/ignorable-tests: New file.
42994         * tests/unicase/test-ignorable.c: New file, generated by
42995         gen-uni-tables.
42996
42997         Tests for module 'unicase/cased'.
42998         * modules/unicase/cased-tests: New file.
42999         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43000         * tests/unicase/test-predicate-part1.h: New file, derived from
43001         tests/unictype/test-predicate-part1.h.
43002         * tests/unicase/test-predicate-part2.h: New file, same as
43003         tests/unictype/test-predicate-part2.h.
43004
43005         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43006         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43007         (output_casing_properties): New function.
43008         (main): Call it.
43009         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43010         * lib/unicase/cased.c: Include unictype/bitmap.h.
43011         (uc_is_cased): Define through a bitmap lookup.
43012         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43013         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43014         (uc_is_case_ignorable): Define through a bitmap lookup.
43015         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43016         lib/unictype/bitmap.h.
43017         (Depends-on): Add inline. Clean up.
43018         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43019         lib/unictype/bitmap.h.
43020         (Depends-on): Add inline. Clean up.
43021         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43022         recognition.
43023         * tests/unicase/test-u16-tolower.c (main): Likewise.
43024         * tests/unicase/test-u32-tolower.c (main): Likewise.
43025
43026 2009-06-30  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43029         * lib/unicase/u16-casemap.c: Likewise.
43030         * lib/unicase/u32-casemap.c: Likewise.
43031
43032 2009-06-29  Bruno Haible  <bruno@clisp.org>
43033
43034         Define u32_casefold as a wrapper around u32_ct_casefold.
43035         * lib/unicase/u32-casefold.c: Update.
43036         * modules/unicase/u32-casefold (Depends-on): Add
43037         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43038         unicase/empty-suffix-context. Clean up.
43039
43040         Define u16_casefold as a wrapper around u16_ct_casefold.
43041         * lib/unicase/u16-casefold.c: Update.
43042         * modules/unicase/u16-casefold (Depends-on): Add
43043         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43044         unicase/empty-suffix-context. Clean up.
43045
43046         Define u8_casefold as a wrapper around u8_ct_casefold.
43047         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43048         * lib/unicase/u8-casefold.c: Update.
43049         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43050         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43051
43052         Define u32_totitle as a wrapper around u32_ct_totitle.
43053         * lib/unicase/u32-totitle.c: Update.
43054         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43055         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43056
43057         Define u16_totitle as a wrapper around u16_ct_totitle.
43058         * lib/unicase/u16-totitle.c: Update.
43059         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43060         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43061
43062         Define u8_totitle as a wrapper around u8_ct_totitle.
43063         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43064         functions.
43065         (FUNC): Delegate to U_CT_TOTITLE.
43066         * lib/unicase/u8-totitle.c: Update.
43067         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43068         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43069
43070         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43071         invocation.
43072         * modules/unicase/u32-tolower (Depends-on): Add
43073         unicase/empty-prefix-context, unicase/empty-suffix-context.
43074
43075         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43076         invocation.
43077         * modules/unicase/u16-tolower (Depends-on): Add
43078         unicase/empty-prefix-context, unicase/empty-suffix-context.
43079
43080         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43081         * modules/unicase/u8-tolower (Depends-on): Add
43082         unicase/empty-prefix-context, unicase/empty-suffix-context.
43083
43084         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43085         invocation.
43086         * modules/unicase/u32-toupper (Depends-on): Add
43087         unicase/empty-prefix-context, unicase/empty-suffix-context.
43088
43089         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43090         invocation.
43091         * modules/unicase/u16-toupper (Depends-on): Add
43092         unicase/empty-prefix-context, unicase/empty-suffix-context.
43093
43094         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43095         * modules/unicase/u8-toupper (Depends-on): Add
43096         unicase/empty-prefix-context, unicase/empty-suffix-context.
43097
43098         New module 'unicase/u32-ct-casefold'.
43099         * lib/unicase/u32-ct-casefold.c: New file.
43100         * modules/unicase/u32-ct-casefold: New file.
43101
43102         New module 'unicase/u16-ct-casefold'.
43103         * lib/unicase/u16-ct-casefold.c: New file.
43104         * modules/unicase/u16-ct-casefold: New file.
43105
43106         New module 'unicase/u8-ct-casefold'.
43107         * lib/unicase/u8-ct-casefold.c: New file.
43108         * lib/unicase/u-ct-casefold.h: New file, derived from
43109         lib/unicase/u-casefold.h.
43110         * modules/unicase/u8-ct-casefold: New file.
43111
43112         New module 'unicase/u32-ct-totitle'.
43113         * lib/unicase/u32-ct-totitle.c: New file.
43114         * modules/unicase/u32-ct-totitle: New file.
43115
43116         New module 'unicase/u16-ct-totitle'.
43117         * lib/unicase/u16-ct-totitle.c: New file.
43118         * modules/unicase/u16-ct-totitle: New file.
43119
43120         New module 'unicase/u8-ct-totitle'.
43121         * lib/unicase/u8-ct-totitle.c: New file.
43122         * lib/unicase/u-ct-totitle.h: New file, derived from
43123         lib/unicase/u-totitle.h.
43124         * modules/unicase/u8-ct-totitle: New file.
43125
43126         New module 'unicase/u32-ct-tolower'.
43127         * lib/unicase/u32-ct-tolower.c: New file.
43128         * modules/unicase/u32-ct-tolower: New file.
43129
43130         New module 'unicase/u16-ct-tolower'.
43131         * lib/unicase/u16-ct-tolower.c: New file.
43132         * modules/unicase/u16-ct-tolower: New file.
43133
43134         New module 'unicase/u8-ct-tolower'.
43135         * lib/unicase/u8-ct-tolower.c: New file.
43136         * modules/unicase/u8-ct-tolower: New file.
43137
43138         New module 'unicase/u32-ct-toupper'.
43139         * lib/unicase/u32-ct-toupper.c: New file.
43140         * modules/unicase/u32-ct-toupper: New file.
43141
43142         New module 'unicase/u16-ct-toupper'.
43143         * lib/unicase/u16-ct-toupper.c: New file.
43144         * modules/unicase/u16-ct-toupper: New file.
43145
43146         New module 'unicase/u8-ct-toupper'.
43147         * lib/unicase/u8-ct-toupper.c: New file.
43148         * modules/unicase/u8-ct-toupper: New file.
43149
43150         Add context arguments to u*_casemap functions.
43151         * lib/unicase/unicasemap.h: Include unicase.h.
43152         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43153         suffix_context arguments.
43154         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43155         functions.
43156         (FUNC): Add prefix_context and suffix_context arguments. Use
43157         uc_is_cased and uc_is_case_ignorable.
43158         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43159         * lib/unicase/u16-casemap.c: Likewise.
43160         * lib/unicase/u32-casemap.c: Likewise.
43161         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43162         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43163         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43164         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43165         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43166         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43167
43168         New module 'unicase/u32-suffix-context'.
43169         * lib/unicase/u32-suffix-context.c: New file.
43170         * modules/unicase/u32-suffix-context: New file.
43171
43172         New module 'unicase/u16-suffix-context'.
43173         * lib/unicase/u16-suffix-context.c: New file.
43174         * modules/unicase/u16-suffix-context: New file.
43175
43176         New module 'unicase/u8-suffix-context'.
43177         * lib/unicase/u8-suffix-context.c: New file.
43178         * lib/unicase/u-suffix-context.h: New file.
43179         * modules/unicase/u8-suffix-context: New file.
43180
43181         New module 'unicase/empty-suffix-context'.
43182         * lib/unicase/empty-suffix-context.c: New file.
43183         * modules/unicase/empty-suffix-context: New file.
43184
43185         New module 'unicase/u32-prefix-context'.
43186         * lib/unicase/u32-prefix-context.c: New file.
43187         * modules/unicase/u32-prefix-context: New file.
43188
43189         New module 'unicase/u16-prefix-context'.
43190         * lib/unicase/u16-prefix-context.c: New file.
43191         * modules/unicase/u16-prefix-context: New file.
43192
43193         New module 'unicase/u8-prefix-context'.
43194         * lib/unicase/u8-prefix-context.c: New file.
43195         * lib/unicase/u-prefix-context.h: New file.
43196         * lib/unicase/context.h: New file.
43197         * modules/unicase/u8-prefix-context: New file.
43198
43199         New module 'unicase/empty-prefix-context'.
43200         * lib/unicase/empty-prefix-context.c: New file.
43201         * modules/unicase/empty-prefix-context: New file.
43202
43203         New module 'unicase/ignorable'.
43204         * lib/unicase/ignorable.c: New file.
43205         * modules/unicase/ignorable: New file.
43206
43207         New module 'unicase/cased'.
43208         * lib/unicase/caseprop.h: New file.
43209         * lib/unicase/cased.c: New file.
43210         * modules/unicase/cased: New file.
43211
43212         New functions for case mapping of substrings.
43213         * lib/unicase.h (casing_prefix_context_t): New type.
43214         (unicase_empty_prefix_context): New variable.
43215         (u8_casing_prefix_context, u16_casing_prefix_context,
43216         u32_casing_prefix_context, u8_casing_prefixes_context,
43217         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43218         declarations.
43219         (casing_suffix_context_t): New type.
43220         (unicase_empty_suffix_context): New variable.
43221         (u8_casing_suffix_context, u16_casing_suffix_context,
43222         u32_casing_suffix_context, u8_casing_suffixes_context,
43223         u16_casing_suffixes_context, u32_casing_suffixes_context,
43224         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43225         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43226         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43227         declarations.
43228
43229 2009-06-28  Jim Meyering  <meyering@redhat.com>
43230
43231         boostrap: indent only with spaces
43232         * build-aux/bootstrap: Indent only with spaces, never TABs.
43233
43234         bootstrap: split long lines
43235         * build-aux/bootstrap: Keep line length < 80.
43236
43237         bootstrap: sync from coreutils
43238         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43239         just as autoreconf does.  Verify a list of prerequisite
43240         package-name,version-number pairs if defined in bootstrap.conf.
43241         Refer to README-prereq, if prerequisites are not satisfied.
43242
43243 2009-06-27  Eric Blake  <ebb9@byu.net>
43244
43245         tests: add test for bogus NULL definition
43246         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43247         * tests/test-stdlib.c: Likewise.
43248         * tests/test-string.c: Likewise.
43249         * tests/test-locale.c: Likewise.
43250         * tests/test-unistd.c: Likewise.
43251         * modules/stdio-tests (Depends-on): Add verify.
43252         * modules/stdlib-tests (Depends-on): Likewise.
43253         * modules/string-tests (Depends-on): Likewise.
43254         * modules/locale-tests (Depends-on): Likewise.
43255         * modules/unistd-tests (Depends-on): Likewise.
43256
43257 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43258
43259         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43260         self-explaining comment.
43261         * m4/selinux-selinux-h: Update serial.
43262         (gl_LIBSELINUX): New macro, adding a warning for missing development
43263         packages to code extracted from...
43264         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43265         Add warning for missing development packages here, too.
43266
43267 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43268
43269         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43270
43271 2009-06-25  Eric Blake  <ebb9@byu.net>
43272
43273         version-etc: fix regression
43274         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43275         gcc.
43276         (version_etc): Use it, to catch bugs with trailing NULL.
43277         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43278         (version_etc_va): Fix logic bug.
43279         * modules/version-etc-tests: Add test.
43280         * tests/test-version-etc.c: New file.
43281         * tests/test-version-etc.sh: Likewise.
43282
43283 2009-06-25  Sam Steingold  <sds@gnu.org>
43284
43285         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43286         mbtowc declaration.
43287
43288 2009-06-25  Eric Blake  <ebb9@byu.net>
43289
43290         fpurge: migrate into <stdio.h>
43291         * lib/fpurge.h: Delete...
43292         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43293         * lib/fpurge.c (fpurge): Change declaring header.
43294         * modules/fpurge (Files): Drop deleted file.
43295         (Depends-on): Add stdio.
43296         (configure.ac): Set witness.
43297         * modules/stdio (Makefile.am): Support fpurge macros.
43298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43299         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43300         * lib/fflush.c: Update client.
43301         * tests/test-fpurge.c: Likewise.
43302         * NEWS: Mention the change.
43303
43304 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43305
43306         * lib/argp-version-etc.c (program_authors): Add const
43307         qualifier.
43308         * lib/version-etc.c: Fix typos in the comments.
43309         * modules/argp-version-etc: Depends on version-etc.
43310
43311 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43312
43313         argp-version-etc: new module.
43314
43315         * lib/argp-version-etc.c: New file.
43316         * lib/argp-version-etc.h: New file.
43317         * modules/argp-version-etc: New file.
43318         * modules/argp-version-etc-tests: New file.
43319         * tests/test-argp-version-etc.c: New test.
43320         * tests/test-argp-version-etc-1.sh: New test.
43321
43322 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43323
43324         Provide additional interfaces and documentation for version-etc
43325         module.
43326
43327         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43328         interfaces.
43329         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43330         prototypes.
43331
43332 2009-06-24  Bruno Haible  <bruno@clisp.org>
43333
43334         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43335         HAVE_LIB${NAME} macro.
43336         Reported by Sam Steingold <sds@gnu.org>.
43337
43338 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43339
43340         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43341         needed.
43342
43343 2009-06-21  Bruno Haible  <bruno@clisp.org>
43344
43345         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43346         work.
43347         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43348         together with LIB${NAME}, LTLIB${NAME}.
43349         Reported by Sam Steingold <sds@gnu.org>.
43350
43351 2009-06-20  Jim Meyering  <meyering@redhat.com>
43352
43353         tests: make sc_require_test_exit_idiom more generic
43354         * top/maint.mk (Exit_witness_file): New overridable variable.
43355         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43356         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43357
43358 2009-06-19  Jim Meyering  <meyering@redhat.com>
43359
43360         hash: reverse order of src/dst parameters in an internal interface
43361         * lib/hash.c (transfer_entries): Reverse order of parameters to
43362         put DST before SRC.  Adjust callers.
43363
43364         tests: test-hash: avoid wholesale duplication
43365         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43366         Instead, use a loop and add a single conditional.
43367
43368         tests: test-hash: allow seed selection via a command line argument
43369         * tests/test-hash.c (get_seed): New function.
43370         (main): Use it.
43371
43372 2009-06-19  Eric Blake  <ebb9@byu.net>
43373
43374         hash: avoid memory leak on allocation failure
43375         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43376         failure.  Factor repeated algorithm...
43377         (transfer_entries): ...into new helper routine.
43378         (hash_delete): React to hash_rehash return value.
43379
43380         hash: reduce memory pressure in hash_rehash no-op case
43381         * lib/hash.c (next_prime): Avoid overflow.
43382         (hash_initialize): Factor bucket size computation...
43383         (compute_bucket_size): ...into new helper function.
43384         (hash_rehash): Use new function and open coding to reduce memory
43385         pressure, and avoid a memory leak in USE_OBSTACK code.
43386         Reported by Jim Meyering.
43387
43388 2009-06-18  Eric Blake  <ebb9@byu.net>
43389
43390         hash: make rotation more obvious
43391         * modules/hash (Depends-on): Add bitrotate and stdint.
43392         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43393         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43394         (SIZE_MAX): Rely on headers for definition.
43395         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43396         (raw_hasher): Use rotr_sz.
43397         Suggested by Jim Meyering.
43398
43399         hash: fix memory leak in last patch
43400         * lib/hash.c (hash_rehash): Avoid memory leak.
43401
43402         hash: avoid no-op rehashing
43403         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43404
43405         hash: provide default callback functions
43406         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43407         (hash_initialize): Use them as defaults.
43408         * tests/test-hash.c (main): Test this.
43409
43410         hash: minor optimization
43411         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43412         when possible.
43413         (hash_initialize): Document this promise.
43414         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43415         * tests/test-hash.c (hash_compare_strings): Test this.
43416
43417 2009-06-18  Bruno Haible  <bruno@clisp.org>
43418
43419         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43420         going to be replaced anyway.
43421
43422 2009-06-18  Bruno Haible  <bruno@clisp.org>
43423
43424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43425         in one place.
43426         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43427         be replaced anyway.
43428
43429 2009-06-18  Eric Blake  <ebb9@byu.net>
43430
43431         hash: check for resize before insertion
43432         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43433         threshold before insertion, so that a pathological hash_rehash
43434         that fills every bucket can still trigger another rehash.
43435
43436 2009-06-18  Jim Meyering  <meyering@redhat.com>
43437
43438         hash-tests: add a loop around the small tests
43439         * tests/test-hash.c (main): Repeat small tests with selected
43440         small initial table sizes.
43441
43442 2009-06-17  Eric Blake  <ebb9@byu.net>
43443
43444         hash: minor cleanups
43445         * lib/hash.h (hash_entry): Make opaque, by moving...
43446         * lib/hash.c (hash_entry): ...here.
43447         (hash_insert): Clarify restrictions on what can be inserted.
43448         (hash_get_next): Clarify when it is safe to remove an element
43449         during traversal.
43450         (check_tuning): Skip verification when tuning is known safe.
43451         (hash_initialize): Clarify restrictions on tuning.
43452
43453 2009-06-17  Jim Meyering  <jim@meyering.net>
43454         and Eric Blake  <ebb9@byu.net>
43455
43456         hash-tests: new module
43457         * modules/hash-tests: New file.
43458         * tests/test-hash.c: New file.
43459
43460 2009-06-17  Eric Blake  <ebb9@byu.net>
43461
43462         strstr-simple: document new module
43463         * MODULES.html.sh: Document new module.
43464
43465         strstr, strcasestr: replace on platforms with broken memchr
43466         * modules/strstr: Split into...
43467         * modules/strstr-simple: ...new module that does not care about
43468         performance, but does care about glibc bug.
43469         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43470         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43471         if platform memchr is broken, per Debian bug 521737.
43472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43473         memchr.
43474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43475         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43476         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43477         * modules/mountlist (Depends-on): Add strstr-simple.
43478         * modules/gen-uni-tables (Depends-on): Likewise.
43479         * modules/argz (Depends-on): Add strstr.
43480
43481 2009-06-17  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/posix_spawn-internal (Depends-on): Add errno.
43484
43485 2009-06-17  Bruno Haible  <bruno@clisp.org>
43486
43487         Define missing ESTALE on Interix 3.5.
43488         * lib/errno.in.h (ESTALE): Assign a value if missing.
43489         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43491         missing.
43492         * doc/posix-headers/errno.texi: Mention the Interix bug.
43493         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43494
43495 2009-06-15  Eric Blake  <ebb9@byu.net>
43496
43497         memchr, memchr2: add valgrind exception
43498         * lib/memchr.valgrind: New file.
43499         * lib/memchr2.valgrind: New file.
43500         * modules/memchr (Files): Distribute valgrind file.
43501         * modules/memchr2 (Files): Likewise.
43502
43503         docs: memchr is no longer obsolete
43504         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43505         * lib/string.in.h (memchr): Simplify logic.
43506
43507 2009-06-14  Jim Meyering  <meyering@redhat.com>
43508
43509         link-follow: fix the "checking..." message to not mention trailing slash
43510         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43511         never considered trailing slashes.
43512
43513 2009-06-14  Bruno Haible  <bruno@clisp.org>
43514
43515         * m4/memchr.m4: Mention also the bug on IA-64.
43516         * doc/posix-functions/memchr.texi: Likewise.
43517
43518 2009-06-12  Eric Blake  <ebb9@byu.net>
43519
43520         memchr: detect broken x86_64 and alpha implementations
43521         * modules/memchr-tests (Depends-on): Move mmap detection...
43522         * modules/memchr (Depends-on): ...here.
43523         (configure.ac): Set indicator.
43524         * lib/string.in.h (memchr): Declare replacement.
43525         * modules/string (Makefile.am): Trigger replacement.
43526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43527         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43528         bugs.
43529         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43530         * modules/getpagesize (License): Relax license.
43531
43532 2009-06-11  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/idpriv.h: Add more references.
43535
43536 2009-06-08  Bruno Haible  <bruno@clisp.org>
43537
43538         Tests for module 'idpriv-droptemp'.
43539         * modules/idpriv-droptemp-tests: New file.
43540         * tests/test-idpriv-droptemp.sh: New file.
43541         * tests/test-idpriv-droptemp.su.sh: New file.
43542         * tests/test-idpriv-droptemp.c: New file.
43543
43544         New module 'idpriv-droptemp'.
43545         * lib/idpriv-droptemp.c: New file.
43546         * modules/idpriv-droptemp: New file.
43547
43548 2009-06-08  Bruno Haible  <bruno@clisp.org>
43549
43550         Tests for module 'idpriv-drop'.
43551         * modules/idpriv-drop-tests: New file.
43552         * tests/test-idpriv-drop.sh: New file.
43553         * tests/test-idpriv-drop.su.sh: New file.
43554         * tests/test-idpriv-drop.c: New file.
43555
43556         New module 'idpriv-drop'.
43557         * lib/idpriv.h: New file.
43558         * lib-idpriv-drop.c: New file.
43559         * m4/idpriv.m4: New file.
43560         * modules/idpriv-drop: New file.
43561
43562 2009-06-08  Bruno Haible  <bruno@clisp.org>
43563
43564         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43565         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43566         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43567         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43570         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43571
43572 2009-06-08  Eric Blake  <ebb9@byu.net>
43573
43574         test-strstr: use memory fence, when possible
43575         * tests/test-strstr.c (main): Use memory fence, in order to be
43576         more likely to trigger Debian bug 521737.
43577         * modules/strstr-tests (Files): Pull in additional files.
43578
43579         memchr: no longer obsolete, for wider field testing
43580         * modules/memchr (Status, Notice): Delete, this module is no
43581         longer obsolete.
43582         * modules/vasnprintf (Depends-on): Add memchr.
43583
43584 2009-06-07  Jim Meyering  <meyering@redhat.com>
43585
43586         hash: declare some functions with the warn_unused_result attribute
43587         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43588
43589 2009-06-07  Bruno Haible  <bruno@clisp.org>
43590
43591         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43592         Reported by Eric Blake.
43593
43594 2009-06-06  Eric Blake  <ebb9@byu.net>
43595
43596         test-alignof: fix typo with long double
43597         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43598         compiler error.
43599
43600 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43601
43602         Escape non-texinfo { and }s.
43603         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43604         markup error.
43605
43606 2009-06-04  Jim Meyering  <meyering@redhat.com>
43607
43608         gitlog-to-changelog: don't infloop on an empty commit log
43609         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43610         Reported by Boris Petersen <transacid@centerim.org>.
43611
43612 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43613
43614         version-etc: extend for packagers
43615         Add three new configure options, intended for packagers:
43616           --with-packager="packager name"
43617           --with-packager-version="packager-specific version"
43618           --with-packager-bug-reports="packager bug reporting"
43619         An example with coreutils:
43620           $ ./configure \
43621             --with-packager=Gentoo \
43622             --with-packager-bug-report=http://bugs.gentoo.org/ \
43623             --with-packager-version="patchset 1.6"
43624           $ ./src/ls --version | head -n2
43625           ls (GNU coreutils) 7.1-dirty
43626           Packaged by Gentoo (patchset 1.6)
43627         Note that the bug reporting info via --help doesn't show up because
43628         coreutils uses its own custom emit_bug_reporting_address() implementation
43629         in src/system.h.  If it didn't, it'd look like:
43630           $ ./src/ls --help | tail -n4
43631           Report bugs to <bug-coreutils@gnu.org>.
43632           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43633           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43634           General help using GNU software: <http://www.gnu.org/gethelp/>.
43635         * lib/version-etc.c: Print new information, if provided.
43636         * m4/version-etc.m4: New file.
43637         * modules/version-etc (Files): Add m4/version-etc.m4.
43638         (configure.ac): Add gl_VERSION_ETC.
43639
43640 2009-05-31  Bruno Haible  <bruno@clisp.org>
43641
43642         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43643         and 'int64_t'.
43644         * modules/alignof-tests (Dependencies): Add stdint.
43645         Reported by Eric Blake.
43646
43647 2009-05-31  Bruno Haible  <bruno@clisp.org>
43648
43649         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43650         restriction due to compiler bugs.
43651         Reported by Eric Blake.
43652
43653 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43654             Bruno Haible  <bruno@clisp.org>
43655
43656         Fix test-alignof failure.
43657         * lib/alignof.h (alignof_slot): New macro.
43658         (alignof_type): New macro, with the same semantics as the previous
43659         'alignof'.
43660         (alignof): Alias to alignof_slot.
43661         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43662         check that the results are usable as constant expressions.
43663
43664 2009-05-31  Bruno Haible  <bruno@clisp.org>
43665
43666         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43667         * tests/test-memchr.c (main): Check that memchr does not read past the
43668         first occurrence of the byte.
43669         * tests/test-strstr.c (main): Update comment.
43670         Suggested by Eric Blake.
43671
43672 2009-05-30  Bruno Haible  <bruno@clisp.org>
43673
43674         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43675         detail how to use dumpbin.
43676         Reported by David Byron <dbyron@dbyron.com>.
43677
43678 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43679
43680         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43681
43682 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43683
43684         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43685
43686 2009-05-28  Bruno Haible  <bruno@clisp.org>
43687
43688         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43689         build-aux/ files.
43690
43691 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43692
43693         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43694
43695 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43696
43697         * gnulib-tool (sed_transform_main_lib_file)
43698         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43699         regexps.
43700
43701 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43702
43703         * tests/test-strstr.c: Add another self-test.
43704         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43705         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43706
43707 2009-05-23  Bruno Haible  <bruno@clisp.org>
43708
43709         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43710         change.
43711
43712 2009-05-21  Bruno Haible  <bruno@clisp.org>
43713
43714         Simplify use of mode_t varargs.
43715         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43716         uses 'mode_t' or 'int'.
43717         * lib/openat.c (openat): Likewise.
43718         * lib/open-safer.c (open_safer): Likewise.
43719         * m4/mode_t.m4: New file.
43720         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43721         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43723         * modules/open (Files): Add m4/mode_t.m4.
43724         * modules/openat (Files): Likewise.
43725         * modules/fcntl-safer (Files): Likewise.
43726         Suggested by Eric Blake.
43727
43728 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43729
43730         * doc/glibc-functions/fallocate.texi: New file.
43731         * doc/gnulib.texi: Include it.
43732
43733 2009-05-21  Eric Blake  <ebb9@byu.net>
43734             Bruno Haible  <bruno@clisp.org>
43735
43736         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43737         invocations.
43738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43739
43740 2009-05-21  Eric Blake  <ebb9@byu.net>
43741             Bruno Haible  <bruno@clisp.org>
43742
43743         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43744         include_next. Fix of 2008-11-20 commit.
43745         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43746         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43747         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43748         NEXT_MATH_H.
43749         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43750         instead of NEXT_MATH_H.
43751
43752 2009-05-21  Bruno Haible  <bruno@clisp.org>
43753
43754         Avoid redefinition warnings for SIZE_MAX.
43755         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43756         Reported by Simon Josefsson.
43757
43758 2009-05-21  Bruno Haible  <bruno@clisp.org>
43759
43760         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43761         AC_CACHE_VAL.
43762
43763 2009-05-20  Bruno Haible  <bruno@clisp.org>
43764
43765         Make zeroptr.h work on mingw.
43766         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43767         mprotect.
43768         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43769         * modules/memchr2-tests (configure.ac): Likewise.
43770         * modules/memcmp-tests (configure.ac): Likewise.
43771         * modules/memmem-tests (configure.ac): Likewise.
43772         * modules/memrchr-tests (configure.ac): Likewise.
43773         Reported by Simon Josefsson.
43774
43775 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43776
43777         * tests/test-glob.c: Include string.h for strcmp prototype.
43778
43779 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43780
43781         * modules/getdelim (Depends-on): Add explicit stdint, although it
43782         was implicitly already pulled in via realloc-posix.
43783         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43784
43785 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43786
43787         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43788         G. Christensen" <tgc@jupiterrise.com>.
43789         * m4/sys_socket_h.m4: Check for sa_family_t.
43790         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43791         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43792         * tests/test-sys_socket.c: Check that sa_family_t works.
43793
43794 2009-05-18  Eric Blake  <ebb9@byu.net>
43795
43796         maint.mk: allow gnulib_dir in VPATH build
43797         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43798
43799 2009-05-15  Jim Meyering  <meyering@redhat.com>
43800
43801         maint.mk: Give gnulib_dir a default definition.
43802         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43803         Thus, most packages no longer need to specify this variable in cfg.mk
43804
43805 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43806
43807         rename.m4: fix typos that would make non-mingw cross-configure fail
43808         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43809
43810 2009-05-13  Eric Blake  <ebb9@byu.net>
43811
43812         mmap-anon: avoid out-of-order autoconf expansion
43813         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43814         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43815         * modules/memchr-tests (Depends-on): Add extensions.
43816         * modules/memchr2-tests (Depends-on): Add extensions.
43817         * modules/memcmp-tests (Depends-on): Add extensions.
43818         * modules/memmem-tests (Depends-on): Add extensions.
43819         * modules/memrchr-tests (Depends-on): Add extensions.
43820
43821 2009-05-13  Bruno Haible  <bruno@clisp.org>
43822
43823         Make some tests ISO C 99 compliant.
43824         * tests/zerosize-ptr.h: New file.
43825         * tests/test-memchr.c: Include zerosize-ptr.h.
43826         (main): Use a zero-size object pointer instead of NULL.
43827         * tests/test-memchr2.c: Include zerosize-ptr.h.
43828         (main): Use a zero-size object pointer instead of NULL.
43829         * tests/test-memcmp.c: Include zerosize-ptr.h.
43830         (main): Use a zero-size object pointer instead of NULL.
43831         * tests/test-memmem.c: Include zerosize-ptr.h.
43832         (main): Use a zero-size object pointer instead of NULL.
43833         * tests/test-memrchr.c: Include zerosize-ptr.h.
43834         (main): Use a zero-size object pointer instead of NULL.
43835         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43836         m4/mmap-anon.m4.
43837         (Depends-on): Add getpagesize.
43838         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43839         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43840         m4/mmap-anon.m4.
43841         (Depends-on): Add getpagesize.
43842         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43843         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43844         m4/mmap-anon.m4.
43845         (Depends-on): Add getpagesize.
43846         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43847         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43848         m4/mmap-anon.m4.
43849         (Depends-on): Add getpagesize.
43850         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43851         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43852         m4/mmap-anon.m4.
43853         (Depends-on): Add getpagesize.
43854         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43855
43856 2009-05-12  Bruno Haible  <bruno@clisp.org>
43857
43858         Tests for module 'alignof'.
43859         * modules/alignof-tests: New file.
43860         * tests/test-alignof.c: New file.
43861
43862 2009-05-12  Bruno Haible  <bruno@clisp.org>
43863
43864         Fix alignof macro.
43865         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43866         vendor compilers that are always correct.
43867
43868 2009-05-12  Bruno Haible  <bruno@clisp.org>
43869
43870         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43871         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43872         not whether its fully works.
43873
43874 2009-05-12  Bruno Haible  <bruno@clisp.org>
43875
43876         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43877
43878 2009-05-12  Jim Meyering  <meyering@redhat.com>
43879
43880         * top/maint.mk: Adjust backslash alignment.
43881
43882 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43883
43884         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43885
43886 2009-05-11  Eric Blake  <ebb9@byu.net>
43887
43888         argp: avoid undefined behavior
43889         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43890         macros.
43891
43892 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43893
43894         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43895         user.name to prevent git commit from complaining.
43896
43897 2009-05-10  Bruno Haible  <bruno@clisp.org>
43898
43899         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43900         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43901         it rewrites every file name only once.
43902         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43903
43904 2009-05-08  Bruno Haible  <bruno@clisp.org>
43905
43906         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43907         instead of 'max'.
43908
43909 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43910
43911         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43912         sockaddr_storage test.
43913
43914 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43915
43916         * modules/sys_socket (Makefile.am): Substitute
43917         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43918         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43919         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43920         * tests/test-sys_socket.c: Check sockaddr_storage.
43921
43922 2009-05-08  Bruno Haible  <bruno@clisp.org>
43923
43924         New module 'alignof'.
43925         * lib/alignof.h: New file.
43926         * modules/alignof: New file.
43927
43928 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43929             Bruno Haible  <bruno@clisp.org>
43930
43931         Fix test-file-has-acl on FreeBSD.
43932         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43933         mask is implicitly added.
43934         * tests/test-file-has-acl.c: Include <signal.h>.
43935         (main): Terminate the test after 5 seconds.
43936         * modules/acl-tests (configure.ac): Check for alarm function.
43937
43938 2009-05-04  Bruno Haible  <bruno@clisp.org>
43939
43940         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43941         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43942         * modules/errno (configure.ac): Drop AC_REQUIRE.
43943         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43944         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43945
43946 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43947
43948         * modules/glob-tests: New module.
43949         * tests/test-glob.c: Add.
43950
43951 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43952
43953         * modules/fnmatch-tests: New module.
43954         * tests/test-fnmatch.c: Add.
43955
43956 2009-05-04  Eric Blake  <ebb9@byu.net>
43957
43958         maint: make the new no-submodule-changes rule VPATH-safe
43959         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43960
43961 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43962             Bruno Haible  <bruno@clisp.org>
43963
43964         acl: Fix infinite loop on FreeBSD.
43965         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43966         of return value from acl_get_entry.
43967         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43968         Likewise.
43969
43970 2009-05-03  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/acl-internal.h (acl_entries): Clarify return value.
43973         * lib/acl_entries.c (acl_entries): Likewise.
43974
43975 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43976
43977         Bug fix in acl module.
43978         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43979
43980 2009-05-03  Bruno Haible  <bruno@clisp.org>
43981
43982         Create gperf-generated file in the source dir, not in the build dir.
43983         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43984         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43985         * modules/unicase/locale-language (unicase/locale-languages.h):
43986         Likewise.
43987         * modules/unicase/special-casing (unicase/special-casing-table.h):
43988         Likewise.
43989         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43990         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43991         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43992         Reported by Ralf Wildenhues.
43993
43994 2009-05-03  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/fnmatch (Description, configure.ac): Taken from
43997         fnmatch-posix.
43998         * modules/fnmatch-posix: Turn into a symbolic reference to the
43999         'fnmatch' module, and deprecate.
44000         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44001
44002 2009-05-03  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44005         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44006         Reported by Ralf Wildenhues.
44007
44008 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44009
44010         * m4/fnmatch.m4: Fix fnmatch re-define.
44011
44012 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44013
44014         priv-set: new module and tests; adapt write-any-file
44015         * lib/priv-set.c: New file.
44016         * lib/priv-set.h: New file.
44017         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44018         * lib/write-any-file.c: Simplify by using priv-set module.
44019         * m4/priv-set.m4: New file.
44020         * modules/priv-set: New file.
44021         * modules/unlinkdir: Add dependency on priv-set module.
44022         * modules/write-any-file: Likewise.
44023
44024         Tests for module 'priv-set'.
44025         * modules/priv-set-tests: New file.
44026         * tests/test-priv-set.c: New file.
44027
44028 2009-05-03  Jim Meyering  <meyering@redhat.com>
44029             Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44032         use the converted UTF-8 variant of the name instead.
44033
44034 2009-05-03  Jim Meyering  <meyering@redhat.com>
44035
44036         tests: tighten some getdate tests
44037         * tests/test-getdate.c (main): Tighten tests: require equality,
44038         not just greater than.  Set TZ envvar to UTC0.
44039
44040 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44041
44042         getdate: correctly interpret "next monday" when run on a Monday
44043         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44044         that e.g., "next tues" (when run on a tuesday) results in a date
44045         that is one week in the future, and not today's date.
44046         I.e., add a week when the wday is the same as the current one.
44047         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44048         and earlier by Martin Bernreuther and Jan Minář.
44049         * tests/test-getdate.c (main): Check that "next DAY" is always in
44050         the future and that "last DAY" is always in the past.
44051
44052 2009-05-02  Jim Meyering  <meyering@redhat.com>
44053
44054         build: ensure that a release build fails when a submodule is unclean
44055         * top/maint.mk (no-submodule-changes): New rule.
44056         (alpha beta major): Depend on it.
44057
44058 2009-05-02  Bruno Haible  <bruno@clisp.org>
44059
44060         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44061         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44062         shell variable gl_fnmatch_required to detect which variant is
44063         requested.
44064         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44065         gl_FUNC_FNMATCH_POSIX.
44066         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44067         exclude fnmatch-posix.
44068
44069 2009-05-02  Bruno Haible  <bruno@clisp.org>
44070
44071         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44072         * modules/mbsrtowcs (License): Change to LGPLv2+.
44073         * modules/strnlen1 (License): Likewise.
44074         Reported by Simon Josefsson.
44075
44076 2009-05-02  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44079         "cross".
44080         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44081         gnulib-tool was called with option --source-base=lib.
44082
44083 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084
44085         Use automake *-local hooks without commands, for extensibility.
44086         * modules/localcharset (Makefile.am): Rename install-exec-local
44087         rule to install-exec-localcharset, and make it a prerequisite of
44088         install-exec-local.  Likewise, rename the uninstall-local rule to
44089         uninstall-localcharset, and make it a prerequisite of the former.
44090
44091 2009-05-01  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44094         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44095         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44097         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44098         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44099         m4/locale-zh.m4, m4/codeset.m4.
44100
44101         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44102         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44103         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44104         m4/locale-zh.m4.
44105
44106         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44107         REPLACE_WCRTOMB if mbstate_t must be replaced.
44108         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44109         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44110
44111 2009-05-01  Bruno Haible  <bruno@clisp.org>
44112
44113         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44114         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44115         dngettext, dcngettext, textdomain, bindtextdomain,
44116         bind_textdomain_codeset): Undefine before redefining.
44117
44118 2009-04-30  Bruno Haible  <bruno@clisp.org>
44119
44120         Fix bug introduced on 2009-04-25.
44121         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44122         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44123         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44124         is defined.
44125         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44126         is defined.
44127         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44128         is defined.
44129         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44130
44131 2009-04-28  Bruno Haible  <bruno@clisp.org>
44132
44133         Comment tweaks.
44134         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44135         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44136         * lib/unicase.h (u*_casexfrm): Likewise.
44137         Reported by Paolo Bonzini.
44138
44139 2009-04-28  Bruno Haible  <bruno@clisp.org>
44140
44141         Fix a compilation error.
44142         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44143         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44144         Reported by Jim Meyering.
44145
44146 2009-04-27  Bruno Haible  <bruno@clisp.org>
44147
44148         New module 'libunistring'.
44149         * modules/libunistring: New file.
44150         * m4/libunistring.m4: New file.
44151         * MODULES.html.sh (Unicode string functions): Add it.
44152
44153 2009-04-27  Eric Blake  <ebb9@byu.net>
44154
44155         maint.mk: allow package-specific header to provide <config.h>
44156         * top/maint.mk (sc_require_config_h): New variable.
44157         (sc_require_config_h, sc_require_config_h_first): Use it.
44158
44159 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44160
44161         * top/maint.mk (sc_avoid_if_before_free): Except
44162         useless-if-before-free script.
44163
44164 2009-04-27  Eric Blake  <ebb9@byu.net>
44165
44166         maintainer-makefile: depend on all required helper scripts
44167         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44168         useless-if-before-free.
44169         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44170         version, rather than assuming gnulib checkout is available.
44171         Reported by Simen Josefsson.
44172
44173 2009-04-26  Bruno Haible  <bruno@clisp.org>
44174
44175         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44176         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44177         "../" or "..".
44178
44179 2009-04-26  Bruno Haible  <bruno@clisp.org>
44180
44181         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44182         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44183         AC_LIB_HAVE_LINKFLAGS.
44184
44185 2009-04-26  Bruno Haible  <bruno@clisp.org>
44186
44187         Simplify calling convention of u*_conv_from_encoding.
44188         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44189         u32_conv_from_encoding): Expect a resultbuf argument and return the
44190         result directly as a pointer.
44191         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44192         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44193         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44194         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44195         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44196         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44197         Update.
44198         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44199         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44200         * lib/vasnprintf.c (VASNPRINTF): Update.
44201         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44202         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44203         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44204         * NEWS: Mention the change.
44205
44206 2009-04-26  Bruno Haible  <bruno@clisp.org>
44207
44208         Simplify calling convention of u*_conv_to_encoding.
44209         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44210         u32_conv_to_encoding): Expect a resultbuf argument and return the
44211         result directly as a pointer.
44212         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44213         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44214         freeing scaled_offsets if mem_iconveha failed.
44215         * lib/unicase/u-casexfrm.h (FUNC): Update.
44216         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44217         * lib/vasnprintf.c (VASNPRINTF): Update.
44218         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44219         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44220         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44221         * NEWS: Mention the change.
44222
44223 2009-04-26  Bruno Haible  <bruno@clisp.org>
44224
44225         Avoid test failures on AIX and OSF/1.
44226         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44227         malloc(0).
44228         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44229         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44230         Likewise.
44231         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44232         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44233         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44234         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44235         * doc/posix-functions/malloc.texi: Document the portability problem
44236         related to malloc(0).
44237
44238 2009-04-26  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44241         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44242         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44243
44244 2009-04-25  Bruno Haible  <bruno@clisp.org>
44245
44246         Avoid link error when creating a namespace clean library.
44247         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44248         as macro with arguments if already defined as an alias.
44249         * lib/signbitf.c (gl_signbitf): Don't undefine.
44250         * lib/signbitd.c (gl_signbitd): Don't undefine.
44251         * lib/signbitl.c (gl_signbitl): Don't undefine.
44252
44253 2009-04-25  Jim Meyering  <meyering@redhat.com>
44254
44255         vc-list-files: fix another quoting bug
44256         * build-aux/vc-list-files: Avoid sed backslash expansion
44257         of pathological directory names.
44258
44259 2009-04-25  Eric Blake  <ebb9@byu.net>
44260
44261         vc-list-files: fix shell quoting error
44262         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44263         timestamp.
44264
44265 2009-04-25  Jim Meyering  <meyering@redhat.com>
44266
44267         vc-list-files: restore lost functionality with subdir argument
44268         * build-aux/vc-list-files: When given a non-"." sub-directory
44269         argument, substitute the $dir/ prefix back onto each resulting name.
44270         Otherwise, coreutils' root_tests check would fail.
44271
44272 2009-04-24  Eric Blake  <ebb9@byu.net>
44273
44274         vc-list-files: ignore git symlinks
44275         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44276         than ls-files, to ignore git symlinks.
44277
44278         maint.mk: import improvements from m4
44279         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44280         (move_if_change): Delete unused macro.
44281         (news-date-check, vc-diff-check): Support VPATH builds.
44282         (announcement): Likewise.  Split --bootstrap-tools list...
44283         (boostrap-tools): ...into separate list, which can be overridden
44284         in cfg.mk.
44285         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44286         requiring dependency on useless-if-before-free module.
44287         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44288         Support VPATH builds.
44289
44290 2009-04-24  Jim Meyering  <meyering@redhat.com>
44291
44292         maint.mk: remove coreutils-specific rules and variables
44293         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44294         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44295         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44296
44297         maint.mk: remove obsolete rule
44298         * top/maint.mk (rel-check): Remove rule.
44299         (WGET, WGETFLAGS): Remove now-unused variables.
44300
44301 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44302
44303         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44304         consistency.
44305
44306         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44307         '$(PATH_SEPARATOR)' instead of ':'.
44308
44309 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44310
44311         * lib/getopt1.c (main): Use 'const' for static array.
44312
44313 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44314
44315         * top/maint.mk: Sync with coreutils.
44316         * NEWS: Explain incompatibilities.
44317
44318 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44319             Bruno Haible  <bruno@clisp.org>
44320
44321         Fix cross-compilation results.
44322         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44323         statement, as third argument of AC_TRY_RUN.
44324         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44325         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44326         Likewise.
44327         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44328         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44329         Likewise.
44330         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44331         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44332         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44333
44334 2009-04-20  Bruno Haible  <bruno@clisp.org>
44335
44336         Avoid test failure on mingw.
44337         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44338
44339 2009-04-20  Bruno Haible  <bruno@clisp.org>
44340
44341         Avoid compilation error on mingw.
44342         * modules/localename-tests (Depends-on): Add locale.
44343
44344 2009-04-19  Bruno Haible  <bruno@clisp.org>
44345
44346         Support for building a shared library on Windows platforms.
44347         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44348         (main): Test the presence of UNINORM_NFC here.
44349         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44350         (main): Test the presence of UNINORM_NFD here.
44351         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44352         (main): Test the presence of UNINORM_NFKC here.
44353         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44354         (main): Test the presence of UNINORM_NFKD here.
44355
44356 2009-04-19  Bruno Haible  <bruno@clisp.org>
44357
44358         Avoid a compiler warning.
44359         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44360         Change type of variable 'sequence'.
44361
44362 2009-04-19  Bruno Haible  <bruno@clisp.org>
44363
44364         * modules/configmake (Makefile.am): When the contents of configmake.h
44365         does not change, arrange to preserve its modification time.
44366
44367 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44368
44369         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44370         gettext domain.
44371
44372 2009-04-16  Jim Meyering  <meyering@redhat.com>
44373
44374         useless-if-before-free: improve conversion code
44375         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44376         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44377
44378 2009-04-14  Bruno Haible  <bruno@clisp.org>
44379
44380         * modules/fcntl (Depends-on): Add extensions.
44381         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44382
44383 2009-04-12  Ben Pfaff  <blp@gnu.org>
44384
44385         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44386         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44387
44388 2009-03-20  Ben Pfaff  <blp@gnu.org>
44389
44390         Make rename replace existing destinations on Windows.
44391         * m4/rename.m4: Add test for Mingw.
44392         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44393         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44394         * doc/posix-functions/rename.texi: Document.
44395
44396 2009-04-10  Bruno Haible  <bruno@clisp.org>
44397
44398         New include file "iconveh.h".
44399         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44400         * lib/striconveh.h: Include it.
44401         (enum iconv_ilseq_handler): Remove definition.
44402         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44403         striconveh.h.
44404         * lib/striconveha.c: Include striconveh.h.
44405         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44406         * modules/striconveh (Files): Add lib/iconveh.h.
44407         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44408         lib/striconveh.h.
44409
44410 2009-04-10  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/uniconv.h: Update comment.
44413
44414 2009-04-10  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44417         always.
44418         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44419         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44420         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44421         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44422         "unistring-notinline.h", so that the function gets defined always.
44423         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44424         * lib/unistr/u8-uctomb.c: Likewise.
44425         * lib/unistr/u16-mbtouc.c: Likewise.
44426         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44427         * lib/unistr/u16-uctomb.c: Likewise.
44428         * lib/unistr/u32-mbtouc.c: Likewise.
44429         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44430         * lib/unistr/u32-uctomb.c: Likewise.
44431
44432 2009-04-10  Bruno Haible  <bruno@clisp.org>
44433
44434         Mark 'utime' obsolete.
44435         * modules/utime (Status, Notice): New sections.
44436         Suggested by Jim Meyering.
44437
44438         Fix cross-compile guess for utime test.
44439         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44440         autoconf.
44441         * doc/posix-functions/utime.texi: Give more precisions.
44442         Reported by Jan <ipif@ymail.com>.
44443
44444 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44445
44446         filevercmp: correct today's change
44447         * lib/filevercmp.c: Also handle coreutils' test inputs.
44448         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44449
44450         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44451         for reporting it.
44452         * lib/filevercmp.c: Special handle for "", "." and "..".
44453         * tests/test-filevercmp.c: Enlarge the set suite.
44454
44455 2009-04-07  Jim Meyering  <meyering@redhat.com>
44456
44457         useless-if-before-free: show how to remove braced useless free, too
44458         * build-aux/useless-if-before-free: still only in a comment, though.
44459
44460 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44461
44462         maint.mk: import changes to syntax-check macros from coreutils
44463         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44464         Use them in the relevant macros.
44465
44466 2009-04-06  Bruno Haible  <bruno@clisp.org>
44467
44468         Fix unportable use of bit-fields.
44469         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44470         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44471         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44472
44473 2009-04-06  Bruno Haible  <bruno@clisp.org>
44474
44475         Avoid test failures on AIX and OSF/1.
44476         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44477         that malloc(0) = NULL.
44478         * tests/unicase/test-u8-tolower.c (check): Likewise.
44479         * tests/unicase/test-u8-totitle.c (check): Likewise.
44480         * tests/unicase/test-u8-toupper.c (check): Likewise.
44481         * tests/unicase/test-u16-casefold.c (check): Likewise.
44482         * tests/unicase/test-u16-tolower.c (check): Likewise.
44483         * tests/unicase/test-u16-totitle.c (check): Likewise.
44484         * tests/unicase/test-u16-toupper.c (check): Likewise.
44485         * tests/unicase/test-u32-casefold.c (check): Likewise.
44486         * tests/unicase/test-u32-tolower.c (check): Likewise.
44487         * tests/unicase/test-u32-totitle.c (check): Likewise.
44488         * tests/unicase/test-u32-toupper.c (check): Likewise.
44489         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44490         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44491         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44492         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44493         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44494         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44495         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44496         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44497         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44498         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44499         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44500         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44501
44502 2009-04-05  Bruno Haible  <bruno@clisp.org>
44503
44504         Work around an autoconf limitation.
44505         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44506         comment line if it would be longer than 3 KB.
44507
44508 2009-04-05  Bruno Haible  <bruno@clisp.org>
44509
44510         Avoid test failure with libiconv-1.13.
44511         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44512         of the expected test results.
44513
44514 2009-04-05  Bruno Haible  <bruno@clisp.org>
44515
44516         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44517         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44518         that it should be installed.
44519
44520 2009-04-05  Bruno Haible  <bruno@clisp.org>
44521
44522         * gnulib-tool: New option --copy-file.
44523         (func_usage): Document it.
44524         (func_dest_tmpfilename): Moved out of func_import.
44525         (func_add_file, func_update_file): New functions, extracted from
44526         func_import.
44527         (func_import): Update.
44528
44529 2009-04-05  Karl Berry  <karl@gnu.org>
44530
44531         * README: prominently mention gnulib-tool.
44532         Rearrange sections so getting the code is near the top.
44533
44534 2009-04-05  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/unicase.h: Mention u*_cmp2.
44537         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44538         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44539         * lib/unicase/ulc-casecmp.c: Likewise.
44540         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44541         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44542         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44543         unistr/u8-cmp.
44544         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44545         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44546         unistr/u16-cmp.
44547         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44548         unistr/u32-cmp.
44549
44550         * lib/uninorm.h: Mention u*_cmp2.
44551         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44552         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44553         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44554         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44555         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44556         unistr/u8-cmp.
44557         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44558         unistr/u16-cmp.
44559         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44560         unistr/u32-cmp.
44561
44562         New module 'unistr/u32-cmp2'.
44563         * lib/unistr/u32-cmp2.c: New file.
44564         * modules/unistr/u32-cmp2: New file.
44565
44566         New module 'unistr/u16-cmp2'.
44567         * lib/unistr/u16-cmp2.c: New file.
44568         * modules/unistr/u16-cmp2: New file.
44569
44570         New module 'unistr/u8-cmp2'.
44571         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44572         * lib/unistr/u8-cmp2.c: New file.
44573         * lib/unistr/u-cmp2.h: New file.
44574         * modules/unistr/u8-cmp2: New file.
44575
44576 2009-04-05  Bruno Haible  <bruno@clisp.org>
44577
44578         * lib/unictype.h (uc_property_is_valid): New macro.
44579         * tests/unictype/test-pr_byname.c (main): Use it.
44580
44581         * lib/unistr.h: Doc fixes.
44582         * lib/uniconv.h: Doc fixes.
44583         * lib/unictype.h: Doc fixes.
44584
44585 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44586
44587         Port coreutils 7.2 to Solaris 8.
44588
44589         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44590         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44591         for Solaris 8.  This is a bit of a hack, as it means it's the
44592         caller's responsibility to add -lnsl if needed, but most likely it
44593         won't be needed since only getaddrinfo uses this and getaddrinfo
44594         isn't needed on Solaris 8.
44595
44596         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44597         problem to Solaris 8 encountered with coreutils 7.2, which
44598         resulted in a message "fnmatch.c:292: warning: passing argument 4
44599         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44600         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44601
44602 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44603
44604         * m4/ld-version-script.m4: Add FIXME comment.
44605
44606 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44607
44608         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44609         SOVERSION variable.
44610
44611 2009-04-02  Bruno Haible  <bruno@clisp.org>
44612
44613         * Makefile (info, html, dvi, pdf): Combine the rules.
44614         Suggested by Jim Meyering.
44615
44616 2009-04-01  Bruno Haible  <bruno@clisp.org>
44617
44618         * Makefile (info, html, dvi, pdf): New targets.
44619         Reported by Reuben Thomas <rrt@sc3d.org>.
44620
44621 2009-04-01  Bruno Haible  <bruno@clisp.org>
44622
44623         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44624         can be put into PATH.
44625         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44626
44627 2009-04-01  Bruno Haible  <bruno@clisp.org>
44628
44629         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44630
44631 2009-04-01  Bruno Haible  <bruno@clisp.org>
44632
44633         Rename module 'visibility'.
44634         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44635         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44636         * doc/gnulib.texi: Update.
44637         * MODULES.html.sh (Misc): Update.
44638         * NEWS: Mention the change.
44639
44640 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44641
44642         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44643         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44644         Eric Blake <ebb9@byu.net> for review.
44645         * MODULES.html.sh: Add lib-msvc-compat.
44646         * doc/gnulib.texi: Link to new section.
44647         * m4/ld-output-def.m4: New file.
44648         * doc/ld-output-def.texi: New file.
44649
44650 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44651
44652         Rename ld-version-script to lib-symbol-versions.  Suggested by
44653         Bruno Haible <bruno@clisp.org>.
44654         * modules/ld-version-script: Renamed to lib-symbol-versions.
44655         * doc/ld-version-script.texi: Fix module name.
44656         * MODULES.html.sh: Add lib-symbol-versions.
44657
44658 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44659
44660         * modules/u64-tests: New file.
44661         * tests/test-u64.c: New file.
44662
44663 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44664
44665         * MODULES.html.sh: Mention u64.
44666         * modules/u64: New module.
44667         * modules/crypto/sha512: Depend on u64 module instead of providing
44668         u64.h.
44669
44670 2009-03-27  Eric Blake  <ebb9@byu.net>
44671
44672         test-strerror: make debugging EAI_SYSTEM easier
44673         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44674         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44675         failure was EAI_SYSTEM.
44676
44677 2009-03-25  Bruno Haible  <bruno@clisp.org>
44678
44679         Fix a problem with --enable-relocatable on Solaris 7.
44680         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44681         since 2008-02-24.
44682
44683 2009-03-25  Eric Blake  <ebb9@byu.net>
44684
44685         test-sockets: avoid gcc warning
44686         * tests/test-sockets.c (main): Silence compiler warning.
44687
44688 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44689
44690         New modules nproc, pthread, contributed by Glen Lenker.
44691
44692         * MODULES.html.sh: Add pthread, nproc.
44693         * lib/nproc.c: New file.
44694         * lib/nproc.h: New file.
44695         * lib/pthread.in.h: New file.
44696         * m4/pthread.m4: New file.
44697         * modules/nproc: New file.
44698         * modules/pthread: New file.
44699
44700 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44701
44702         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44703         New variable.
44704
44705 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44706
44707         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44708         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44709         * tests/test-filevercmp.c: Add tests for backup suffixes.
44710
44711 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44712
44713         * modules/stdlib (Depends-on): Add stdint, needed when defining
44714         struct random_data on, for example, HP-UX 10.20.  Reported by
44715         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44716
44717 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44718
44719         * lib/readline.c (readline): Call fflush on stdout after printing
44720         prompt.
44721
44722 2009-03-20  Bruno Haible  <bruno@clisp.org>
44723
44724         Remove dependency from 'close' module to -lws2_32 on native Windows.
44725         * lib/close-hook.h: New file.
44726         * lib/close-hook.c: New file.
44727         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44728         w32sock.h.
44729         (_gl_close_fd_maybe_socket): Remove function.
44730         (rpl_close): Invoke execute_all_close_hooks instead of
44731         _gl_close_fd_maybe_socket.
44732         * lib/sockets.c: Include close-hook.h, w32sock.h.
44733         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44734         (close_sockets_hook): New variable.
44735         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44736         (gl_sockets_cleanup): Unregister it.
44737         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44738         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44739         * modules/close-hook: New file.
44740         * modules/close (Files): Remove lib/w32sock.h.
44741         (Depends-on): Add close-hook.
44742         (Link): Remove section.
44743         * modules/sockets (Files): Add lib/w32sock.h.
44744         (Depends-on): Add close-hook.
44745         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44746         invocation.
44747         * NEWS: Mention that LIB_CLOSE is gone.
44748
44749 2009-03-23  Eric Blake  <ebb9@byu.net>
44750
44751         signal-tests: test previous patch
44752         * tests/test-signal.c: New file.
44753         * modules/signal-tests: Likewise.
44754
44755         signal.h: always support 'volatile sig_atomic_t'
44756         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44757         (gl_SIGNAL_H_DEFAULTS): Add a default.
44758         * modules/signal (Makefile.am): Substitute if needed.
44759         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44760         users can blindly add volatile.
44761         * doc/posix-headers/signal.texi (signal.h): Document it.
44762         Reported by Matthew Woehlke.
44763
44764 2009-03-23  Jim Meyering  <meyering@redhat.com>
44765
44766         pathmax: PATH_MAX: use pathconf only when available
44767         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44768         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44769         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44770         This avoids a link failure in a PSP cross-compilation environment
44771         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44772
44773         * lib/vasnprintf.c (divide): Fix typo in comment.
44774
44775 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44776
44777         * gnulib-tool (func_filter_filelist): Fix comment.
44778
44779 2009-03-20  Bruno Haible  <bruno@clisp.org>
44780
44781         Make sockets.h self-contained.
44782         * lib/sockets.c: Include sockets.h first.
44783         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44784
44785 2009-03-19  Eric Blake  <ebb9@byu.net>
44786
44787         doc: mention more functions added in cygwin 1.7.0
44788         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44789         addition.
44790         * doc/posix-functions/log2f.texi: Likewise.
44791
44792 2009-03-19  Jim Meyering  <meyering@redhat.com>
44793
44794         fsusage: avoid syntax error due to statement-before-declaration
44795         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44796         after all declarations.  Reported by Matthew Woehlke in
44797         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44798
44799 2009-03-18  Eric Blake  <ebb9@byu.net>
44800
44801         build-aux/compile: sync from automake
44802         * build-aux/compile: New file, from automake.
44803         * config/srclist.txt: Mention build-aux/compile.
44804
44805 2009-03-17  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/git-merge-changelog.c: Fix typo in comment.
44808         Reported by Reuben Thomas <rrt@sc3d.org>.
44809
44810 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44811
44812         * m4/regex.m4: update and improve help for
44813         --without-included-regex.
44814
44815 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44816
44817         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44818         failure on missing include files.
44819
44820 2009-03-17  Eric Blake  <ebb9@byu.net>
44821
44822         doc: mention more functions added in cygwin 1.7.0
44823         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44824         addition.
44825         * doc/posix-functions/fwscanf.texi: Likewise.
44826         * doc/posix-functions/swprintf.texi: Likewise.
44827         * doc/posix-functions/swscanf.texi: Likewise.
44828         * doc/posix-functions/vfwprintf.texi: Likewise.
44829         * doc/posix-functions/vfwscanf.texi: Likewise.
44830         * doc/posix-functions/vswprintf.texi: Likewise.
44831         * doc/posix-functions/vswscanf.texi: Likewise.
44832         * doc/posix-functions/vwprintf.texi: Likewise.
44833         * doc/posix-functions/vwscanf.texi: Likewise.
44834         * doc/posix-functions/wcscasecmp.texi: Likewise.
44835         * doc/posix-functions/wcsdup.texi: Likewise.
44836         * doc/posix-functions/wcsftime.texi: Likewise.
44837         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44838         * doc/posix-functions/wprintf.texi: Likewise.
44839         * doc/posix-functions/wscanf.texi: Likewise.
44840         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44841
44842 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44843
44844         maint.mk: really add $(AM_MAKEFLAGS)
44845         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44846         was inadvertently omitted in the last commit.
44847         Spotted by Bruno Haible.
44848
44849         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44850         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44851         $(AM_MAKEFLAGS)' rather than plain `make'.
44852
44853         gnulib-tool: execute $MAKE not make
44854         * gnulib-tool: Default $MAKE to 'make'.
44855         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44856         than make.  Initialize $MAKE in the do-autobuild script.
44857
44858         gnulib-tool: use $MAKE not make in generated files
44859         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44860         make, in generated files.  Initialize $MAKE in the do-autobuild
44861         script.
44862
44863         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44864
44865         GNUmakefile: disable parallelism only for multiple, recursive targets
44866         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44867         additions in the Makefile.
44868         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44869         by Automake.
44870         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44871         are listed on the command line and at least one of them is
44872         listed in $(ALL_RECURSIVE_TARGETS).
44873
44874 2009-03-14  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44877         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44878         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44879         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44880         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44881         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44882         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44883         unistr/u8-uctomb.
44884         * modules/unistr/u8-strchr (Depends-on): Likewise.
44885         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44886         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44887         unistr/u16-uctomb.
44888         * modules/unistr/u16-strchr (Depends-on): Likewise.
44889         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44890
44891 2009-03-12  Bruno Haible  <bruno@clisp.org>
44892
44893         Work around select() bug on Interix 3.5.
44894         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44895         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44896         * m4/select.m4: New file.
44897         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44898         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44899         * modules/select (Files): Add m4/select.m4.
44900         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44901         * modules/nanosleep (Depends-on): Add select.
44902         * modules/poll (Depends-on): Likewise.
44903         * doc/posix-functions/select.texi: Mention the Interix bug.
44904         Reported by Markus Duft <mduft@gentoo.org>.
44905
44906         * lib/select.c: Renamed from lib/winsock-select.c.
44907         * modules/select (Files): Add lib/select.c, remove
44908         lib/winsock-select.c.
44909         (configure.ac): Update.
44910
44911 2009-03-12  Jim Meyering  <meyering@redhat.com>
44912
44913         avoid gcc warnings about unused macro definitions
44914         * lib/readtokens.c (STREQ): Remove unused definition.
44915         * lib/xmalloc.c (SIZE_MAX): Likewise.
44916         * lib/openat-die.c (N_): Likewise.
44917         * lib/mountlist.c (SIZE_MAX): Remove definition.
44918         Instead, include <stdint.h>.
44919         * lib/readutmp.c: Likewise.
44920         * modules/readutmp (Depends-on): Add stdint.
44921         * modules/mountlist (Depends-on): Add stdint.
44922         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44923
44924 2009-03-10  Bruno Haible  <bruno@clisp.org>
44925
44926         Tests for module 'mbmemcasecoll'.
44927         * modules/mbmemcasecoll-tests: New file.
44928         * tests/test-mbmemcasecoll1.sh: New file.
44929         * tests/test-mbmemcasecoll2.sh: New file.
44930         * tests/test-mbmemcasecoll3.sh: New file.
44931         * tests/test-mbmemcasecoll.c: New file.
44932
44933         New module 'mbmemcasecoll'.
44934         * lib/mbmemcasecoll.h: New file.
44935         * lib/mbmemcasecoll.c: New file.
44936         * modules/mbmemcasecoll: New file.
44937
44938         * tests/test-mbmemcasecmp.h: New file, extracted from
44939         tests/test-mbmemcasecmp.c.
44940         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44941         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44942         (main): Update.
44943         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44944
44945 2009-03-09  Bruno Haible  <bruno@clisp.org>
44946
44947         Tests for module 'mbmemcasecmp'.
44948         * modules/mbmemcasecmp-tests: New file.
44949         * tests/test-mbmemcasecmp1.sh: New file.
44950         * tests/test-mbmemcasecmp2.sh: New file.
44951         * tests/test-mbmemcasecmp3.sh: New file.
44952         * tests/test-mbmemcasecmp.c: New file.
44953
44954         New module 'mbmemcasecmp'.
44955         * lib/mbmemcasecmp.h: New file.
44956         * lib/mbmemcasecmp.c: New file.
44957         * modules/mbmemcasecmp: New file.
44958
44959 2009-03-09  Bruno Haible  <bruno@clisp.org>
44960
44961         Tests for module 'unicase/ulc-casecoll'.
44962         * modules/unicase/ulc-casecoll-tests: New file.
44963         * tests/unicase/test-ulc-casecoll1.sh: New file.
44964         * tests/unicase/test-ulc-casecoll2.sh: New file.
44965         * tests/unicase/test-ulc-casecoll.c: New file.
44966
44967         New module 'unicase/ulc-casecoll'.
44968         * lib/unicase.h (ulc_casecoll): New declaration.
44969         * lib/unicase/ulc-casecoll.c: New file.
44970         * modules/unicase/ulc-casecoll: New file.
44971
44972         New module 'unicase/ulc-casexfrm'.
44973         * lib/unicase.h (ulc_casexfrm): New declaration.
44974         * lib/unicase/ulc-casexfrm.c: New file.
44975         * modules/unicase/ulc-casexfrm: New file.
44976
44977 2009-03-09  Bruno Haible  <bruno@clisp.org>
44978
44979         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44980         invocations.
44981
44982         * m4/mbscasecmp.m4: Remove file.
44983         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44984         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44985
44986         * m4/mbscasestr.m4: Remove file.
44987         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44988         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44989
44990         * m4/mbschr.m4: Remove file.
44991         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44992         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44993
44994         * m4/mbscspn.m4: Remove file.
44995         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44996         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44997
44998         * m4/mbslen.m4: Remove file.
44999         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45000         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45001
45002         * m4/mbsncasecmp.m4: Remove file.
45003         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45004         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45005
45006         * m4/mbsnlen.m4: Remove file.
45007         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45008         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45009
45010         * m4/mbspbrk.m4: Remove file.
45011         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45012         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45013
45014         * m4/mbspcasecmp.m4: Remove file.
45015         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45016         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45017
45018         * m4/mbsrchr.m4: Remove file.
45019         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45020         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45021
45022         * m4/mbssep.m4: Remove file.
45023         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45024         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45025
45026         * m4/mbsspn.m4: Remove file.
45027         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45028         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45029
45030         * m4/mbsstr.m4: Remove file.
45031         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45032         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45033
45034         * m4/mbstok_r.m4: Remove file.
45035         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45036         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45037
45038         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45039
45040         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45041         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45042
45043         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45044
45045 2009-03-08  Bruno Haible  <bruno@clisp.org>
45046
45047         Tests for module 'unicase/ulc-casecmp'.
45048         * modules/unicase/ulc-casecmp-tests: New file.
45049         * tests/unicase/test-ulc-casecmp1.sh: New file.
45050         * tests/unicase/test-ulc-casecmp2.sh: New file.
45051         * tests/unicase/test-ulc-casecmp.c: New file.
45052
45053         New module 'unicase/ulc-casecmp'.
45054         * lib/unicase.h (ulc_casecmp): New declaration.
45055         * lib/unicase/ulc-casecmp.c: New file.
45056         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45057         'const SRC_UNIT *'.
45058         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45059         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45060         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45061         * modules/unicase/ulc-casecmp: New file.
45062
45063         Tests for module 'unicase/u32-is-cased'.
45064         * modules/unicase/u32-is-cased-tests: New file.
45065         * tests/unicase/test-u32-is-cased.c: New file.
45066
45067         Tests for module 'unicase/u16-is-cased'.
45068         * modules/unicase/u16-is-cased-tests: New file.
45069         * tests/unicase/test-u16-is-cased.c: New file.
45070
45071         Tests for module 'unicase/u8-is-cased'.
45072         * modules/unicase/u8-is-cased-tests: New file.
45073         * tests/unicase/test-u8-is-cased.c: New file.
45074         * tests/unicase/test-is-cased.h: New file.
45075
45076         New module 'unicase/u32-is-cased'.
45077         * lib/unicase/u32-is-cased.c: New file.
45078         * modules/unicase/u32-is-cased: New file.
45079
45080         New module 'unicase/u16-is-cased'.
45081         * lib/unicase/u16-is-cased.c: New file.
45082         * modules/unicase/u16-is-cased: New file.
45083
45084         New module 'unicase/u8-is-cased'.
45085         * lib/unicase/u8-is-cased.c: New file.
45086         * lib/unicase/u-is-cased.h: New file.
45087         * modules/unicase/u8-is-cased: New file.
45088
45089         Tests for module 'unicase/u32-is-casefolded'.
45090         * modules/unicase/u32-is-casefolded-tests: New file.
45091         * tests/unicase/test-u32-is-casefolded.c: New file.
45092
45093         Tests for module 'unicase/u16-is-casefolded'.
45094         * modules/unicase/u16-is-casefolded-tests: New file.
45095         * tests/unicase/test-u16-is-casefolded.c: New file.
45096
45097         Tests for module 'unicase/u8-is-casefolded'.
45098         * modules/unicase/u8-is-casefolded-tests: New file.
45099         * tests/unicase/test-u8-is-casefolded.c: New file.
45100         * tests/unicase/test-is-casefolded.h: New file.
45101
45102         New module 'unicase/u32-is-casefolded'.
45103         * lib/unicase/u32-is-casefolded.c: New file.
45104         * modules/unicase/u32-is-casefolded: New file.
45105
45106         New module 'unicase/u16-is-casefolded'.
45107         * lib/unicase/u16-is-casefolded.c: New file.
45108         * modules/unicase/u16-is-casefolded: New file.
45109
45110         New module 'unicase/u8-is-casefolded'.
45111         * lib/unicase/u8-is-casefolded.c: New file.
45112         * modules/unicase/u8-is-casefolded: New file.
45113
45114         Tests for module 'unicase/u32-is-titlecase'.
45115         * modules/unicase/u32-is-titlecase-tests: New file.
45116         * tests/unicase/test-u32-is-titlecase.c: New file.
45117
45118         Tests for module 'unicase/u16-is-titlecase'.
45119         * modules/unicase/u16-is-titlecase-tests: New file.
45120         * tests/unicase/test-u16-is-titlecase.c: New file.
45121
45122         Tests for module 'unicase/u8-is-titlecase'.
45123         * modules/unicase/u8-is-titlecase-tests: New file.
45124         * tests/unicase/test-u8-is-titlecase.c: New file.
45125         * tests/unicase/test-is-titlecase.h: New file.
45126
45127         New module 'unicase/u32-is-titlecase'.
45128         * lib/unicase/u32-is-titlecase.c: New file.
45129         * modules/unicase/u32-is-titlecase: New file.
45130
45131         New module 'unicase/u16-is-titlecase'.
45132         * lib/unicase/u16-is-titlecase.c: New file.
45133         * modules/unicase/u16-is-titlecase: New file.
45134
45135         New module 'unicase/u8-is-titlecase'.
45136         * lib/unicase/u8-is-titlecase.c: New file.
45137         * modules/unicase/u8-is-titlecase: New file.
45138
45139         Tests for module 'unicase/u32-is-lowercase'.
45140         * modules/unicase/u32-is-lowercase-tests: New file.
45141         * tests/unicase/test-u32-is-lowercase.c: New file.
45142
45143         Tests for module 'unicase/u16-is-lowercase'.
45144         * modules/unicase/u16-is-lowercase-tests: New file.
45145         * tests/unicase/test-u16-is-lowercase.c: New file.
45146
45147         Tests for module 'unicase/u8-is-lowercase'.
45148         * modules/unicase/u8-is-lowercase-tests: New file.
45149         * tests/unicase/test-u8-is-lowercase.c: New file.
45150         * tests/unicase/test-is-lowercase.h: New file.
45151
45152         New module 'unicase/u32-is-lowercase'.
45153         * lib/unicase/u32-is-lowercase.c: New file.
45154         * modules/unicase/u32-is-lowercase: New file.
45155
45156         New module 'unicase/u16-is-lowercase'.
45157         * lib/unicase/u16-is-lowercase.c: New file.
45158         * modules/unicase/u16-is-lowercase: New file.
45159
45160         New module 'unicase/u8-is-lowercase'.
45161         * lib/unicase/u8-is-lowercase.c: New file.
45162         * modules/unicase/u8-is-lowercase: New file.
45163
45164         Tests for module 'unicase/u32-is-uppercase'.
45165         * modules/unicase/u32-is-uppercase-tests: New file.
45166         * tests/unicase/test-u32-is-uppercase.c: New file.
45167
45168         Tests for module 'unicase/u16-is-uppercase'.
45169         * modules/unicase/u16-is-uppercase-tests: New file.
45170         * tests/unicase/test-u16-is-uppercase.c: New file.
45171
45172         Tests for module 'unicase/u8-is-uppercase'.
45173         * modules/unicase/u8-is-uppercase-tests: New file.
45174         * tests/unicase/test-u8-is-uppercase.c: New file.
45175         * tests/unicase/test-is-uppercase.h: New file.
45176
45177         New module 'unicase/u32-is-uppercase'.
45178         * lib/unicase/u32-is-uppercase.c: New file.
45179         * modules/unicase/u32-is-uppercase: New file.
45180
45181         New module 'unicase/u16-is-uppercase'.
45182         * lib/unicase/u16-is-uppercase.c: New file.
45183         * modules/unicase/u16-is-uppercase: New file.
45184
45185         New module 'unicase/u8-is-uppercase'.
45186         * lib/unicase/u8-is-uppercase.c: New file.
45187         * modules/unicase/u8-is-uppercase: New file.
45188
45189         New module 'unicase/u32-is-invariant'.
45190         * lib/unicase/u32-is-invariant.c: New file.
45191         * modules/unicase/u32-is-invariant: New file.
45192
45193         New module 'unicase/u16-is-invariant'.
45194         * lib/unicase/u16-is-invariant.c: New file.
45195         * modules/unicase/u16-is-invariant: New file.
45196
45197         New module 'unicase/u8-is-invariant'.
45198         * lib/unicase/u8-is-invariant.c: New file.
45199         * lib/unicase/invariant.h: New file.
45200         * lib/unicase/u-is-invariant.h: New file.
45201         * modules/unicase/u8-is-invariant: New file.
45202
45203         Tests for module 'unicase/u32-casecoll'.
45204         * modules/unicase/u32-casecoll-tests: New file.
45205         * tests/unicase/test-u32-casecoll.c: New file.
45206
45207         Tests for module 'unicase/u16-casecoll'.
45208         * modules/unicase/u16-casecoll-tests: New file.
45209         * tests/unicase/test-u16-casecoll.c: New file.
45210
45211         Tests for module 'unicase/u8-casecoll'.
45212         * modules/unicase/u8-casecoll-tests: New file.
45213         * tests/unicase/test-u8-casecoll.c: New file.
45214
45215         New module 'unicase/u32-casecoll'.
45216         * lib/unicase/u32-casecoll.c: New file.
45217         * modules/unicase/u32-casecoll: New file.
45218
45219         New module 'unicase/u16-casecoll'.
45220         * lib/unicase/u16-casecoll.c: New file.
45221         * modules/unicase/u16-casecoll: New file.
45222
45223         New module 'unicase/u8-casecoll'.
45224         * lib/unicase/u8-casecoll.c: New file.
45225         * lib/unicase/u-casecoll.h: New file.
45226         * modules/unicase/u8-casecoll: New file.
45227
45228         New module 'unicase/u32-casexfrm'.
45229         * lib/unicase/u32-casexfrm.c: New file.
45230         * modules/unicase/u32-casexfrm: New file.
45231
45232         New module 'unicase/u16-casexfrm'.
45233         * lib/unicase/u16-casexfrm.c: New file.
45234         * modules/unicase/u16-casexfrm: New file.
45235
45236         New module 'unicase/u8-casexfrm'.
45237         * lib/unicase/u8-casexfrm.c: New file.
45238         * lib/unicase/u-casexfrm.h: New file.
45239         * modules/unicase/u8-casexfrm: New file.
45240
45241         Tests for module 'unicase/u32-casecmp'.
45242         * modules/unicase/u32-casecmp-tests: New file.
45243         * tests/unicase/test-u32-casecmp.c: New file.
45244
45245         Tests for module 'unicase/u16-casecmp'.
45246         * modules/unicase/u16-casecmp-tests: New file.
45247         * tests/unicase/test-u16-casecmp.c: New file.
45248
45249         Tests for module 'unicase/u8-casecmp'.
45250         * modules/unicase/u8-casecmp-tests: New file.
45251         * tests/unicase/test-u8-casecmp.c: New file.
45252         * tests/unicase/test-casecmp.h: New file.
45253
45254         New module 'unicase/u32-casecmp'.
45255         * lib/unicase/u32-casecmp.c: New file.
45256         * modules/unicase/u32-casecmp: New file.
45257
45258         New module 'unicase/u16-casecmp'.
45259         * lib/unicase/u16-casecmp.c: New file.
45260         * modules/unicase/u16-casecmp: New file.
45261
45262         New module 'unicase/u8-casecmp'.
45263         * lib/unicase/u8-casecmp.c: New file.
45264         * lib/unicase/u-casecmp.h: New file.
45265         * modules/unicase/u8-casecmp: New file.
45266
45267         Tests for module 'unicase/u32-casefold'.
45268         * modules/unicase/u32-casefold-tests: New file.
45269         * tests/unicase/test-u32-casefold.c: New file.
45270
45271         Tests for module 'unicase/u16-casefold'.
45272         * modules/unicase/u16-casefold-tests: New file.
45273         * tests/unicase/test-u16-casefold.c: New file.
45274
45275         Tests for module 'unicase/u8-casefold'.
45276         * modules/unicase/u8-casefold-tests: New file.
45277         * tests/unicase/test-u8-casefold.c: New file.
45278
45279         New module 'unicase/u32-casefold'.
45280         * lib/unicase/u32-casefold.c: New file.
45281         * modules/unicase/u32-casefold: New file.
45282
45283         New module 'unicase/u16-casefold'.
45284         * lib/unicase/u16-casefold.c: New file.
45285         * modules/unicase/u16-casefold: New file.
45286
45287         New module 'unicase/u8-casefold'.
45288         * lib/unicase/u8-casefold.c: New file.
45289         * lib/unicase/u-casefold.h: New file.
45290         * modules/unicase/u8-casefold: New file.
45291
45292         New module 'unicase/tocasefold'.
45293         * lib/unicase/casefold.h: New file.
45294         * lib/unicase/tocasefold.c: New file.
45295         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45296         * modules/unicase/tocasefold: New file.
45297
45298         Tests for module 'unicase/u32-totitle'.
45299         * modules/unicase/u32-totitle-tests: New file.
45300         * tests/unicase/test-u32-totitle.c: New file.
45301
45302         Tests for module 'unicase/u16-totitle'.
45303         * modules/unicase/u16-totitle-tests: New file.
45304         * tests/unicase/test-u16-totitle.c: New file.
45305
45306         Tests for module 'unicase/u8-totitle'.
45307         * modules/unicase/u8-totitle-tests: New file.
45308         * tests/unicase/test-u8-totitle.c: New file.
45309
45310         New module 'unicase/u32-totitle'.
45311         * lib/unicase/u32-totitle.c: New file.
45312         * modules/unicase/u32-totitle: New file.
45313
45314         New module 'unicase/u16-totitle'.
45315         * lib/unicase/u16-totitle.c: New file.
45316         * modules/unicase/u16-totitle: New file.
45317
45318         New module 'unicase/u8-totitle'.
45319         * lib/unicase/u8-totitle.c: New file.
45320         * lib/unicase/u-totitle.h: New file.
45321         * modules/unicase/u8-totitle: New file.
45322
45323         Tests for module 'unicase/u32-tolower'.
45324         * modules/unicase/u32-tolower-tests: New file.
45325         * tests/unicase/test-u32-tolower.c: New file.
45326
45327         Tests for module 'unicase/u16-tolower'.
45328         * modules/unicase/u16-tolower-tests: New file.
45329         * tests/unicase/test-u16-tolower.c: New file.
45330
45331         Tests for module 'unicase/u8-tolower'.
45332         * modules/unicase/u8-tolower-tests: New file.
45333         * tests/unicase/test-u8-tolower.c: New file.
45334
45335         New module 'unicase/u32-tolower'.
45336         * lib/unicase/u32-tolower.c: New file.
45337         * modules/unicase/u32-tolower: New file.
45338
45339         New module 'unicase/u16-tolower'.
45340         * lib/unicase/u16-tolower.c: New file.
45341         * modules/unicase/u16-tolower: New file.
45342
45343         New module 'unicase/u8-tolower'.
45344         * lib/unicase/u8-tolower.c: New file.
45345         * modules/unicase/u8-tolower: New file.
45346
45347         Tests for module 'unicase/u32-toupper'.
45348         * modules/unicase/u32-toupper-tests: New file.
45349         * tests/unicase/test-u32-toupper.c: New file.
45350
45351         Tests for module 'unicase/u16-toupper'.
45352         * modules/unicase/u16-toupper-tests: New file.
45353         * tests/unicase/test-u16-toupper.c: New file.
45354
45355         Tests for module 'unicase/u8-toupper'.
45356         * modules/unicase/u8-toupper-tests: New file.
45357         * tests/unicase/test-u8-toupper.c: New file.
45358
45359         New module 'unicase/u32-toupper'.
45360         * lib/unicase/u32-toupper.c: New file.
45361         * modules/unicase/u32-toupper: New file.
45362
45363         New module 'unicase/u16-toupper'.
45364         * lib/unicase/u16-toupper.c: New file.
45365         * modules/unicase/u16-toupper: New file.
45366
45367         New module 'unicase/u8-toupper'.
45368         * lib/unicase/u8-toupper.c: New file.
45369         * modules/unicase/u8-toupper: New file.
45370
45371         New module 'unicase/u32-casemap'.
45372         * lib/unicase/u32-casemap.c: New file.
45373         * modules/unicase/u32-casemap: New file.
45374
45375         New module 'unicase/u16-casemap'.
45376         * lib/unicase/u16-casemap.c: New file.
45377         * modules/unicase/u16-casemap: New file.
45378
45379         New module 'unicase/u8-casemap'.
45380         * lib/unicase/unicasemap.h: New file.
45381         * lib/unicase/u8-casemap.c: New file.
45382         * lib/unicase/u-casemap.h: New file.
45383         * modules/unicase/u8-casemap: New file.
45384
45385         New module 'unicase/special-casing'.
45386         * lib/unicase/special-casing.h: New file.
45387         * lib/unicase/special-casing.c: New file.
45388         * lib/unicase/special-casing-table.gperf: New file, generated by
45389         gen-uni-tables.c.
45390         * modules/unicase/special-casing: New file.
45391
45392         Tests for module 'unicase/locale-language'.
45393         * modules/unicase/locale-language-tests: New file.
45394         * tests/unicase/test-locale-language.sh: New file.
45395         * tests/unicase/test-locale-language.c: New file.
45396
45397         New module 'unicase/locale-language'.
45398         * lib/unicase/locale-language.c: New file.
45399         * lib/unicase/locale-languages.gperf: New file.
45400         * modules/unicase/locale-language: New file.
45401
45402         Generate more tables for case conversion and case folding.
45403         * lib/gen-uni-tables.c (SCC_*): New enum items.
45404         (struct special_casing_rule): New type.
45405         (casing_rules, num_casing_rules, allocated_casing_rules): New
45406         variables.
45407         (add_casing_rule, fill_casing_rules): New functions.
45408         (struct casefold_rule): New type.
45409         (casefolding_rules, num_casefolding_rules,
45410         allocated_casefolding_rules): New variables.
45411         (fill_casefolding_rules): New function.
45412         (unicode_casefold): New variable.
45413         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45414         sort_casing_rules, output_casing_rules): New functions.
45415         (main): Accept to more arguments: SpecialCasing.txt and
45416         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45417         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45418         Output mapping for casefolding.
45419
45420         * lib/unicase.h: Include stdbool.h, uninorm.h.
45421         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45422         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45423         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45424         arguments.
45425         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45426         resultp arguments.
45427         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45428         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45429         resultp arguments.
45430         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45431         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45432         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45433         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45434         declarations.
45435         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45436
45437 2009-03-08  Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45440         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45441         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45442         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45443
45444 2009-03-07  Bruno Haible  <bruno@clisp.org>
45445
45446         Adjust u*_normcmp, u*_normcoll API.
45447         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45448         u16_normcoll, u32_normcoll): Change failure conventions.
45449         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45450         errno and return -1.
45451         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45452
45453 2009-03-07  Bruno Haible  <bruno@clisp.org>
45454
45455         Tests for module 'uninorm/u32-normcoll'.
45456         * modules/uninorm/u32-normcoll-tests: New file.
45457         * tests/uninorm/test-u32-normcoll.c: New file.
45458
45459         Tests for module 'uninorm/u16-normcoll'.
45460         * modules/uninorm/u16-normcoll-tests: New file.
45461         * tests/uninorm/test-u16-normcoll.c: New file.
45462
45463         Tests for module 'uninorm/u8-normcoll'.
45464         * modules/uninorm/u8-normcoll-tests: New file.
45465         * tests/uninorm/test-u8-normcoll.c: New file.
45466
45467 2009-03-07  Bruno Haible  <bruno@clisp.org>
45468
45469         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45470         tests/uninorm/test-u32-normcmp.c.
45471         * tests/uninorm/test-u32-normcmp.c: Include it.
45472         (test_nonascii): New function, extracted from main. Add some more
45473         tests.
45474         (main): Invoke test_ascii and test_nonascii.
45475         * modules/uninorm/u32-normcmp-tests (Files): Add
45476         tests/uninorm/test-u32-normcmp.h.
45477         (Depends-on): Remove uninorm/u32-normcmp.
45478
45479         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45480         tests/uninorm/test-u16-normcmp.c.
45481         * tests/uninorm/test-u16-normcmp.c: Include it.
45482         (test_nonascii): New function, extracted from main. Add some more
45483         tests.
45484         (main): Invoke test_ascii and test_nonascii.
45485         * modules/uninorm/u16-normcmp-tests (Files): Add
45486         tests/uninorm/test-u16-normcmp.h.
45487         (Depends-on): Remove uninorm/u16-normcmp.
45488
45489         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45490         tests/uninorm/test-u8-normcmp.c.
45491         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
45496         tests/uninorm/test-u8-normcmp.h.
45497         (Depends-on): Remove uninorm/u8-normcmp.
45498
45499 2009-03-07  Bruno Haible  <bruno@clisp.org>
45500
45501         New module 'uninorm/u32-normcoll'.
45502         * lib/uninorm/u32-normcoll.c: New file.
45503         * modules/uninorm/u32-normcoll: New file.
45504
45505         New module 'uninorm/u16-normcoll'.
45506         * lib/uninorm/u16-normcoll.c: New file.
45507         * modules/uninorm/u16-normcoll: New file.
45508
45509         New module 'uninorm/u8-normcoll'.
45510         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45511         declarations.
45512         * lib/uninorm/u8-normcoll.c: New file.
45513         * lib/uninorm/u-normcoll.h: New file.
45514         * modules/uninorm/u8-normcoll: New file.
45515
45516         New module 'uninorm/u32-normxfrm'.
45517         * lib/uninorm/u32-normxfrm.c: New file.
45518         * modules/uninorm/u32-normxfrm: New file.
45519
45520         New module 'uninorm/u16-normxfrm'.
45521         * lib/uninorm/u16-normxfrm.c: New file.
45522         * modules/uninorm/u16-normxfrm: New file.
45523
45524         New module 'uninorm/u8-normxfrm'.
45525         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45526         declarations.
45527         * lib/uninorm/u8-normxfrm.c: New file.
45528         * lib/uninorm/u-normxfrm.h: New file.
45529         * modules/uninorm/u8-normxfrm: New file.
45530
45531 2009-03-07  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45534         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45535         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45536
45537 2009-03-07  Bruno Haible  <bruno@clisp.org>
45538
45539         New module 'memxfrm'.
45540         * lib/memxfrm.h: New file.
45541         * lib/memxfrm.c: New file.
45542         * modules/memxfrm: New file.
45543
45544 2009-03-07  Bruno Haible  <bruno@clisp.org>
45545
45546         New module 'memcmp2'.
45547         * lib/memcmp2.h: New file.
45548         * lib/memcmp2.c: New file.
45549         * modules/memcmp2: New file.
45550
45551 2009-03-07  Bruno Haible  <bruno@clisp.org>
45552
45553         Tests for module 'uninorm/decomposing-form'.
45554         * modules/uninorm/decomposing-form-tests: New file.
45555         * tests/uninorm/test-decomposing-form.c: New file.
45556
45557         New module 'uninorm/decomposing-form'.
45558         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45559         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45560         Add 'decomposing_variant' field.
45561         * lib/uninorm/decomposing-form.c: New file.
45562         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45563         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45564         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45565         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45566         * modules/uninorm/decomposing-form: New file.
45567         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45568         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45569
45570 2009-03-07  Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45573         strings.
45574
45575 2009-03-06  Bruno Haible  <bruno@clisp.org>
45576
45577         Tests for module 'uninorm/u32-normcmp'.
45578         * tests/uninorm/test-u32-normcmp.c: New file.
45579         * modules/uninorm/u32-normcmp-tests: New file.
45580
45581         Tests for module 'uninorm/u16-normcmp'.
45582         * tests/uninorm/test-u16-normcmp.c: New file.
45583         * modules/uninorm/u16-normcmp-tests: New file.
45584
45585         Tests for module 'uninorm/u8-normcmp'.
45586         * tests/uninorm/test-u8-normcmp.c: New file.
45587         * modules/uninorm/u8-normcmp-tests: New file.
45588
45589         New module 'uninorm/u32-normcmp'.
45590         * lib/uninorm/u32-normcmp.c: New file.
45591         * modules/uninorm/u32-normcmp: New file.
45592
45593         New module 'uninorm/u16-normcmp'.
45594         * lib/uninorm/u16-normcmp.c: New file.
45595         * modules/uninorm/u16-normcmp: New file.
45596
45597         New module 'uninorm/u8-normcmp'.
45598         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45599         declarations.
45600         * lib/uninorm/u8-normcmp.c: New file.
45601         * lib/uninorm/u-normcmp.h: New file.
45602         * modules/uninorm/u8-normcmp: New file.
45603
45604 2009-03-06  Bruno Haible  <bruno@clisp.org>
45605
45606         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45607         Reported by Eric Blake.
45608
45609 2009-03-06  Eric Blake  <ebb9@byu.net>
45610             Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45613         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45614         condition.
45615         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45616         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45617         condition.
45618         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45619
45620 2009-03-06  Eric Blake  <ebb9@byu.net>
45621
45622         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45623         to avoid compiler warnings.
45624         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45625
45626 2009-03-05  Bruno Haible  <bruno@clisp.org>
45627
45628         * tests/test-ftell.c (main): Disable test beyond end of file on
45629         FreeMiNT.
45630         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45631
45632 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45633
45634         * lib/filevercmp.c: Move hidden files up in ordering.
45635         * tests/test-filevercmp.c: Add tests for hidden files.
45636
45637 2009-03-04  Bruno Haible  <bruno@clisp.org>
45638
45639         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45640         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45641         AM_CFLAGS.
45642         Reported by Simon Josefsson.
45643
45644 2009-03-03  Bruno Haible  <bruno@clisp.org>
45645
45646         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45647         Reported by Simon Josefsson.
45648
45649         * doc/ld-version-script.texi: Update node reference.
45650
45651 2009-03-03  Bruno Haible  <bruno@clisp.org>
45652
45653         * modules/visibility (License): Change to 'unlimited'.
45654         Suggested by Simon Josefsson.
45655
45656 2009-03-03  Jim Meyering  <meyering@redhat.com>
45657
45658         unlinkdir: cannot_unlink_dir may modify process state
45659         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45660         it's neither thread-safe nor appropriate for use in a library.
45661
45662 2009-03-03  Eric Blake  <ebb9@byu.net>
45663
45664         test-closein: silence test under Darwin
45665         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45666         care if it dies from EPIPE or EBADF.
45667
45668 2009-03-03  Bruno Haible  <bruno@clisp.org>
45669
45670         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45671         earlier.
45672         * doc/visibility.texi: Fix @node and @section.
45673
45674 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45675
45676         * doc/gnulib.texi: Link to sections for ld version script and
45677         visibility.
45678         * doc/visibility.texi: Add @node and @section.
45679         * modules/ld-version-script: New module.
45680         * m4/ld-version-script.m4: New file.
45681         * doc/ld-version-script.texi: New file.
45682
45683 2009-03-02  David Lutterkort  <lutter@redhat.com>
45684
45685         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45687
45688 2009-03-02  Bruno Haible  <bruno@clisp.org>
45689
45690         * doc/visibility.texi: Mention libtool's -export-symbols option.
45691
45692 2009-03-02  Jim Meyering  <meyering@redhat.com>
45693
45694         announce-gen: new option: --no-print-checksums
45695         * build-aux/announce-gen (usage): Describe it.
45696         (print_checksums): Print a newline here, not in the [*] footnote.
45697         (main): Honor it.
45698
45699 2009-03-01  Bruno Haible  <bruno@clisp.org>
45700
45701         Use socklen_t in the native Windows replacements prototypes.
45702         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45703         instead of 'int'.
45704         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45705         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45706         * modules/getsockopt (Depends-on): Add socklen.
45707         * modules/setsockopt (Depends-on): Add socklen.
45708
45709 2009-03-01  Bruno Haible  <bruno@clisp.org>
45710
45711         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45712         least 4.2.
45713
45714 2009-03-01  Eric Blake  <ebb9@byu.net>
45715             Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45718         error messages.
45719         * lib/wait-process.c (wait_subprocess): Omit error message about
45720         deadly signal sent to the child of termsigp != NULL.
45721
45722 2009-03-01  Eric Blake  <ebb9@byu.net>
45723
45724         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45725
45726 2009-03-01  Bruno Haible  <bruno@clisp.org>
45727
45728         Avoid a gcc warning.
45729         * tests/test-sched.c (b): Make global.
45730         Reported by Eric Blake.
45731
45732 2009-01-19  Martin Lambers  <marlam@marlam.de>
45733
45734         Provide POSIX semantics for socket timeout options on W32.
45735         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45736         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45737         * modules/setsockopt: Depend on sys_time module for struct timeval.
45738         * modules/getsockopt: Depend on sys_time module for struct timeval.
45739
45740 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45741
45742         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45743         __USE_GNU, for consistency with netdb.in.h.
45744         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45745
45746 2009-03-01  Bruno Haible  <bruno@clisp.org>
45747
45748         More support for FreeMiNT.
45749         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45750         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45751
45752 2009-03-01  Bruno Haible  <bruno@clisp.org>
45753
45754         More support for FreeMiNT.
45755         * lib/fpurge.c (fpurge): Correct last commit.
45756         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45757
45758 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45759
45760         Fix unportable awk script in vc-list-files.
45761         * build-aux/vc-list-files: In the replacement awk script, use
45762         substr with a second argument of 1, not zero.
45763         Report by Simon Josefsson.
45764
45765 2009-02-28  Bruno Haible  <bruno@clisp.org>
45766
45767         More support for FreeMiNT.
45768         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45769         to FreeMiNT today.
45770         * lib/fwriting.c (fwriting): Likewise.
45771         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45772
45773 2009-02-28  Bruno Haible  <bruno@clisp.org>
45774
45775         * tests/test-freadseek.c (main): Disable test beyond end of file on
45776         FreeMiNT.
45777         * tests/test-ftello.c (main): Likewise.
45778         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45779
45780 2009-02-28  Bruno Haible  <bruno@clisp.org>
45781
45782         Add tentative support for FreeMiNT.
45783         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45784         * lib/fpurge.c (fpurge): Likewise.
45785         * lib/freadable.c (freadable): Likewise.
45786         * lib/freading.c (freading): Likewise.
45787         * lib/freadptr.c (freadptr): Likewise.
45788         * lib/freadseek.c (freadptrinc): Likewise.
45789         * lib/fseeko.c (rpl_fseeko): Likewise.
45790         * lib/fseterr.c (fseterr): Likewise.
45791         * lib/fwritable.c (fwritable): Likewise.
45792         * lib/fwriting.c (fwriting): Likewise.
45793         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45794         Hourihane.
45795         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45796
45797 2009-02-28  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45800         SIGCHLD.
45801         Reported by Jim Meyering.
45802
45803 2009-02-28  Bruno Haible  <bruno@clisp.org>
45804
45805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45806         Mention the results of these tests on various platforms.
45807         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45808         order.
45809         * doc/posix-functions/printf.texi: Likewise.
45810         * doc/posix-functions/snprintf.texi: Likewise.
45811         * doc/posix-functions/sprintf.texi: Likewise.
45812         * doc/posix-functions/vfprintf.texi: Likewise.
45813         * doc/posix-functions/vprintf.texi: Likewise.
45814         * doc/posix-functions/vsnprintf.texi: Likewise.
45815         * doc/posix-functions/vsprintf.texi: Likewise.
45816         * doc/glibc-functions/obstack_printf.texi: Likewise.
45817         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45818
45819 2009-02-28  Bruno Haible  <bruno@clisp.org>
45820
45821         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45822         Reported by Loïc Minier <lool@dooz.org>.
45823
45824 2009-02-27  Bruno Haible  <bruno@clisp.org>
45825
45826         * gnulib-tool (func_import): Make the sed expression used to create the
45827         sed script for updating the .gitignore file POSIX compliant.
45828         Reported by Eric Blake.
45829
45830 2009-02-27  Bruno Haible  <bruno@clisp.org>
45831
45832         * gnulib-tool (sed): Don't alias as "sed --posix".
45833         Reported by Eric Blake.
45834
45835 2009-02-27  Bruno Haible  <bruno@clisp.org>
45836
45837         Avoid test link errors.
45838         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45839         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45840         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45841         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45843
45844 2009-02-27  Bruno Haible  <bruno@clisp.org>
45845
45846         Avoid spurious "(cached)" in configure output.
45847         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45848         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45849         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45850         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45851         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45852         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45853         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45854         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45855         Reported by Eric Blake.
45856
45857 2009-02-27  Eric Blake  <ebb9@byu.net>
45858
45859         printf: fix regression in previous patch
45860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45861
45862 2009-02-27  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45865         value.
45866         * lib/stdint.in.h: Likewise.
45867         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45868
45869 2009-02-27  Eric Blake  <ebb9@byu.net>
45870
45871         doc: mention more functions added in cygwin 1.7.0
45872         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45873         addition.
45874         * doc/posix-functions/open_wmemstream.texi: Likewise.
45875         * doc/posix-functions/wcsnlen.texi: Likewise.
45876         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45877         * doc/posix-functions/wcstod.texi: Likewise.
45878         * doc/posix-functions/wcstof.texi: Likewise.
45879         * doc/posix-functions/wcstoimax.texi: Likewise.
45880         * doc/posix-functions/wcstok.texi: Likewise.
45881         * doc/posix-functions/wcstoumax.texi: Likewise.
45882
45883         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45885         * doc/posix-functions/fprintf.texi: Update.
45886         * doc/posix-functions/printf.texi: Update.
45887         * doc/posix-functions/snprintf.texi: Update.
45888         * doc/posix-functions/sprintf.texi: Update.
45889         * doc/posix-functions/vfprintf.texi: Update.
45890         * doc/posix-functions/vprintf.texi: Update.
45891         * doc/posix-functions/vsnprintf.texi: Update.
45892         * doc/posix-functions/vsprintf.texi: Update.
45893         * doc/glibc-functions/obstack_printf.texi: Update.
45894         * doc/glibc-functions/obstack_vprintf.texi: Update.
45895
45896 2009-02-26  Eric Blake  <ebb9@byu.net>
45897
45898         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45899         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45900         compilation bug by using runtime conversion.
45901         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45902         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45903         * modules/ceill-tests (Files): Use nan.h.
45904         * modules/floorl-tests (Files): Likewise.
45905         * modules/frexpl-tests (Files): Likewise.
45906         * modules/isnanl-tests (Files): Likewise.
45907         * modules/ldexpl-tests (Files): Likewise.
45908         * modules/roundl-tests (Files): Likewise.
45909         * modules/truncl-tests (Files): Likewise.
45910         * tests/test-ceill.c (main): Use a working NaN.
45911         * tests/test-floorl.c (main): Likewise.
45912         * tests/test-frexpl.c (main): Likewise.
45913         * tests/test-isnan.c (test_long_double): Likewise.
45914         * tests/test-isnanl.h (main): Likewise.
45915         * tests/test-ldexpl.h (main): Likewise.
45916         * tests/test-roundl.h (main): Likewise.
45917         * tests/test-truncl.h (main): Likewise.
45918         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45919
45920 2009-02-26  Eric Blake  <ebb9@byu.net>
45921             Bruno Haible  <bruno@clisp.org>
45922
45923         Work around a *printf bug with %ls on Solaris.
45924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45925         precision is specified, sprintf stops converting the wide string
45926         argument when the number of bytes that have been produced by this
45927         conversion equals or exceeds the precision.
45928         * doc/posix-functions/fprintf.texi: Update.
45929         * doc/posix-functions/printf.texi: Update.
45930         * doc/posix-functions/snprintf.texi: Update.
45931         * doc/posix-functions/sprintf.texi: Update.
45932         * doc/posix-functions/vfprintf.texi: Update.
45933         * doc/posix-functions/vprintf.texi: Update.
45934         * doc/posix-functions/vsnprintf.texi: Update.
45935         * doc/posix-functions/vsprintf.texi: Update.
45936         * doc/glibc-functions/obstack_printf.texi: Update.
45937         * doc/glibc-functions/obstack_vprintf.texi: Update.
45938
45939 2009-02-26  Eric Blake  <ebb9@byu.net>
45940
45941         stdlib: favor compiler check of random.h
45942         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45943         to avoid an ObjC random.h installed by Swarm.
45944
45945 2009-02-26  Bruno Haible  <bruno@clisp.org>
45946
45947         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45948         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45949         Reported by Gary V. Vaughan <gary@gnu.org>.
45950
45951 2009-02-26  Bruno Haible  <bruno@clisp.org>
45952
45953         Fix *printf behaviour regarding the %ls directive.
45954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45955         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45956         NEED_PRINTF_DIRECTIVE_LS.
45957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45958         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45959         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45960         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45961         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45962         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45963         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45968         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45972         * doc/posix-functions/fprintf.texi: Update.
45973         * doc/posix-functions/printf.texi: Update.
45974         * doc/posix-functions/snprintf.texi: Update.
45975         * doc/posix-functions/sprintf.texi: Update.
45976         * doc/posix-functions/vfprintf.texi: Update.
45977         * doc/posix-functions/vprintf.texi: Update.
45978         * doc/posix-functions/vsnprintf.texi: Update.
45979         * doc/posix-functions/vsprintf.texi: Update.
45980         * doc/glibc-functions/obstack_printf.texi: Update.
45981         * doc/glibc-functions/obstack_vprintf.texi: Update.
45982         Reported by Eric Blake.
45983
45984 2009-02-25  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45987         with known value.
45988         Reported by Gary V. Vaughan <gary@gnu.org>.
45989
45990 2009-02-25  Bruno Haible  <bruno@clisp.org>
45991
45992         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45993         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45994         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45995         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45996         Reported by Gary V. Vaughan <gary@gnu.org>.
45997
45998 2009-02-25  Bruno Haible  <bruno@clisp.org>
45999
46000         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46001         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46002         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46003         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46004         Reported by Gary V. Vaughan <gary@gnu.org>.
46005
46006 2009-02-25  Eric Blake  <ebb9@byu.net>
46007
46008         tests: skip fseek/ftell tests if ungetc is broken
46009         * m4/ungetc.m4: New file.
46010         * modules/fseek-tests: Split test, so ungetc dependency is
46011         separate from rest of test.
46012         * modules/fseeko-tests: Likewise.
46013         * modules/ftell-tests: Likewise.
46014         * modules/ftello-tests: Likewise.
46015         * tests/test-fseek.c (main): Isolate ungetc dependency.
46016         * tests/test-fseeko.c (main): Likewise.
46017         * tests/test-ftell.c (main): Likewise.
46018         * tests/test-ftello.c (main): Likewise.
46019         * tests/test-fseek2.sh: New file.
46020         * tests/test-fseeko2.sh: Likewise.
46021         * tests/test-ftell2.sh: Likewise.
46022         * tests/test-ftello2.sh: Likewise.
46023
46024 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46025
46026         test-getaddrinfo: fix usage of skip return code 77
46027         * tests/test-gettaddrinfo.c: Return skip code 77 only
46028         for first occurance of skip (4x77 is not 77)
46029
46030 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46031
46032         strtod: avoid C99 decl-after-statement
46033         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46034
46035 2009-02-24  Eric Blake  <ebb9@byu.net>
46036
46037         strtod: detect HP-UX 11.31 bug
46038         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46039         Reported by Gary V. Vaughan.
46040
46041 2009-02-23  Bruno Haible  <bruno@clisp.org>
46042
46043         Fix invalid read past end of memory block.
46044         * lib/vasnprintf.c (DCHAR_SET): Define.
46045         (local_wcslen): Define only when needed.
46046         (local_strnlen, local_wcsnlen): New functions.
46047         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46048         directives that involve a conversion ourselves.
46049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46050         wcsnlen, mbrtowc, wcrtomb.
46051         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46052         * tests/test-vasprintf-posix.c (test_function): Likewise.
46053         * tests/test-snprintf-posix.h (test_function): Likewise.
46054         * tests/test-sprintf-posix.h (test_function): Likewise.
46055         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46056
46057 2009-02-22  Bruno Haible  <bruno@clisp.org>
46058
46059         Implement new clarified decomposition of Hangul syllables.
46060         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46061         of type LTV, return only a pairwise decomposition.
46062         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46063         Likewise.
46064         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46065         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46066         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46067
46068 2009-02-22  Bruno Haible  <bruno@clisp.org>
46069
46070         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46071         zero-length results and shrink excess allocated memory.
46072         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46073         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46074         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46075         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46076         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46077         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46078         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46079         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46080         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46081         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46082         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46083         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46084
46085 2009-02-21  Bruno Haible  <bruno@clisp.org>
46086
46087         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46088         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46089         spaces after a period. Put a space between a macro name and its
46090         argument list. Trivial rewordings.
46091         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46092         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46093         (main): Return 0 explicitly.
46094
46095 2009-02-21  Bruno Haible  <bruno@clisp.org>
46096
46097         Tests for module 'uninorm/filter'.
46098         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46099         * modules/uninorm/filter-tests: New file.
46100
46101         New module 'uninorm/filter'.
46102         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46103         uninorm_filter_flush, uninorm_filter_free): New declarations.
46104         * lib/uninorm/uninorm-filter.c: New file.
46105         * modules/uninorm/filter: New file.
46106
46107 2009-02-21  Bruno Haible  <bruno@clisp.org>
46108
46109         Tests for module 'uninorm/nfkc'.
46110         * tests/uninorm/test-nfkc.c: New file.
46111         * tests/uninorm/test-u8-nfkc.c: New file.
46112         * tests/uninorm/test-u16-nfkc.c: New file.
46113         * tests/uninorm/test-u32-nfkc.c: New file.
46114         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46115         * tests/uninorm/test-u32-nfkc-big.c: New file.
46116         * modules/uninorm/nfkc-tests: New file.
46117
46118         New module 'uninorm/nfkc'.
46119         * lib/uninorm/nfkc.c: New file.
46120         * modules/uninorm/nfkc: New file.
46121
46122         Tests for module 'uninorm/nfkd'.
46123         * tests/uninorm/test-nfkd.c: New file.
46124         * tests/uninorm/test-u8-nfkd.c: New file.
46125         * tests/uninorm/test-u16-nfkd.c: New file.
46126         * tests/uninorm/test-u32-nfkd.c: New file.
46127         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46128         * tests/uninorm/test-u32-nfkd-big.c: New file.
46129         * modules/uninorm/nfkd-tests: New file.
46130
46131         New module 'uninorm/nfkd'.
46132         * lib/uninorm/nfkd.c: New file.
46133         * modules/uninorm/nfkd: New file.
46134
46135         Tests for module 'uninorm/nfc'.
46136         * tests/uninorm/test-nfc.c: New file.
46137         * tests/uninorm/test-u8-nfc.c: New file.
46138         * tests/uninorm/test-u16-nfc.c: New file.
46139         * tests/uninorm/test-u32-nfc.c: New file.
46140         * tests/uninorm/test-u32-nfc-big.sh: New file.
46141         * tests/uninorm/test-u32-nfc-big.c: New file.
46142         * modules/uninorm/nfc-tests: New file.
46143
46144         New module 'uninorm/nfc'.
46145         * lib/uninorm/nfc.c: New file.
46146         * modules/uninorm/nfc: New file.
46147
46148         Tests for module 'uninorm/nfd'.
46149         * tests/uninorm/test-nfd.c: New file.
46150         * tests/uninorm/test-u8-nfd.c: New file.
46151         * tests/uninorm/test-u16-nfd.c: New file.
46152         * tests/uninorm/test-u32-nfd.c: New file.
46153         * tests/uninorm/test-u32-nfd-big.sh: New file.
46154         * tests/uninorm/test-u32-nfd-big.c: New file.
46155         * tests/uninorm/test-u32-normalize-big.h: New file.
46156         * tests/uninorm/test-u32-normalize-big.c: New file.
46157         * tests/uninorm/NormalizationTest.txt: New file, created from
46158         Unicode 5.1.0 NormalizationTest.txt.
46159         * modules/uninorm/nfd-tests: New file.
46160
46161         New module 'uninorm/nfd'.
46162         * lib/uninorm/nfd.c: New file.
46163         * modules/uninorm/nfd: New file.
46164
46165         New module 'uninorm/u32-normalize'.
46166         * lib/uninorm/u32-normalize.c: New file.
46167         * modules/uninorm/u32-normalize: New file.
46168
46169         New module 'uninorm/u16-normalize'.
46170         * lib/uninorm/u16-normalize.c: New file.
46171         * modules/uninorm/u16-normalize: New file.
46172
46173         New module 'uninorm/u8-normalize'.
46174         * lib/uninorm/u8-normalize.c: New file.
46175         * lib/uninorm/normalize-internal.h: New file.
46176         * lib/uninorm/u-normalize-internal.h: New file.
46177         * modules/uninorm/u8-normalize: New file.
46178
46179         New module 'uninorm/decompose-internal'.
46180         * lib/uninorm/decompose-internal.c: New file.
46181         * modules/uninorm/decompose-internal: New file.
46182
46183         Tests for module 'uninorm/composition'.
46184         * tests/uninorm/test-composition.c: New file.
46185         * modules/uninorm/composition-tests: New file.
46186
46187         New module 'uninorm/composition'.
46188         * lib/uninorm/composition.c: New file.
46189         * lib/uninorm/composition-table.gperf: New file, generated by
46190         gen-uni-tables.
46191         * modules/uninorm/composition: New file.
46192
46193         Tests for module 'uninorm/compat-decomposition'.
46194         * tests/uninorm/test-compat-decomposition.c: New file.
46195         * modules/uninorm/compat-decomposition-tests: New file.
46196
46197         New module 'uninorm/compat-decomposition'.
46198         * lib/uninorm/decompose-internal.h: New file.
46199         * lib/uninorm/compat-decomposition.c: New file.
46200         * modules/uninorm/compat-decomposition: New file.
46201
46202         Tests for module 'uninorm/canonical-decomposition'.
46203         * tests/uninorm/test-canonical-decomposition.c: New file.
46204         * modules/uninorm/canonical-decomposition-tests: New file.
46205
46206         New module 'uninorm/canonical-decomposition'.
46207         * lib/uninorm/canonical-decomposition.c: New file.
46208         * modules/uninorm/canonical-decomposition: New file.
46209
46210         Tests for module 'uninorm/decomposition'.
46211         * tests/uninorm/test-decomposition.c: New file.
46212         * modules/uninorm/decomposition-tests: New file.
46213
46214         New module 'uninorm/decomposition'.
46215         * lib/uninorm/decomposition.c: New file.
46216         * modules/uninorm/decomposition: New file.
46217
46218         New module 'uninorm/decomposition-table'.
46219         * lib/uninorm/decomposition-table.h: New file.
46220         * lib/uninorm/decomposition-table.c: New file.
46221         * lib/uninorm/decomposition-table1.h: New file, generated by
46222         gen-uni-tables.
46223         * lib/uninorm/decomposition-table2.h: New file, generated by
46224         gen-uni-tables.
46225         * modules/uninorm/decomposition-table: New file.
46226
46227         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46228         (UC_DECOMP_*): New enumeration items.
46229         (get_decomposition): New function.
46230         (struct decomp_table): New type.
46231         (output_decomposition, output_decomposition_tables): New functions.
46232         (unicode_composition_exclusions): New variable.
46233         (fill_composition_exclusions, debug_output_composition_tables): New
46234         functions.
46235         (main): Accept one more argument. Invoke fill_composition_exclusions.
46236         Output decomposition and composition tables.
46237
46238         New module 'uninorm/base'.
46239         * lib/uninorm.h: New file.
46240         * lib/unictype.h: Update comment.
46241         * modules/uninorm/base: New file.
46242
46243 2009-02-21  David Lutterkort  <lutter@redhat.com>
46244
46245         Tests for module 'safe-alloc'.
46246         * tests/test-safe-alloc.c: New file.
46247         * modules/safe-alloc-tests: New file.
46248
46249         New module 'safe-alloc'.
46250         * lib/safe-alloc.h: New file.
46251         * lib/safe-alloc.c: New file.
46252         * m4/safe-alloc.m4: New file.
46253         * modules/safe-alloc: New file.
46254         * doc/safe-alloc.texi: New file.
46255         * doc/gnulib.texi: Include it.
46256         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46257         safe-alloc.
46258
46259 2009-02-18  Bruno Haible  <bruno@clisp.org>
46260
46261         Fix link error on non-glibc systems.
46262         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46263         variable.
46264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46265
46266 2009-02-18  Jim Meyering  <meyering@redhat.com>
46267
46268         fts: avoid used-uninitialized error due to recent change
46269         * lib/fts.c (fts_read): Guard uses of the new member,
46270         parent->fts_n_dirs_remaining, since it's not relevant for
46271         the parent of a directory specified on the command-line.
46272
46273 2009-02-17  James Youngman  <jay@gnu.org>
46274             Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/include_next.m4: Reformulate comment.
46277
46278 2009-02-16  Jim Meyering  <meyering@redhat.com>
46279
46280         fts: add #if guards so that the fts_lgpl module still builds
46281         * lib/fts.c: Guard just-added hash-table-using parts with
46282         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46283         Reported by Simon Josefsson.
46284
46285 2009-02-15  Bruno Haible  <bruno@clisp.org>
46286
46287         * modules/array-mergesort-tests: New file.
46288         * tests/test-array-mergesort.c: New file.
46289
46290         New module 'array-mergesort'.
46291         * modules/array-mergesort: New file.
46292         * lib/array-mergesort.h: New file.
46293
46294 2009-02-15  Bruno Haible  <bruno@clisp.org>
46295
46296         Fix 2009-02-07 commit.
46297         * lib/gen-uni-tables.c (output_predicate, output_category,
46298         output_combclass, output_bidi_category, output_decimal_digit,
46299         output_digit, output_numeric, output_mirror, output_scripts,
46300         output_ident_category, output_simple_mapping): Fix format directives.
46301         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46302
46303 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46304
46305         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46306         fixes are available from IBM.
46307
46308 2009-02-13  Jim Meyering  <meyering@redhat.com>
46309
46310         fts: arrange not to stat non-directories in more cases
46311         This makes GNU find (when it doesn't need to stat each file)
46312         *much* more efficient at traversing reiserfs file systems.
46313         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46314         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46315         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46316         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46317         (leaf_optimization_applies): New function.
46318         (LCO_hash, LCO_compare): New helper functions.
46319         (link_count_optimize_ok): New function.
46320         (fts_stat): Initialize new member (if dir).
46321         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46322         we've just stat'ed a directory.  Skip the stat call when possible.
46323         ---
46324         Note this AFS-related exchange:
46325         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46326         and note find's pioctl call in find/fstype.c.
46327         But that is necessary only if you want to enable the
46328         optimization for AFS, and for now, I don't.
46329
46330         fts: move a function definition "up" (no semantic change)
46331         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46332         "up" to precede upcoming use of a related function.
46333
46334 2009-02-11  Jim Meyering  <meyering@redhat.com>
46335
46336         fts: correct internal computation of nlinks (optimization-related)
46337         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46338         whether the current entry is a directory, so don't test it.
46339
46340 2009-02-10  Bruno Haible  <bruno@clisp.org>
46341
46342         Tests for module 'uniwbrk/ulc-wordbreaks'.
46343         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46344         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46345         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46346
46347         Tests for module 'uniwbrk/u32-wordbreaks'.
46348         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46349         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46350
46351         Tests for module 'uniwbrk/u16-wordbreaks'.
46352         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46353         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46354
46355         Tests for module 'uniwbrk/u8-wordbreaks'.
46356         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46357         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46358
46359 2009-02-10  Bruno Haible  <bruno@clisp.org>
46360
46361         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46362         property.
46363         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46364         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46365         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46366
46367 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46368
46369         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46370         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46371
46372 2009-02-10  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46375         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46376         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46377         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46378         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46379         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46380
46381 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46382
46383         * lib/sockets.h (gl_fd_to_handle): New function.
46384
46385         * tests/test-sockets.c: Call gl_fd_to_handle.
46386
46387 2009-02-09  Bruno Haible  <bruno@clisp.org>
46388
46389         * doc/havelib.texi: Document the conventions on bi-arch systems.
46390
46391 2009-02-08  Bruno Haible  <bruno@clisp.org>
46392
46393         Document the AC_LIB_LINKFLAGS macro.
46394         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46395         * doc/gnulib.texi: Include it.
46396
46397 2009-02-08  Bruno Haible  <bruno@clisp.org>
46398
46399         Fix wrong order of sections, compared to TOC.
46400         * doc/gnulib.texi: Include relocatable-maint.texi after the
46401         "Regular expressions" node, not before.
46402
46403 2009-02-08  Bruno Haible  <bruno@clisp.org>
46404
46405         Tests for module 'unicase/totitle'.
46406         * modules/unicase/totitle-tests: New file.
46407
46408         Tests for module 'unicase/tolower'.
46409         * modules/unicase/tolower-tests: New file.
46410
46411         Tests for module 'unicase/toupper'.
46412         * modules/unicase/toupper-tests: New file.
46413         * tests/unicase/test-mapping-part1.h: New file.
46414         * tests/unicase/test-mapping-part2.h: New file.
46415
46416         New module 'unicase/totitle'.
46417         * modules/unicase/totitle: New file.
46418         * lib/unicase/totitle.c: New file.
46419
46420         New module 'unicase/tolower'.
46421         * modules/unicase/tolower: New file.
46422         * lib/unicase/tolower.c: New file.
46423
46424         New module 'unicase/toupper'.
46425         * modules/unicase/toupper: New file.
46426         * lib/unicase/toupper.c: New file.
46427         * lib/unicase/simple-mapping.h: New file.
46428
46429         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46430         (mapping_table): New structure.
46431         (output_simple_mapping): New function.
46432         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46433         * modules/gen-uni-tables (Description): Update.
46434         * lib/unicase/toupper.h: New file, automatically generated by
46435         gen-uni-tables.
46436         * lib/unicase/tolower.h: New file, automatically generated by
46437         gen-uni-tables.
46438         * lib/unicase/totitle.h: New file, automatically generated by
46439         gen-uni-tables.
46440         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46441         gen-uni-tables.
46442         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46443         gen-uni-tables.
46444         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46445         gen-uni-tables.
46446
46447         New module 'unicase/base'.
46448         * modules/unicase/base: New file.
46449         * lib/unicase.h: New file.
46450
46451 2009-02-08  Bruno Haible  <bruno@clisp.org>
46452
46453         New module 'uniwbrk/ulc-wordbreaks'.
46454         * modules/uniwbrk/ulc-wordbreaks: New file.
46455         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46456
46457         New module 'uniwbrk/u32-wordbreaks'.
46458         * modules/uniwbrk/u32-wordbreaks: New file.
46459         * lib/uniwbrk/u32-wordbreaks.c: New file.
46460
46461         New module 'uniwbrk/u16-wordbreaks'.
46462         * modules/uniwbrk/u16-wordbreaks: New file.
46463         * lib/uniwbrk/u16-wordbreaks.c: New file.
46464
46465         New module 'uniwbrk/u8-wordbreaks'.
46466         * modules/uniwbrk/u8-wordbreaks: New file.
46467         * lib/uniwbrk/u8-wordbreaks.c: New file.
46468         * lib/uniwbrk/u-wordbreaks.h: New file.
46469
46470         New module 'uniwbrk/table'.
46471         * modules/uniwbrk/table: New file.
46472         * lib/uniwbrk/wbrktable.h: New file.
46473         * lib/uniwbrk/wbrktable.c: New file.
46474
46475         New module 'uniwbrk/wordbreak-property'.
46476         * modules/uniwbrk/wordbreak-property: New file.
46477         * lib/uniwbrk/wordbreak-property.c: New file.
46478
46479         * lib/gen-uni-tables.c (WBP_*): New enum items.
46480         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46481         (unicode_org_wbp): New variable.
46482         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46483         New functions.
46484         (wbp_table): New structure.
46485         (output_wbp, output_wbrk_tables): New functions.
46486         (main): Accept additional argument. Invoke fill_org_wbp,
46487         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46488         output_wbrk_tables.
46489         * modules/gen-uni-tables (Description): Update.
46490         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46491         gen-uni-tables.
46492
46493         New module 'uniwbrk/base'.
46494         * modules/uniwbrk/base: New file.
46495         * lib/uniwbrk.h: New file.
46496
46497 2009-02-08  Bruno Haible  <bruno@clisp.org>
46498
46499         Update to Unicode 5.1.0.
46500         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46501         U+2185..U+2188.
46502         (is_property_default_ignorable_code_point): Don't include characters
46503         of category Cc or Cs and not-a-characters.
46504         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46505         U+0D79, U+109E, U+109F, U+A60C.
46506         * lib/unictype/bidi_of.h: Regenerated.
46507         * lib/unictype/blocks.h: Regenerated.
46508         * lib/unictype/categ_C.h: Regenerated.
46509         * lib/unictype/categ_Cf.h: Regenerated.
46510         * lib/unictype/categ_Cn.h: Regenerated.
46511         * lib/unictype/categ_L.h: Regenerated.
46512         * lib/unictype/categ_Ll.h: Regenerated.
46513         * lib/unictype/categ_Lm.h: Regenerated.
46514         * lib/unictype/categ_Lo.h: Regenerated.
46515         * lib/unictype/categ_Lu.h: Regenerated.
46516         * lib/unictype/categ_M.h: Regenerated.
46517         * lib/unictype/categ_Mc.h: Regenerated.
46518         * lib/unictype/categ_Me.h: Regenerated.
46519         * lib/unictype/categ_Mn.h: Regenerated.
46520         * lib/unictype/categ_N.h: Regenerated.
46521         * lib/unictype/categ_Nd.h: Regenerated.
46522         * lib/unictype/categ_Nl.h: Regenerated.
46523         * lib/unictype/categ_No.h: Regenerated.
46524         * lib/unictype/categ_P.h: Regenerated.
46525         * lib/unictype/categ_Pd.h: Regenerated.
46526         * lib/unictype/categ_Pe.h: Regenerated.
46527         * lib/unictype/categ_Pf.h: Regenerated.
46528         * lib/unictype/categ_Pi.h: Regenerated.
46529         * lib/unictype/categ_Po.h: Regenerated.
46530         * lib/unictype/categ_Ps.h: Regenerated.
46531         * lib/unictype/categ_S.h: Regenerated.
46532         * lib/unictype/categ_Sk.h: Regenerated.
46533         * lib/unictype/categ_Sm.h: Regenerated.
46534         * lib/unictype/categ_So.h: Regenerated.
46535         * lib/unictype/categ_of.h: Regenerated.
46536         * lib/unictype/combining.h: Regenerated.
46537         * lib/unictype/ctype_alnum.h: Regenerated.
46538         * lib/unictype/ctype_alpha.h: Regenerated.
46539         * lib/unictype/ctype_graph.h: Regenerated.
46540         * lib/unictype/ctype_lower.h: Regenerated.
46541         * lib/unictype/ctype_print.h: Regenerated.
46542         * lib/unictype/ctype_punct.h: Regenerated.
46543         * lib/unictype/ctype_upper.h: Regenerated.
46544         * lib/unictype/decdigit.h: Regenerated.
46545         * lib/unictype/digit.h: Regenerated.
46546         * lib/unictype/mirror.h: Regenerated.
46547         * lib/unictype/numeric.h: Regenerated.
46548         * lib/unictype/pr_alphabetic.h: Regenerated.
46549         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46550         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46551         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46552         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46553         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46554         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46555         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46556         * lib/unictype/pr_combining.h: Regenerated.
46557         * lib/unictype/pr_dash.h: Regenerated.
46558         * lib/unictype/pr_decimal_digit.h: Regenerated.
46559         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46560         * lib/unictype/pr_deprecated.h: Regenerated.
46561         * lib/unictype/pr_diacritic.h: Regenerated.
46562         * lib/unictype/pr_extender.h: Regenerated.
46563         * lib/unictype/pr_format_control.h: Regenerated.
46564         * lib/unictype/pr_grapheme_base.h: Regenerated.
46565         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46566         * lib/unictype/pr_grapheme_link.h: Regenerated.
46567         * lib/unictype/pr_id_continue.h: Regenerated.
46568         * lib/unictype/pr_id_start.h: Regenerated.
46569         * lib/unictype/pr_ideographic.h: Regenerated.
46570         * lib/unictype/pr_ignorable_control.h: Regenerated.
46571         * lib/unictype/pr_lowercase.h: Regenerated.
46572         * lib/unictype/pr_math.h: Regenerated.
46573         * lib/unictype/pr_numeric.h: Regenerated.
46574         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46575         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46576         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46577         * lib/unictype/pr_other_id_continue.h: Regenerated.
46578         * lib/unictype/pr_other_lowercase.h: Regenerated.
46579         * lib/unictype/pr_other_math.h: Regenerated.
46580         * lib/unictype/pr_punctuation.h: Regenerated.
46581         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46582         * lib/unictype/pr_soft_dotted.h: Regenerated.
46583         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46584         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46585         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46586         * lib/unictype/pr_uppercase.h: Regenerated.
46587         * lib/unictype/pr_xid_continue.h: Regenerated.
46588         * lib/unictype/pr_xid_start.h: Regenerated.
46589         * lib/unictype/pr_zero_width.h: Regenerated.
46590         * lib/unictype/scripts.h: Regenerated.
46591         * lib/unictype/scripts_byname.gperf: Regenerated.
46592         * lib/unictype/sy_java_ident.h: Regenerated.
46593         * lib/unilbrk/lbrkprop1.h: Regenerated.
46594         * lib/unilbrk/lbrkprop2.h: Regenerated.
46595         * tests/unictype/test-categ_C.c: Regenerated.
46596         * tests/unictype/test-categ_Cf.c: Regenerated.
46597         * tests/unictype/test-categ_Cn.c: Regenerated.
46598         * tests/unictype/test-categ_L.c: Regenerated.
46599         * tests/unictype/test-categ_Ll.c: Regenerated.
46600         * tests/unictype/test-categ_Lm.c: Regenerated.
46601         * tests/unictype/test-categ_Lo.c: Regenerated.
46602         * tests/unictype/test-categ_Lu.c: Regenerated.
46603         * tests/unictype/test-categ_M.c: Regenerated.
46604         * tests/unictype/test-categ_Mc.c: Regenerated.
46605         * tests/unictype/test-categ_Me.c: Regenerated.
46606         * tests/unictype/test-categ_Mn.c: Regenerated.
46607         * tests/unictype/test-categ_N.c: Regenerated.
46608         * tests/unictype/test-categ_Nd.c: Regenerated.
46609         * tests/unictype/test-categ_Nl.c: Regenerated.
46610         * tests/unictype/test-categ_No.c: Regenerated.
46611         * tests/unictype/test-categ_P.c: Regenerated.
46612         * tests/unictype/test-categ_Pd.c: Regenerated.
46613         * tests/unictype/test-categ_Pe.c: Regenerated.
46614         * tests/unictype/test-categ_Pf.c: Regenerated.
46615         * tests/unictype/test-categ_Pi.c: Regenerated.
46616         * tests/unictype/test-categ_Po.c: Regenerated.
46617         * tests/unictype/test-categ_Ps.c: Regenerated.
46618         * tests/unictype/test-categ_S.c: Regenerated.
46619         * tests/unictype/test-categ_Sk.c: Regenerated.
46620         * tests/unictype/test-categ_Sm.c: Regenerated.
46621         * tests/unictype/test-categ_So.c: Regenerated.
46622         * tests/unictype/test-ctype_alnum.c: Regenerated.
46623         * tests/unictype/test-ctype_alpha.c: Regenerated.
46624         * tests/unictype/test-ctype_graph.c: Regenerated.
46625         * tests/unictype/test-ctype_lower.c: Regenerated.
46626         * tests/unictype/test-ctype_print.c: Regenerated.
46627         * tests/unictype/test-ctype_punct.c: Regenerated.
46628         * tests/unictype/test-ctype_upper.c: Regenerated.
46629         * tests/unictype/test-decdigit.h: Regenerated.
46630         * tests/unictype/test-digit.h: Regenerated.
46631         * tests/unictype/test-numeric.h: Regenerated.
46632         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46633         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46634         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46635         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46636         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46637         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46638         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46639         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46640         * tests/unictype/test-pr_combining.c: Regenerated.
46641         * tests/unictype/test-pr_dash.c: Regenerated.
46642         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46643         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46644         * tests/unictype/test-pr_deprecated.c: Regenerated.
46645         * tests/unictype/test-pr_diacritic.c: Regenerated.
46646         * tests/unictype/test-pr_extender.c: Regenerated.
46647         * tests/unictype/test-pr_format_control.c: Regenerated.
46648         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46649         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46650         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46651         * tests/unictype/test-pr_id_continue.c: Regenerated.
46652         * tests/unictype/test-pr_id_start.c: Regenerated.
46653         * tests/unictype/test-pr_ideographic.c: Regenerated.
46654         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46655         * tests/unictype/test-pr_lowercase.c: Regenerated.
46656         * tests/unictype/test-pr_math.c: Regenerated.
46657         * tests/unictype/test-pr_numeric.c: Regenerated.
46658         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46659         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46660         Regenerated.
46661         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46662         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46663         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46664         * tests/unictype/test-pr_other_math.c: Regenerated.
46665         * tests/unictype/test-pr_punctuation.c: Regenerated.
46666         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46667         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46668         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46669         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46670         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46671         * tests/unictype/test-pr_uppercase.c: Regenerated.
46672         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46673         * tests/unictype/test-pr_xid_start.c: Regenerated.
46674         * tests/unictype/test-pr_zero_width.c: Regenerated.
46675
46676         Update to Unicode 5.1.0.
46677         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46678         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46679         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46680         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46681         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46682         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46683         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46684         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46685         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46686         (nonspacing_table_ind): Update.
46687         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46688
46689         Update to Unicode 5.1.0.
46690         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46691         code transform.
46692         * lib/uniname/uniname.c (unicode_character_name,
46693         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46694         * lib/uniname/uninames.h: Regenerated.
46695         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46696
46697 2009-02-07  Bruno Haible  <bruno@clisp.org>
46698
46699         Merge gen-ctype and gen-lbrk into a single program.
46700         * lib/gen-uni-tables.c: New file, incorporating
46701         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46702         Add directory prefixes to the names of the generated files.
46703         * lib/unictype/gen-ctype.c: Remove file.
46704         * lib/unilbrk/gen-lbrk.c: Remove file.
46705         * modules/gen-uni-tables: New file.
46706         * modules/unictype/gen-ctype: Remove file.
46707         * modules/unilbrk/gen-lbrk: Remove file.
46708
46709 2009-02-07  Bruno Haible  <bruno@clisp.org>
46710
46711         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46712
46713         New module 'unistr/u32-strcoll'.
46714         * modules/unistr/u32-strcoll: New file.
46715         * lib/unistr/u32-strcoll.c: New file.
46716
46717         New module 'unistr/u16-strcoll'.
46718         * modules/unistr/u16-strcoll: New file.
46719         * lib/unistr/u16-strcoll.c: New file.
46720
46721         New module 'unistr/u8-strcoll'.
46722         * modules/unistr/u8-strcoll: New file.
46723         * lib/unistr/u8-strcoll.c: New file.
46724         * lib/unistr/u-strcoll.h: New file.
46725
46726 2009-02-07  Bruno Haible  <bruno@clisp.org>
46727
46728         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46729         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46730         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46731         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46732         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46733         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46734
46735 2009-02-07  Bruno Haible  <bruno@clisp.org>
46736
46737         Make 64-bit clean.
46738         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46739         output_combclass, output_bidi_category, output_decimal_digit,
46740         output_digit, output_numeric, output_mirror, output_scripts,
46741         output_ident_category): Use proper width specifier in format strings.
46742
46743 2009-02-07  Bruno Haible  <bruno@clisp.org>
46744
46745         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46746         failure behaviour.
46747
46748 2009-02-07  Jim Meyering  <meyering@redhat.com>
46749
46750         regex: avoid compilation failure with upcoming gcc-4.4
46751         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46752         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46753         "... error: integer overflow in preprocessor expression".
46754
46755 2009-02-05  Ben Pfaff  <blp@gnu.org>
46756
46757         Fix link errors on Windows when close module is used.
46758         * modules/close: Add $(LIB_CLOSE) to Link section.
46759         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46760         $(LIB_CLOSE) on Windows.
46761
46762 2009-02-05  Jim Meyering  <meyering@redhat.com>
46763
46764         still avoid unused-parameter warnings, but do it cleanly
46765         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46766         (get_fs_usage): Cast to void instead.
46767         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46768         (dev_from_mount_options, read_file_system_list): Cast to void.
46769         Prompted by Bruno Haible.
46770
46771 2009-02-04  Jim Meyering  <meyering@redhat.com>
46772
46773         fsusage.c: correct copyright year
46774         * lib/fsusage.c: Reflect year in which the change is pushed into
46775
46776         avoid misc. warnings
46777         * lib/fsusage.c (UNUSED_PARAM): Define.
46778         (get_fs_usage): Mark parameter "disk" as unused.
46779         * lib/getugroups.c (getgrent): Use "void" in prototype.
46780         * lib/mountlist.c: Mark unused parameters.
46781         (read_file_system_list): Declare a local with "const".
46782         * lib/nanosleep.c (getnow): Declare static.
46783         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46784
46785         dirfd: set errno upon failure
46786         * lib/dirfd.c: Include <errno.h>.
46787         Set errno to ENOTSUP when returning -1.
46788         * modules/dirfd (Depends-on): Add errno.
46789         Suggested by John Kodis <kodis@comcast.net>.
46790
46791 2009-02-01  Bruno Haible  <bruno@clisp.org>
46792
46793         Don't assume sizeof (long) >= sizeof (void *).
46794         * lib/memcmp.c: Include stdint.h.
46795         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46796         srcp2 to 'const byte *'.
46797         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46798         types to uintptr_t.
46799         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46800         * modules/memcmp (Depends-on): Add stdint.
46801         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46802
46803 2009-01-30  Eric Blake  <ebb9@byu.net>
46804
46805         fix more require-before-expand issues
46806         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46807         expand, AC_PROG_AWK.
46808         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46809
46810 2009-01-28  Eric Blake  <ebb9@byu.net>
46811
46812         version-etc: use consistent URL formatting
46813         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46814         Improve formatting.  Use fputs for string without %.
46815
46816 2009-01-28  Jim Meyering  <meyering@redhat.com>
46817
46818         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46819         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46820         "underquoted definition of NAME" from autoconf-2.59.
46821
46822 2009-01-28  Bruno Haible  <bruno@clisp.org>
46823
46824         * doc/gnulib.texi: Add "Obsolete modules" to index.
46825
46826 2009-01-28  Jim Meyering  <meyering@redhat.com>
46827
46828         useless-if-before-free: recognize more variants
46829         * build-aux/useless-if-before-free: Also recognize e.g.,
46830         if (NULL != p) free (p);
46831
46832 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46833
46834         test-getaddrinfo: skip (don't fail) this test when there's no network
46835         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46836         on the presumption that it means you lack network access.
46837
46838 2009-01-26  Jim Meyering  <meyering@redhat.com>
46839
46840         fflush: avoid warnings on modern systems
46841         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46842         pos and result, into scopes where they're used.
46843
46844 2009-01-26  Eric Blake  <ebb9@byu.net>
46845
46846         Silence warning reintroduced by recent extensions patch.
46847         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46848         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46849         autoconf.
46850
46851         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46852         * m4/00gnulib.m4: New file.
46853         * gnulib-tool (func_get_filelist): Always use it.
46854         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46855         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46856
46857 2009-01-25  Bruno Haible  <bruno@clisp.org>
46858
46859         Make test-quotearg work on MacOS X and AIX.
46860         * tests/test-quotearg.sh: New file.
46861         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46862         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46863         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46864         include <libintl.h>.
46865         (fake_locale): Remove variable.
46866         (gettext, dgettext, dcgettext): Remove functions.
46867         (main): Instead of setting a fake locale, set a real locale. Call
46868         textdomain and bindtextdomain.
46869         * modules/quotearg-tests (Files): Add the new files.
46870         (Depends-on): Add gettext, setenv, unsetenv.
46871         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46872         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46873         Augment TESTS_ENVIRONMENT.
46874
46875 2009-01-25  Bruno Haible  <bruno@clisp.org>
46876
46877         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46878         fr_FR.ISO8859-1 locale on MacOS X.
46879         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46880         ja_JP.eucJP locale on MacOS X.
46881         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46882         zh_CN.GB18030 locale on MacOS X.
46883
46884 2009-01-25  Bruno Haible  <bruno@clisp.org>
46885
46886         Avoid link errors on MacOS X 10.3.
46887         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46888         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46889
46890 2009-01-25  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46893         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46894         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46895         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46896         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46897         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46898         posix_spawnattr_init, posix_spawnattr_setsigmask,
46899         posix_spawnattr_setflags, posix_spawnattr_destroy.
46900
46901         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46902         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46903         * modules/execute (Files): Remove m4/posix_spawn.m4.
46904         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46905         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46906         posix_spawnattr_init, posix_spawnattr_setsigmask,
46907         posix_spawnattr_setflags, posix_spawnattr_destroy.
46908
46909 2009-01-25  Bruno Haible  <bruno@clisp.org>
46910
46911         * lib/glthread/threadlib.c: Include <stdlib.h>.
46912
46913 2009-01-25  Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/glthread/threadlib.c (dummy): New declaration.
46916
46917 2009-01-25  Bruno Haible  <bruno@clisp.org>
46918
46919         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46920         multibyte characters also for the GB18030 encoding. Don't crash when
46921         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46922
46923 2009-01-25  Bruno Haible  <bruno@clisp.org>
46924
46925         Avoid redefining 'struct random_data' on OSF/1 5.1.
46926         * lib/stdlib.in.h: Include <random.h> if it exists.
46927         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46928         HAVE_RANDOM_H. Include <random.h> when testing whether
46929         'struct random_data' exists.
46930         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46931
46932 2009-01-25  Bruno Haible  <bruno@clisp.org>
46933
46934         Don't install charset.alias on MacOS X >= 10.3.
46935         * lib/localcharset.c (DARWIN7): New macro.
46936         (get_charset_aliases): Hardcode the result for Darwin7.
46937         * modules/localcharset (install-exec-local): Don't install
46938         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46939
46940 2009-01-25  Bruno Haible  <bruno@clisp.org>
46941
46942         Don't install charset.alias on mingw and Cygwin.
46943         * modules/localcharset (install-exec-local): Don't install
46944         charset.alias on mingw and Cygwin, if the file does not yet exist.
46945         The result for these platforms is hardcoded in localcharset.c.
46946
46947 2009-01-25  Bruno Haible  <bruno@clisp.org>
46948
46949         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46950         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46951         before requiring AC_USE_SYSTEM_EXTENSIONS.
46952
46953 2009-01-25  Jim Meyering  <meyering@redhat.com>
46954
46955         c-strtod: avoid warnings
46956         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46957         "assignment discards qualifiers from pointer target type" warnings.
46958
46959 2009-01-24  Bruno Haible  <bruno@clisp.org>
46960
46961         Add support for non-UTF-8 locales on MacOS X.
46962         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46963         canonical encodings. For Darwin 7 and newer, don't map traditional
46964         encodings to UTF-8.
46965         Reported by Vincent Lefevre <vincent@vinc17.org>
46966         at <http://savannah.gnu.org/bugs/?25235>.
46967
46968 2009-01-24  Bruno Haible  <bruno@clisp.org>
46969
46970         * doc/gnulib.texi (Obsolete modules): New section.
46971         Reported by Mike Frysinger <vapier@gentoo.org>.
46972
46973 2009-01-24  Bruno Haible  <bruno@clisp.org>
46974
46975         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46976         (%.dvi): New rule.
46977
46978 2009-01-24  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46981         Reported by Eric Blake.
46982
46983 2009-01-24  Bruno Haible  <bruno@clisp.org>
46984
46985         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46986         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46987         Reported by Gary V. Vaughan <gary@gnu.org>.
46988
46989 2009-01-24  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46992
46993 2009-01-23  Bruno Haible  <bruno@clisp.org>
46994
46995         Make c-strtod, c-strtold usable in libraries.
46996         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46997         (C_STRTOD): Call strdup instead of xstrdup.
46998         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46999         * modules/c-strtold (Depends-on): Likewise.
47000         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47001         * NEWS: Mention the change.
47002         Reported by Michael Gold <mgold@ncf.ca>.
47003
47004 2009-01-23  Jim Meyering  <meyering@redhat.com>
47005
47006         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47007         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47008         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47009
47010 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47011
47012         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47013         GNU CoreUtils.
47014         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47015         * modules/version-etc (Description): Update.
47016
47017 2009-01-22  Bruno Haible  <bruno@clisp.org>
47018
47019         Cache the C locale object.
47020         * lib/c-strtod.c (c_locale_cache): New variable.
47021         (c_locale): New function.
47022         (C_STRTOD): Use it, and don't call freelocale.
47023         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47024         Suggested by Paolo Bonzini.
47025
47026 2009-01-21  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47029         conditions other than overflow.
47030
47031 2009-01-21  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/c-strtod.c: Include errno.h.
47034         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47035         value from STRTOD_L and STRTOD.
47036
47037 2009-01-21  Bruno Haible  <bruno@clisp.org>
47038         and Jim Meyering  <meyering@redhat.com>
47039
47040         nanosleep: skip configure test (fail it) for apple universal builds
47041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47042         universal builds, assume that nanosleep does not work.
47043         * modules/nanosleep (Depends-on): Add multiarch.
47044
47045         mktime: skip configure test (fail it) for apple universal builds
47046         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47047         universal builds, assume that mktime does not work.
47048         * modules/mktime (Depends-on): Add multiarch.
47049
47050 2009-01-21  Eric Blake  <ebb9@byu.net>
47051
47052         multiarch: avoid expand-before-require warning
47053         * modules/multiarch (configure.ac): Require, rather than expand,
47054         gl_MULTIARCH.
47055         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47056         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47057         enforce that all clients require it.  Partial reversion of
47058         2008-12-29 patch.
47059
47060         error: avoid expand-before-require warning
47061         * modules/errno (configure.ac): Require, rather than expand,
47062         gl_HEADER_ERRNO_H.
47063         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47064         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47065         enforce that all clients require it.
47066
47067         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47068         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47069         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47070         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47071
47072 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47073
47074         Revert:
47075         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47076
47077         regex: do not depend on obsolete modules.
47078         * modules/regex: Remove memcmp and memmove.
47079
47080 2009-01-20  Bruno Haible  <bruno@clisp.org>
47081
47082         Make the 'link' module link on Windows NT 4.
47083         * lib/link.c (_WIN32_WINNT): Don't define.
47084         (CreateHardLinkFuncType): New type.
47085         (CreateHardLinkFunc, initialized): New variables.
47086         (initialize): New function.
47087         (link): Invoke CreateHardLink indirectly through the function pointer.
47088
47089 2009-01-20  Bruno Haible  <bruno@clisp.org>
47090
47091         Fix compilation failure on mingw.
47092         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47093
47094 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47095
47096         * doc/c-strtod.texi: Mention a couple of restrictions.
47097
47098 2009-01-20  Jim Meyering  <meyering@redhat.com>
47099
47100         gettimeofday: move more declarations out of functions
47101         * lib/gettimeofday.c: Move extern declarations of tzset and
47102         gmtime out of containing functions.  Prompted by Bruno Haible.
47103
47104 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47105
47106         regex: do not depend on obsolete modules.
47107         * modules/regex: Remove memcmp and memmove.
47108
47109 2009-01-19  Bruno Haible  <bruno@clisp.org>
47110
47111         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47112         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47113         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47114         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47115         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47116
47117 2009-01-19  Bruno Haible  <bruno@clisp.org>
47118
47119         * tests/test-link.c: Include <errno.h>.
47120         (main): Exit with code 77 when a hard link cannot be created due to
47121         the file system.
47122         * tests/test-link.sh: Skip test when a hard link cannot be created due
47123         to the file system.
47124         Suggested by Eric Blake.
47125
47126 2009-01-19  Martin Lambers  <marlam@marlam.de>
47127
47128         * modules/link-tests: New file.
47129         * tests/test-link.sh: New file.
47130         * tests/test-link.c: New file.
47131
47132 2009-01-19  Eric Blake  <ebb9@byu.net>
47133
47134         doc: mention another function added in cygwin 1.7.0
47135         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47136         Another new function in cygwin 1.7.
47137
47138 2009-01-19  Bruno Haible  <bruno@clisp.org>
47139
47140         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47141         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47142         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47143         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47145         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47146         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47147         * m4/md4.m4 (gl_MD4): Likewise.
47148         * m4/md5.m4 (gl_MD5): Likewise.
47149         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47150         * m4/sha1.m4 (gl_SHA1): Likewise.
47151         * m4/sha256.m4 (gl_SHA256): Likewise.
47152         * m4/sha512.m4 (gl_SHA512): Likewise.
47153
47154 2009-01-19  Bruno Haible  <bruno@clisp.org>
47155
47156         * modules/uniname/uniname-tests (Depends-on): Add progname.
47157         * tests/uniname/test-uninames.c: Include progname.h.
47158         (main): Call set_program_name.
47159
47160         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47161         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47162         (main): Call set_program_name.
47163
47164         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47165         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47166         (main): Call set_program_name.
47167
47168         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47169         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47170         (main): Call set_program_name.
47171
47172         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47173         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47174         (main): Call set_program_name.
47175
47176         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47177         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47178         (main): Call set_program_name.
47179
47180         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47181         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47182         (main): Call set_program_name.
47183
47184         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47185         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47186         (main): Call set_program_name.
47187
47188         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47189         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47190         (main): Call set_program_name.
47191
47192 2009-01-19  Eric Blake  <ebb9@byu.net>
47193
47194         test-unistd: test previous patch
47195         * tests/test-unistd.c: Test *_FILENO macros.
47196
47197         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47198         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47199         Guarantee a definition.
47200         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47201         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47202         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47203         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47204         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47205         Likewise.
47206         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47207         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47208         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47209         Likewise.
47210         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47211         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47212         (STDERR_FILENO): Likewise.
47213         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47214         (STDERR_FILENO): Likewise.
47215         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47216         (STDERR_FILENO): Likewise.
47217         Reported by Elbert Pol.
47218
47219 2009-01-19  Eric Blake  <ebb9@byu.net>
47220
47221         doc: mention more functions added in cygwin 1.7.0
47222         * doc/posix-functions/abort.texi (abort): Update wording related
47223         to cygwin.
47224         * doc/posix-functions/daylight.texi (daylight): Likewise.
47225         * doc/posix-functions/optarg.texi (optarg): Likewise.
47226         * doc/posix-functions/optarg.texi (opterr): Likewise.
47227         * doc/posix-functions/optarg.texi (optind): Likewise.
47228         * doc/posix-functions/optarg.texi (optopt): Likewise.
47229         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47230         worked in 1.5.x, and was withdrawn in 1.7.
47231         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47232         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47233         cygwin versions.
47234         * doc/posix-functions/perror.texi (perror): Likewise.
47235         * doc/posix-functions/printf.texi (printf): Likewise.
47236         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47237         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47238         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47239         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47240         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47241         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47242         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47243         Likewise.
47244         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47245         Likewise.
47246         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47247         this function.
47248         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47249         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47250         Likewise.
47251         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47252         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47253         * doc/posix-functions/confstr.texi (confstr): Likewise.
47254         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47255         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47256         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47257         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47258         * doc/posix-functions/fputws.texi (fputws): Likewise.
47259         * doc/posix-functions/fwide.texi (fwide): Likewise.
47260         * doc/posix-functions/getwc.texi (getwc): Likewise.
47261         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47262         * doc/posix-functions/putwc.texi (putwc): Likewise.
47263         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47264         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47265         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47266         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47267         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47268         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47269         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47270         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47271         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47272         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47273         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47274
47275 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47276
47277         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47278         * lib/ioctl.c: Include <sys/ioctl.h>.
47279
47280 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47281
47282         * modules/getdate-tests (Depends-on): Add progname.
47283         * tests/test-getdate.c: Use progname module, to avoid link errors
47284         on non-glibc systems.
47285
47286 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47287
47288         * modules/filenamecat-tests (Depends-on): Add progname.
47289         * modules/fstrcmp-tests (Depends-on): Likewise.
47290
47291         * tests/test-filenamecat.c: Use progname module, to avoid link
47292         errors on non-glibc systems.
47293         * tests/test-fstrcmp.c: Likewise.
47294
47295 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47296
47297         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47298         * lib/gettimeofday.c: Move extern declaration out of function.
47299
47300 2009-01-18  Bruno Haible  <bruno@clisp.org>
47301
47302         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47303         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47304         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47305
47306 2009-01-18  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/strftime.c (MEMPCPY): Remove unused macro.
47309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47310
47311 2009-01-18  Martin Lambers  <marlam@marlam.de>
47312
47313         New module 'link'.
47314         * lib/unistd.in.h (link): New declaration.
47315         * lib/link.c: New file.
47316         * m4/link.m4: New file.
47317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47318         HAVE_LINK.
47319         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47320         * modules/link: New file.
47321         * doc/posix-functions/link.texi: Mention the new module.
47322
47323 2009-01-18  Bruno Haible  <bruno@clisp.org>
47324
47325         * tests/test-avltree_list.c (main): Call set_program_name.
47326         * tests/test-avltree_oset.c (main): Likewise.
47327         * tests/test-obstack-printf.c: Include progname.h.
47328         (main): Call set_program_name.
47329         * tests/test-quotearg.c: Include progname.h.
47330         (main): Call set_program_name.
47331         * tests/test-xmemdup0.c: Include progname.h.
47332         (main): Call set_program_name.
47333
47334 2009-01-18  Bruno Haible  <bruno@clisp.org>
47335
47336         New module 'alphasort'.
47337         * lib/dirent.in.h (alphasort): New declaration.
47338         * lib/alphasort.c: New file, from glibc with modifications.
47339         * m4/alphasort.m4: New file.
47340         * modules/alphasort: New file.
47341         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47342         HAVE_ALPHASORT.
47343         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47344         HAVE_ALPHASORT.
47345         * doc/posix-functions/alphasort.texi: Mention the new module and the
47346         portability problems.
47347
47348 2009-01-18  Bruno Haible  <bruno@clisp.org>
47349
47350         New module 'scandir'.
47351         * lib/dirent.in.h (scandir): New declaration.
47352         * lib/scandir.c: New file, from glibc with modifications.
47353         * m4/scandir.m4: New file.
47354         * modules/scandir: New file.
47355         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47356         HAVE_SCANDIR.
47357         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47358         HAVE_SCANDIR.
47359         * doc/posix-functions/scandir.texi: Mention the new module and the
47360         portability problems.
47361
47362 2009-01-17  Bruno Haible  <bruno@clisp.org>
47363
47364         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47365         Update documentation.
47366         (func_remove_suffix): Escape all dots in the suffix. Update
47367         documentation.
47368         (func_filter_filelist): Update documentation.
47369         Reported by Ralf Wildenhues.
47370
47371 2009-01-17  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/dprintf-posix-tests: New file.
47374         * tests/test-dprintf-posix.sh: New file.
47375         * tests/test-dprintf-posix.c: New file.
47376
47377         New modules 'dprintf', 'dprintf-posix'.
47378         * lib/stdio.in.h (dprintf): New declaration.
47379         * lib/dprintf.c: New file.
47380         * m4/dprintf.m4: New file.
47381         * m4/dprintf-posix.m4: New file.
47382         * modules/dprintf: New file.
47383         * modules/dprintf-posix: New file.
47384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47385         HAVE_DPRINTF, REPLACE_DPRINTF.
47386         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47387         HAVE_DPRINTF, REPLACE_DPRINTF.
47388         * doc/posix-functions/dprintf.texi: Mention the new modules.
47389
47390 2009-01-17  Bruno Haible  <bruno@clisp.org>
47391
47392         * modules/vdprintf-posix-tests: New file.
47393         * tests/test-vdprintf-posix.sh: New file.
47394         * tests/test-vdprintf-posix.c: New file.
47395
47396         New modules 'vdprintf', 'vdprintf-posix'.
47397         * lib/stdio.in.h (vdprintf): New declaration.
47398         * lib/vdprintf.c: New file.
47399         * m4/vdprintf.m4: New file.
47400         * m4/vdprintf-posix.m4: New file.
47401         * modules/vdprintf: New file.
47402         * modules/vdprintf-posix: New file.
47403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47404         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47405         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47406         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47407         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47408
47409 2009-01-17  Bruno Haible  <bruno@clisp.org>
47410
47411         Fix replacement of fopen on mingw.
47412         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47413         mingw.
47414
47415 2009-01-17  Bruno Haible  <bruno@clisp.org>
47416
47417         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47418         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47419
47420 2009-01-17  Bruno Haible  <bruno@clisp.org>
47421
47422         Avoid test-fflush2.sh failure on mingw.
47423         * tests/test-fflush2.c: Include binary-io.h.
47424         (main): Put standard input into binary mode.
47425         * modules/fflush-tests (Depends-on): Add binary-io.
47426
47427 2009-01-17  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/wchar.in.h: In another particular situation, include only the
47430         system's <wchar.h> file.
47431         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47432         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47433         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47434
47435 2009-01-17  Bruno Haible  <bruno@clisp.org>
47436
47437         Support for stripping executables in --enable-relocatable.
47438         * build-aux/install-reloc: Expect one more argument, or an environment
47439         variable RELOC_STRIP_PROG. If set, strip the destination program and
47440         its wrapper.
47441         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47442         RELOC_STRIP_PROG.
47443         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47444         to set RELOCATABLE_STRIP.
47445         * NEWS: Mention the new Makefile requirement.
47446
47447 2009-01-17  Bruno Haible  <bruno@clisp.org>
47448
47449         * build-aux/install-reloc: Remove debugging information left over by
47450         C compiler on MacOS X.
47451
47452 2009-01-17  Bruno Haible  <bruno@clisp.org>
47453
47454         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47455         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47456         _NSGetExecutablePath.
47457
47458 2009-01-16  Jim Meyering  <meyering@redhat.com>
47459
47460         strerror: avoid warnings about discarding "const"
47461         * lib/strerror.c (rpl_strerror): Instead of returning a const
47462         string from each and every "case", use a variable, and add a single
47463         cast after the switch.
47464
47465 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47466
47467         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47468
47469 2009-01-16  Bruno Haible  <bruno@clisp.org>
47470
47471         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47472         array initializer syntax that also works in C++ mode.
47473         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47474
47475 2009-01-16  Jim Meyering  <meyering@redhat.com>
47476
47477         poll: suppress a warning
47478         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47479         to ignore "...unsigned expression < 0 is always false" warnings.
47480
47481 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47482
47483         poll: remove declarations of unused variables
47484         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47485         sockbuf and optlen.
47486
47487 2009-01-15  Bruno Haible  <bruno@clisp.org>
47488
47489         Make fflush-after-ungetc POSIX compliant on BSD systems.
47490         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47491         (clear_ungetc_buffer): Implement also for other systems.
47492         (rpl_fflush): On glibc systems, invoke
47493         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47494         clear_ungetc_buffer after fetching the stream's position, not before.
47495
47496 2009-01-15  Bruno Haible  <bruno@clisp.org>
47497
47498         Make fflush-after-ungetc POSIX compliant on glibc systems.
47499         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47500         after ungetc.
47501         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47502         (rpl_fflush): On glibc systems, simply call the system's fflush
47503         function after clearing the ungetc buffer.
47504         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47505         Instead, lseek only to the end of file, then use the system's fseeko
47506         for the rest. On glibc systems, reset the EOF indicator bit.
47507
47508 2009-01-15  Jim Meyering  <meyering@redhat.com>
47509
47510         openmp.m4: revert quote-adding change, for portability to older autoconf
47511         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47512         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47513         Simon Josefsson noticed the problem when using autoconf-2.61.
47514
47515 2009-01-15  Bruno Haible  <bruno@clisp.org>
47516
47517         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47518         * tests/test-fflush2.c (ASSERT): Always fail.
47519         (main): Add two tests for fflush() after ungetc(), taking into account
47520         the Austin Group's clarification.
47521         Suggested by Eric Blake.
47522
47523 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47524
47525         mktime.m4: remove K&R-style function prototypes
47526         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47527         for the Sun C++ compiler.
47528
47529 2009-01-14  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47532         while including <wchar.h>.
47533         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47534         the system's <wchar.h> file.
47535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47536
47537 2009-01-14  Bruno Haible  <bruno@clisp.org>
47538
47539         * m4/csharp.m4: Don't mention gettext on the serial number line.
47540         * m4/csharpexec.m4: Likewise.
47541         * m4/eaccess.m4: Likewise.
47542         * m4/javaexec.m4: Likewise.
47543         * m4/sig_atomic_t.m4: Likewise.
47544         * m4/tmpdir.m4: Likewise.
47545         * m4/intldir.m4: Bump gettext version.
47546         * m4/lib-ld.m4: Likewise.
47547
47548 2009-01-14  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/progname.c (set_program_name): Add more comments.
47551         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47552
47553 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47554
47555         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47556         were sys/stat.h does not define it.
47557
47558 2009-01-14  Jim Meyering  <meyering@redhat.com>
47559
47560         many *.m4 files: improve m4 quoting
47561         99% of this change was performed by running the following commands:
47562         git ls-files | grep '\.m4$' | xargs perl -pi \
47563           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47564           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47565           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47566           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47567         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47568         The remainder were to add Copyright dates, increment serial numbers,
47569         undo some changes in comments, exclude m4/intl.m4, and add quotes
47570         around the "1" in ",1" where the unusual spacing prohibited the
47571         above regexps from doing the job.  For more details, see
47572         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47573         * m4/acl.m4: Modified.
47574         * m4/afs.m4: Likewise.
47575         * m4/alloca.m4: Likewise.
47576         * m4/argp.m4: Likewise.
47577         * m4/argz.m4: Likewise.
47578         * m4/atexit.m4: Likewise.
47579         * m4/bison-i18n.m4: Likewise.
47580         * m4/bison.m4: Likewise.
47581         * m4/byteswap.m4: Likewise.
47582         * m4/c-stack.m4: Likewise.
47583         * m4/c-strtod.m4: Likewise.
47584         * m4/calloc.m4: Likewise.
47585         * m4/canonicalize-lgpl.m4: Likewise.
47586         * m4/chown.m4: Likewise.
47587         * m4/clock_time.m4: Likewise.
47588         * m4/codeset.m4: Likewise.
47589         * m4/copy-file.m4: Likewise.
47590         * m4/csharp.m4: Likewise.
47591         * m4/csharpcomp.m4: Likewise.
47592         * m4/csharpexec.m4: Likewise.
47593         * m4/d-ino.m4: Likewise.
47594         * m4/d-type.m4: Likewise.
47595         * m4/dirfd.m4: Likewise.
47596         * m4/double-slash-root.m4: Likewise.
47597         * m4/eaccess.m4: Likewise.
47598         * m4/eealloc.m4: Likewise.
47599         * m4/environ.m4: Likewise.
47600         * m4/errno_h.m4: Likewise.
47601         * m4/euidaccess.m4: Likewise.
47602         * m4/execute.m4: Likewise.
47603         * m4/fatal-signal.m4: Likewise.
47604         * m4/fchdir.m4: Likewise.
47605         * m4/fcntl_h.m4: Likewise.
47606         * m4/fileblocks.m4: Likewise.
47607         * m4/filenamecat.m4: Likewise.
47608         * m4/findprog.m4: Likewise.
47609         * m4/flexmember.m4: Likewise.
47610         * m4/fnmatch.m4: Likewise.
47611         * m4/fopen.m4: Likewise.
47612         * m4/fpending.m4: Likewise.
47613         * m4/fprintf-posix.m4: Likewise.
47614         * m4/free.m4: Likewise.
47615         * m4/frexp.m4: Likewise.
47616         * m4/frexpl.m4: Likewise.
47617         * m4/fsusage.m4: Likewise.
47618         * m4/ftruncate.m4: Likewise.
47619         * m4/gc-camellia.m4: Likewise.
47620         * m4/gc-random.m4: Likewise.
47621         * m4/gc.m4: Likewise.
47622         * m4/getaddrinfo.m4: Likewise.
47623         * m4/getcwd-abort-bug.m4: Likewise.
47624         * m4/getcwd-path-max.m4: Likewise.
47625         * m4/getdate.m4: Likewise.
47626         * m4/getdomainname.m4: Likewise.
47627         * m4/getgroups.m4: Likewise.
47628         * m4/gethostname.m4: Likewise.
47629         * m4/gethrxtime.m4: Likewise.
47630         * m4/getline.m4: Likewise.
47631         * m4/getloadavg.m4: Likewise.
47632         * m4/getndelim2.m4: Likewise.
47633         * m4/getpass.m4: Likewise.
47634         * m4/gettext.m4: Likewise.
47635         * m4/gettime.m4: Likewise.
47636         * m4/gettimeofday.m4: Likewise.
47637         * m4/gnulib-common.m4: Likewise.
47638         * m4/group-member.m4: Likewise.
47639         * m4/host-os.m4: Likewise.
47640         * m4/iconv.m4: Likewise.
47641         * m4/iconv_open.m4: Likewise.
47642         * m4/inet_ntop.m4: Likewise.
47643         * m4/inet_pton.m4: Likewise.
47644         * m4/inline.m4: Likewise.
47645         * m4/intldir.m4: Likewise.
47646         * m4/intlmacosx.m4: Likewise.
47647         * m4/intmax.m4: Likewise.
47648         * m4/intmax_t.m4: Likewise.
47649         * m4/inttypes.m4: Likewise.
47650         * m4/inttypes_h.m4: Likewise.
47651         * m4/inttypes-pri.m4: Likewise.
47652         * m4/isapipe.m4: Likewise.
47653         * m4/isnand.m4: Likewise.
47654         * m4/isnanf.m4: Likewise.
47655         * m4/isnanl.m4: Likewise.
47656         * m4/javacomp.m4: Likewise.
47657         * m4/javaexec.m4: Likewise.
47658         * m4/jm-winsz1.m4: Likewise.
47659         * m4/jm-winsz2.m4: Likewise.
47660         * m4/lchown.m4: Likewise.
47661         * m4/lcmessage.m4: Likewise.
47662         * m4/ldexpl.m4: Likewise.
47663         * m4/lib-ld.m4: Likewise.
47664         * m4/lib-link.m4: Likewise.
47665         * m4/libsigsegv.m4: Likewise.
47666         * m4/link-follow.m4: Likewise.
47667         * m4/localcharset.m4: Likewise.
47668         * m4/locale-fr.m4: Likewise.
47669         * m4/locale-ja.m4: Likewise.
47670         * m4/locale-tr.m4: Likewise.
47671         * m4/locale-zh.m4: Likewise.
47672         * m4/lock.m4: Likewise.
47673         * m4/longlong.m4: Likewise.
47674         * m4/ls-mntd-fs.m4: Likewise.
47675         * m4/lstat.m4: Likewise.
47676         * m4/malloc.m4: Likewise.
47677         * m4/mathl.m4: Likewise.
47678         * m4/mbrtowc.m4: Likewise.
47679         * m4/mbstate_t.m4: Likewise.
47680         * m4/mbswidth.m4: Likewise.
47681         * m4/memchr.m4: Likewise.
47682         * m4/memcmp.m4: Likewise.
47683         * m4/memcpy.m4: Likewise.
47684         * m4/memmem.m4: Likewise.
47685         * m4/memmove.m4: Likewise.
47686         * m4/mempcpy.m4: Likewise.
47687         * m4/memrchr.m4: Likewise.
47688         * m4/memset.m4: Likewise.
47689         * m4/minmax.m4: Likewise.
47690         * m4/mkdir-slash.m4: Likewise.
47691         * m4/mkdtemp.m4: Likewise.
47692         * m4/mktime.m4: Likewise.
47693         * m4/mmap-anon.m4: Likewise.
47694         * m4/mountlist.m4: Likewise.
47695         * m4/nanosleep.m4: Likewise.
47696         * m4/nls.m4: Likewise.
47697         * m4/nocrash.m4: Likewise.
47698         * m4/open.m4: Likewise.
47699         * m4/openat.m4: Likewise.
47700         * m4/openmp.m4: Likewise.
47701         * m4/pathmax.m4: Likewise.
47702         * m4/perl.m4: Likewise.
47703         * m4/physmem.m4: Likewise.
47704         * m4/pipe.m4: Likewise.
47705         * m4/po.m4: Likewise.
47706         * m4/poll.m4: Likewise.
47707         * m4/posixtm.m4: Likewise.
47708         * m4/posixver.m4: Likewise.
47709         * m4/printf-frexp.m4: Likewise.
47710         * m4/printf-frexpl.m4: Likewise.
47711         * m4/printf-posix.m4: Likewise.
47712         * m4/printf-posix-rpl.m4: Likewise.
47713         * m4/printf.m4: Likewise.
47714         * m4/progtest.m4: Likewise.
47715         * m4/putenv.m4: Likewise.
47716         * m4/readline.m4: Likewise.
47717         * m4/readlink.m4: Likewise.
47718         * m4/readutmp.m4: Likewise.
47719         * m4/realloc.m4: Likewise.
47720         * m4/regex.m4: Likewise.
47721         * m4/relocatable.m4: Likewise.
47722         * m4/relocatable-lib.m4: Likewise.
47723         * m4/rename-dest-slash.m4: Likewise.
47724         * m4/rename.m4: Likewise.
47725         * m4/rmdir-errno.m4: Likewise.
47726         * m4/rmdir.m4: Likewise.
47727         * m4/roundf.m4: Likewise.
47728         * m4/roundl.m4: Likewise.
47729         * m4/rpmatch.m4: Likewise.
47730         * m4/save-cwd.m4: Likewise.
47731         * m4/selinux-selinux-h.m4: Likewise.
47732         * m4/setenv.m4: Likewise.
47733         * m4/settime.m4: Likewise.
47734         * m4/sig2str.m4: Likewise.
47735         * m4/sig_atomic_t.m4: Likewise.
47736         * m4/signalblocking.m4: Likewise.
47737         * m4/signbit.m4: Likewise.
47738         * m4/sigpipe.m4: Likewise.
47739         * m4/sockets.m4: Likewise.
47740         * m4/sockpfaf.m4: Likewise.
47741         * m4/st_dm_mode.m4: Likewise.
47742         * m4/stat-time.m4: Likewise.
47743         * m4/stdbool.m4: Likewise.
47744         * m4/stdint.m4: Likewise.
47745         * m4/stdint_h.m4: Likewise.
47746         * m4/stpcpy.m4: Likewise.
47747         * m4/stpncpy.m4: Likewise.
47748         * m4/strcase.m4: Likewise.
47749         * m4/strchrnul.m4: Likewise.
47750         * m4/strcspn.m4: Likewise.
47751         * m4/strdup.m4: Likewise.
47752         * m4/strftime.m4: Likewise.
47753         * m4/strndup.m4: Likewise.
47754         * m4/strnlen.m4: Likewise.
47755         * m4/strpbrk.m4: Likewise.
47756         * m4/strptime.m4: Likewise.
47757         * m4/strsep.m4: Likewise.
47758         * m4/strtod.m4: Likewise.
47759         * m4/strtoimax.m4: Likewise.
47760         * m4/strtok_r.m4: Likewise.
47761         * m4/strtol.m4: Likewise.
47762         * m4/strtoll.m4: Likewise.
47763         * m4/strtoul.m4: Likewise.
47764         * m4/strtoull.m4: Likewise.
47765         * m4/strtoumax.m4: Likewise.
47766         * m4/strverscmp.m4: Likewise.
47767         * m4/threadlib.m4: Likewise.
47768         * m4/timegm.m4: Likewise.
47769         * m4/tm_gmtoff.m4: Likewise.
47770         * m4/tmpdir.m4: Likewise.
47771         * m4/tmpfile.m4: Likewise.
47772         * m4/tzset.m4: Likewise.
47773         * m4/uintmax_t.m4: Likewise.
47774         * m4/unlinkdir.m4: Likewise.
47775         * m4/unlocked-io.m4: Likewise.
47776         * m4/uptime.m4: Likewise.
47777         * m4/userspec.m4: Likewise.
47778         * m4/utimbuf.m4: Likewise.
47779         * m4/utime.m4: Likewise.
47780         * m4/utimes-null.m4: Likewise.
47781         * m4/utimes.m4: Likewise.
47782         * m4/vararrays.m4: Likewise.
47783         * m4/vasnprintf.m4: Likewise.
47784         * m4/vfprintf-posix.m4: Likewise.
47785         * m4/vprintf-posix.m4: Likewise.
47786         * m4/wait-process.m4: Likewise.
47787         * m4/wchar_t.m4: Likewise.
47788         * m4/wint_t.m4: Likewise.
47789         * m4/write-any-file.m4: Likewise.
47790         * m4/yield.m4: Likewise.
47791
47792 2009-01-13  Bruno Haible  <bruno@clisp.org>
47793
47794         Avoid test-copy-file.sh failures when ACL support insufficient.
47795         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47796         TESTS_ENVIRONMENT.
47797         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47798         Reported by Jim Meyering.
47799
47800 2009-01-13  Bruno Haible  <bruno@clisp.org>
47801
47802         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47803         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47804         * modules/unistdio/u8-printf-parse (Files): Likewise.
47805         * modules/unistdio/u32-printf-parse (Files): Likewise.
47806         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47807
47808 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47809
47810         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47811         and m4/inttypes_h.m4 too.
47812
47813 2009-01-12  Eric Blake  <ebb9@byu.net>
47814
47815         tests: IRIX 6.2 cc can't compile -0.0 into .data
47816         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47817         rather than at compile-time.
47818         * tests/test-floorl.c (minus_zero): Likewise.
47819         * tests/test-frexpl.c (minus_zero): Likewise.
47820         * tests/test-isnan.c (minus_zerol): Likewise.
47821         * tests/test-isnanl.h (minus_zero): Likewise.
47822         * tests/test-ldexpl.c (minus_zero): Likewise.
47823         * tests/test-roundl.c (minus_zero): Likewise.
47824         * tests/test-signbit.c (minus_zerol): Likewise.
47825         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47826         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47827         * tests/test-truncl.c (minus_zero): Likewise.
47828         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47829         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47830         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47831
47832 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47833
47834         regex: fix glibc bug 9697
47835         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47836         handling.
47837
47838 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47839
47840         regex: fix glibc bug 697
47841         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47842         being NULL also if there are no backreferences.
47843
47844 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47845
47846         regex: merge glibc changes
47847         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47848         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47849         re_string_skip_chars, re_string_reconstruct): Likewise.
47850         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47851
47852 2009-01-07  Jim Meyering  <meyering@redhat.com>
47853
47854         poll: filter through cppi
47855         * lib/poll.c: Indent cpp directives to reflect nesting.
47856
47857 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47858
47859         poll: don't return uninitialized
47860         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47861
47862 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47863
47864         avoid compile failure on AIX 6.1
47865         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47866         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47867
47868 2009-01-04  Jim Meyering  <meyering@redhat.com>
47869
47870         remove duplicate inclusion of <stdio.h>
47871         * tests/test-fprintf-posix.c: Likewise.
47872         * tests/test-printf-posix.c: Likewise.
47873         * tests/test-snprintf-posix.c: Likewise.
47874         * tests/test-sprintf-posix.c: Likewise.
47875         * tests/test-vasprintf-posix.c: Likewise.
47876         * tests/test-vfprintf-posix.c: Likewise.
47877         * tests/test-vprintf-posix.c: Likewise.
47878         * tests/test-vsnprintf-posix.c: Likewise.
47879         * tests/test-vsprintf-posix.c: Likewise.
47880
47881 2009-01-03  Jim Meyering  <meyering@redhat.com>
47882
47883         gnulib-tool: fix sed-based filtering
47884         * gnulib-tool (func_filter_filelist): Remove extra backslash
47885         in sed_fff_filter definition.
47886
47887 2009-01-02  Jim Meyering  <meyering@redhat.com>
47888
47889         strftime: avoid compilation failure on Solaris 2.6
47890         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47891         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47892         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47893         be available.  Reported by Tom G. Christensen.  Details in
47894         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47895
47896 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47897             Bruno Haible  <bruno@clisp.org>
47898
47899         Speed up gnulib-tool by doing more string processing through shell
47900         built-ins.
47901         * gnulib-tool (fast_func_append): New variable.
47902         (func_remove_prefix, func_remove_suffix): New functions.
47903         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47904         (func_filter_filelist): New function.
47905         (func_get_dependencies): Use func_remove_suffix instead of sed.
47906         (func_get_automake_snippet): Use func_filter_filelist instead of a
47907         subshell and sed invocation.
47908
47909 2009-01-01  Bruno Haible  <bruno@clisp.org>
47910
47911         Fix a security bug.
47912         * gnulib-tool (func_import, import, update): Don't allow the characters
47913         '"', '$', '`', '\' in macro arguments that become part of commands that
47914         are evaluated.
47915
47916 2009-01-01  Bruno Haible  <bruno@clisp.org>
47917
47918         * gnulib-tool (func_reset_sigpipe): Add more comments.
47919
47920 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47921
47922         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47923         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47924         already know the answer.
47925
47926 2009-01-01  Jim Meyering  <meyering@redhat.com>
47927
47928         * lib/version-etc.c (version_etc_va): Update copyright year.
47929
47930 2008-12-30  Bruno Haible  <bruno@clisp.org>
47931
47932         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47933         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47934         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47935
47936 2008-12-29  Eric Blake  <ebb9@byu.net>
47937
47938         multiarch: avoid autoconf AC_REQUIRE bug
47939         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47940         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47941         2.63 and older.
47942         Reported by Bruno Haible, and analyzed in
47943         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47944
47945 2008-12-29  Bruno Haible  <bruno@clisp.org>
47946
47947         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47948         files in subdirectories correctly.
47949         Reported by Ralf Wildenhues.
47950
47951 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47952
47953         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47954         rather than 'join FILE -', for Solaris join.
47955
47956 2008-12-29  Bruno Haible  <bruno@clisp.org>
47957
47958         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47959         quoting.
47960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47961         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47962         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47963         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47964         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47965         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47966         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47967         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47968         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47969         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47970         * m4/nls.m4 (AM_NLS): Likewise.
47971         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47972         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47973         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47974         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47975         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47976         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47977         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47978         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47979         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47980         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47981         * m4/xsize.m4 (gl_XSIZE): Likewise.
47982         Suggested by Jim Meyering.
47983
47984 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47985
47986         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47987         * lib/parse-duration.c: use a switch instead of cascading if's.
47988
47989 2008-12-29  Eric Blake  <ebb9@byu.net>
47990
47991         wchar.h: supply WEOF on Irix 5.3
47992         * lib/wchar.in.h (wint_t): Also supply WEOF.
47993         * lib/wctype.in.h (wint_t): Likewise.
47994         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47995         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47996         Reported by Tom G. Christensen.
47997
47998 2008-12-26  Bruno Haible  <bruno@clisp.org>
47999
48000         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48001         i486, i586, i686.
48002
48003 2008-12-26  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48006
48007 2008-12-26  Bruno Haible  <bruno@clisp.org>
48008
48009         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48010         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48011         not __STDC_CONSTANT_MACROS.
48012         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48013
48014 2008-12-25  Bruno Haible  <bruno@clisp.org>
48015
48016         Add support for universal builds to vasnprintf.
48017         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48018         universal builds, guess no.
48019         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48020         * modules/vasprintf-posix (Depends-on): Likewise.
48021         * modules/fprintf-posix (Depends-on): Likewise.
48022         * modules/vfprintf-posix (Depends-on): Likewise.
48023         * modules/snprintf-posix (Depends-on): Likewise.
48024         * modules/vsnprintf-posix (Depends-on): Likewise.
48025         * modules/sprintf-posix (Depends-on): Likewise.
48026         * modules/vsprintf-posix (Depends-on): Likewise.
48027         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48028         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48029         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48030         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48031         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48032         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48033         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48034
48035         Add support for universal builds to <inttypes.h>.
48036         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48037         _SCNu64_PREFIX): In Apple
48038         universal builds, define directly, using _LP64.
48039         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48040         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48041         * modules/inttypes (Depends-on): Add multiarch.
48042         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48043
48044         Add support for universal builds to <stdint.h>.
48045         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48046         universal builds, define directly, using _LP64.
48047         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48048         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48049         and size_t.
48050         * modules/stdint (Depends-on): Add multiarch.
48051         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48052
48053         New module 'multiarch'.
48054         * modules/multiarch: New file.
48055         * m4/multiarch.m4: New file.
48056
48057 2008-12-25  Bruno Haible  <bruno@clisp.org>
48058
48059         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48060
48061 2008-12-25  Bruno Haible  <bruno@clisp.org>
48062
48063         * modules/btowc (License): Relicense under LGPLv2+.
48064         * modules/mbsinit (License): Likewise.
48065         * modules/mbrtowc (License): Likewise.
48066         * modules/wcrtomb (License): Likewise.
48067         * modules/streq (License): Likewise.
48068         Reported by David Lutterkort <lutter@redhat.com>.
48069
48070 2008-12-23  Bruno Haible  <bruno@clisp.org>
48071
48072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48073
48074 2008-12-23  Bruno Haible  <bruno@clisp.org>
48075
48076         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48078         GETADDRINFO_LIB, not in LIBS.
48079         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48080         * modules/canon-host (Link): Likewise.
48081         * NEWS: Mention the change.
48082         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48083         GETADDRINFO_LIB.
48084
48085 2008-12-22  Bruno Haible  <bruno@clisp.org>
48086
48087         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48088         * doc/posix-functions/iswalpha_l.texi: Likewise.
48089         * doc/posix-functions/iswblank_l.texi: Likewise.
48090         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48091         * doc/posix-functions/iswctype_l.texi: Likewise.
48092         * doc/posix-functions/iswdigit_l.texi: Likewise.
48093         * doc/posix-functions/iswgraph_l.texi: Likewise.
48094         * doc/posix-functions/iswlower_l.texi: Likewise.
48095         * doc/posix-functions/iswprint_l.texi: Likewise.
48096         * doc/posix-functions/iswpunct_l.texi: Likewise.
48097         * doc/posix-functions/iswspace_l.texi: Likewise.
48098         * doc/posix-functions/iswupper_l.texi: Likewise.
48099         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48100         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48101         * doc/posix-functions/open_wmemstream.texi: Likewise.
48102         * doc/posix-functions/swscanf.texi: Likewise.
48103         * doc/posix-functions/towctrans_l.texi: Likewise.
48104         * doc/posix-functions/towlower.texi: Likewise.
48105         * doc/posix-functions/towlower_l.texi: Likewise.
48106         * doc/posix-functions/towupper.texi: Likewise.
48107         * doc/posix-functions/towupper_l.texi: Likewise.
48108         * doc/posix-functions/vfwprintf.texi: Likewise.
48109         * doc/posix-functions/vfwscanf.texi: Likewise.
48110         * doc/posix-functions/vswscanf.texi: Likewise.
48111         * doc/posix-functions/vwprintf.texi: Likewise.
48112         * doc/posix-functions/vwscanf.texi: Likewise.
48113         * doc/posix-functions/wcpcpy.texi: Likewise.
48114         * doc/posix-functions/wcpncpy.texi: Likewise.
48115         * doc/posix-functions/wcscasecmp.texi: Likewise.
48116         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48117         * doc/posix-functions/wcscoll_l.texi: Likewise.
48118         * doc/posix-functions/wcsdup.texi: Likewise.
48119         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48120         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48121         * doc/posix-functions/wcsnlen.texi: Likewise.
48122         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48123         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48124         * doc/posix-functions/wctrans_l.texi: Likewise.
48125         * doc/posix-functions/wctype_l.texi: Likewise.
48126         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48127         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48128         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48129         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48130         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48131         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48132         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48133         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48134         * doc/glibc-functions/wcschrnul.texi: Likewise.
48135         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48136         * doc/glibc-functions/wcstod_l.texi: Likewise.
48137         * doc/glibc-functions/wcstof_l.texi: Likewise.
48138         * doc/glibc-functions/wcstol_l.texi: Likewise.
48139         * doc/glibc-functions/wcstold_l.texi: Likewise.
48140         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48141         * doc/glibc-functions/wcstoq.texi: Likewise.
48142         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48143         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48144         * doc/glibc-functions/wcstouq.texi: Likewise.
48145         * doc/glibc-functions/wmempcpy.texi: Likewise.
48146
48147 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48148             Eric Blake  <ebb9@byu.net>
48149             Paolo Bonzini  <bonzini@gnu.org>
48150             Bruno Haible  <bruno@clisp.org>
48151
48152         Make c-stack work on Haiku.
48153         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48154         (c_stack_action): Use SA_ONSTACK flag.
48155
48156 2008-12-22  Bruno Haible  <bruno@clisp.org>
48157
48158         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48159
48160 2008-12-22  Bruno Haible  <bruno@clisp.org>
48161
48162         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48163         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48164         being overridden.
48165         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48166         New macros.
48167         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48169         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48170         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48171
48172 2008-12-22  Bruno Haible  <bruno@clisp.org>
48173
48174         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48175         from test code.
48176
48177 2008-12-22  Eric Blake  <ebb9@byu.net>
48178
48179         Avoid gcc warnings on cygwin.
48180         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48181         Avoid unused variable.
48182         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48183         Likewise.
48184
48185 2008-12-22  Bruno Haible  <bruno@clisp.org>
48186
48187         Remove HAVE_MBRTOWC conditionals.
48188         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48189         (mbscasecmp): Assume mbrtowc function.
48190         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48191         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48192         * lib/mbschr.c: Include mbuiter.h unconditionally.
48193         (mbschr): Assume mbrtowc function.
48194         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48195         (mbscspn): Assume mbrtowc function.
48196         * lib/mbslen.c: Include mbuiter.h unconditionally.
48197         (mbslen): Assume mbrtowc function.
48198         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48199         (mbsncasecmp): Assume mbrtowc function.
48200         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48201         (mbsnlen): Assume mbrtowc function.
48202         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48203         (mbspbrk): Assume mbrtowc function.
48204         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48205         (mbspcasecmp): Assume mbrtowc function.
48206         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48207         (mbsrchr): Assume mbrtowc function.
48208         * lib/mbssep.c: Include mbuiter.h unconditionally.
48209         (mbssep): Assume mbrtowc function.
48210         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48211         (mbsspn): Assume mbrtowc function.
48212         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48213         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48214         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48215         (mbstok_r): Assume mbrtowc function.
48216         * lib/propername.c: Include mbuiter.h unconditionally.
48217         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48218         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48219         (trim2): Assume mbrtowc function.
48220         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48221         (mbsnwidth): Assume mbrtowc function.
48222         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48223         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48224         fallback definitions.
48225         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48226
48227 2008-12-22  Bruno Haible  <bruno@clisp.org>
48228
48229         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48230
48231 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48232
48233         * modules/regex: Request emulations for the mb*/wc* functions we need.
48234         * m4/regex.m4: Don't look for those functions here.
48235         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48236
48237 2008-12-22  Bruno Haible  <bruno@clisp.org>
48238
48239         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48240
48241 2008-12-21  Bruno Haible  <bruno@clisp.org>
48242
48243         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48244         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48245         (Include): Remove conditionalization.
48246         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48247         (Include): Remove conditionalization.
48248         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48249         (Include): Remove conditionalization.
48250         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48251         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48252         * NEWS: Mention the change.
48253         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48254         via Sergey Poznyakoff <gray@gnu.org.ua>.
48255
48256 2008-12-21  Bruno Haible  <bruno@clisp.org>
48257
48258         * MODULES.html.sh (Extended multibyte and wide character utilities
48259         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48260         wcrtomb, wcsrtombs.
48261         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48262         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48263         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48264         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48265
48266 2008-12-21  Bruno Haible  <bruno@clisp.org>
48267
48268         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48269
48270 2008-12-21  Bruno Haible  <bruno@clisp.org>
48271
48272         * modules/wcsnrtombs-tests: New file.
48273         * tests/test-wcsnrtombs1.sh: New file.
48274         * tests/test-wcsnrtombs2.sh: New file.
48275         * tests/test-wcsnrtombs3.sh: New file.
48276         * tests/test-wcsnrtombs4.sh: New file.
48277         * tests/test-wcsnrtombs.c: New file.
48278
48279         New module 'wcsnrtombs'.
48280         * lib/wchar.in.h (wcsnrtombs): New declaration.
48281         * lib/wcsnrtombs.c: New file.
48282         * lib/wcsrtombs-state.c: New file.
48283         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48284         (internal_state): Remove variable.
48285         * m4/wcsnrtombs.m4: New file.
48286         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48287         compilation units.
48288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48289         HAVE_WCSNRTOMBS.
48290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48291         HAVE_WCSNRTOMBS.
48292         * modules/wcsnrtombs: New file.
48293         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48294         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48295
48296 2008-12-21  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/wcsrtombs-tests: New file.
48299         * tests/test-wcsrtombs1.sh: New file.
48300         * tests/test-wcsrtombs2.sh: New file.
48301         * tests/test-wcsrtombs3.sh: New file.
48302         * tests/test-wcsrtombs4.sh: New file.
48303         * tests/test-wcsrtombs.c: New file.
48304
48305         New module 'wcsrtombs'.
48306         * lib/wchar.in.h (wcsrtombs): New declaration.
48307         * lib/wcsrtombs.c: New file.
48308         * m4/wcsrtombs.m4: New file.
48309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48310         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48312         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48313         * modules/wcsrtombs: New file.
48314         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48315         bugs.
48316
48317 2008-12-21  Bruno Haible  <bruno@clisp.org>
48318
48319         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48320         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48322         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48323         if not correct.
48324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48325         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48326         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48327         m4/locale-zh.m4, m4/codeset.m4.
48328         * doc/posix-functions/wcrtomb.texi: Document the bug.
48329
48330 2008-12-21  Bruno Haible  <bruno@clisp.org>
48331
48332         Work around a btowc() bug on IRIX 6.5.
48333         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48334         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48335         REPLACE_WTOBC if not.
48336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48337         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48338         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48339
48340 2008-12-21  Bruno Haible  <bruno@clisp.org>
48341
48342         * modules/wcrtomb-tests: New file.
48343         * tests/test-wcrtomb.sh: New file.
48344         * tests/test-wcrtomb.c: New file.
48345
48346         New module 'wcrtomb'.
48347         * lib/wchar.in.h (wcrtomb): New declaration.
48348         * lib/wcrtomb.c: New file.
48349         * m4/wcrtomb.m4: New file.
48350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48351         HAVE_WCRTOMB.
48352         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48353         HAVE_WCRTOMB.
48354         * modules/wcrtomb: New file.
48355         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48356
48357 2008-12-21  Bruno Haible  <bruno@clisp.org>
48358
48359         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48360         * modules/mbsrtowcs (Files): Likewise.
48361         * modules/wctob (Files): Likewise.
48362         * modules/c-strcase-tests (Files): Likewise.
48363         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48364         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48365         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48366         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48367         * modules/vasnprintf-posix-tests (Files): Likewise.
48368
48369 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48370
48371         gitlog-to-changelog: pass all command-line arguments to git-log
48372         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48373         it is sometimes convenient to filter the commits in various ways.
48374         gitlog-to-changelog only allows --since to specify a start date,
48375         but git-log itself supports many other filtering mechanisms.
48376         At the moment, I want to filter by branch name.  Rather than
48377         adding a --branch option to gitlog-to-changelog, it seems more
48378         flexible to simply pass all options directly to git-log and let
48379         git do the work.  Notice that this effectively makes --since a
48380         redundant option for gitlog-to-changelog, but removing it would
48381         require current usage to change since calls would then require
48382         an additional '--'.
48383
48384 2008-12-21  Bruno Haible  <bruno@clisp.org>
48385
48386         * modules/mbsnrtowcs-tests: New file.
48387         * tests/test-mbsnrtowcs1.sh: New file.
48388         * tests/test-mbsnrtowcs2.sh: New file.
48389         * tests/test-mbsnrtowcs3.sh: New file.
48390         * tests/test-mbsnrtowcs4.sh: New file.
48391         * tests/test-mbsnrtowcs.c: New file.
48392
48393         New module 'mbsnrtowcs'.
48394         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48395         * lib/mbsnrtowcs.c: New file.
48396         * lib/mbsrtowcs-state.c: New file.
48397         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48398         (internal_state): Remove variable.
48399         * m4/mbsnrtowcs.m4: New file.
48400         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48401         compilation units.
48402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48403         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48404         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48405         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48406         * modules/mbsnrtowcs: New file.
48407         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48408         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48409         portability problem.
48410
48411 2008-12-21  Bruno Haible  <bruno@clisp.org>
48412
48413         Work around mbsrtowcs bug.
48414         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48415         (gl_FUNC_MBSRTOWCS): Invoke it.
48416         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48417         m4/locale-zh.m4.
48418         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48419
48420 2008-12-21  Bruno Haible  <bruno@clisp.org>
48421
48422         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48423
48424 2008-12-21  Bruno Haible  <bruno@clisp.org>
48425
48426         Update doc for AIX.
48427         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48428         16-bit wchar_t type.
48429         * doc/posix-functions/btowc.texi: Likewise.
48430         * doc/posix-functions/fgetwc.texi: Likewise.
48431         * doc/posix-functions/fgetws.texi: Likewise.
48432         * doc/posix-functions/fputwc.texi: Likewise.
48433         * doc/posix-functions/fputws.texi: Likewise.
48434         * doc/posix-functions/fwide.texi: Likewise.
48435         * doc/posix-functions/fwprintf.texi: Likewise.
48436         * doc/posix-functions/fwscanf.texi: Likewise.
48437         * doc/posix-functions/getwchar.texi: Likewise.
48438         * doc/posix-functions/getwc.texi: Likewise.
48439         * doc/posix-functions/iswalnum.texi: Likewise.
48440         * doc/posix-functions/iswalpha.texi: Likewise.
48441         * doc/posix-functions/iswblank.texi: Likewise.
48442         * doc/posix-functions/iswcntrl.texi: Likewise.
48443         * doc/posix-functions/iswctype.texi: Likewise.
48444         * doc/posix-functions/iswdigit.texi: Likewise.
48445         * doc/posix-functions/iswgraph.texi: Likewise.
48446         * doc/posix-functions/iswlower.texi: Likewise.
48447         * doc/posix-functions/iswprint.texi: Likewise.
48448         * doc/posix-functions/iswpunct.texi: Likewise.
48449         * doc/posix-functions/iswspace.texi: Likewise.
48450         * doc/posix-functions/iswupper.texi: Likewise.
48451         * doc/posix-functions/iswxdigit.texi: Likewise.
48452         * doc/posix-functions/mbrtowc.texi: Likewise.
48453         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48454         * doc/posix-functions/mbstowcs.texi: Likewise.
48455         * doc/posix-functions/mbtowc.texi: Likewise.
48456         * doc/posix-functions/putwchar.texi: Likewise.
48457         * doc/posix-functions/putwc.texi: Likewise.
48458         * doc/posix-functions/swprintf.texi: Likewise.
48459         * doc/posix-functions/tolower.texi: Likewise.
48460         * doc/posix-functions/toupper.texi: Likewise.
48461         * doc/posix-functions/towctrans.texi: Likewise.
48462         * doc/posix-functions/ungetwc.texi: Likewise.
48463         * doc/posix-functions/vswprintf.texi: Likewise.
48464         * doc/posix-functions/wcrtomb.texi: Likewise.
48465         * doc/posix-functions/wcscat.texi: Likewise.
48466         * doc/posix-functions/wcschr.texi: Likewise.
48467         * doc/posix-functions/wcscmp.texi: Likewise.
48468         * doc/posix-functions/wcscoll.texi: Likewise.
48469         * doc/posix-functions/wcscpy.texi: Likewise.
48470         * doc/posix-functions/wcscspn.texi: Likewise.
48471         * doc/posix-functions/wcsftime.texi: Likewise.
48472         * doc/posix-functions/wcslen.texi: Likewise.
48473         * doc/posix-functions/wcsncat.texi: Likewise.
48474         * doc/posix-functions/wcsncmp.texi: Likewise.
48475         * doc/posix-functions/wcsncpy.texi: Likewise.
48476         * doc/posix-functions/wcspbrk.texi: Likewise.
48477         * doc/posix-functions/wcsrchr.texi: Likewise.
48478         * doc/posix-functions/wcsrtombs.texi: Likewise.
48479         * doc/posix-functions/wcsspn.texi: Likewise.
48480         * doc/posix-functions/wcsstr.texi: Likewise.
48481         * doc/posix-functions/wcstod.texi: Likewise.
48482         * doc/posix-functions/wcstof.texi: Likewise.
48483         * doc/posix-functions/wcstoimax.texi: Likewise.
48484         * doc/posix-functions/wcstok.texi: Likewise.
48485         * doc/posix-functions/wcstold.texi: Likewise.
48486         * doc/posix-functions/wcstoll.texi: Likewise.
48487         * doc/posix-functions/wcstol.texi: Likewise.
48488         * doc/posix-functions/wcstombs.texi: Likewise.
48489         * doc/posix-functions/wcstoull.texi: Likewise.
48490         * doc/posix-functions/wcstoul.texi: Likewise.
48491         * doc/posix-functions/wcstoumax.texi: Likewise.
48492         * doc/posix-functions/wcswidth.texi: Likewise.
48493         * doc/posix-functions/wcsxfrm.texi: Likewise.
48494         * doc/posix-functions/wctob.texi: Likewise.
48495         * doc/posix-functions/wctomb.texi: Likewise.
48496         * doc/posix-functions/wctrans.texi: Likewise.
48497         * doc/posix-functions/wctype.texi: Likewise.
48498         * doc/posix-functions/wcwidth.texi: Likewise.
48499         * doc/posix-functions/wmemchr.texi: Likewise.
48500         * doc/posix-functions/wmemcmp.texi: Likewise.
48501         * doc/posix-functions/wmemcpy.texi: Likewise.
48502         * doc/posix-functions/wmemmove.texi: Likewise.
48503         * doc/posix-functions/wmemset.texi: Likewise.
48504         * doc/posix-functions/wprintf.texi: Likewise.
48505         * doc/posix-functions/wscanf.texi: Likewise.
48506
48507 2008-12-21  Bruno Haible  <bruno@clisp.org>
48508
48509         Update doc for HP-UX 11.11.
48510         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48511         in HP-UX version 11.00, not in all versions of HP-UX 11.
48512         * doc/posix-functions/fwide.texi: Likewise.
48513         * doc/posix-functions/fwprintf.texi: Likewise.
48514         * doc/posix-functions/fwscanf.texi: Likewise.
48515         * doc/posix-functions/inet_ntop.texi: Likewise.
48516         * doc/posix-functions/inet_pton.texi: Likewise.
48517         * doc/posix-functions/mbrlen.texi: Likewise.
48518         * doc/posix-functions/mbrtowc.texi: Likewise.
48519         * doc/posix-functions/mbsinit.texi: Likewise.
48520         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48521         * doc/posix-functions/swprintf.texi: Likewise.
48522         * doc/posix-functions/swscanf.texi: Likewise.
48523         * doc/posix-functions/towctrans.texi: Likewise.
48524         * doc/posix-functions/vfwprintf.texi: Likewise.
48525         * doc/posix-functions/vswprintf.texi: Likewise.
48526         * doc/posix-functions/vwprintf.texi: Likewise.
48527         * doc/posix-functions/wcrtomb.texi: Likewise.
48528         * doc/posix-functions/wcsrtombs.texi: Likewise.
48529         * doc/posix-functions/wcsstr.texi: Likewise.
48530         * doc/posix-functions/wctob.texi: Likewise.
48531         * doc/posix-functions/wctrans.texi: Likewise.
48532         * doc/posix-functions/wmemchr.texi: Likewise.
48533         * doc/posix-functions/wmemcmp.texi: Likewise.
48534         * doc/posix-functions/wmemcpy.texi: Likewise.
48535         * doc/posix-functions/wmemmove.texi: Likewise.
48536         * doc/posix-functions/wmemset.texi: Likewise.
48537         * doc/posix-functions/wprintf.texi: Likewise.
48538         * doc/posix-functions/wscanf.texi: Likewise.
48539
48540 2008-12-21  Bruno Haible  <bruno@clisp.org>
48541
48542         Work around a portability problem.
48543         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48544         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48545
48546 2008-12-20  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48549         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48550         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48552         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48553
48554         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48555         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48556         set.
48557         (GNULIB_defined_mbstate_t): New macro.
48558         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48559         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48560         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48561         reuses the system's mbrtowc function but works around the bugs.
48562         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48563         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48564         macros.
48565         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48566         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48567         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48568         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48569         REPLACE_MBSINIT if mbsinit needs to be overridden.
48570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48571         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48572         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48573         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48574         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48575         m4/locale-zh.m4.
48576         (Depends): Add mbsinit.
48577         * modules/mbsinit (Depends): Add mbrtowc.
48578         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48579
48580 2008-12-20  Bruno Haible  <bruno@clisp.org>
48581
48582         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48583         so that there are no conversion errors on AIX.
48584         * tests/test-mbsrtowcs.c (main): LIkewise.
48585
48586 2008-12-20  Bruno Haible  <bruno@clisp.org>
48587
48588         Work around wctob bug on Solaris <= 9.
48589         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48590         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48592         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48593         * modules/wctob (Files): Add m4/locale-fr.m4.
48594         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48595
48596 2008-12-20  Bruno Haible  <bruno@clisp.org>
48597
48598         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48599         /dev/null.
48600         * tests/test-select-in.sh: Likewise.
48601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48602
48603 2008-12-20  Bruno Haible  <bruno@clisp.org>
48604
48605         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48606         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48607         Cygwin 1.5.x.
48608
48609 2008-12-20  Bruno Haible  <bruno@clisp.org>
48610
48611         Ensure mbstate_t is defined on HP-UX 11.11.
48612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48613         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48614         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48615         AC_USE_SYSTEM_EXTENSIONS.
48616         * modules/fnmatch (Depends-on): Add extensions.
48617         * modules/mbrlen (Depends-on): Likewise.
48618         * modules/mbrtowc (Depends-on): Likewise.
48619         * modules/mbsinit (Depends-on): Likewise.
48620         * modules/mbsrtowcs (Depends-on): Likewise.
48621         * modules/mbswidth (Depends-on): Likewise.
48622         * modules/quotearg (Depends-on): Likewise.
48623         * modules/strftime (Depends-on): Likewise.
48624
48625 2008-12-20  Bruno Haible  <bruno@clisp.org>
48626
48627         Ensure wctob is declared on IRIX 6.5.
48628         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48629         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48630         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48632         of HAVE_WCTOB.
48633         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48634         HAVE_WCTOB.
48635         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48636
48637 2008-12-19  Bruno Haible  <bruno@clisp.org>
48638
48639         * modules/mbsrtowcs-tests: New file.
48640         * tests/test-mbsrtowcs1.sh: New file.
48641         * tests/test-mbsrtowcs2.sh: New file.
48642         * tests/test-mbsrtowcs3.sh: New file.
48643         * tests/test-mbsrtowcs4.sh: New file.
48644         * tests/test-mbsrtowcs.c: New file.
48645
48646         New module 'mbsrtowcs'.
48647         * lib/wchar.in.h (mbsrtowcs): New declaration.
48648         * lib/mbsrtowcs.c: New file.
48649         * m4/mbsrtowcs.m4: New file.
48650         * modules/mbsrtowcs: New file.
48651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48652         HAVE_MBSRTOWCS.
48653         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48654         HAVE_MBSRTOWCS.
48655         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48656
48657 2008-12-19  Bruno Haible  <bruno@clisp.org>
48658
48659         New module 'mbrlen'.
48660         * lib/wchar.in.h (mbrlen): New declaration.
48661         * lib/mbrlen.c: New file.
48662         * m4/mbrlen.m4: New file.
48663         * modules/mbrlen: New file.
48664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48665         HAVE_MBRLEN.
48666         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48667         HAVE_MBRLEN.
48668         * doc/posix-functions/mbrlen.texi: Document the new module.
48669
48670 2008-12-19  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48673         * modules/mbrtowc (Depends-on): Add verify.
48674         Suggested by Paul Eggert.
48675
48676 2008-12-18  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/mbsinit-tests: New file.
48679         * tests/test-mbsinit.sh: New file.
48680         * tests/test-mbsinit.c: New file.
48681
48682 2008-12-18  Bruno Haible  <bruno@clisp.org>
48683
48684         * modules/mbrtowc-tests: New file.
48685         * tests/test-mbrtowc1.sh: New file.
48686         * tests/test-mbrtowc2.sh: New file.
48687         * tests/test-mbrtowc3.sh: New file.
48688         * tests/test-mbrtowc4.sh: New file.
48689         * tests/test-mbrtowc.c: New file.
48690
48691         New module 'mbrtowc'.
48692         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48693         mbsinit and mbrtowc.
48694         (mbrtowc): New declaration.
48695         * lib/mbrtowc.c: New file.
48696         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48697         * modules/mbrtowc: New file.
48698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48699         HAVE_MBRTOWC.
48700         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48701         HAVE_MBRTOWC.
48702         * doc/posix-functions/mbrtowc.texi: Document the new module.
48703
48704 2008-12-18  Bruno Haible  <bruno@clisp.org>
48705
48706         New module 'wctob'.
48707         * lib/wchar.in.h (wctob): New declaration.
48708         * lib/wctob.c: New file.
48709         * m4/wctob.m4: New file.
48710         * modules/wctob: New file.
48711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48712         HAVE_WCTOB.
48713         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48714         * doc/posix-functions/wctob.texi: Document the new module.
48715
48716 2008-12-18  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48719         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48720
48721 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48722
48723         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48724         G. Christensen" <tgc@jupiterrise.com>.
48725
48726         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48727         G. Christensen" <tgc@jupiterrise.com>.
48728
48729         * lib/flock.c: Need to include string.h.  Reported by "Tom
48730         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48731         <ebb9@byu.net>.
48732
48733 2008-12-18  Bruno Haible  <bruno@clisp.org>
48734
48735         * m4/locale-ja.m4: New file, from GNU gettext.
48736
48737 2008-12-17  Bruno Haible  <bruno@clisp.org>
48738
48739         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48740         Suggested by Eric Blake.
48741
48742 2008-12-17  Bruno Haible  <bruno@clisp.org>
48743
48744         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48745
48746 2008-12-17  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48749         * modules/mbsinit (Depends-on): Add verify.
48750         Suggested by Paul Eggert.
48751
48752 2008-12-17  Bruno Haible  <bruno@clisp.org>
48753
48754         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48755         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48756         gl_FUNC_MBRTOWC.
48757         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48758         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48759         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48760         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48761         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48762         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48763         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48764         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48765         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48766         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48767         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48768         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48769         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48770         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48771         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48772         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48773         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48774         * modules/trim (configure.ac): Likewise.
48775
48776 2008-12-17  Bruno Haible  <bruno@clisp.org>
48777
48778         * modules/btowc-tests: New file.
48779         * tests/test-btowc1.sh: New file.
48780         * tests/test-btowc2.sh: New file.
48781         * tests/test-btowc.c: New file.
48782
48783         New module 'btowc'.
48784         * lib/wchar.in.h (btowc): New declaration.
48785         * lib/btowc.c: New file.
48786         * m4/btowc.m4: New file.
48787         * modules/btowc: New file.
48788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48789         HAVE_BTOWC.
48790         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48791         * doc/posix-functions/btowc.texi: Document the new module.
48792
48793 2008-12-17  Bruno Haible  <bruno@clisp.org>
48794
48795         New module 'mbsinit'.
48796         * lib/wchar.in.h (mbsinit): New declaration.
48797         * lib/mbsinit.c: New file.
48798         * m4/mbsinit.m4: New file.
48799         * modules/mbsinit: New file.
48800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48801         HAVE_MBSINIT.
48802         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48803         HAVE_MBSINIT.
48804         * doc/posix-functions/mbsinit.texi: Document the new module.
48805
48806 2008-12-16  Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/unistd.in.h: Add comment.
48809         * tests/test-environ.c: Don't include <stdlib.h>.
48810
48811 2008-12-16  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/parse-duration.h (parse_duration): Document return value
48814         convention.
48815         * lib/parse-duration.c: Include specification header first. Add
48816         comments.
48817         (_): Remove macro.
48818         (parse_year_month_day, parse_hour_minute_second): Move side effects
48819         outside of strchr call.
48820         (parse_non_iso8601): Move side effects outside of isspace call.
48821         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48822         call.
48823
48824 2008-12-16  Bruno Haible  <bruno@clisp.org>
48825
48826         * tests/test-parse-duration.sh: Produce no output when the test
48827         succeeds.
48828
48829 2008-12-16  Bruno Haible  <bruno@clisp.org>
48830
48831         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48832         expressions.
48833
48834 2008-12-15  Bruno Haible  <bruno@clisp.org>
48835
48836         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48837         * doc/glibc-functions/flistxattr.texi: Likewise.
48838         * doc/glibc-functions/fopencookie.texi: Likewise.
48839         * doc/glibc-functions/fremovexattr.texi: Likewise.
48840         * doc/glibc-functions/fsetxattr.texi: Likewise.
48841         * doc/glibc-functions/getxattr.texi: Likewise.
48842         * doc/glibc-functions/lgetxattr.texi: Likewise.
48843         * doc/glibc-functions/listxattr.texi: Likewise.
48844         * doc/glibc-functions/llistxattr.texi: Likewise.
48845         * doc/glibc-functions/lremovexattr.texi: Likewise.
48846         * doc/glibc-functions/lsetxattr.texi: Likewise.
48847         * doc/glibc-functions/removexattr.texi: Likewise.
48848         * doc/glibc-functions/setxattr.texi: Likewise.
48849         * doc/posix-functions/open_memstream.texi: Likewise.
48850
48851 2008-12-15  Eric Blake  <ebb9@byu.net>
48852
48853         Update doc for cygwin 1.7.
48854         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48855         functions.
48856         * doc/posix-functions/fchmodat.texi: Likewise.
48857         * doc/posix-functions/fchownat.texi: Likewise.
48858         * doc/posix-functions/fdopendir.texi: Likewise.
48859         * doc/posix-functions/fmemopen.texi: Likewise.
48860         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48861         * doc/posix-functions/fstatat.texi: Likewise.
48862         * doc/posix-functions/futimens.texi: Likewise.
48863         * doc/posix-functions/gai_strerror.texi: Likewise.
48864         * doc/posix-functions/getaddrinfo.texi: Likewise.
48865         * doc/posix-functions/getnameinfo.texi: Likewise.
48866         * doc/posix-functions/if_freenameindex.texi: Likewise.
48867         * doc/posix-functions/if_indextoname.texi: Likewise.
48868         * doc/posix-functions/if_nameindex.texi: Likewise.
48869         * doc/posix-functions/if_nametoindex.texi: Likewise.
48870         * doc/posix-functions/insque.texi: Likewise.
48871         * doc/posix-functions/linkat.texi: Likewise.
48872         * doc/posix-functions/llrint.texi: Likewise.
48873         * doc/posix-functions/llrintf.texi: Likewise.
48874         * doc/posix-functions/llrintl.texi: Likewise.
48875         * doc/posix-functions/lockf.texi: Likewise.
48876         * doc/posix-functions/lrintl.texi: Likewise.
48877         * doc/posix-functions/mkdirat.texi: Likewise.
48878         * doc/posix-functions/mkfifoat.texi: Likewise.
48879         * doc/posix-functions/mknodat.texi: Likewise.
48880         * doc/posix-functions/mq_close.texi: Likewise.
48881         * doc/posix-functions/mq_getattr.texi: Likewise.
48882         * doc/posix-functions/mq_notify.texi: Likewise.
48883         * doc/posix-functions/mq_open.texi: Likewise.
48884         * doc/posix-functions/mq_receive.texi: Likewise.
48885         * doc/posix-functions/mq_send.texi: Likewise.
48886         * doc/posix-functions/mq_setattr.texi: Likewise.
48887         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48888         * doc/posix-functions/mq_timedsend.texi: Likewise.
48889         * doc/posix-functions/mq_unlink.texi: Likewise.
48890         * doc/posix-functions/open_memstream.texi: Likewise.
48891         * doc/posix-functions/openat.texi: Likewise.
48892         * doc/posix-functions/posix_fadvise.texi: Likewise.
48893         * doc/posix-functions/posix_fallocate.texi: Likewise.
48894         * doc/posix-functions/posix_madvise.texi: Likewise.
48895         * doc/posix-functions/posix_memalign.texi: Likewise.
48896         * doc/posix-functions/posix_openpt.texi: Likewise.
48897         * doc/posix-functions/readlinkat.texi: Likewise.
48898         * doc/posix-functions/remque.texi: Likewise.
48899         * doc/posix-functions/renameat.texi: Likewise.
48900         * doc/posix-functions/rintl.texi: Likewise.
48901         * doc/posix-functions/sem_unlink.texi: Likewise.
48902         * doc/posix-functions/shm_open.texi: Likewise.
48903         * doc/posix-functions/shm_unlink.texi: Likewise.
48904         * doc/posix-functions/signgam.texi: Likewise.
48905         * doc/posix-functions/sigset.texi: Likewise.
48906         * doc/posix-functions/stpcpy.texi: Likewise.
48907         * doc/posix-functions/stpncpy.texi: Likewise.
48908         * doc/posix-functions/strerror.texi: Likewise.
48909         * doc/posix-functions/strtod.texi: Likewise.
48910         * doc/posix-functions/symlinkat.texi: Likewise.
48911         * doc/posix-functions/unlinkat.texi: Likewise.
48912         * doc/posix-functions/utimensat.texi: Likewise.
48913         * doc/glibc-functions/bindresvport.texi: Likewise.
48914         * doc/glibc-functions/dn_expand.texi: Likewise.
48915         * doc/glibc-functions/exp10.texi: Likewise.
48916         * doc/glibc-functions/exp10f.texi: Likewise.
48917         * doc/glibc-functions/fgetxattr.texi: Likewise.
48918         * doc/glibc-functions/flistxattr.texi: Likewise.
48919         * doc/glibc-functions/fopencookie.texi: Likewise.
48920         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48921         * doc/glibc-functions/fremovexattr.texi: Likewise.
48922         * doc/glibc-functions/fsetxattr.texi: Likewise.
48923         * doc/glibc-functions/getifaddrs.texi: Likewise.
48924         * doc/glibc-functions/getxattr.texi: Likewise.
48925         * doc/glibc-functions/lgetxattr.texi: Likewise.
48926         * doc/glibc-functions/listxattr.texi: Likewise.
48927         * doc/glibc-functions/llistxattr.texi: Likewise.
48928         * doc/glibc-functions/lremovexattr.texi: Likewise.
48929         * doc/glibc-functions/lsetxattr.texi: Likewise.
48930         * doc/glibc-functions/pow10.texi: Likewise.
48931         * doc/glibc-functions/pow10f.texi: Likewise.
48932         * doc/glibc-functions/rcmd_af.texi: Likewise.
48933         * doc/glibc-functions/removexattr.texi: Likewise.
48934         * doc/glibc-functions/res_init.texi: Likewise.
48935         * doc/glibc-functions/res_mkquery.texi: Likewise.
48936         * doc/glibc-functions/res_query.texi: Likewise.
48937         * doc/glibc-functions/res_querydomain.texi: Likewise.
48938         * doc/glibc-functions/res_send.texi: Likewise.
48939         * doc/glibc-functions/rresvport_af.texi: Likewise.
48940         * doc/glibc-functions/setxattr.texi: Likewise.
48941         * doc/glibc-functions/strcasestr.texi: Likewise.
48942
48943 2008-12-15  Bruno Haible  <bruno@clisp.org>
48944
48945         Fix compilation error on OSF/1 4.0.
48946         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48947         <sys/time.h>, simply delegate to the system header.
48948         Reported by Daniel Richard G. <oss@teragram.com>.
48949
48950 2008-12-15  Bruno Haible  <bruno@clisp.org>
48951
48952         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48953         * doc/posix-functions/fchmodat.texi: Likewise.
48954         * doc/posix-functions/fchownat.texi: Likewise.
48955         * doc/posix-functions/fdopendir.texi: Likewise.
48956         * doc/posix-functions/fstatat.texi: Likewise.
48957         * doc/posix-functions/mkdirat.texi: Likewise.
48958         * doc/posix-functions/unlinkat.texi: Likewise.
48959
48960 2008-12-14  Bruno Haible  <bruno@clisp.org>
48961
48962         Update doc for POSIX:2008.
48963         * doc/posix-functions/faccessat.texi: New file.
48964         * doc/posix-functions/fchmodat.texi: New file.
48965         * doc/posix-functions/fchownat.texi: New file.
48966         * doc/posix-functions/fdopendir.texi: New file.
48967         * doc/posix-functions/fstatat.texi: New file.
48968         * doc/posix-functions/futimens.texi: New file.
48969         * doc/posix-functions/linkat.texi: New file.
48970         * doc/posix-functions/mkdirat.texi: New file.
48971         * doc/posix-functions/mkfifoat.texi: New file.
48972         * doc/posix-functions/mknodat.texi: New file.
48973         * doc/posix-functions/open_wmemstream.texi: New file.
48974         * doc/posix-functions/openat.texi: New file.
48975         * doc/posix-functions/psiginfo.texi: New file.
48976         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48977         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48978         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48979         * doc/posix-functions/readlinkat.texi: New file.
48980         * doc/posix-functions/renameat.texi: New file.
48981         * doc/posix-functions/strerror_l.texi: New file.
48982         * doc/posix-functions/symlinkat.texi: New file.
48983         * doc/posix-functions/unlinkat.texi: New file.
48984         * doc/posix-functions/utimensat.texi: New file.
48985         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48986
48987 2008-12-14  Bruno Haible  <bruno@clisp.org>
48988
48989         Update doc for POSIX:2008.
48990         * doc/posix-functions/alphasort.texi: Renamed from
48991         doc/glibc-functions/alphasort.texi.
48992         * doc/posix-functions/dirfd.texi: Renamed from
48993         doc/glibc-functions/dirfd.texi.
48994         * doc/posix-functions/dprintf.texi: Renamed from
48995         doc/glibc-functions/dprintf.texi.
48996         * doc/posix-functions/duplocale.texi: Renamed from
48997         doc/glibc-functions/duplocale.texi.
48998         * doc/posix-functions/fexecve.texi: Renamed from
48999         doc/glibc-functions/fexecve.texi.
49000         * doc/posix-functions/fmemopen.texi: Renamed from
49001         doc/glibc-functions/fmemopen.texi.
49002         * doc/posix-functions/freelocale.texi: Renamed from
49003         doc/glibc-functions/freelocale.texi.
49004         * doc/posix-functions/getdate_err.texi: Renamed from
49005         doc/glibc-functions/getdate_err.texi.
49006         * doc/posix-functions/isalnum_l.texi: Renamed from
49007         doc/glibc-functions/isalnum_l.texi.
49008         * doc/posix-functions/isalpha_l.texi: Renamed from
49009         doc/glibc-functions/isalpha_l.texi.
49010         * doc/posix-functions/isblank_l.texi: Renamed from
49011         doc/glibc-functions/isblank_l.texi.
49012         * doc/posix-functions/iscntrl_l.texi: Renamed from
49013         doc/glibc-functions/iscntrl_l.texi.
49014         * doc/posix-functions/isdigit_l.texi: Renamed from
49015         doc/glibc-functions/isdigit_l.texi.
49016         * doc/posix-functions/isgraph_l.texi: Renamed from
49017         doc/glibc-functions/isgraph_l.texi.
49018         * doc/posix-functions/islower_l.texi: Renamed from
49019         doc/glibc-functions/islower_l.texi.
49020         * doc/posix-functions/isprint_l.texi: Renamed from
49021         doc/glibc-functions/isprint_l.texi.
49022         * doc/posix-functions/ispunct_l.texi: Renamed from
49023         doc/glibc-functions/ispunct_l.texi.
49024         * doc/posix-functions/isspace_l.texi: Renamed from
49025         doc/glibc-functions/isspace_l.texi.
49026         * doc/posix-functions/isupper_l.texi: Renamed from
49027         doc/glibc-functions/isupper_l.texi.
49028         * doc/posix-functions/iswalnum_l.texi: Renamed from
49029         doc/glibc-functions/iswalnum_l.texi.
49030         * doc/posix-functions/iswalpha_l.texi: Renamed from
49031         doc/glibc-functions/iswalpha_l.texi.
49032         * doc/posix-functions/iswblank_l.texi: Renamed from
49033         doc/glibc-functions/iswblank_l.texi.
49034         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49035         doc/glibc-functions/iswcntrl_l.texi.
49036         * doc/posix-functions/iswctype_l.texi: Renamed from
49037         doc/glibc-functions/iswctype_l.texi.
49038         * doc/posix-functions/iswdigit_l.texi: Renamed from
49039         doc/glibc-functions/iswdigit_l.texi.
49040         * doc/posix-functions/iswgraph_l.texi: Renamed from
49041         doc/glibc-functions/iswgraph_l.texi.
49042         * doc/posix-functions/iswlower_l.texi: Renamed from
49043         doc/glibc-functions/iswlower_l.texi.
49044         * doc/posix-functions/iswprint_l.texi: Renamed from
49045         doc/glibc-functions/iswprint_l.texi.
49046         * doc/posix-functions/iswpunct_l.texi: Renamed from
49047         doc/glibc-functions/iswpunct_l.texi.
49048         * doc/posix-functions/iswspace_l.texi: Renamed from
49049         doc/glibc-functions/iswspace_l.texi.
49050         * doc/posix-functions/iswupper_l.texi: Renamed from
49051         doc/glibc-functions/iswupper_l.texi.
49052         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49053         doc/glibc-functions/iswxdigit_l.texi.
49054         * doc/posix-functions/isxdigit_l.texi: Renamed from
49055         doc/glibc-functions/isxdigit_l.texi.
49056         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49057         doc/glibc-functions/mbsnrtowcs.texi.
49058         * doc/posix-functions/mkdtemp.texi: Renamed from
49059         doc/glibc-functions/mkdtemp.texi.
49060         * doc/posix-functions/newlocale.texi: Renamed from
49061         doc/glibc-functions/newlocale.texi.
49062         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49063         doc/glibc-functions/nl_langinfo_l.texi.
49064         * doc/posix-functions/open_memstream.texi: Renamed from
49065         doc/glibc-functions/open_memstream.texi.
49066         * doc/posix-functions/opterr.texi: Renamed from
49067         doc/glibc-functions/opterr.texi.
49068         * doc/posix-functions/optind.texi: Renamed from
49069         doc/glibc-functions/optind.texi.
49070         * doc/posix-functions/optopt.texi: Renamed from
49071         doc/glibc-functions/optopt.texi.
49072         * doc/posix-functions/psignal.texi: Renamed from
49073         doc/glibc-functions/psignal.texi.
49074         * doc/posix-functions/scandir.texi: Renamed from
49075         doc/glibc-functions/scandir.texi.
49076         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49077         doc/glibc-functions/sched_get_priority_min.texi.
49078         * doc/posix-functions/signgam.texi: Renamed from
49079         doc/glibc-functions/signgam.texi.
49080         * doc/posix-functions/stpcpy.texi: Renamed from
49081         doc/glibc-functions/stpcpy.texi.
49082         * doc/posix-functions/stpncpy.texi: Renamed from
49083         doc/glibc-functions/stpncpy.texi.
49084         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49085         doc/glibc-functions/strcasecmp_l.texi.
49086         * doc/posix-functions/strcoll_l.texi: Renamed from
49087         doc/glibc-functions/strcoll_l.texi.
49088         * doc/posix-functions/strfmon_l.texi: Renamed from
49089         doc/glibc-functions/strfmon_l.texi.
49090         * doc/posix-functions/strftime_l.texi: Renamed from
49091         doc/glibc-functions/strftime_l.texi.
49092         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49093         doc/glibc-functions/strncasecmp_l.texi.
49094         * doc/posix-functions/strndup.texi: Renamed from
49095         doc/glibc-functions/strndup.texi.
49096         * doc/posix-functions/strnlen.texi: Renamed from
49097         doc/glibc-functions/strnlen.texi.
49098         * doc/posix-functions/strsignal.texi: Renamed from
49099         doc/glibc-functions/strsignal.texi.
49100         * doc/posix-functions/strxfrm_l.texi: Renamed from
49101         doc/glibc-functions/strxfrm_l.texi.
49102         * doc/posix-functions/timer_gettime.texi: Renamed from
49103         doc/glibc-functions/timer_gettime.texi.
49104         * doc/posix-functions/tolower_l.texi: Renamed from
49105         doc/glibc-functions/tolower_l.texi.
49106         * doc/posix-functions/toupper_l.texi: Renamed from
49107         doc/glibc-functions/toupper_l.texi.
49108         * doc/posix-functions/towctrans_l.texi: Renamed from
49109         doc/glibc-functions/towctrans_l.texi.
49110         * doc/posix-functions/towlower_l.texi: Renamed from
49111         doc/glibc-functions/towlower_l.texi.
49112         * doc/posix-functions/towupper_l.texi: Renamed from
49113         doc/glibc-functions/towupper_l.texi.
49114         * doc/posix-functions/uselocale.texi: Renamed from
49115         doc/glibc-functions/uselocale.texi.
49116         * doc/posix-functions/vdprintf.texi: Renamed from
49117         doc/glibc-functions/vdprintf.texi.
49118         * doc/posix-functions/wcpcpy.texi:
49119         Renamed from doc/glibc-functions/wcpcpy.texi.
49120         * doc/posix-functions/wcpncpy.texi: Renamed from
49121         doc/glibc-functions/wcpncpy.texi.
49122         * doc/posix-functions/wcscasecmp.texi: Renamed from
49123         doc/glibc-functions/wcscasecmp.texi.
49124         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49125         doc/glibc-functions/wcscasecmp_l.texi.
49126         * doc/posix-functions/wcscoll_l.texi: Renamed from
49127         doc/glibc-functions/wcscoll_l.texi.
49128         * doc/posix-functions/wcsdup.texi: Renamed from
49129         doc/glibc-functions/wcsdup.texi.
49130         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49131         doc/glibc-functions/wcsncasecmp.texi.
49132         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49133         doc/glibc-functions/wcsncasecmp_l.texi.
49134         * doc/posix-functions/wcsnlen.texi: Renamed from
49135         doc/glibc-functions/wcsnlen.texi.
49136         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49137         doc/glibc-functions/wcsnrtombs.texi.
49138         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49139         doc/glibc-functions/wcsxfrm_l.texi.
49140         * doc/posix-functions/wctrans_l.texi: Renamed from
49141         doc/glibc-functions/wctrans_l.texi.
49142         * doc/posix-functions/wctype_l.texi: Renamed from
49143         doc/glibc-functions/wctype_l.texi.
49144         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49145         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49146         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49147         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49148         these subsections.
49149         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49150         Remove sections.
49151
49152 2008-12-14  Bruno Haible  <bruno@clisp.org>
49153
49154         Update doc for POSIX:2008.
49155         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49156
49157 2008-12-14  Bruno Haible  <bruno@clisp.org>
49158
49159         Update doc for POSIX:2008.
49160         * doc/pastposix-functions/bcmp.texi: Renamed from
49161         doc/posix-functions/bcmp.texi.
49162         * doc/pastposix-functions/bcopy.texi: Renamed from
49163         doc/posix-functions/bcopy.texi.
49164         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49165         doc/posix-functions/bsd_signal.texi.
49166         * doc/pastposix-functions/bzero.texi: Renamed from
49167         doc/posix-functions/bzero.texi.
49168         * doc/pastposix-functions/ecvt.texi: Renamed from
49169         doc/posix-functions/ecvt.texi.
49170         * doc/pastposix-functions/fcvt.texi: Renamed from
49171         doc/posix-functions/fcvt.texi.
49172         * doc/pastposix-functions/ftime.texi: Renamed from
49173         doc/posix-functions/ftime.texi.
49174         * doc/pastposix-functions/gcvt.texi: Renamed from
49175         doc/posix-functions/gcvt.texi.
49176         * doc/pastposix-functions/getcontext.texi: Renamed from
49177         doc/posix-functions/getcontext.texi.
49178         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49179         doc/posix-functions/gethostbyaddr.texi.
49180         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49181         doc/posix-functions/gethostbyname.texi.
49182         * doc/pastposix-functions/getwd.texi: Renamed from
49183         doc/posix-functions/getwd.texi.
49184         * doc/pastposix-functions/h_errno.texi: Renamed from
49185         doc/posix-functions/h_errno.texi.
49186         * doc/pastposix-functions/index.texi: Renamed from
49187         doc/posix-functions/index.texi.
49188         * doc/pastposix-functions/makecontext.texi: Renamed from
49189         doc/posix-functions/makecontext.texi.
49190         * doc/pastposix-functions/mktemp.texi: Renamed from
49191         doc/posix-functions/mktemp.texi.
49192         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49193         doc/posix-functions/pthread_attr_getstackaddr.texi.
49194         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49195         doc/posix-functions/pthread_attr_setstackaddr.texi.
49196         * doc/pastposix-functions/rindex.texi: Renamed from
49197         doc/posix-functions/rindex.texi.
49198         * doc/pastposix-functions/scalb.texi: Renamed from
49199         doc/posix-functions/scalb.texi.
49200         * doc/pastposix-functions/setcontext.texi: Renamed from
49201         doc/posix-functions/setcontext.texi.
49202         * doc/pastposix-functions/swapcontext.texi: Renamed from
49203         doc/posix-functions/swapcontext.texi.
49204         * doc/pastposix-functions/ualarm.texi: Renamed from
49205         doc/posix-functions/ualarm.texi.
49206         * doc/pastposix-functions/usleep.texi: Renamed from
49207         doc/posix-functions/usleep.texi.
49208         * doc/pastposix-functions/vfork.texi: Renamed from
49209         doc/posix-functions/vfork.texi.
49210         * doc/pastposix-functions/wcswcs.texi: Renamed from
49211         doc/posix-functions/wcswcs.texi.
49212         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49213         (Function Substitutes): Update.
49214
49215 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49216
49217         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49218         m4/strerror.m4.
49219
49220 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49221             Bruno Haible  <bruno@clisp.org>
49222
49223         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49224
49225 2008-12-13  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/strtoull (Depends-on): Remove unistd.
49228
49229 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49230
49231         * modules/strtoull (Depends-on): Add stdlib.
49232
49233 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49234
49235         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49236
49237 2008-12-10  Jim Meyering  <meyering@redhat.com>
49238
49239         gl_ASSERT: don't say assertions are disabled when they're not
49240         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49241         "checking whether to enable assertions... no", when they are in
49242         fact enabled.  This is solely a bug in the output of configure.
49243         In spite of saying "no", NDEBUG was not defined in that case.
49244         Also, as noted by Eric Blake, leave assertions enabled upon
49245         --enable-assert=INVALID.
49246
49247 2008-12-10  Bruno Haible  <bruno@clisp.org>
49248
49249         Change MODULES.html to refer to POSIX:2008 where possible.
49250         * MODULES.html.sh (POSIX2008_URL): New variable.
49251         (posix_headers): Remove sys/timeb, ucontext.
49252         (posix2001_headers): New variable.
49253         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49254         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49255         index, makecontext, mktemp, pthread_attr_getstackaddr,
49256         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49257         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49258         (posix2001_functions): New variable.
49259         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49260         otherwise.
49261
49262 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49263
49264         add missing include to parse-duration.c
49265         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49266         * modules/parse-duration (Depends-on): Add xalloc.
49267
49268         fix sed script reading maint.mk
49269         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49270         (syntax-check-rules): Use it.
49271
49272 2008-12-09  Bruno Haible  <bruno@clisp.org>
49273
49274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49275         MacOS X 10.4/PowerPC.
49276         Reported by Simon Josefsson.
49277
49278 2008-12-08  Jim Meyering  <meyering@redhat.com>
49279
49280         work around mingw's lack of some S_IF definitions
49281         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49282         Reported by Simon Josefsson.
49283
49284 2008-12-08  Bruno Haible  <bruno@clisp.org>
49285
49286         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49287         applied to variables. Needed on MacOS X 10.4/PowerPC.
49288         Reported by Simon Josefsson.
49289
49290 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49291         and Eric Blake  <ebb9@byu.net>
49292
49293         assert: honor --enable-assert
49294         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49295         order to honor --enable-assert, rather than treating it as a
49296         synonym for --disable-assert.
49297
49298 2008-12-08  Jim Meyering  <meyering@redhat.com>
49299
49300         * lib/posixtm.c: Remove now-useless declaration of mktime.
49301
49302         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49303
49304 2008-12-07  Bruno Haible  <bruno@clisp.org>
49305
49306         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49307         test_once): Mark functions as static.
49308         * tests/test-tls.c (test_tls): Likewise.
49309
49310 2008-12-07  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49313         iconv_register_autodetect.
49314
49315 2008-12-07  Jim Meyering  <meyering@redhat.com>
49316
49317         posixtm.c: avoid a warning
49318         * lib/posixtm.c (posixtime): Don't initialize tm0.
49319         It's no longer needed to placate gcc4's -Wuninitialized,
49320         and the attempt to placate would elicit a new warning.
49321
49322         unicodeio.c: mark unused parameters
49323         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49324         (fallback_failure_callback): Likewise.
49325
49326 2008-12-07  Bruno Haible  <bruno@clisp.org>
49327
49328         * gnulib-tool (func_create_testdir): When building the tests
49329         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49330         Reported by Simon Josefsson.
49331
49332 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49333
49334         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49335
49336 2008-12-06  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49339         Suggested by Eric Blake.
49340
49341 2008-12-06  Bruno Haible  <bruno@clisp.org>
49342
49343         Fix a c-stack test failure on MacOS X.
49344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49345         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49346         handler for SIGBUS as well.
49347         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49348         install a signal handler for SIGBUS as well.
49349         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49350
49351 2008-12-06  Bruno Haible  <bruno@clisp.org>
49352
49353         Advocacy documentation.
49354         * doc/gnulib-intro.texi (Benefits): New section.
49355         * doc/gnulib.texi: Update.
49356
49357 2008-12-06  Bruno Haible  <bruno@clisp.org>
49358
49359         Document the 'manywarnings' module.
49360         * doc/manywarnings.texi: New file.
49361         * doc/gnulib.texi: Include it.
49362
49363 2008-12-05  Eric Blake  <ebb9@byu.net>
49364
49365         tests: silence some gcc warnings
49366         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49367         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49368         type mismatches.
49369
49370 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49371             Bruno Haible  <bruno@clisp.org>
49372
49373         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49374
49375 2008-11-29  Jim Meyering  <meyering@redhat.com>
49376
49377         unicodeio.c: mark unused parameters
49378         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49379         (fallback_failure_callback): Likewise.
49380
49381         fts: fix a thinko
49382         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49383         (set_stat_type): Return S_IF*-valued "type" directly.
49384         Prompted by James Youngman's spotting a related bug.
49385         Confirmed by further testing through find.
49386
49387         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49388         * lib/fts.c (D_TYPE): Define.
49389         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49390         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49391         (s_ifmt_shift_bits): New function.
49392         (set_stat_type): New function.
49393         (fts_build): When not calling fts_stat, call set_stat_type
49394         to propagate dirent.d_type info to fts_read caller.
49395         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49396         fts_statp->st_mode type information may be valid.
49397
49398 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49399
49400         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49401         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49402         <sds@gnu.org>.
49403
49404 2008-11-20  Bruno Haible  <bruno@clisp.org>
49405
49406         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49407         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49408         INCLUDE_NEXT.
49409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49410         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49411         * modules/math (Makefile.am): Substitute
49412         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49413         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49414
49415 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49416             Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/stdint.in.h: Define all type macros so that their expansion is
49419         a single typedef'ed token. Fixes a compilation failure in Boost which
49420         does "using ::int8_t;".
49421
49422 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49423
49424         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49425         gl_MANYWARN_ALL_GCC.
49426         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49427         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49428         * modules/manywarnings: New file.
49429         * MODULES.html.sh: Mention manywarnings module.
49430
49431 2008-11-18  Bruno Haible  <bruno@clisp.org>
49432
49433         * doc/gnulib-tool.texi (Unit tests): New section.
49434
49435 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49436
49437         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49438         paths like 'lib/po/foo.po'.
49439
49440 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49441
49442         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49443         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49444
49445 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49446
49447         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49448         parameter works.
49449
49450 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49451
49452         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49453
49454 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49455
49456         * modules/parse-duration-tests: New file.
49457         * tests/test-parse-duration.sh: New file.
49458         * tests/test-parse-duration.c: New file.
49459
49460         New module 'parse-duration'.
49461         * lib/parse-duration.h: New file.
49462         * lib/parse-duration.c: New file.
49463         * modules/parse-duration: New file.
49464
49465 2008-11-17  Bruno Haible  <bruno@clisp.org>
49466
49467         * tests/test-select-out.sh: Comment out the first pipe test.
49468         Reported by Simon Josefsson.
49469
49470 2008-11-17  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49474         gl_HOSTENT.
49475
49476 2008-11-17  Bruno Haible  <bruno@clisp.org>
49477
49478         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49479         -lnetwork and -lnet. Needed for Haiku and BeOS.
49480
49481 2008-11-16  Bruno Haible  <bruno@clisp.org>
49482
49483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49484
49485 2008-11-16  Bruno Haible  <bruno@clisp.org>
49486
49487         Avoid test failure on Haiku.
49488         * tests/test-fsync.c: Include <errno.h>.
49489         (main): Don't require that fsync (0) fails.
49490
49491 2008-11-15  Bruno Haible  <bruno@clisp.org>
49492
49493         New module 'hostent'.
49494         * modules/hostent: New file.
49495         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49496
49497 2008-11-15  Bruno Haible  <bruno@clisp.org>
49498
49499         New module 'servent'.
49500         * modules/servent: New file.
49501         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49502
49503 2008-11-15  Bruno Haible  <bruno@clisp.org>
49504
49505         Avoid generating same test program with two different rules.
49506         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49507         test-frexp to test-frexp-nolibm.
49508         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49509         test-frexpl to test-frexpl-nolibm.
49510
49511 2008-11-15  Bruno Haible  <bruno@clisp.org>
49512
49513         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49514         $(FREXPL_LIBM).
49515
49516 2008-11-15  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/netdb.in.h: Activate the definitions also when the system's
49519         <netdb.h> has 'struct addrinfo'.
49520         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49521         EAI_OVERFLOW or AI_NUMERICSERV.
49522         * doc/posix-headers/netdb.texi: Document the problem.
49523
49524 2008-11-15  Bruno Haible  <bruno@clisp.org>
49525
49526         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49527
49528         Make the 'sched' module work on platforms where <sched.h> exists but
49529         is incomplete (such as Haiku).
49530         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49531         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49532         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49533         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49534         HAVE_STRUCT_SCHED_PARAM.
49535         * modules/sched (Depends-on): Add include_next.
49536         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49537         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49538         * doc/posix-headers/sched.texi: Document the issue.
49539
49540 2008-11-13  Jim Meyering  <meyering@redhat.com>
49541
49542         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49543         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49544         test would fail due to the difference in the Report bugs to ...
49545         line.  The expected address is empty, "<>", while the actual
49546         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49547
49548 2008-11-12  Bruno Haible  <bruno@clisp.org>
49549
49550         lstat: don't compile lstat.c on systems lacking lstat
49551         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49552         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49553         Reported by Daniel P. Berrange via Jim Meyering.
49554
49555 2008-11-12  Jim Meyering  <meyering@redhat.com>
49556
49557         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49558
49559 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49560
49561         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49562         instead.
49563
49564 2008-11-12  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/unicodeio.c: Include unistr.h.
49567         (utf8_wctomb): Remove function.
49568         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49569
49570 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49571
49572         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49573         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49574         <bruno@clisp.org>.
49575         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49576
49577 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49578
49579         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49580         * doc/gnulib.texi: Add section for warnings.
49581
49582 2008-11-11  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/sockets.h: Add a comment.
49585
49586 2008-11-11  Karl Berry  <karl@gnu.org>
49587
49588         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49589
49590 2008-11-11  Eric Blake  <ebb9@byu.net>
49591
49592         fdl.texi: avoid git symlinks
49593         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49594
49595 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49596
49597         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49598
49599 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49600
49601         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49602         (gl_WARN_ADD): Substitute $2 if literal.
49603
49604 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49605
49606         * m4/warning.m4: Remove.
49607
49608 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49609
49610         * m4/warnings.m4: Almost complete rewrite. :-)
49611
49612 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49613
49614         * modules/warnings: New module.
49615         * m4/warnings.m4: New file.
49616         * MODULES.html.sh: Mention warnings module.
49617         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49618         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49619
49620 2008-11-10  Eric Blake  <ebb9@byu.net>
49621
49622         fdl.texi: make a symlink to the latest version
49623         * doc/standards.texi: Revert today's earlier change.
49624         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49625         * doc/fdl.texi: ...and replace this with a symlink to the newer
49626         fdl-1.3.texi.
49627
49628 2008-11-10  Bruno Haible  <bruno@clisp.org>
49629
49630         * tests/test-select-fd.c (main): Accept the result file name as fourth
49631         argument.
49632         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49633         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49634
49635 2008-11-10  Bruno Haible  <bruno@clisp.org>
49636
49637         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49638         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49639         as autoconf-substituted macros.
49640         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49641         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49642         gl_NETDB_H_DEFAULTS. Set these variables.
49643         * modules/netdb (Makefile.am): Substitute these variables.
49644
49645 2008-11-10  Eric Blake  <ebb9@byu.net>
49646
49647         standards.texi: include correct file for FDL 1.3
49648         * doc/standards.texi (GNU Free Documentation License): Change
49649         include file to pull in FDL 1.3, not 1.2.
49650
49651         fdl.texi: revert accidental change to license
49652         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49653
49654 2008-11-10  Bruno Haible  <bruno@clisp.org>
49655
49656         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49657         cross-compiling guesses also when the native compile gives no result.
49658
49659 2008-11-10  Bruno Haible  <bruno@clisp.org>
49660
49661         * lib/spawni.c (__spawni): Force variable into the stack.
49662
49663 2008-11-10  Bruno Haible  <bruno@clisp.org>
49664
49665         Add support for Haiku.
49666         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49667         glibc and BeOS, but also on Haiku.
49668         * lib/fpurge.c (fpurge): Likewise.
49669         * lib/freadable.c (freadable): Likewise.
49670         * lib/freadahead.c (freadahead): Likewise.
49671         * lib/freading.c (freading): Likewise.
49672         * lib/freadptr.c (freadptr): Likewise.
49673         * lib/freadseek.c (freadptrinc): Likewise.
49674         * lib/fseeko.c (rpl_fseeko): Likewise.
49675         * lib/fseterr.c (fseterr): Likewise.
49676         * lib/fwritable.c (fwritable): Likewise.
49677         * lib/fwriting.c (fwriting): Likewise.
49678         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49679
49680 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49681
49682         * lib/config.charset: Treat Haiku like BeOS.
49683
49684 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49685
49686         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49687         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49688
49689 2008-11-08  Bruno Haible  <bruno@clisp.org>
49690
49691         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49692         AC_CACHE_CHECK.
49693
49694 2008-11-08  Bruno Haible  <bruno@clisp.org>
49695
49696         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49697
49698 2008-11-08  Bruno Haible  <bruno@clisp.org>
49699
49700         * tests/test-select-fd.c: New file.
49701         * tests/test-select-in.sh: New file.
49702         * tests/test-select-out.sh: New file.
49703         * tests/test-select-stdin.c: New file.
49704         * modules/select-tests (Files): Add the new files.
49705         (Depends-on): Add gettimeofday.
49706         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49707         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49708         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49709
49710 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49711             Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49714
49715 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49716
49717         * build-aux/pmccabe2html: Added support for C++ source files.
49718
49719 2008-11-05  Ben Pfaff  <blp@gnu.org>
49720
49721         Fix lib/close.c build on Windows.
49722         * modules/close (Files): Add lib/w32sock.h.
49723
49724 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49725
49726         Accept Bison's NEWS format.
49727         * build-aux/announce-gen (print_news_deltas): Tweak
49728         $re_prefix.
49729
49730 2008-11-04  Bruno Haible  <bruno@clisp.org>
49731
49732         * modules/random_r (Maintainer): Add glibc.
49733
49734 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49735
49736         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49737         by karl@freefriends.org (Karl Berry).
49738         * doc/alloca.texi: Likewise.
49739         * doc/c-ctype.texi: Likewise.
49740         * doc/c-strcase.texi: Likewise.
49741         * doc/c-strcaseeq.texi: Likewise.
49742         * doc/c-strcasestr.texi: Likewise.
49743         * doc/c-strstr.texi: Likewise.
49744         * doc/c-strtod.texi: Likewise.
49745         * doc/c-strtold.texi: Likewise.
49746         * doc/ctime.texi: Likewise.
49747         * doc/error.texi: Likewise.
49748         * doc/fdl.texi: Likewise.
49749         * doc/gcd.texi: Likewise.
49750         * doc/getdate.texi: Likewise.
49751         * doc/gnulib-intro.texi: Likewise.
49752         * doc/gnulib-tool.texi: Likewise.
49753         * doc/gnulib.texi: Likewise.
49754         * doc/inet_ntoa.texi: Likewise.
49755         * doc/maintain.texi: Likewise.
49756         * doc/make-stds.texi: Likewise.
49757         * doc/quote.texi: Likewise.
49758         * doc/regexprops-generic.texi: Likewise.
49759         * doc/standards.texi: Likewise.
49760         * doc/verify.texi: Likewise.
49761         * doc/visibility.texi: Likewise.
49762         * doc/gnulib.texi (GNU Free Documentation License): Include
49763         fdl-1.3.texi instead of fdl.texi.
49764
49765 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49766
49767         * doc/fdl-1.3.texi: New file, from
49768         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49769         * modules/fdl-1.3: Add.
49770         * MODULES.html.sh: Add fdl-1.3.
49771
49772 2008-11-03  Bruno Haible  <bruno@clisp.org>
49773
49774         Make determination of absolute name of header file work with AIX xlc.
49775         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49776         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49777         preprocessing.
49778         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49779         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49780
49781 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49782
49783         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49784         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49785         <ludo@gnu.org>.
49786
49787 2008-11-02  Bruno Haible  <bruno@clisp.org>
49788
49789         Mark 'strpbrk' obsolete.
49790         * modules/strpbrk (Status, Notice): New sections.
49791         * modules/strtok_r (Depends-on): Add strpbrk.
49792
49793 2008-11-02  Bruno Haible  <bruno@clisp.org>
49794
49795         Mark 'strdup' obsolete.
49796         * modules/strdup (Status, Notice): New sections.
49797         * modules/findprog (Depends-on): Add strdup.
49798         * modules/getaddrinfo (Depends-on): Likewise.
49799         * modules/localename (Depends-on): Likewise.
49800         * modules/relocatable-lib (Depends-on): Likewise.
49801         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49802         * modules/relocatable-prog (Depends-on): Likewise.
49803         * modules/trim (Depends-on): Likewise.
49804         * modules/unictype/gen-ctype (Depends-on): Likewise.
49805         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49806
49807 2008-11-02  Bruno Haible  <bruno@clisp.org>
49808
49809         Mark 'strcspn' obsolete.
49810         * modules/strcspn (Status, Notice): New sections.
49811
49812 2008-11-02  Bruno Haible  <bruno@clisp.org>
49813
49814         Mark 'rmdir' obsolete.
49815         * modules/rmdir (Status, Notice): New sections.
49816         * modules/clean-temp (Depends-on): Add rmdir.
49817         * modules/openat (Depends-on): Likewise.
49818
49819 2008-11-02  Bruno Haible  <bruno@clisp.org>
49820
49821         Mark 'raise' obsolete.
49822         * modules/raise (Status, Notice): New sections.
49823         (Include): Specify <signal.h>.
49824         * modules/stdio (Depends-on): Add raise.
49825         * modules/write (Depends-on): Likewise.
49826
49827 2008-11-02  Bruno Haible  <bruno@clisp.org>
49828
49829         Mark 'memset' obsolete.
49830         * modules/memset (Status, Notice): New sections.
49831
49832 2008-11-02  Bruno Haible  <bruno@clisp.org>
49833
49834         Mark 'memmove' obsolete.
49835         * modules/memmove (Status, Notice): New sections.
49836         * modules/argp (Depends-on): Add memmove.
49837         * modules/argz (Depends-on): Likewise.
49838         * modules/canonicalize (Depends-on): Likewise.
49839         * modules/canonicalize-lgpl (Depends-on): Likewise.
49840         * modules/fts (Depends-on): Likewise.
49841         * modules/getcwd (Depends-on): Likewise.
49842         * modules/human (Depends-on): Likewise.
49843         * modules/regex (Depends-on): Likewise.
49844         * modules/striconveh (Depends-on): Likewise.
49845         * modules/trim (Depends-on): Likewise.
49846         * modules/unistr/u8-move (Depends-on): Likewise.
49847         * modules/unistr/u16-move (Depends-on): Likewise.
49848         * modules/unistr/u32-move (Depends-on): Likewise.
49849
49850 2008-11-02  Bruno Haible  <bruno@clisp.org>
49851
49852         Mark 'memcpy' obsolete.
49853         * modules/memcpy (Status, Notice): New sections.
49854
49855 2008-11-02  Bruno Haible  <bruno@clisp.org>
49856
49857         Mark 'memcmp' obsolete.
49858         * modules/memcmp (Status, Notice): New sections.
49859         * modules/argmatch (Depends-on): Add memchr.
49860         * modules/backupfile (Depends-on): Likewise.
49861         * modules/c-strcasestr (Depends-on): Likewise.
49862         * modules/crypto/des (Depends-on): Likewise.
49863         * modules/csharpcomp (Depends-on): Likewise.
49864         * modules/fnmatch (Depends-on): Likewise.
49865         * modules/git-merge-changelog (Depends-on): Likewise.
49866         * modules/isnand (Depends-on): Likewise.
49867         * modules/isnand-nolibm (Depends-on): Likewise.
49868         * modules/isnanf (Depends-on): Likewise.
49869         * modules/isnanf-nolibm (Depends-on): Likewise.
49870         * modules/isnanl (Depends-on): Likewise.
49871         * modules/isnanl-nolibm (Depends-on): Likewise.
49872         * modules/mbchar (Depends-on): Likewise.
49873         * modules/memcoll (Depends-on): Likewise.
49874         * modules/quotearg (Depends-on): Likewise.
49875         * modules/regex (Depends-on): Likewise.
49876         * modules/relocatable-prog (Depends-on): Likewise.
49877         * modules/same (Depends-on): Likewise.
49878         * modules/signbit (Depends-on): Likewise.
49879         * modules/strcasestr-simple (Depends-on): Likewise.
49880         * modules/unictype/gen-ctype (Depends-on): Likewise.
49881         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49882         * modules/uniname/uniname (Depends-on): Likewise.
49883         * modules/unistr/u8-cmp (Depends-on): Likewise.
49884
49885 2008-11-02  Bruno Haible  <bruno@clisp.org>
49886
49887         Mark 'memchr' obsolete.
49888         * modules/memchr (Status, Notice): New sections.
49889         * modules/argp (Depends-on): Add memchr.
49890         * modules/base64 (Depends-on): Likewise.
49891         * modules/c-strcasestr (Depends-on): Likewise.
49892         * modules/chdir-long (Depends-on): Likewise.
49893         * modules/fnmatch (Depends-on): Likewise.
49894         * modules/getsubopt (Depends-on): Likewise.
49895         * modules/git-merge-changelog (Depends-on): Likewise.
49896         * modules/glob (Depends-on): Likewise.
49897         * modules/strcasestr-simple (Depends-on): Likewise.
49898         * modules/strnlen (Depends-on): Likewise.
49899
49900 2008-11-02  Bruno Haible  <bruno@clisp.org>
49901
49902         Mark 'atexit' obsolete.
49903         * modules/atexit (Status, Notice): New sections.
49904         * modules/chdir-long (Depends-on): Add atexit.
49905         * modules/wait-process (Depends-on): Likewise.
49906
49907 2008-11-02  Bruno Haible  <bruno@clisp.org>
49908
49909         * gnulib-tool: New option --with-obsolete.
49910         (func_usage): Document it.
49911         (func_modules_transitive_closure): Drop obsolete dependencies if
49912         incobsolete is not true.
49913         (func_import): Read and save the incobsolete variable to the cache.
49914
49915 2008-11-02  Bruno Haible  <bruno@clisp.org>
49916
49917         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49918         * gnulib-tool: New option --extract-status.
49919         (func_usage): Document it.
49920         (sed_extract_prog): Recognize it.
49921         (func_get_status): New function.
49922
49923 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49924
49925         * modules/sockets (License): Change from LGPL to LGPLv2+.
49926
49927 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49928
49929         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49930
49931 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49932
49933         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49934         Mention times and sys_times.
49935         * modules/sys_times, modules/sys_times-tests: New modules.
49936         * modules/times, modules/times-tests: Likewise
49937         * m4/sys_times_h.m4: New file.
49938         * lib/sys_times.in.h: Likewise
49939         * lib/times.c: Likewise.
49940         * tests/test-sys_times.c: Likewise.
49941         * tests/test-times.c: Likewise.
49942         * doc/posix-headers/sys_times.texi: Update.
49943         * doc/posix-functions/times.texi: Update.
49944
49945 2008-10-28  Jim Meyering  <meyering@redhat.com>
49946
49947         * modules/tempname (Depends-on): Add lstat.
49948
49949         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49950
49951 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49952
49953         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49954         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49955         using idiom used elsewhere in gnulib.
49956
49957 2008-10-27  Jim Meyering  <meyering@redhat.com>
49958
49959         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49960
49961 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49962
49963         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49964         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49965         programs.
49966         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49967
49968 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49969
49970         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49971
49972 2008-10-27  Bruno Haible  <bruno@clisp.org>
49973
49974         * tests/test-lstat.c: Include <stdio.h>.
49975
49976 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49977
49978         * modules/lstat-tests: New module.
49979         * tests/test-lstat.c: New file.
49980
49981 2008-10-26  Jim Meyering  <meyering@redhat.com>
49982
49983         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49984
49985 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49986             Bruno Haible  <bruno@clisp.org>
49987
49988         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49989         * modules/configmake (Include): Add a note that the include must come
49990         after all system headers.
49991         * lib/javaversion.c: Include configmake.h after all other includes.
49992
49993 2008-10-26  Bruno Haible  <bruno@clisp.org>
49994
49995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49996         HAVE_STRUCT_RANDOM_DATA to 1.
49997         (gl_STDLIB_H): Simplify.
49998
49999 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50000
50001         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50002         substitute HAVE_STRUCT_RANDOM_DATA.
50003         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50004         random_data.
50005         * modules/stdlib (Makefile.am): Substitute
50006         HAVE_STRUCT_RANDOM_DATA.
50007
50008 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50009
50010         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50011         * doc/gnulib-intro.texi (Copyright): Likewise.
50012
50013 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50014
50015         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50016         findings.
50017
50018 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50019             Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/unistd.in.h: Include <winsock2.h>.
50022         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50023         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50024         Provide dummy declarations.
50025         (gethostname): Override.
50026         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50027         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50028         gl_PREREQ_SYS_H_WINSOCK2.
50029         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50030         * doc/posix-functions/gethostname.texi: More details.
50031
50032 2008-10-25  Bruno Haible  <bruno@clisp.org>
50033
50034         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50035         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50036         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50037
50038         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50039         here ...
50040         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50042         gl_UNISTD_H_DEFAULTS.
50043
50044 2008-10-25  Eric Blake  <ebb9@byu.net>
50045
50046         signbit: avoid spurious compiler failure
50047         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50048         declarations inside function.
50049
50050 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50051             Bruno Haible  <bruno@clisp.org>
50052
50053         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50054         * modules/random_r (Depends-on): Add stdint.
50055
50056 2008-10-24  Bruno Haible  <bruno@clisp.org>
50057
50058         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50059         Eggert.
50060         * modules/strerror (License): Likewise.
50061
50062 2008-10-24  Jim Meyering  <meyering@redhat.com>
50063
50064         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50065         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50066
50067 2008-10-24  Eric Blake  <ebb9@byu.net>
50068
50069         getgroups: fix compilation when getgroups is available
50070         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50071         but with <config.h> override of getgroups disabled.
50072
50073 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50074
50075         * doc/gnulib.texi (Header files): Add note about C++ problems.
50076         Explained by Bruno Haible <bruno@clisp.org>.
50077
50078 2008-10-23  Bruno Haible  <bruno@clisp.org>
50079
50080         Define a dummy SA_NODEFER macro on Interix.
50081         * lib/signal.in.h (SA_NODEFER): Define fallback.
50082         Reported by Aleksey Cheusov <cheusov@tut.by> via
50083         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50084
50085 2008-10-23  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/freadahead (License): Change to LGPLv2+.
50088         Suggested by Simon Josefsson.
50089
50090 2008-10-23  Jim Meyering  <meyering@redhat.com>
50091
50092         random_r: new module
50093         * modules/random_r: New file.
50094         * m4/random_r.m4: New file.
50095         * lib/random_r.c: New file, from glibc.
50096         * modules/random_r-tests: New file.
50097         * tests/test-random_r.c: New file.
50098         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50099          Declare.
50100         (RAND_MAX): Define.
50101         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50102         * modules/stdlib: Substitute them, too.
50103         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50104         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50105         * doc/glibc-functions/random_r.texi: Likewise.
50106         * doc/glibc-functions/setstate_r.texi: Likewise.
50107         * doc/glibc-functions/srandom_r.texi: Likewise.
50108         * config/srclist.txt: Mention it.
50109
50110 2008-10-23  David Lutterkort  <lutter@redhat.com>
50111
50112         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50113         link requirement
50114
50115 2008-10-23  Jim Meyering  <meyering@redhat.com>
50116
50117         selinux-h: mark parameters of stub functions as intentionally unused
50118         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50119         * lib/se-context.in.h: Likewise.
50120
50121 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50122
50123         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50124
50125 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50126
50127         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50128
50129 2008-10-22  Eric Blake  <ebb9@byu.net>
50130
50131         glthread/thread: avoid compiler warning
50132         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50133         Add unreachable abort to silence compiler.
50134
50135 2008-10-22  Eric Blake  <ebb9@byu.net>
50136
50137         netdb: also supply struct addrinfo for cygwin 1.5.x
50138         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50139         older cygwin.
50140         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50141         cygwin.
50142         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50143
50144 2008-10-22  Bruno Haible  <bruno@clisp.org>
50145
50146         * users.txt: Update entry about pspp.
50147
50148 2008-10-21  Bruno Haible  <bruno@clisp.org>
50149
50150         Simplification.
50151         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50152         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50153
50154         Simplification.
50155         * lib/ioctl.c (ioctl): Don't undefine.
50156         * lib/socket.c (socket): Don't undefine.
50157
50158         Remove unused module indicator macros.
50159         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50160         GNULIB_$1 as a C macro.
50161
50162         * doc/posix-functions/close.texi: Undo last change.
50163         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50164         Windows platforms.
50165
50166 2008-10-21  Bruno Haible  <bruno@clisp.org>
50167
50168         Add gethostname() declaration to <unistd.h>.
50169         * lib/unistd.in.h (gethostname): New declaration.
50170         * lib/gethostname.c: Include <unistd.h>.
50171         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50172         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50174         and HAVE_GETHOSTNAME.
50175         * modules/gethostname (Depends-on): Add unistd.
50176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50177         (Include): Specify <unistd.h>.
50178         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50179         HAVE_GETHOSTNAME.
50180         * tests/test-gethostname.c: Include <unistd.h> first.
50181
50182 2008-10-21  Bruno Haible  <bruno@clisp.org>
50183
50184         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50185         * modules/select-tests (Depends-on): Likewise.
50186         Reported by Simon Josefsson.
50187
50188 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50189
50190         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50191         * lib/accept.c: New file, based on winsock.c.
50192         * lib/bind.c: New file, based on winsock.c.
50193         * lib/connect.c: New file, based on winsock.c.
50194         * lib/getpeername.c: New file, based on winsock.c.
50195         * lib/getsockname.c: New file, based on winsock.c.
50196         * lib/getsockopt.c: New file, based on winsock.c.
50197         * lib/ioctl.c: New file, based on winsock.c.
50198         * lib/listen.c: New file, based on winsock.c.
50199         * lib/recv.c: New file, based on winsock.c.
50200         * lib/recvfrom.c: New file, based on winsock.c.
50201         * lib/send.c: New file, based on winsock.c.
50202         * lib/sendto.c: New file, based on winsock.c.
50203         * lib/setsockopt.c: New file, based on winsock.c.
50204         * lib/shutdown.c: New file, based on winsock.c.
50205         * lib/socket.c: New file, based on winsock.c.
50206         * lib/w32sock.h: New file, based on winsock.c.
50207         * lib/winsock.c: Remove file.
50208         * modules/accept: Likewise.
50209         * modules/bind: Likewise.
50210         * modules/connect: Likewise.
50211         * modules/getpeername: Likewise.
50212         * modules/getsockname: Likewise.
50213         * modules/getsockopt: Likewise.
50214         * modules/ioctl: Likewise.
50215         * modules/listen: Likewise.
50216         * modules/recv: Likewise.
50217         * modules/recvfrom: Likewise.
50218         * modules/send: Likewise.
50219         * modules/sendto: Likewise.
50220         * modules/setsockopt: Likewise.
50221         * modules/shutdown: Likewise.
50222         * modules/socket: Use socket.c instead of winsock.c.
50223         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50224         * doc/posix-functions/accept.texi: Doc fix.
50225         * doc/posix-functions/bind.texi: Doc fix.
50226         * doc/posix-functions/close.texi: Doc fix.
50227         * doc/posix-functions/connect.texi: Doc fix.
50228         * doc/posix-functions/getpeername.texi: Doc fix.
50229         * doc/posix-functions/getsockname.texi: Doc fix.
50230         * doc/posix-functions/getsockopt.texi: Doc fix.
50231         * doc/posix-functions/ioctl.texi: Doc fix.
50232         * doc/posix-functions/listen.texi: Doc fix.
50233         * doc/posix-functions/recv.texi: Doc fix.
50234         * doc/posix-functions/recvfrom.texi: Doc fix.
50235         * doc/posix-functions/send.texi: Doc fix.
50236         * doc/posix-functions/sendto.texi: Doc fix.
50237         * doc/posix-functions/setsockopt.texi: Doc fix.
50238         * doc/posix-functions/shutdown.texi: Doc fix.
50239         * doc/posix-functions/socket.texi: Doc fix.
50240
50241 2008-10-20  Bruno Haible  <bruno@clisp.org>
50242
50243         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50244         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50245         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50246         as an alias for SIGABRT.
50247         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50248         (sigaction): Map it to SIGABRT.
50249         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50250
50251 2008-10-20  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/fts.c: Don't include lstat.h.
50254         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50255
50256         Move the lstat() declaration to <sys/stat.h>.
50257         * lib/lstat.h: Remove file.
50258         * lib/sys_stat.in.h: Add special invocation convention.
50259         (lstat): New declaration.
50260         * lib/lstat.c (orig_lstat): New function.
50261         (rpl_lstat): Use orig_lstat instead of lstat.
50262         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50263         AC_C_INLINE. Set REPLACE_LSTAT.
50264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50265         and REPLACE_LSTAT.
50266         * modules/lstat (Files): Remove lib/lstat.h.
50267         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50268         (Include): Specify <sys/stat.h> instead of lstat.h.
50269         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50270         REPLACE_LSTAT.
50271         * NEWS: Mention the change.
50272
50273 2008-10-20  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/posix_spawn-tests: New file.
50276         * tests/test-posix_spawn3.c: New file.
50277
50278 2008-10-20  Bruno Haible  <bruno@clisp.org>
50279
50280         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50281         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50282         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50283         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50284         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50285
50286 2008-10-20  Bruno Haible  <bruno@clisp.org>
50287
50288         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50289         of posix_spawn on AIX 5.3.
50290
50291 2008-10-20  Bruno Haible  <bruno@clisp.org>
50292
50293         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50294
50295 2008-10-20  Bruno Haible  <bruno@clisp.org>
50296
50297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50298         of AC_LANG_PROGRAM.
50299
50300 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50301
50302         * lib/netdb.in.h: Don't define GNU specific constants until they
50303         are supported or needed.  Reported by Bruno Haible
50304         <bruno@clisp.org>.
50305
50306 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50307
50308         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50309
50310 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50311
50312         * lib/getaddrinfo.h: Remove file.
50313         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50314         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50315         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50316         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50317         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50318         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50319         * tests/test-getaddrinfo.c: Likewise.
50320         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50321         * NEWS: Mention change.
50322
50323 2008-10-19  Bruno Haible  <bruno@clisp.org>
50324
50325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50326
50327 2008-10-19  Bruno Haible  <bruno@clisp.org>
50328
50329         * lib/wait-process.c: Include simply <sys/wait.h>.
50330         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50331         WIFSTOPPED): Remove fallback definitions.
50332         * modules/wait-process (Depends-on): Add sys_wait.
50333
50334         New module 'sys_wait'.
50335         * modules/sys_wait: New file.
50336         * lib/sys_wait.in.h: New file, partially copied from
50337         lib/wait-process.c.
50338         * m4/sys_wait_h.m4: New file.
50339         * doc/posix-headers/sys_wait.texi: Mention the new module.
50340
50341 2008-10-19  Bruno Haible  <bruno@clisp.org>
50342
50343         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50344
50345 2008-10-19  Bruno Haible  <bruno@clisp.org>
50346
50347         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50348         * lib/wait-process.c (WAIT_T): Remove type.
50349         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50350         (wait_subprocess): Update.
50351
50352 2008-10-19  Bruno Haible  <bruno@clisp.org>
50353
50354         New module 'atoll'.
50355         * modules/atoll: New file.
50356         * lib/stdlib.in.h (atoll): New declaration.
50357         * lib/atoll.c: New file, from glibc with modifications.
50358         * m4/atoll.m4: New file.
50359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50360         HAVE_ATOLL.
50361         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50362         * doc/posix-functions/atoll.texi: Mention the new module.
50363
50364 2008-10-19  Bruno Haible  <bruno@clisp.org>
50365
50366         Add strtoull() declaration to <stdlib.h>.
50367         * lib/stdlib.in.h (strtoull): New declaration.
50368         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50369         Set HAVE_STRTOULL.
50370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50371         HAVE_STRTOULL.
50372         * modules/strtoull (Depends-on): Add stdlib.
50373         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50374         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50375         HAVE_STRTOULL.
50376
50377 2008-10-19  Bruno Haible  <bruno@clisp.org>
50378
50379         Add strtoll() declaration to <stdlib.h>.
50380         * lib/stdlib.in.h (strtoll): New declaration.
50381         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50382         Set HAVE_STRTOLL.
50383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50384         HAVE_STRTOLL.
50385         * modules/strtoll (Depends-on): Add stdlib.
50386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50387         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50388
50389 2008-10-19  Bruno Haible  <bruno@clisp.org>
50390
50391         * modules/bcopy (Depends-on): Add strings.
50392         (Include): Specify <strings.h>.
50393
50394 2008-10-19  Bruno Haible  <bruno@clisp.org>
50395
50396         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50397
50398 2008-10-19  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50401         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50402         mingw.
50403
50404 2008-10-19  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/atanl.c: Don't include isnanl.h.
50407         * lib/cosl.c: Likewise.
50408         * lib/ldexpl.c: Likewise.
50409         * lib/logl.c: Likewise.
50410         * lib/sinl.c: Likewise.
50411         * lib/sqrtl.c: Likewise.
50412         * lib/tanl.c: Likewise.
50413
50414         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50415         * lib/isnanf.h: Remove file.
50416         * lib/isnand.h: Remove file.
50417         * lib/isnanl.h: Remove file.
50418         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50419         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50420         macros.
50421         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50422         HAVE_ISNANF, don't define it as a C macro.
50423         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50424         HAVE_ISNAND, don't define it as a C macro.
50425         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50426         HAVE_ISNANL, don't define it as a C macro.
50427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50428         HAVE_ISNAN[FDL].
50429         * modules/isnanf (Files): Remove lib/isnanf.h.
50430         (Depends-on): Add math.
50431         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50432         (Include): Specify <math.h> instead of isnanf.h.
50433         * modules/isnand (Files): Remove lib/isnand.h.
50434         (Depends-on): Add math.
50435         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50436         (Include): Specify <math.h> instead of isnand.h.
50437         * modules/isnanl (Files): Remove lib/isnanl.h.
50438         (Depends-on): Add math.
50439         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50440         (Include): Specify <math.h> instead of isnanl.h.
50441         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50442         HAVE_ISNAN[FDL].
50443         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50444         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50445         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50446         * NEWS: Mention the change.
50447
50448 2008-10-18  Bruno Haible  <bruno@clisp.org>
50449
50450         Add getusershell(), setusershell(), endusershell() declarations to
50451         <unistd.h>.
50452         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50453         declarations.
50454         * lib/getusershell.c: Include unistd.h.
50455         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50456         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50457         HAVE_GETUSERSHELL.
50458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50459         and HAVE_GETUSERSHELL.
50460         * modules/getusershell (Depends-on): Add unistd, extensions.
50461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50462         (Include): Specify <unistd.h>.
50463         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50464         HAVE_GETUSERSHELL.
50465
50466 2008-10-18  Bruno Haible  <bruno@clisp.org>
50467
50468         Add a getloadavg() declaration to <stdlib.h>.
50469         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50470         getloadavg declaration.
50471         (getloadavg): New declaration.
50472         * lib/getloadavg.c: Include <stdlib.h> first.
50473         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50474         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50475         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50477         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50478         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50480         (Include): Specify <stdlib.h>.
50481         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50482         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50483
50484 2008-10-18  Bruno Haible  <bruno@clisp.org>
50485
50486         * lib/dirchownmod.c: Don't include lchmod.h.
50487
50488         Move the lchmod() declaration to <sys/stat.h>.
50489         * lib/lchmod.h: Remove file.
50490         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50491         (lchmod): New declaration, moved here from lib/lchown.h.
50492         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50493         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50494         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50495         and HAVE_LCHMOD.
50496         * modules/lchmod (Files): Remove lib/lchmod.h.
50497         (Depends-on): Add sys_stat, extensions.
50498         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50499         (Include): Specify <sys/stat.h> instead of lchmod.h.
50500         * modules/sys_stat (Depends-on): Add link-warning.
50501         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50502         definition of GL_LINK_WARNING.
50503         * NEWS: Mention the change.
50504
50505 2008-10-18  Bruno Haible  <bruno@clisp.org>
50506
50507         * lib/fchdir.c: Don't include dirfd.h.
50508         * lib/fts.c: Likewise.
50509         * lib/getcwd.c: Likewise.
50510         * lib/glob.c: Likewise.
50511
50512         Move the dirfd() declaration to <dirent.h>.
50513         * lib/dirfd.h: Remove file.
50514         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50515         (dirfd): New declaration.
50516         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50517         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50518         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50519         HAVE_DECL_DIRFD.
50520         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50521         HAVE_DECL_DIRFD.
50522         * modules/dirfd (Files): Remove lib/dirfd.h.
50523         (Depends-on): Add dirent, extensions.
50524         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50525         (Include): Specify <dirent.h> instead of dirfd.h.
50526         * modules/dirent (Depends-on): Add link-warning.
50527         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50528         definition of GL_LINK_WARNING.
50529         * NEWS: Mention the change.
50530
50531 2008-10-18  Bruno Haible  <bruno@clisp.org>
50532
50533         Move the euidaccess() declaration to <unistd.h>.
50534         * lib/euidaccess.h: Remove file.
50535         * lib/unistd.in.h (euidaccess): New declaration.
50536         * lib/euidaccess.c: Don't include euidaccess.h.
50537         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50538         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50540         and HAVE_EUIDACCESS.
50541         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50542         (Depends-on): Add unistd.
50543         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50544         (Include): Specify <unistd.h> instead of euidaccess.h.
50545         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50546         HAVE_EUIDACCESS.
50547         * NEWS: Mention the change.
50548
50549 2008-10-18  Bruno Haible  <bruno@clisp.org>
50550
50551         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50552
50553         Move the getdomainname() declaration to <unistd.h>.
50554         * lib/getdomainname.h: Remove file.
50555         * lib/unistd.in.h (getdomainname): New declaration.
50556         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50557         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50558         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50559         HAVE_GETDOMAINNAME.
50560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50561         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50562         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50563         (Depends-on): Add unistd, extensions.
50564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50565         (Includes): Specify <unistd.h> instead of getdomainname.h.
50566         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50567         HAVE_GETDOMAINNAME.
50568         * NEWS: Mention the change.
50569
50570 2008-10-18  Bruno Haible  <bruno@clisp.org>
50571
50572         * modules/dirent: New file.
50573         * m4/dirent_h.m4: New file.
50574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50575         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50576         * modules/fchdir (Files): Remove lib/dirent.in.h.
50577         (Depends-on): Add dirent.
50578         (Makefile.am): Move rules to modules/dirent.
50579         * doc/posix-headers/dirent.texi: Mention the new module.
50580
50581 2008-10-18  Bruno Haible  <bruno@clisp.org>
50582
50583         Avoid -Wunused-parameter warnings in public gnulib header files.
50584         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50585         macro.
50586         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50587
50588 2008-10-18  Bruno Haible  <bruno@clisp.org>
50589
50590         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50591         * doc/glibc-functions/error.texi: Mention the module 'error'.
50592         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50593         * doc/glibc-functions/getdomainname.texi: Mention the module
50594         'getdomainname'.
50595         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50596         * doc/glibc-functions/getpagesize.texi: Mention the module
50597         'getpagesize'.
50598         * doc/glibc-functions/getusershell.texi: Mention the module
50599         'getusershell'.
50600         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50601         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50602         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50603         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50604         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50605         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50606         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50607         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50608         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50609         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50610         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50611         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50612         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50613         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50614
50615 2008-10-17  Bruno Haible  <bruno@clisp.org>
50616
50617         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50618         HP-UX and IRIX, use -0.0L.
50619         * tests/test-ceill.c (minus_zero): Likewise.
50620         * tests/test-floorl.c (minus_zero): Likewise.
50621         * tests/test-frexpl.c (minus_zero): Likewise.
50622         * tests/test-isnan.c (minus_zerol): Likewise.
50623         * tests/test-isnanl.h (minus_zero): Likewise.
50624         * tests/test-ldexpl.c (minus_zero): Likewise.
50625         * tests/test-roundl.c (minus_zero): Likewise.
50626         * tests/test-signbit.c (minus_zerol): Likewise.
50627         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50628         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50629         * tests/test-truncl.c (minus_zero): Likewise.
50630         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50631         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50632         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50633         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50634
50635 2008-10-17  Bruno Haible  <bruno@clisp.org>
50636
50637         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50638         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50639         that it gets activated only for gcc >= 3.0.
50640         * lib/dirent.in.h: Likewise.
50641         * lib/errno.in.h: Likewise.
50642         * lib/fcntl.in.h: Likewise.
50643         * lib/float.in.h: Likewise.
50644         * lib/iconv.in.h: Likewise.
50645         * lib/inttypes.in.h: Likewise.
50646         * lib/locale.in.h: Likewise.
50647         * lib/math.in.h: Likewise.
50648         * lib/netdb.in.h: Likewise.
50649         * lib/netinet_in.in.h: Likewise.
50650         * lib/search.in.h: Likewise.
50651         * lib/signal.in.h: Likewise.
50652         * lib/spawn.in.h: Likewise.
50653         * lib/stdarg.in.h: Likewise.
50654         * lib/stdint.in.h: Likewise.
50655         * lib/stdio.in.h: Likewise.
50656         * lib/stdlib.in.h: Likewise.
50657         * lib/string.in.h: Likewise.
50658         * lib/strings.in.h: Likewise.
50659         * lib/sys_file.in.h: Likewise.
50660         * lib/sys_ioctl.in.h: Likewise.
50661         * lib/sys_select.in.h: Likewise.
50662         * lib/sys_socket.in.h: Likewise.
50663         * lib/sys_stat.in.h: Likewise.
50664         * lib/sys_time.in.h: Likewise.
50665         * lib/sysexits.in.h: Likewise.
50666         * lib/time.in.h: Likewise.
50667         * lib/unistd.in.h: Likewise.
50668         * lib/wchar.in.h: Likewise.
50669         * lib/wctype.in.h: Likewise.
50670         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50671
50672 2008-10-17  Jim Meyering  <meyering@redhat.com>
50673
50674         ignore-value: don't depend on inline module
50675         * modules/ignore-value (Depends-on): Remove 'inline'.
50676         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50677         Suggestion from Bruno Haible.
50678
50679 2008-10-17  Bruno Haible  <bruno@clisp.org>
50680
50681         New implementation of condition variables for Win32.
50682         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50683         (gl_linked_waitqueue_t): New type.
50684         (gl_cond_t): Use it.
50685         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50686         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50687         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50688         (glthread_cond_init_func, glthread_cond_wait_func,
50689         glthread_cond_timedwait_func, glthread_cond_signal_func,
50690         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50691         Reimplemented on the basis of gl_linked_waitqueue_t.
50692         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50693         gl_waitqueue_t.
50694         (gl_rwlock_t): Update.
50695         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50696
50697 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50698
50699         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50700         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50701
50702 2008-10-17  Jim Meyering  <meyering@redhat.com>
50703
50704         ignore-value: new module
50705         * modules/ignore-value: New file.
50706         * lib/ignore-value.h: New file.
50707         * MODULES.html.sh (Compiler warning management): New section,
50708         just for this module.  More to come.
50709
50710 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50711
50712         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50713         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50714         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50715
50716 2008-10-16  Jim Meyering  <meyering@redhat.com>
50717
50718         openat-die.c: avoid 'no previous prototype' warning
50719         * lib/openat-die.c: Include "openat.h".
50720         Reported by Reuben Thomas <rrt@sc3d.org>.
50721
50722 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50723
50724         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50725         * lib/netdb.in.h: Fix typo.
50726         Reported by Bruno Haible  <bruno@clisp.org>
50727
50728         * lib/netdb.in.h: Include sys/socket.h for platforms without
50729         netdb.h, to get structures like hostent on MinGW.
50730         * modules/netdb (Depends-on): Add sys_socket.
50731
50732 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50733
50734         * modules/netdb, modules/netdb-tests: New file.
50735         * m4/netdb_h.m4: New file.
50736         * lib/netdb.in.h: Add, currently just an empty file pending
50737         definitions.
50738         * tests/test-netdb.c: New file.
50739         * doc/posix-headers/netdb.texi: Mention that we replace it if
50740         needed.
50741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50742         netdb.
50743
50744 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50745
50746         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50747         with code.
50748
50749 2008-10-13  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/glthread/cond.c (glthread_cond_wait_func,
50752         glthread_cond_timedwait_func): Add a comment.
50753
50754 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50755
50756         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50757         * tests/test-select.c: Likewise,
50758
50759 2008-10-13  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/glthread/cond.c (glthread_cond_wait_func,
50762         glthread_cond_timedwait_func): Fix variable name.
50763         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50764
50765 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50766
50767         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50769         struct sockaddr.sa_len.
50770         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50771
50772 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50773
50774         * build-aux/pmccabe2html: Add css and css_url parameters.
50775
50776 2008-10-12  Bruno Haible  <bruno@clisp.org>
50777
50778         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50779         calling aclx_get.
50780         Reported by Rainer Tammer <tammer@tammer.net>.
50781
50782 2008-10-12  Bruno Haible  <bruno@clisp.org>
50783
50784         Use msvcrt aware primitives for creation/termination of Win32 threads.
50785         * lib/glthread/thread.c: Include <process.h>.
50786         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50787         (wrapper_func): Update signature.
50788         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50789
50790 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         Provide a Win32 implementation of the 'cond' module.
50794         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50795         * lib/glthread/cond.c (glthread_cond_init_func,
50796         glthread_cond_wait_func, glthread_cond_timedwait_func,
50797         glthread_cond_signal_func, glthread_cond_broadcast_func,
50798         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50799         * modules/cond (Dependencies): Add gettimeofday.
50800
50801 2008-10-11  Bruno Haible  <bruno@clisp.org>
50802
50803         Make sleep work on older versions of mingw.
50804         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50805         only whether it exists.
50806         * doc/posix-functions/sleep.texi: Mention the problem with older
50807         versions of mingw.
50808
50809 2008-10-11  Bruno Haible  <bruno@clisp.org>
50810
50811         New module 'shutdown'.
50812         * modules/shutdown: New file.
50813         * lib/sys_socket.in.h (shutdown): New declaration.
50814         * lib/winsock.c (shutdown): New function.
50815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50816         GNULIB_SHUTDOWN.
50817         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50818         * doc/posix-functions/shutdown.texi: Document the new module.
50819
50820 2008-10-11  Jim Meyering  <meyering@redhat.com>
50821
50822         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50823
50824 2008-10-11  Bruno Haible  <bruno@clisp.org>
50825
50826         New module 'fclose'.
50827         * modules/fclose: New file.
50828         * lib/stdio.in.h (fclose): New declaration.
50829         * lib/fclose.c: New file.
50830         * m4/fclose.m4: New file.
50831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50832         REPLACE_FCLOSE.
50833         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50834         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50835         REPLACE_FCLOSE.
50836         * modules/close (Depends-on): fclose.
50837         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50838
50839 2008-10-11  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50842         set errno and don't call _close.
50843
50844 2008-10-10  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50847         ACL, not afterwards. Fixes test failure on Cygwin.
50848
50849 2008-10-09  Ben Pfaff  <blp@gnu.org>
50850
50851         * build-aux/announce-gen: Fix gnulib version related part of usage
50852         message.  Die with a useful error message if no tarballs are
50853         found.
50854
50855 2008-10-10  Jim Meyering  <meyering@redhat.com>
50856
50857         bootstrap: use git's --depth=N option only if it's supported
50858         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50859         recognize the --depth option.  Reported by Pádraig Brady.
50860
50861 2008-10-09  Bruno Haible  <bruno@clisp.org>
50862
50863         New module 'ioctl'.
50864         * modules/ioctl: New file.
50865         * lib/sys_socket.in.h (ioctl): Remove declaration.
50866         * lib/winsock.c: Include <sys/ioctl.h>.
50867         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50868         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50869         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50870         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50871         * doc/posix-functions/ioctl.texi: Mention the new module.
50872
50873 2008-10-09  Bruno Haible  <bruno@clisp.org>
50874
50875         New module 'sys_ioctl'.
50876         * lib/sys_ioctl.in.h: New file.
50877         * m4/sys_ioctl_h.m4: New file.
50878         * modules/sys_ioctl: New file.
50879         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50880
50881 2008-10-09  Bruno Haible  <bruno@clisp.org>
50882
50883         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50884         * lib/winsock.c: Include <stdarg.h>.
50885         (rpl_ioctl): Change to second argument 'int' and then varargs.
50886
50887 2008-10-09  Bruno Haible  <bruno@clisp.org>
50888
50889         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50890         when the sys_socket module is present and the system has <winsock2.h>.
50891
50892 2008-10-09  Bruno Haible  <bruno@clisp.org>
50893
50894         * doc/posix-functions/close.texi: Mention module 'close' instead of
50895         module 'sys_socket'.
50896
50897 2008-10-09  Bruno Haible  <bruno@clisp.org>
50898
50899         * doc/glibc-headers/sys_ioctl.texi: New file.
50900         * doc/gnulib.texi: Include it.
50901
50902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50903             Bruno Haible  <bruno@clisp.org>
50904
50905         Combine the two replacements of 'close'.
50906         * lib/sys_socket.in.h (close): Define to a reminder to include
50907         <unistd.h>.
50908         (_gl_close_fd_maybe_socket): New declaration.
50909         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50910         * lib/winsock.c (close): Remove undefinition.
50911         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50912         needed for the gnulib module 'close'.
50913         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50914         define to an error symbol or to a warning, if suitable.
50915         * lib/close.c: Include <sys/socket.h>.
50916         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50917         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50918         UNISTD_H_HAVE_WINSOCK2_H.
50919         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50921         UNISTD_H_HAVE_WINSOCK2_H.
50922         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50923         (configure.ac): Set a module indicator.
50924         (Makefile.am): Substitute GNULIB_CLOSE.
50925         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50926         * modules/poll-tests (Depends-on): Add close.
50927         * modules/select-tests (Depends-on): Likewise.
50928
50929 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50930             Bruno Haible  <bruno@clisp.org>
50931
50932         New module 'close'.
50933         * modules/close: New file.
50934         * lib/unistd.in.h (close): Move declaration out of the
50935         FCHDIR_REPLACEMENT scope.
50936         (_gl_unregister_fd): New declaration.
50937         * lib/close.c: New file.
50938         * lib/fchdir.c (rpl_close): Remove function.
50939         * m4/close.m4: New file.
50940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50941         close.
50942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50943         REPLACE_CLOSE.
50944         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50945         REPLACE_CLOSE.
50946         * modules/fchdir (Depends-on): Add close.
50947
50948 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50949             Bruno Haible  <bruno@clisp.org>
50950
50951         * lib/fcntl.in.h (open): Simplify conditionals.
50952         (_gl_register_fd): New declaration.
50953         * lib/fchdir.c (rpl_open): Remove function.
50954         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50955         also.
50956         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50958         open.
50959
50960 2008-10-09  Jim Meyering  <meyering@redhat.com>
50961
50962         GNUmakefile: use the more name-space-friendly "_version"
50963         * top/GNUmakefile (_dummy): Update.
50964         (_version): Rename from "version".
50965
50966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50967             Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50970         rpl_close.
50971         (_gl_register_fd): New function, extracted from rpl_open.
50972         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50973         (rpl_open, rpl_opendir): Use _gl_register_fd.
50974
50975 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50976
50977         Fix organization of 'open' replacement.
50978         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50979         (gl_FUNC_OPEN): Use it.
50980         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50981
50982 2008-10-08  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50985
50986 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50987
50988         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50989         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50990         listen).
50991
50992 2008-10-08  Eric Blake  <ebb9@byu.net>
50993
50994         GNUmakefile: add 'make version' target
50995         * top/GNUmakefile (_curr-ver): Split version update rules...
50996         (version): ...into a target.
50997
50998 2008-10-07  Bruno Haible  <bruno@clisp.org>
50999
51000         Use a more portable replacement expression for -0.0L.
51001         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51002         instead of -0.0L. Fix m4 quotation.
51003
51004         * tests/test-signbit.c: Include <float.h>.
51005         (minus_zero): New variable.
51006         (test_signbitl): Use minus_zero instead of -zero.
51007         * modules/signbit-tests (Depends-on): Add float.
51008
51009         * tests/test-ceill.c: Include <float.h>.
51010         (zero): Remove variable.
51011         (minus_zero): New variable.
51012         (main): Use minus_zero instead of -zero.
51013         * modules/ceill-tests (Depends-on): Add float.
51014
51015         * tests/test-floorl.c: Include <float.h>.
51016         (zero): Remove variable.
51017         (minus_zero): New variable.
51018         (main): Use minus_zero instead of -zero.
51019         * modules/floorl-tests (Depends-on): Add float.
51020
51021         * tests/test-roundl.c: Include <float.h>.
51022         (zero): Remove variable.
51023         (minus_zero): New variable.
51024         (main): Use minus_zero instead of -zero.
51025         * modules/roundl-tests (Depends-on): Add float.
51026
51027         * tests/test-truncl.c: Include <float.h>.
51028         (zero): Remove variable.
51029         (minus_zero): New variable.
51030         (main): Use minus_zero instead of -zero.
51031         * modules/truncl-tests (Depends-on): Add float.
51032
51033         * tests/test-frexpl.c (zero): Remove variable.
51034         (minus_zero): New variable.
51035         (main): Use minus_zero instead of -zero.
51036         * modules/frexpl-tests (Depends-on): Add float.
51037
51038         * tests/test-isnan.c (zerol): Remove variable.
51039         (minus_zerol): New variable.
51040         (test_long_double): Use minus_zerol instead of -zerol.
51041         * modules/isnan-tests (Depends-on): Add float.
51042
51043         * tests/test-isnanl.h (zero): Remove variable.
51044         (minus_zero): New variable.
51045         (main): Use minus_zero instead of -zero.
51046         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51047         * modules/isnanl-tests (Depends-on): Add float.
51048
51049         * tests/test-ldexpl.c (zero): Remove variable.
51050         (minus_zero): New variable.
51051         (main): Use minus_zero instead of -zero.
51052         * modules/ldexpl-tests (Depends-on): Add float.
51053
51054         * tests/test-snprintf-posix.h (zerol): Remove variable.
51055         (minus_zerol): New variable.
51056         (test_function): Use minus_zerol instead of -zerol.
51057         * modules/snprintf-posix-tests (Depends-on): Add float.
51058         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51059
51060         * tests/test-sprintf-posix.h (zerol): Remove variable.
51061         (minus_zerol): New variable.
51062         (test_function): Use minus_zerol instead of -zerol.
51063         * modules/sprintf-posix-tests (Depends-on): Add float.
51064         * modules/vsprintf-posix-tests (Depends-on): Add float.
51065
51066         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51067         (minus_zerol): New variable.
51068         (test_function): Use minus_zerol instead of -zerol.
51069         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51070
51071         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51072         (minus_zerol): New variable.
51073         (test_function): Use minus_zerol instead of -zerol.
51074         * modules/vasprintf-posix-tests (Depends-on): Add float.
51075
51076 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51077
51078         * MODULES.html.sh (Support for building documentation): Mention
51079         pmccabe2html.  Sort entries.
51080
51081         Add pmccabe2html module, from gnupdf.
51082         * build-aux/pmccabe.css: New file.
51083         * build-aux/pmccabe2html: New file.
51084         * m4/pmccabe2html.m4: New file.
51085         * modules/pmccabe2html: New file.
51086
51087 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51088
51089         flock: new module
51090         * MODULES.html.sh: Add to list of modules.
51091         * lib/flock.c: flock implementation for Windows and Unix systems
51092         which have fcntl.
51093         * doc/glibc-functions/flock.texi: Update documentation.
51094         * lib/sys_file.in.h: <sys/file.h> header file.
51095         * m4/flock.m4: M4 macros.
51096         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51097         * modules/flock: flock module.
51098         * modules/flock-tests: flock tests module.
51099         * modules/sys_file: sys/file.h module.
51100         * tests/test-flock.c: test suite for flock.
51101
51102 2008-10-06  Jim Meyering  <meyering@redhat.com>
51103
51104         bootstrap: check for LT_INIT more portably still ;-)
51105         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51106         Spotted by Bruno Haible.
51107
51108 2008-10-06  Eric Blake  <ebb9@byu.net>
51109
51110         test-signbit: avoid tripping Irix cc bug on -0.0L
51111         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51112         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51113         entire testsuite consistent and avoids an Irix 6.2 bug.
51114
51115 2008-10-05  Bruno Haible  <bruno@clisp.org>
51116             Jim Meyering  <jim@meyering.net>
51117
51118         Add an option for ignoring EPIPE during close_stdout.
51119         * lib/closeout.h: Include <stdbool.h>.
51120         (close_stdout_set_ignore_EPIPE): New declaration.
51121         * lib/closeout.c: Include <stdbool.h>.
51122         (ignore_EPIPE): New variable.
51123         (close_stdout_set_ignore_EPIPE): New function.
51124         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51125         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51126         failure.
51127         * modules/closeout (Depends-on): Add stdbool.
51128
51129 2008-10-05  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/accept: New file.
51132         * modules/bind: New file.
51133         * modules/connect: New file.
51134         * modules/getpeername: New file.
51135         * modules/getsockname: New file.
51136         * modules/getsockopt: New file.
51137         * modules/listen: New file.
51138         * modules/recv: New file.
51139         * modules/recvfrom: New file.
51140         * modules/send: New file.
51141         * modules/sendto: New file.
51142         * modules/setsockopt: New file.
51143         * modules/socket: New file.
51144         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51145         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51146         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51147         the particular module is requested. Add a link warning when the
51148         particular module is not requested.
51149         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51150         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51151         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51152         the particular module is requested.
51153         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51154         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51155         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51156         * modules/sys_socket (Depends-on): Add link-warning.
51157         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51158         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51159         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51160         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51161         GL_LINK_WARNING.
51162         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51163         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51164         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51165         * doc/posix-functions/getpeername.texi: Mention the new module
51166         'getpeername'.
51167         * doc/posix-functions/getsockname.texi: Mention the new module
51168         'getsockname'.
51169         * doc/posix-functions/getsockopt.texi: Mention the new module
51170         'getsockopt'.
51171         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51172         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51173         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51174         * doc/posix-functions/send.texi: Mention the new module 'send'.
51175         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51176         * doc/posix-functions/setsockopt.texi: Mention the new module
51177         'setsockopt'.
51178         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51179         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51180         listen, connect, accept.
51181         * modules/select-tests (Depends-on): Likewise.
51182
51183 2008-10-05  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/winsock.c (strerror): Remove unused #undef.
51186         (rpl_close): Remove unused local variable.
51187
51188         * modules/sys_socket (Depends-on); Add errno.
51189
51190 2008-10-05  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51193         (select): Add a link warning when the 'select' module is not used.
51194         * modules/sys_select (Depends-on): Add link-warning.
51195         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51196         Suggested by Paolo Bonzini.
51197
51198 2008-10-05  Jim Meyering  <meyering@redhat.com>
51199
51200         bootstrap: check for LT_INIT more portably
51201         * build-aux/bootstrap: Avoid using grep -E, since it's not
51202         portable enough.  Suggestion from Bruno Haible.
51203
51204 2008-10-05  Bruno Haible  <bruno@clisp.org>
51205
51206         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51207         as being fixed by gnulib.
51208
51209 2008-10-05  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/select-tests: New file, mostly copied from
51212         modules/sys_select-tests.
51213         * tests/test-select.c: New file, mostly copied from
51214         tests/test-sys_select.c.
51215         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51216         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51217         (Makefile.am): Remove test_sys_select_LDADD.
51218
51219         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51220         to an undefined symbol, for an error message.
51221         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51222         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51223         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51224         winsock-select.c here.
51225         * modules/sys_select (Files): Remove lib/winsock-select.c.
51226         (Depends-on): Remove alloca.
51227         (Makefile.am): Substitute GNULIB_SELECT.
51228         * modules/select: New file.
51229         * doc/posix-functions/select.texi: Update.
51230
51231 2008-10-05  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51234         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51235         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51236         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51237         getdtablesize.
51238         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51239         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51240
51241 2008-10-05  Bruno Haible  <bruno@clisp.org>
51242
51243         * modules/getdtablesize-tests: New file.
51244         * tests/test-getdtablesize.c: New file.
51245
51246         New module 'getdtablesize'.
51247         * lib/unistd.in.h (getdtablesize): New declaration.
51248         * lib/getdtablesize.c: New file.
51249         * m4/getdtablesize.m4: New file.
51250         * modules/getdtablesize: New file.
51251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51252         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51253         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51254         HAVE_GETDTABLESIZE.
51255         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51256
51257 2008-10-05  Bruno Haible  <bruno@clisp.org>
51258
51259         * modules/sched (Makefile.am): Fix typo.
51260         Reported by Simon Josefsson.
51261
51262 2008-10-05  Jim Meyering  <meyering@redhat.com>
51263
51264         bootstrap: check for LT_INIT, too
51265         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51266         are deprecated.  Suggestion from Ralf Wildenhues.
51267
51268 2008-10-05  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51271         overriding them by ours.
51272         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51273
51274 2008-10-05  Jim Meyering  <meyering@redhat.com>
51275
51276         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51277         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51278         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51279
51280 2008-10-04  Bruno Haible  <bruno@clisp.org>
51281
51282         * modules/dup2 (License): Change to LGPLv2+.
51283         * modules/sleep (License): Likewise.
51284         * modules/perror (License): Likewise.
51285         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51286         Blake.
51287         * modules/signal (License): Likewise.
51288         * modules/sigprocmask (License): Likewise.
51289         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51290         Meyering.
51291
51292 2008-10-04  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51295         Reported by Rainer Tammer <tammer@tammer.net>.
51296
51297 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51298             Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51301         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51302         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51303
51304 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51305
51306         filevercmp: new module
51307         * lib/filevercmp.h: New function filevercmp comparing version strings.
51308         * lib/filevercmp.c: Implementation of filevercmp function.
51309         * modules/filevercmp: Module metadata.
51310         * tests/test-filevercmp.c: Unit test for new module.
51311         * modules/filevercmp-tests: Unit test metadata.
51312         * MODULES.html.sh: Add filevercmp module.
51313
51314 2008-10-03  Bruno Haible  <bruno@clisp.org>
51315
51316         * lib/c-ctype.h: Add comment.
51317         Reported by Jim Meyering.
51318
51319 2008-10-02  Bruno Haible  <bruno@clisp.org>
51320
51321         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51322
51323 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51324
51325         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51326         name of bootstrap.conf accordingly.
51327
51328 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51329
51330         * build-aux/bootstrap: Install git-merge-changelog configuration
51331         items into .gitconfig if needed.
51332
51333 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51334
51335         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51336         git repository, and initialize/update it accordingly.
51337
51338 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51339
51340         * modules/fsync-tests: New file.
51341         * tests/test-fsync.c: New file.
51342
51343         New module 'fsync'.
51344         * lib/fsync.c: New file.
51345         * m4/fsync.m4: New file.
51346         * modules/fsync: New file.
51347         * lib/unistd.in.h (fsync): New declaration.
51348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51349         GNULIB_FSYNC and HAVE_FSYNC.
51350         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51351         * MODULES.html.sh (posix_functions): Add fsync.
51352         * doc/posix-functions/fsync.texi: Mention the new module.
51353
51354 2008-10-02  Jim Meyering  <meyering@redhat.com>
51355
51356         fts.c: sync with similar code from coreutils' remove.c
51357         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51358         Guard also with "#if defined __linux__", since for now at least,
51359         this code is Linux-kernel-specific.
51360
51361 2008-10-02  Jim Meyering  <meyering@redhat.com>
51362
51363         fts: bug fixes
51364         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51365         Include <sys/vfs.h>, not <sys/statfs.h>.
51366
51367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51368         Include <sys/vfs.h>, not <sys/statfs.h>.
51369
51370 2008-10-01  Bruno Haible  <bruno@clisp.org>
51371
51372         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51373         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51374         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51375         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51376         * doc/posix-functions/posix_spawnp.texi: Likewise.
51377         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51378         whether posix_spawn actually works.
51379         * m4/pipe.m4 (gl_PIPE): Likewise.
51380         * modules/execute (Files): Add m4/posix_spawn.m4.
51381         * modules/pipe (Files): Add m4/posix_spawn.m4.
51382         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51383
51384 2008-10-01  Jim Meyering  <meyering@redhat.com>
51385
51386         remove trailing spaces
51387         * NEWS: Likewise.
51388         * lib/poll.c (poll): Likewise.
51389         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51390         * lib/winsock.c (rpl_close): Likewise.
51391         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51392         * modules/yield: Likewise.
51393         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51394         * tests/test-sys_select.c (connect_to_socket): Likewise.
51395
51396         fts.c: adjust a new interface to be more generally useful
51397         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51398         (fts_build): Adjust caller.
51399
51400 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51401
51402         * modules/cond-tests: New file.
51403         * tests/test-cond.c: New file.
51404
51405 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51406             Bruno Haible  <bruno@clisp.org>
51407
51408         * modules/cond (Dependencies): Add errno, time.
51409         * lib/glthread/cond.h: Include <time.h>.
51410         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51411         across platforms.
51412
51413 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51414             Bruno Haible  <bruno@clisp.org>
51415
51416         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51417
51418 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51419             Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/tls-tests (Depends-on): Add thread, yield.
51422         (configure.ac): Remove all checks.
51423         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51424         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51425         gl_thread_self): Remove definitions. Include glthread/thread.h and
51426         glthread/yield.h instead.
51427         (test_tls): Pass an additional NULL argument to gl_thread_join.
51428
51429 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51430             Bruno Haible  <bruno@clisp.org>
51431
51432         * modules/lock-tests (Depends-on): Add thread, yield.
51433         (configure.ac): Remove all checks.
51434         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51435         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51436         gl_thread_self): Remove definitions. Include glthread/thread.h and
51437         glthread/yield.h instead.
51438         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51439         additional NULL argument to gl_thread_join.
51440
51441 2008-09-30  Bruno Haible  <bruno@clisp.org>
51442
51443         Fix the Win32 implementation of the 'thread' module.
51444         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51445         pointer type.
51446         (gl_thread_self): Invoke gl_thread_self_func.
51447         (gl_thread_self_func): New declaration.
51448         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51449         (do_init_self_key, init_self_key): New functions.
51450         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51451         Remove some fields.
51452         (running_threads, running_lock): Remove variables.
51453         (get_current_thread_handle): New function.
51454         (gl_thread_self_func, wrapper_func, glthread_create_func,
51455         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51456         simplified.
51457
51458 2008-09-30  Bruno Haible  <bruno@clisp.org>
51459
51460         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51461         files.
51462
51463 2008-09-30  Jim Meyering  <meyering@redhat.com>
51464
51465         fts.m4: correct the test for statfs.f_type
51466         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51467         when checking for statfs.f_type.
51468
51469 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51470
51471         tests: avoid some compiler warnings
51472         * tests/test-memchr.c (main): Pass NULL indirectly.
51473         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51474
51475 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51476
51477         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51478         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51479         exactly specified dayshifts.
51480         (dayshift): New rule.
51481         (rel): Add dayshift.
51482         (relative_time_table) [tomorrow, yesterday, today, now]:
51483         Use tDAY_SHIFT in place of tDAY_UNIT.
51484         * tests/test-getdate.c: Add tests for now-disallowed countable
51485         dayshifts, e.g., "4 yesterday ago".
51486
51487 2008-09-29  Bruno Haible  <bruno@clisp.org>
51488
51489         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51490         * tests/test-posix_spawn1.in.sh: Renamed from
51491         tests/test-posix_spawn.in.sh.
51492         * tests/test-posix_spawn2.c: New file.
51493         * tests/test-posix_spawn2.in.sh: New file.
51494         * modules/posix_spawnp-tests (Files): Update.
51495         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51496
51497 2008-09-29  Bruno Haible  <bruno@clisp.org>
51498
51499         Propagate effects of putenv/setenv/unsetenv to child processes.
51500         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51501         * lib/pipe.c (create_pipe): Likewise.
51502
51503 2008-09-29  Bruno Haible  <bruno@clisp.org>
51504
51505         Enable use of shell scripts as executables in mingw.
51506         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51507         run the program as a shell script.
51508         * lib/pipe.c (create_pipe): Likewise.
51509         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51510         resulting array.
51511
51512 2008-09-29  Eric Blake  <ebb9@byu.net>
51513
51514         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51515
51516 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51517
51518         * doc/posix-functions/accept.texi: Update mingw problems.
51519         * doc/posix-functions/bind.texi: Update mingw problems.
51520         * doc/posix-functions/close.texi: Update mingw problems.
51521         * doc/posix-functions/connect.texi: Update mingw problems.
51522         * doc/posix-functions/getpeername.texi: Update mingw problems.
51523         * doc/posix-functions/getsockname.texi: Update mingw problems.
51524         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51525         * doc/posix-functions/ioctl.texi: Update mingw problems.
51526         * doc/posix-functions/listen.texi: Update mingw problems.
51527         * doc/posix-functions/recv.texi: Update mingw problems.
51528         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51529         * doc/posix-functions/select.texi: Update mingw problems.
51530         * doc/posix-functions/send.texi: Update mingw problems.
51531         * doc/posix-functions/sendto.texi: Update mingw problems.
51532         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51533         * doc/posix-functions/socket.texi: Update mingw problems.
51534
51535 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51536             Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/sys_select.in.h: Include sys/time.h.
51539         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51540         * modules/sys_select: Depend on sys_time.
51541         * tests/test-sys_select.c: Test that sys/select.h defines struct
51542         timeval fully.
51543
51544 2008-09-29  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51547         * lib/sys_select.in.h: Likewise.
51548
51549 2008-09-29  Bruno Haible  <bruno@clisp.org>
51550
51551         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51552
51553 2008-09-29  Bruno Haible  <bruno@clisp.org>
51554
51555         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51556         Set LIBSOCKET instead of augmenting LIBS.
51557         * modules/sockets (Link): New section.
51558         * modules/sockets-tests (test_sockets_LDADD): New variable.
51559         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51560         * modules/poll-tests (test_poll_LDADD): New variable.
51561         * NEWS: Document the change.
51562
51563 2008-09-29  Bruno Haible  <bruno@clisp.org>
51564
51565         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51566         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51567         ARPA_INET_H directly.
51568         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51569
51570 2008-09-28  Bruno Haible  <bruno@clisp.org>
51571
51572         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51573         from gl_HEADER_SYS_SOCKET.
51574         (gl_HEADER_SYS_SOCKET): Invoke it.
51575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51576
51577 2008-09-28  Bruno Haible  <bruno@clisp.org>
51578
51579         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51580         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51581         Needed on OSF/1 4.0.
51582
51583 2008-09-28  Bruno Haible  <bruno@clisp.org>
51584
51585         Override open more carefully.
51586         * lib/open.c (orig_open): New function.
51587         (rpl_open): Use orig_open instead of open.
51588         * lib/fcntl.in.h: Add special invocation convention.
51589         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51590         (gl_FUNC_OPEN): Invoke it.
51591
51592         Override freopen more carefully.
51593         * lib/freopen.c (orig_freopen): New function.
51594         (rpl_freopen): Use orig_freopen instead of freopen.
51595         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51596         (gl_FUNC_FREOPEN): Invoke it.
51597
51598         Override fopen more carefully.
51599         * lib/fopen.c (orig_fopen): New function.
51600         (rpl_fopen): Use orig_fopen instead of fopen.
51601         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51602         (gl_FUNC_FOPEN): Invoke it.
51603         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51604
51605 2008-09-28  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51608         SIGPIPE.
51609
51610 2008-09-28  Bruno Haible  <bruno@clisp.org>
51611
51612         * tests/test-sigaction.c (handler, main): Disable the check whether
51613         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51614         glibc systems with LinuxThreads.
51615
51616 2008-09-28  Bruno Haible  <bruno@clisp.org>
51617
51618         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51619
51620         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51621         with AIX xlc.
51622         * lib/fcntl.in.h (open): Likewise.
51623         Reported by Rainer Tammer <tammer@tammer.net>.
51624
51625 2008-09-28  Bruno Haible  <bruno@clisp.org>
51626
51627         * modules/posix_spawnp-tests: New file.
51628         * tests/test-posix_spawn.c: New file.
51629         * tests/test-posix_spawn.in.sh: New file.
51630
51631         New module 'posix_spawnp'.
51632         * modules/posix_spawnp: New file.
51633         * lib/spawnp.c: New file, from GNU libc with modifications.
51634         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51635
51636         New module 'posix_spawn'.
51637         * modules/posix_spawn: New file.
51638         * lib/spawn.c: New file, from GNU libc with modifications.
51639         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51640
51641         New module 'posix_spawnattr_destroy'.
51642         * modules/posix_spawnattr_destroy: New file.
51643         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51644         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51645         module.
51646
51647         New module 'posix_spawnattr_setsigmask'.
51648         * modules/posix_spawnattr_setsigmask: New file.
51649         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51650         modifications.
51651         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51652         new module.
51653
51654         New module 'posix_spawnattr_getsigmask'.
51655         * modules/posix_spawnattr_getsigmask: New file.
51656         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51657         modifications.
51658         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51659         new module.
51660
51661         New module 'posix_spawnattr_setsigdefault'.
51662         * modules/posix_spawnattr_setsigdefault: New file.
51663         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51664         modifications.
51665         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51666         new module.
51667
51668         New module 'posix_spawnattr_getsigdefault'.
51669         * modules/posix_spawnattr_getsigdefault: New file.
51670         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51671         modifications.
51672         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51673         new module.
51674
51675         New module 'posix_spawnattr_setschedpolicy'.
51676         * modules/posix_spawnattr_setschedpolicy: New file.
51677         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51678         modifications.
51679         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51680         new module.
51681
51682         New module 'posix_spawnattr_getschedpolicy'.
51683         * modules/posix_spawnattr_getschedpolicy: New file.
51684         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51685         modifications.
51686         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51687         new module.
51688
51689         New module 'posix_spawnattr_setschedparam'.
51690         * modules/posix_spawnattr_setschedparam: New file.
51691         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51692         modifications.
51693         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51694         new module.
51695
51696         New module 'posix_spawnattr_getschedparam'.
51697         * modules/posix_spawnattr_getschedparam: New file.
51698         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51699         modifications.
51700         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51701         new module.
51702
51703         New module 'posix_spawnattr_setpgroup'.
51704         * modules/posix_spawnattr_setpgroup: New file.
51705         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51706         modifications.
51707         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51708         module.
51709
51710         New module 'posix_spawnattr_getpgroup'.
51711         * modules/posix_spawnattr_getpgroup: New file.
51712         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51713         modifications.
51714         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51715         module.
51716
51717         New module 'posix_spawnattr_setflags'.
51718         * modules/posix_spawnattr_setflags: New file.
51719         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51720         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51721         module.
51722
51723         New module 'posix_spawnattr_getflags'.
51724         * modules/posix_spawnattr_getflags: New file.
51725         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51726         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51727         module.
51728
51729         New module 'posix_spawnattr_init'.
51730         * modules/posix_spawnattr_init: New file.
51731         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51732         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51733         module.
51734
51735         New module 'posix_spawn_file_actions_destroy'.
51736         * modules/posix_spawn_file_actions_destroy: New file.
51737         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51738         modifications.
51739         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51740         the new module.
51741
51742         New module 'posix_spawn_file_actions_addopen'.
51743         * modules/posix_spawn_file_actions_addopen: New file.
51744         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51745         modifications.
51746         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51747         the new module.
51748
51749         New module 'posix_spawn_file_actions_adddup2'.
51750         * modules/posix_spawn_file_actions_adddup2: New file.
51751         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51752         modifications.
51753         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51754         the new module.
51755
51756         New module 'posix_spawn_file_actions_addclose'.
51757         * modules/posix_spawn_file_actions_addclose: New file.
51758         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51759         modifications.
51760         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51761         the new module.
51762
51763         New module 'posix_spawn_file_actions_init'.
51764         * modules/posix_spawn_file_actions_init: New file.
51765         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51766         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51767         new module.
51768
51769         New module 'posix_spawn-internal'.
51770         * modules/posix_spawn-internal: New file.
51771         * lib/spawn_int.h: New file, from GNU libc with modifications.
51772         * lib/spawni.c: New file, from GNU libc with modifications.
51773         * m4/posix_spawn.m4: New file.
51774
51775         New module 'spawn'.
51776         * modules/spawn: New file.
51777         * lib/spawn.in.h: New file, from GNU libc with modifications.
51778         * m4/spawn_h.m4: New file.
51779         * doc/posix-headers/spawn.texi: Mention the new module.
51780
51781 2008-09-28  Bruno Haible  <bruno@clisp.org>
51782
51783         * modules/sched-tests: New file.
51784         * tests/test-sched.c: New file.
51785
51786         New module 'sched'.
51787         * modules/sched: New file.
51788         * lib/sched.in.h: New file.
51789         * m4/sched_h.m4: New file.
51790         * doc/posix-headers/sched.texi: Mention the new module.
51791
51792 2008-09-27  Eric Blake  <ebb9@byu.net>
51793
51794         Fix previous patch, and tweak references to $0.
51795         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51796         (func_version, func_gnulib_dir): Don't call this program
51797         gnulib-tool.
51798         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51799         with using $0 in function.
51800         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51801         (func_fatal_error): Reuse the name the user invoked us with.
51802
51803 2008-09-27  Bruno Haible  <bruno@clisp.org>
51804
51805         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51806         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51807         (gl_ICONV_H): Not here.
51808         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51809         instead of assigning ICONV_H directly.
51810
51811         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51813         WCHAR_H directly.
51814
51815 2008-09-27  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51818         * modules/arpa_inet (Depends-on): Add link-warning.
51819         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51820         * modules/unistd (Makefile.am): Likewise.
51821
51822 2008-09-26  Bruno Haible  <bruno@clisp.org>
51823
51824         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51825         variables.
51826         (func_version): Essentially copied from gnulib-tool.
51827         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51828         func_readlink): Copied from gnulib-tool.
51829
51830 2008-09-26  Bruno Haible  <bruno@clisp.org>
51831
51832         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51833         invoking git-version-gen.
51834
51835 2008-09-26  Bruno Haible  <bruno@clisp.org>
51836
51837         * posix-modules: Update to directory names changed on 2008-01-19.
51838         Remove commas in output before splitting into words. No more need to
51839         avoid 'ftruncate' since 2007-02-19.
51840
51841 2008-09-26  Bruno Haible  <bruno@clisp.org>
51842
51843         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51844
51845 2008-09-26  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51848         * modules/fwriteerror (Depends-on): Add errno.
51849
51850 2008-09-26  Bruno Haible  <bruno@clisp.org>
51851
51852         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51853         * tests/test-vc-list-files-cvs.sh: Likewise.
51854
51855 2008-09-26  Bruno Haible  <bruno@clisp.org>
51856
51857         * doc/posix-headers/sys_resource.texi: Reorder items.
51858
51859 2008-09-26  Jim Meyering  <meyering@redhat.com>
51860
51861         fts: tweak inode comparison function
51862         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51863         inode numbers, as documented.
51864
51865         fts: sort dirent entries on inode number before traversing
51866         This avoids a quadratic, seek-related performance penalty when
51867         operating on a directory containing many entries (measurable at 10k;
51868         3.5 hours at 2 million entries with a cold cache) on certain types
51869         of file systems, including ext3 and ext4, but not tmpfs.
51870         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51871         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51872         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51873         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51874         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51875         (fts_build): Set the stat.st_ino member from D_INO.
51876         If it is likely to be useful, sort dirent entries on inode number.
51877
51878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51879         and the struct statfs.f_type member.
51880         * modules/fts (Depends-on): Add d-ino.
51881
51882 2008-09-26  Bruno Haible  <bruno@clisp.org>
51883
51884         * modules/sigpipe-die (Depends-on): Add sigpipe.
51885
51886         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51887         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51888         and GNULIB_STDIO_H_SIGPIPE are set.
51889         * lib/stdio-write.c: New file.
51890         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51891         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51892         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51893         REPLACE_STDIO_WRITE_FUNCS.
51894         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51895         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51896         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51897         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51898         * modules/stdio (Files): Add lib/stdio-write.c.
51899         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51900         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51901         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51902         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51903         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51904         REPLACE_FPRINTF_POSIX.
51905         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51906         REPLACE_PRINTF_POSIX.
51907         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51908         REPLACE_VFPRINTF_POSIX.
51909         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51910         REPLACE_VPRINTF_POSIX.
51911         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51912         SIGPIPE issue.
51913         * doc/posix-functions/fputc.texi: Likewise.
51914         * doc/posix-functions/fputs.texi: Likewise.
51915         * doc/posix-functions/fwrite.texi: Likewise.
51916         * doc/posix-functions/printf.texi: Likewise.
51917         * doc/posix-functions/putc.texi: Likewise.
51918         * doc/posix-functions/putchar.texi: Likewise.
51919         * doc/posix-functions/puts.texi: Likewise.
51920         * doc/posix-functions/vfprintf.texi: Likewise.
51921         * doc/posix-functions/vprintf.texi: Likewise.
51922
51923         * modules/safe-write (Depends-on): Add write.
51924
51925         * modules/sigpipe-tests: New file.
51926         * tests/test-sigpipe.c: New file.
51927         * tests/test-sigpipe.sh: New file.
51928
51929         * modules/write: New file.
51930         * lib/unistd.in.h: Include <sys/types.h>.
51931         (write): New declaration.
51932         * lib/write.c: New file.
51933         * m4/write.m4: New file.
51934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51935         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51936         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51937         GNULIB_WRITE, REPLACE_WRITE.
51938         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51939         and the SIGPIPE issue.
51940
51941         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51942         (raise): New declaration.
51943         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51944         (ext_signal): New function.
51945         (rpl_raise): New function.
51946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51947         GNULIB_SIGNAL_H_SIGPIPE.
51948         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51949         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51950
51951         * modules/sigpipe: New file.
51952         * m4/sigpipe.m4: New file.
51953
51954 2008-09-25  Derek Price  <derek@ximbiot.com>
51955             Bruno Haible  <bruno@clisp.org>
51956
51957         * gnulib-tool (func_import): Report all license incompatibilities, not
51958         just the first one.
51959
51960 2008-09-25  Bruno Haible  <bruno@clisp.org>
51961
51962         * gnulib-tool (func_import): When computing the edits, consider not
51963         only the Makefile.ams that exist but also those that will be generated.
51964
51965 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51966
51967         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51968         fixes gnulib-tool --test warning about duplicate dependency.
51969
51970 2008-09-25  Bruno Haible  <bruno@clisp.org>
51971
51972         * gnulib-tool: Don't ask the user to perform edits in the generated
51973         Makefile.ams.
51974         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51975         apply to the Makefile.am being generated.
51976         (func_emit_tests_Makefile_am): Execute edits that apply to the
51977         Makefile.am being generated.
51978         (func_import): Setup list of Makefile.am edits before emitting the
51979         Makefile.ams, not at the end.
51980         (func_create_testdir): Update.
51981         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51982
51983 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51984
51985         * gnulib-tool (func_import): Store the --tests-base option in the
51986         comment in gnulib-cache.m4.
51987
51988 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51989
51990         * NEWS: Document increased portability that sys_select now provides.
51991
51992         * lib/sys_select.in.h: Install select wrapper.
51993         * lib/sys_socket.in.h: Use more descriptive name when there is no
51994         select wrapper.
51995         * lib/winsock-select.c: New.
51996         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51997         Require gl_HEADER_SYS_SOCKET.
51998         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51999         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52000         * tests/test-sys_select.c: Add functional tests.
52001
52002 2008-09-24  Eric Blake  <ebb9@byu.net>
52003
52004         open, fopen: close fd leak in last patch
52005         * lib/open.c (rpl_open): Close fd before returning error.
52006         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52007         * doc/posix-functions/open.texi (open): Document that Irix also
52008         has the bug.
52009         * doc/posix-functions/fopen.texi (fopen): Likewise.
52010         Reported by Paolo Bonzini.
52011
52012 2008-09-24  Bruno Haible  <bruno@clisp.org>
52013
52014         Ensure that a filename ending in a slash cannot be used to access a
52015         non-directory.
52016         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52017         to check whether it's really a directory.
52018         * lib/fopen.c: Include fcntl.h, unistd.h.
52019         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52020         and fdopen().
52021         * modules/fopen (Depends-on): Add unistd.
52022         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52023         * tests/test-fopen.c (main): Likewise.
52024         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52025         * doc/posix-functions/fopen.texi: Likewise.
52026         Reported by Eric Blake.
52027
52028 2008-09-23  Eric Blake  <ebb9@byu.net>
52029
52030         c-stack: avoid compiler optimizations when provoking overflow
52031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52032         recursion harder to optimize, to ensure a stack overflow occurs.
52033         * tests/test-c-stack.c (recurse): Likewise.
52034         Borrowed from libsigsegv.
52035
52036         c-stack: work around Irix sigaltstack bug
52037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52038         whether sigaltstack uses wrong end of stack_t (copied in part from
52039         libsigsegv).
52040         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52041         Irix bug, without requiring an over-allocation.
52042         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52043         bug.
52044
52045         fopen: document mingw bug on directories
52046         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52047         not allowing a stream visiting a directory, even though reading
52048         from such a stream is not portable.
52049
52050 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52051
52052         * lib/poll.c: Rewrite.
52053         * modules/poll: Depend on alloca.
52054
52055 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52056
52057         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52058         instead define prototypes for a full set of wrappers.  Ensure
52059         that Cygwin does not use the compatibility code, which is only
52060         for MinGW.
52061         * lib/winsock.c: New.
52062         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52063         * modules/sys_socket: Add lib/winsock.c.
52064
52065         * modules/poll-tests: Add errno and perror.
52066         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52067
52068 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52069
52070         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52071
52072 2008-09-23  Bruno Haible  <bruno@clisp.org>
52073
52074         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52075         * doc/glibc-functions/*: Likewise.
52076
52077 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52078
52079         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52080         success.
52081
52082 2008-09-22  Eric Blake  <ebb9@byu.net>
52083             Bruno Haible  <bruno@clisp.org>
52084
52085         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52086         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52087         supply %A but mishandle pseudo-NaN.
52088         Reported by Simon Josefsson.
52089
52090 2008-09-21  Bruno Haible  <bruno@clisp.org>
52091
52092         * tests/test-lock.c (main): Tweak skip message.
52093         * tests/test-tls.c (main): Likewise.
52094
52095 2008-09-21  Bruno Haible  <bruno@clisp.org>
52096
52097         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52098         whether 'struct sigaction' has sa_sigaction here...
52099         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52100         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52101
52102 2008-09-21  Bruno Haible  <bruno@clisp.org>
52103
52104         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52105         section.
52106         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52107         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52108         the new section.
52109         (Support for obsolete systems lacking POSIX:2001): New section.
52110         (String handling <string.h>): Move strdup to the new section.
52111         Suggested by Simon Josefsson and Paolo Bonzini.
52112
52113 2008-09-21  Bruno Haible  <bruno@clisp.org>
52114
52115         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52116         exponents in %e and %g results on 'long double'. Needed for mingw's
52117         improved *printf functions.
52118         * tests/test-vasprintf-posix.c (test_function): Likewise.
52119         * tests/test-snprintf-posix.h (test_function): Likewise.
52120         * tests/test-sprintf-posix.h (test_function): Likewise.
52121         Reported by Eric Blake.
52122
52123 2008-09-21  Bruno Haible  <bruno@clisp.org>
52124
52125         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52126         * tests/test-sprintf-posix.h (test_function): Likewise.
52127
52128 2008-09-21  Bruno Haible  <bruno@clisp.org>
52129
52130         * modules/getpass (Depends-on): Add strdup-posix.
52131
52132         New module 'strdup-posix'.
52133         * modules/strdup-posix: New file.
52134         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52135         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52137         REPLACE_STRDUP.
52138         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52139         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52141         strdup-posix.
52142
52143         * modules/strdup (Depends-on): Remove malloc-posix.
52144
52145 2008-09-20  Bruno Haible  <bruno@clisp.org>
52146
52147         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52148         Wildenhues.
52149
52150 2008-09-20  Bruno Haible  <bruno@clisp.org>
52151
52152         Ensure that wint_t gets defined on IRIX 5.3.
52153         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52154         * lib/wctype.in.h (wint_t): Likewise.
52155         (__wctype_wint_t): Remove type.
52156         (isw*): Use wint_t instead of __wctype_wint_t.
52157         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52158         * modules/wchar (Files): Add m4/wint_t.m4.
52159         (Makefile.am): Substitute HAVE_WINT_T.
52160         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52161         * tests/test-wctype.c: Check that wint_t is defined.
52162         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52163         * doc/posix-headers/wctype.texi: Likewise.
52164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52165
52166 2008-09-18  Bruno Haible  <bruno@clisp.org>
52167
52168         * gnulib-tool (func_exit): Update comment.
52169
52170 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52171
52172         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52173         assumes strdup exists and does not depend on strdup to return
52174         ENOMEM on out of memory conditions.
52175
52176 2008-09-18  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52179         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52180         digits for the exponent.
52181
52182 2008-09-18  Jim Meyering  <meyering@redhat.com>
52183             Bruno Haible  <bruno@clisp.org>
52184
52185         * lib/vasnprintf.c (decimal_point_char): Define also if
52186         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52187
52188 2008-09-16  Bruno Haible  <bruno@clisp.org>
52189         and Eric Blake  <ebb9@byu.net>
52190
52191         vasnprintf: support Irix 5.3
52192         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52193         that mishandle long double infinity.
52194         Reported by Tom G. Christensen.
52195
52196 2008-09-16  Bruno Haible  <bruno@clisp.org>
52197
52198         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52199         Solaris 9.
52200         * doc/glibc-functions/alphasort.texi: Likewise.
52201         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52202
52203 2008-09-16  Jim Meyering  <meyering@redhat.com>
52204
52205         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52206         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52207         a umask modification leak out of a subshell.  Otherwise, the
52208         opensolaris /bin/sh would be accepted and thus cause unwarranted
52209         failures in the coreutils test suite.
52210
52211 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52212
52213         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52214         to succeed.
52215
52216 2008-09-16  Jim Meyering  <meyering@redhat.com>
52217
52218         avoid spurious test failure when library is built without ACL support
52219         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52220         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52221         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52222         * tests/test-copy-acl.sh: Likewise.
52223
52224 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52225
52226         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52227         based on character occurrence counts.
52228
52229 2008-09-15  Eric Blake  <ebb9@byu.net>
52230
52231         tests: avoid some compiler warnings
52232         * tests/test-memchr.c (main): Pass NULL indirectly.
52233         * tests/test-closein.c (main): Avoid unused variable.
52234
52235 2008-09-15  Bruno Haible  <bruno@clisp.org>
52236
52237         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52238         are missing on OpenBSD 4.0 individually.
52239         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52240
52241 2008-09-15  Bruno Haible  <bruno@clisp.org>
52242
52243         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52244         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52245         * doc/posix-functions/perror.texi: Likewise.
52246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52247         is missing.
52248         Reported by Eric Blake.
52249
52250         * lib/errno.in.h: Use replacement values >= 2000.
52251         Reported by Eric Blake.
52252
52253 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52254
52255         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52256         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52257         limit.
52258         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52259         compareseq was aborted.
52260
52261 2008-09-14  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52264         yvec_edit_count.
52265         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52266         (fstrcmp_bounded): Simplify result computation accordingly.
52267
52268 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52269
52270         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52271         (fstrcmp): Define in terms of fstrcmp_bounded.
52272         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52273         lower_bound argument.
52274         Return quickly if the result is certainly < lower_bound.
52275         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52276
52277 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52278
52279         * lib/diffseq.h (EARLY_ABORT): New macro.
52280         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52281         evaluates to true.
52282
52283 2008-09-14  Bruno Haible  <bruno@clisp.org>
52284
52285         * modules/perror-tests: New file.
52286         * tests/test-perror.sh: New file.
52287         * tests/test-perror.c: New file.
52288
52289         New module 'perror'.
52290         * lib/stdio.in.h (perror): New declaration.
52291         * lib/perror.c: New file.
52292         * m4/perror.m4: New file.
52293         * modules/perror: New file.
52294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52295         * doc/posix-functions/perror.texi: Mention the perror module.
52296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52297         REPLACE_PERROR.
52298         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52299         REPLACE_PERROR.
52300
52301 2008-09-14  Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/stdio (Makefile.am): Reorder to match the order in
52304         lib/stdio.in.h.
52305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52306
52307 2008-09-13  Bruno Haible  <bruno@clisp.org>
52308
52309         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52310
52311 2008-09-13  Bruno Haible  <bruno@clisp.org>
52312
52313         Extend strerror to cover the added errno values.
52314         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52315         (rpl_strerror): Provide error messages for the added errno values and
52316         for the WSA* values.
52317         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52318         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52319         strerror.
52320         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52321         * modules/strerror (Depends-on): Add errno.
52322         * doc/posix-functions/strerror.texi: Document the change.
52323         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52324         and EOVERFLOW.
52325
52326 2008-09-13  Bruno Haible  <bruno@clisp.org>
52327
52328         * modules/EOVERFLOW: Remove file.
52329         * m4/eoverflow.m4: Remove file.
52330         * modules/EOVERFLOW-tests: Remove file.
52331         * tests/test-EOVERFLOW.c: Remove file.
52332         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52333         * modules/ftell (Depends-on): Likewise.
52334         * modules/getdelim (Depends-on): Likewise.
52335         * modules/getugroups (Depends-on): Likewise.
52336         * modules/poll (Depends-on): Likewise.
52337         * modules/snprintf (Depends-on): Likewise.
52338         * modules/sprintf-posix (Depends-on): Likewise.
52339         * modules/vasnprintf (Depends-on): Likewise.
52340         * modules/vasprintf (Depends-on): Likewise.
52341         * modules/vfprintf-posix (Depends-on): Likewise.
52342         * modules/vsnprintf (Depends-on): Likewise.
52343         * modules/vsprintf-posix (Depends-on): Likewise.
52344         * modules/xvasprintf (Depends-on): Likewise.
52345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52346         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52347         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52348         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52349         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52350         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52351         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52352         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52354         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52355         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52356         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52357         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52358         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52359         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52360         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52361         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52362         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52363         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52364         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52365         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52366         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52367         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52368         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52369         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52370         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52371         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52372         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52373         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52374         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52375         * MODULES.html.sh: Remove EOVERFLOW.
52376         * NEWS: Mention the change.
52377
52378 2008-09-13  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/errno-tests: New file.
52381         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52382
52383         * lib/errno.in.h: New file.
52384         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52385         * modules/errno: New file.
52386         * doc/posix-headers/errno.texi: Update documentation.
52387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52388
52389 2008-09-13  Bruno Haible  <bruno@clisp.org>
52390
52391         * tests/test-poll.c: Use #if for native Windows, rather than testing
52392         __MSVCRT__.
52393
52394 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52395             Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/glob.c: Don't include <pwd.h> on native Windows.
52398         (WINDOWS32): New macro.
52399         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52400
52401 2008-09-13  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52404         (ETIMEDOUT): Remove macro.
52405         (glthread_cond_timedwait_multithreaded): New declaration.
52406         (glthread_cond_timedwait): Use it.
52407         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52408         (glthread_cond_timedwait_multithreaded): New function.
52409
52410 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52411
52412         * modules/poll-tests: Do not check for io.h.
52413         * tests/test-poll.c: Check for __MSVCRT__ instead.
52414
52415 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52416
52417         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52418         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52419         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52420
52421 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52422
52423         * modules/poll-tests: New.
52424         * tests/test-poll.c: New.
52425
52426 2008-09-12  Eric Blake  <ebb9@byu.net>
52427
52428         frexp: test for NetBSD failure on -0.0
52429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52430         not all, bugs from NetBSD 3.0 have been fixed.
52431         * doc/posix-functions/frexp.texi (frexp): Document bug.
52432         Reported by Thomas Klausner.
52433
52434         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52435         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52436         literal -0.0.
52437         Reported by Jonathan C. Patschke <jp@centtech.com>.
52438
52439 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52440
52441         * lib/glthread/cond.h: Use dummy implementation also if
52442         USE_WIN32_THREADS.
52443
52444 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52445
52446         * modules/fnmatch-posix (License): Change to LGPLv2+.
52447         * modules/fnmatch-gnu (License): Likewise.
52448
52449 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52450
52451         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52452
52453 2008-09-11  Jim Meyering  <meyering@redhat.com>
52454
52455         * users.txt: Add gtk-vnc.
52456
52457 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52458
52459         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52460         rotate amounts.
52461
52462         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52463         required for 16-bit and 8-bit rotates.
52464         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52465         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52466         UINT8_MAX instead of hard-coded constants.
52467         Suggested by Paul Eggert.
52468
52469 2008-09-07  Bruno Haible  <bruno@clisp.org>
52470
52471         * tests/test-striconveh.c (main): Check behaviour when converting from
52472         UTF-7.
52473
52474         Make striconveh work better with stateful encodings.
52475         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52476         that iconv does not increment the inptr when returning -1/EINVAL.
52477
52478 2008-09-07  Bruno Haible  <bruno@clisp.org>
52479
52480         * build-aux/config.rpath: Update according to libtool-2.2.6.
52481         * build-aux/config.libpath: Likewise.
52482
52483 2008-09-06  Bruno Haible  <bruno@clisp.org>
52484
52485         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52486         * lib/freadptr.c (freadptr): Likewise.
52487         * lib/freadseek.c (freadptrinc): Likewise.
52488         Reported by Simon Josefsson.
52489
52490 2008-09-06  Bruno Haible  <bruno@clisp.org>
52491
52492         * modules/freadptr (License): Change to LGPLv2+.
52493         * modules/freadseek (License): Likewise.
52494         Suggested by Eric Blake.
52495
52496         * modules/memchr2 (License): Change to LGPLv2+.
52497         Approved by Eric Blake.
52498
52499 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52500             Bruno Haible  <bruno@clisp.org>
52501
52502         Make gnulib-tool work with native 'sed' on AIX.
52503         * gnulib-tool (sed_noop): New variable.
52504         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52505         func_add_or_update, func_create_testdir): Use it to initialize sed
52506         script variables.
52507         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52508
52509 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52510             Bruno Haible  <bruno@clisp.org>
52511
52512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52513         also works after #include directives.
52514
52515 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52516
52517         getdate.y: reject an out-of-range timezone value
52518         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52519         the range [-24...+24].  When specified with only one or two digits,
52520         * tests/test-getdate.c: Tests for the fix.
52521         * doc/getdate.texi: Document this change.
52522
52523 2008-09-03  Bruno Haible  <bruno@clisp.org>
52524
52525         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52526
52527 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52528
52529         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52530         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52531         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52532         Blake <ebb9@byu.net>.
52533
52534         * tests/test-bitrotate.c: Add more test vectors.
52535
52536 2008-09-02  Eric Blake  <ebb9@byu.net>
52537
52538         vasnprintf-posix: handle large precision via %.*d
52539         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52540         when handling it ourselves.
52541         * tests/test-vasnprintf-posix.c (test_function): Add test.
52542         * tests/test-snprintf-posix.h (test_function): Likewise.
52543         * tests/test-sprintf-posix.h (test_function): Likewise.
52544         * tests/test-vasprintf-posix.c (test_function): Likewise.
52545         Reported by Alain Guibert.
52546
52547 2008-09-01  Eric Blake  <ebb9@byu.net>
52548
52549         c-stack: make configure-time check more robust
52550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52551         successful sigaction call.
52552         Reported by Tom G. Christensen.
52553
52554 2008-09-01  Bruno Haible  <bruno@clisp.org>
52555
52556         New module 'findprog-lgpl'.
52557         * modules/findprog-lgpl: New file.
52558         * lib/findprog-lgpl.c: New file.
52559         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52560         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52561         to decide whether to use strdup or xstrdup, concatenated_filename or
52562         xconcatenated_filename.
52563
52564 2008-09-01  Bruno Haible  <bruno@clisp.org>
52565
52566         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52567         'xconcat-filename' (GPL).
52568         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52569         (License): Change to LGPLv2+.
52570         * modules/xconcat-filename: New file.
52571         * lib/concat-filename.h (concatenated_filename): Change specification.
52572         (xconcatenated_filename): New declaration.
52573         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52574         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52575         memory situations.
52576         * lib/xconcat-filename.c: New file.
52577         * NEWS: Mention the change.
52578         * lib/findprog.c: Include concat-filename.h, not filename.h.
52579         (find_in_path): Use xconcatenated_filename instead of
52580         concatenated_filename.
52581         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52582         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52583         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52584         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52585         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52586         instead of concatenated_filename.
52587         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52588         (execute_java_class): Use xconcatenated_filename instead of
52589         concatenated_filename.
52590         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52591         * modules/javacomp (Depends-on): Likewise.
52592         * modules/javaexec (Depends-on): Likewise.
52593
52594 2008-09-01  Bruno Haible  <bruno@clisp.org>
52595
52596         Split module 'filename' into 'filename' and 'concat-filename'.
52597         * modules/filename: Keep only lib/filename.h.
52598         (License): Change to LGPLv2+.
52599         * modules/concat-filename: New file, extracted from modules/filename.
52600         * lib/filename.h (concatenated_filename): Remove declaration.
52601         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52602         * lib/concat-filename.c: Include concat-filename.h.
52603         * NEWS: Mention the change.
52604
52605 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52606
52607         * lib/bitrotate.h (rotl8, rotr8): Add.
52608
52609         * modules/bitrotate (configure.ac): Need
52610         AC_REQUIRE([AC_C_INLINE]).
52611         (Description): Mention stdint.h.  Reported by Bruno Haible
52612         <bruno@clisp.org>.
52613
52614         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52615         Paolo Bonzini <bonzini@gnu.org>.
52616
52617 2008-08-31  Bruno Haible  <bruno@clisp.org>
52618
52619         Assume Solaris specific bi-arch conventions on Solaris systems.
52620         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52621         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52622         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52623         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52624         like acl_libdirstem.
52625         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52626         acl_libdirstem.
52627         * NEWS: Mention the change.
52628         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52629
52630 2008-08-31  Jim Meyering  <meyering@redhat.com>
52631
52632         * lib/strftime.h: Add comments describing the two added arguments.
52633
52634         remove duplicate #include directives
52635         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52636         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52637
52638 2008-08-31  Bruno Haible  <bruno@clisp.org>
52639
52640         New module 'sigpipe-die'.
52641         * modules/sigpipe-die: New file.
52642         * lib/sigpipe-die.h: New file.
52643         * lib/sigpipe-die.c: New file.
52644         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52645
52646 2008-08-31  Bruno Haible  <bruno@clisp.org>
52647
52648         Don't override previously installed signal handlers.
52649         * lib/fatal-signal.c (saved_sigactions): New variable.
52650         (uninstall_handlers): Reset the signal to the saved handler, not
52651         to SIG_DFL (except when ignored).
52652         (install_handlers): Save the previous handlers.
52653
52654 2008-08-30  Bruno Haible  <bruno@clisp.org>
52655
52656         * gnulib-tool (func_reset_sigpipe): New function.
52657         (func_get_automake_snippet, func_modules_transitive_closure,
52658         func_import): Invoke it before a join command that reads from stdin,
52659         to avoid "echo: write error: Broken pipe" error messages on stderr.
52660         Reported by Sam Steingold <sds@gnu.org>.
52661
52662 2008-08-30  Bruno Haible  <bruno@clisp.org>
52663
52664         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52665         Code copied from m4/open.m4.
52666         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52667         access and the filename ends in a slash. Code copied from lib/open.c.
52668         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52669         * tests/test-fopen.c (main): Check against bug with trailing slash.
52670
52671 2008-08-29  Bruno Haible  <bruno@clisp.org>
52672
52673         Avoid some "gcc -pedantic" warnings.
52674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52675         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52676         * lib/dirent.in.h: Likewise.
52677         * lib/fcntl.in.h: Likewise.
52678         * lib/float.in.h: Likewise.
52679         * lib/iconv.in.h: Likewise.
52680         * lib/inttypes.in.h: Likewise.
52681         * lib/locale.in.h: Likewise.
52682         * lib/math.in.h: Likewise.
52683         * lib/netinet_in.in.h: Likewise.
52684         * lib/search.in.h: Likewise.
52685         * lib/signal.in.h: Likewise.
52686         * lib/stdarg.in.h: Likewise.
52687         * lib/stdint.in.h: Likewise.
52688         * lib/stdio.in.h: Likewise.
52689         * lib/stdlib.in.h: Likewise.
52690         * lib/string.in.h: Likewise.
52691         * lib/strings.in.h: Likewise.
52692         * lib/sys_select.in.h: Likewise.
52693         * lib/sys_socket.in.h: Likewise.
52694         * lib/sys_stat.in.h: Likewise.
52695         * lib/sys_time.in.h: Likewise.
52696         * lib/sysexits.in.h: Likewise.
52697         * lib/time.in.h: Likewise.
52698         * lib/unistd.in.h: Likewise.
52699         * lib/wchar.in.h: Likewise.
52700         * lib/wctype.in.h: Likewise.
52701         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52702         * modules/fchdir (Makefile.am): Likewise.
52703         * modules/fcntl (Makefile.am): Likewise.
52704         * modules/float (Makefile.am): Likewise.
52705         * modules/iconv_open (Makefile.am): Likewise.
52706         * modules/inttypes (Makefile.am): Likewise.
52707         * modules/locale (Makefile.am): Likewise.
52708         * modules/math (Makefile.am): Likewise.
52709         * modules/netinet_in (Makefile.am): Likewise.
52710         * modules/search (Makefile.am): Likewise.
52711         * modules/signal (Makefile.am): Likewise.
52712         * modules/stdarg (Makefile.am): Likewise.
52713         * modules/stdint (Makefile.am): Likewise.
52714         * modules/stdio (Makefile.am): Likewise.
52715         * modules/stdlib (Makefile.am): Likewise.
52716         * modules/string (Makefile.am): Likewise.
52717         * modules/strings (Makefile.am): Likewise.
52718         * modules/sys_select (Makefile.am): Likewise.
52719         * modules/sys_socket (Makefile.am): Likewise.
52720         * modules/sys_stat (Makefile.am): Likewise.
52721         * modules/sys_time (Makefile.am): Likewise.
52722         * modules/sysexits (Makefile.am): Likewise.
52723         * modules/time (Makefile.am): Likewise.
52724         * modules/unistd (Makefile.am): Likewise.
52725         * modules/wchar (Makefile.am): Likewise.
52726         * modules/wctype (Makefile.am): Likewise.
52727         Reported by Reuben Thomas <rrt@sc3d.org>.
52728
52729 2008-08-29  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52732         any more.
52733
52734 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52735
52736         * MODULES.html.sh (Misc): Add bitrotate.
52737
52738         * modules/bitrotate: New file.
52739
52740         * lib/bitrotate.h: New file.
52741
52742         * modules/bitrotate-tests: New file.
52743
52744         * tests/test-bitrotate.c: New file.
52745
52746         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52747         on the bitrotate module.
52748
52749         * lib/arctwo.c: Use new bitrotate module.
52750
52751 2008-08-29  Jim Meyering  <meyering@redhat.com>
52752
52753         bootstrap: merge changes from coreutils
52754         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52755         of copied files.  Remove a kludge, now that this is fixed.
52756         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52757         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52758         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52759
52760 2008-08-29  Bruno Haible  <bruno@clisp.org>
52761
52762         * MODULES.html.sh: Remove --cvs-urls option.
52763
52764 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52765
52766         maint.mk: adjust to file name change
52767         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52768
52769 2008-08-28  Jim Meyering  <meyering@redhat.com>
52770
52771         * modules/getndelim2 (License): Relicense to LGPLv2+.
52772         Approved by Richard Stallman for the version of 1995, and by
52773         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52774
52775 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52776
52777         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52778         dummy if one is not available.  Do not touch them if
52779         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52780         (getc_maybe_unlocked): New.
52781         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52782
52783 2008-08-26  Eric Blake  <ebb9@byu.net>
52784
52785         doc/INSTALL: resync from autoconf
52786         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52787         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52788         moving...
52789         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52790         * INSTALL: Regenerate.
52791         * INSTALL.ISO: New file.
52792         * INSTALL.UTF-8: Likewise.
52793
52794 2008-08-26  Jim Meyering  <meyering@redhat.com>
52795
52796         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52797         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52798         these definitions conditional, so that they may be overridden, too.
52799
52800 2008-08-26  Bruno Haible  <bruno@clisp.org>
52801
52802         Generate INSTALL file variants with prettier quotes.
52803         * doc/Makefile (INSTALL_PRELUDE): New macro.
52804         (INSTALL): Use it.
52805         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52806
52807 2008-08-26  Bruno Haible  <bruno@clisp.org>
52808
52809         Run makeinfo in an English locale.
52810         * doc/Makefile (MAKEINFO): New variable.
52811
52812 2008-08-26  Bruno Haible  <bruno@clisp.org>
52813
52814         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52815         Suggested by Eric Blake.
52816
52817 2008-08-25  Bruno Haible  <bruno@clisp.org>
52818
52819         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52820
52821 2008-08-25  Eric Blake  <ebb9@byu.net>
52822
52823         c-stack: test that stack overflow can be caught
52824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52825         that platform allows handling stack overflow; at least OS/2 EMX
52826         has sigaltstack, but crashes before transferring control to
52827         handler on stack overflow.
52828         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52829         check for HAVE_STACK_OVERFLOW_HANDLING.
52830         Reported by Elbert Pol.
52831
52832 2008-08-25  Bruno Haible  <bruno@clisp.org>
52833
52834         * doc/posix-functions/strftime.texi: Fix description of strftime
52835         module.
52836
52837 2008-08-24  Bruno Haible  <bruno@clisp.org>
52838
52839         * tests/uniwidth/test-uc_width2.c: New file.
52840         * tests/uniwidth/test-uc_width2.sh: New file.
52841         * modules/uniwidth/width-tests (Files): Add the new files.
52842         (TESTS): Add uniwidth/test-uc_width2.sh.
52843         (TESTS_ENVIRONMENT): New variable.
52844         (check_PROGRAMS): Add test-uc_width2.
52845         (test_uc_width2_SOURCES): New variable.
52846
52847         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52848         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52849         not 0x00AB.
52850         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52851
52852 2008-08-22  Eric Blake  <ebb9@byu.net>
52853
52854         test-lock, test-tls: mention why a test is skipped
52855         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52856         skipped.
52857         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52858
52859         count-one-bits: relax license
52860         * modules/count-one-bits (License): Relicense to LGPLv2+.
52861         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52862
52863 2008-08-22  Andreas Schwab  <schwab@suse.de>
52864
52865         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52866         Remove spurious space in assignment.
52867
52868 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52869
52870         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52871         Paul Eggert <eggert@CS.UCLA.EDU>.
52872
52873 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52874
52875         * modules/gettext: Add m4/threadlib.m4.
52876
52877 2008-08-19  Eric Blake  <ebb9@byu.net>
52878
52879         test-c-stack: fix compilation failure on FreeBSD 5.0
52880         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52881         headers before <sys/resource.h>.
52882         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52883         the bug.
52884         Reported by Nelson H. F. Beebe.
52885
52886         strverscmp: migrate from "strverscmp.h" to <string.h>
52887         * modules/string (Makefile.am): Add new hooks.
52888         * modules/strverscmp (Files): Remove strverscmp.h.
52889         (Depends-on): Add string.
52890         (configure.ac): Add indicator.
52891         (Include): Mention new header.
52892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52893         defaults.
52894         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52895         results.
52896         * lib/strverscmp.h: Delete.
52897         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52898         * tests/test-strverscmp.c (includes): Adjust client.
52899         * lib/check-version.c (includes): Likewise.
52900         * NEWS: Document the change.
52901
52902         strverscmp: add unit test
52903         * modules/strverscmp-tests: New file.
52904         * tests/test-strverscmp.c: Likewise.
52905
52906 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52907
52908         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52909         regarding Windows crypto stuff, from Mono.
52910
52911 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52912
52913         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52914         if present, for intel RND.  Return error on failures.
52915
52916 2008-08-18  Ben Pfaff  <blp@gnu.org>
52917
52918         gitlog-to-changelog: give better diagnostic for failed pipe-open
52919         * build-aux/gitlog-to-changelog: Improve error message: suggest
52920         that the version of Git may be too old.
52921
52922 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52923
52924         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52925         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52926
52927 2008-08-18  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52930         pthread_in_use().
52931
52932 2008-08-18  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/glthread/threadlib.c: Include <pthread.h>.
52935
52936 2008-08-18  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52939         glthread_recursive_lock_* macros.
52940         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52941         Fix syntax error.
52942
52943 2008-08-18  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/glthread/thread.c: Avoid forcing a context switch right after
52946         thread creation.
52947
52948 2008-08-17  Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52951         * lib/glthread/thread.h: Provide Win32 specific implementation.
52952         * modules/thread (Files): Add lib/glthread/thread.c.
52953         (Depends-on): Add lock.
52954         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52955
52956 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52957
52958         New module 'yield'.
52959         * modules/yield: New file.
52960         * lib/glthread/yield.h: New file.
52961         * m4/yield.m4: New file.
52962         * MODULES.html.sh (Multithreading): Add yield.
52963
52964 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52965
52966         New module 'thread'.
52967         * modules/thread: New file.
52968         * lib/glthread/thread.h: New file.
52969         * m4/thread.m4: New file.
52970         * MODULES.html.sh (Multithreading): Add thread.
52971
52972 2008-08-17  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/glthread/lock.h: Include <stdlib.h> always.
52975         * lib/glthread/tls.h: Likewise.
52976         * lib/glthread/cond.h: Likewise.
52977
52978 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52979
52980         New module 'cond'.
52981         * modules/cond: New file.
52982         * lib/glthread/cond.h: New file.
52983         * lib/glthread/cond.c: New file.
52984         * m4/cond.m4: New file.
52985         * MODULES.html.sh (Multithreading): Add cond.
52986
52987 2008-08-16  Eric Blake  <ebb9@byu.net>
52988
52989         c-stack: fix regression on Irix 5.3 from 2008-06-21
52990         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52991         sa_sigaction...
52992         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52993         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52994         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52995         * modules/signal (Makefile.am): Use the value.
52996         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52997         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52998         * doc/posix-headers/signal.texi (signal.h): Document this
52999         portability issue.
53000         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53001         Reported by Tom G. Christensen.
53002
53003 2008-08-17  Bruno Haible  <bruno@clisp.org>
53004
53005         New module 'threadlib'.
53006         * modules/threadlib: New file.
53007         * lib/glthread/threadlib.c: New file, extracted from
53008         lib/glthread/lock.c.
53009         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53010         functions.
53011         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53012         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53013         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53014         macros.
53015         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53016         (gl_DISABLE_THREADS): Remove macro.
53017         * modules/lock (Files): Remove build-aux/config.rpath.
53018         (Depends-on): Remove havelib. Add threadlib.
53019         (configure.ac-early): Remove section.
53020         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53021         * modules/tls (Depends-on): Remove lock. Add threadlib.
53022         (Link): New section, copied from threadlib.
53023         * MODULES.html.sh (Multithreading): Add threadlib.
53024
53025 2008-08-14  Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53028         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53029         glthread_rwlock_unlock, glthread_rwlock_destroy,
53030         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53031         glthread_recursive_lock_destroy): Define as macros always.
53032         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53033         glthread_lock_lock.
53034         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53035         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53036         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53037         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53038         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53039         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53040         (glthread_recursive_lock_lock_func): Renamed from
53041         glthread_recursive_lock_lock.
53042         (glthread_recursive_lock_unlock_func): Renamed from
53043         glthread_recursive_lock_unlock.
53044         (glthread_recursive_lock_destroy_func): Renamed from
53045         glthread_recursive_lock_destroy.
53046
53047 2008-08-14  Bruno Haible  <bruno@clisp.org>
53048
53049         * lib/glthread/lock.h: Renamed from lib/lock.h.
53050         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53051         * lib/glthread/tls.h: Renamed from lib/tls.h.
53052         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53053         * lib/fstrcmp.c: Update includes.
53054         * lib/strsignal.c: Update includes.
53055         * modules/lock (Files, Makefile.am): Update.
53056         (Include): Change to "glthread/lock.h".
53057         * modules/tls (Files, Makefile.am): Update.
53058         (Include): Change to "glthread/tls.h".
53059         * tests/test-lock.c: Update includes.
53060         * tests/test-tls.c: Update includes.
53061         * NEWS: Mention the renamed header files.
53062
53063 2008-08-11  Jim Meyering  <meyering@redhat.com>
53064
53065         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53066
53067 2008-08-11  Eric Blake  <ebb9@byu.net>
53068
53069         test-c-stack: avoid C99-ism
53070         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53071         before statement.
53072         Reported by Alain Guibert.
53073
53074 2008-08-10  Jim Meyering  <meyering@redhat.com>
53075
53076         ensure that return value of uinttostr et al are not ignored
53077         * lib/inttostr.h (__GNUC_PREREQ): Define.
53078         (__attribute_warn_unused_result__): Define.
53079         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53080
53081 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53082
53083         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53084         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53085
53086 2008-08-07  Jim Meyering  <meyering@redhat.com>
53087
53088         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53089
53090         * modules/mkstemp (License): Relicense under LGPLv2+.
53091         * modules/tempname (License): Likewise.
53092
53093 2008-08-06  Bruno Haible  <bruno@clisp.org>
53094
53095         * lib/poll.c (poll): Further micro-optimization.
53096
53097 2008-08-06  Jim Meyering  <meyering@redhat.com>
53098
53099         inet_pton.c: use locale-independent tolower
53100         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53101         (inet_pton6): Use c_tolower rather than tolower.
53102         * modules/inet_pton (Depends-on): Add c-ctype.
53103
53104 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53105
53106         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53107         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53108
53109 2008-08-06  Jim Meyering  <meyering@redhat.com>
53110
53111         * modules/inet_pton (License): Relicense under LGPLv2+.
53112
53113 2008-08-03  Bruno Haible  <bruno@clisp.org>
53114
53115         Additional non-aborting API for lock and tls.
53116         * lib/lock.h: Include <errno.h>.
53117         (glthread_lock_init): New macro/function.
53118         (gl_lock_init): Define as wrapper around glthread_lock_init.
53119         (glthread_lock_lock): New macro/function.
53120         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53121         (glthread_lock_unlock): New macro/function.
53122         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53123         (glthread_lock_destroy): New macro/function.
53124         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53125         (glthread_rwlock_init): New macro/function.
53126         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53127         (glthread_rwlock_rdlock): New macro/function.
53128         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53129         (glthread_rwlock_wrlock): New macro/function.
53130         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53131         (glthread_rwlock_unlock): New macro/function.
53132         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53133         (glthread_rwlock_destroy): New macro/function.
53134         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53135         (glthread_recursive_lock_init): New macro/function.
53136         (gl_recursive_lock_init): Define as wrapper around
53137         glthread_recursive_lock_init.
53138         (glthread_recursive_lock_lock): New macro/function.
53139         (gl_recursive_lock_lock): Define as wrapper around
53140         glthread_recursive_lock_lock.
53141         (glthread_recursive_lock_unlock): New macro/function.
53142         (gl_recursive_lock_unlock): Define as wrapper around
53143         glthread_recursive_lock_unlock.
53144         (glthread_recursive_lock_destroy): New macro/function.
53145         (gl_recursive_lock_destroy): Define as wrapper around
53146         glthread_recursive_lock_destroy.
53147         (glthread_once): New macro/function.
53148         (gl_once): Define as wrapper around glthread_once.
53149         Update function declarations.
53150         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53151         glthread_rwlock_init. Return error code.
53152         (glthread_rwlock_rdlock_multithreaded): Renamed from
53153         glthread_rwlock_rdlock. Return error code.
53154         (glthread_rwlock_wrlock_multithreaded): Renamed from
53155         glthread_rwlock_wrlock. Return error code.
53156         (glthread_rwlock_unlock_multithreaded): Renamed from
53157         glthread_rwlock_unlock. Return error code.
53158         (glthread_rwlock_destroy_multithreaded): Renamed from
53159         glthread_rwlock_destroy. Return error code.
53160         (glthread_recursive_lock_init_multithreaded): Renamed from
53161         glthread_recursive_lock_init. Return error code.
53162         (glthread_recursive_lock_lock_multithreaded): Renamed from
53163         glthread_recursive_lock_lock. Return error code.
53164         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53165         glthread_recursive_lock_unlock. Return error code.
53166         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53167         glthread_recursive_lock_destroy. Return error code.
53168         (glthread_once_call): Make static.
53169         (glthread_once_multithreaded): Renamed from glthread_once.
53170         * lib/tls.h: Include <errno.h>.
53171         (glthread_tls_key_init): New macro/function.
53172         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53173         (glthread_tls_set): New macro/function.
53174         (gl_tls_set): Define as wrapper around glthread_tls_set.
53175         (glthread_tls_key_destroy): New macro/function.
53176         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53177         Update function declarations.
53178         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53179         glthread_tls_get.
53180         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53181
53182 2008-08-04  Eric Blake  <ebb9@byu.net>
53183
53184         gnumakefile: use space, not TAB, outside of targets
53185         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53186
53187 2008-08-02  Jim Meyering  <meyering@redhat.com>
53188
53189         getdate.y: avoid locale-dependent date parsing failure
53190         In Turkish locales, getdate would fail to recognize keywords
53191         containing a lowercase "i".  The solution is not to rely on
53192         locale-sensitive case-conversion.
53193         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53194         (lookup_word): Use c_toupper in place of toupper.
53195         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53196         Reported by Vefa Bicakci <bicave@superonline.com> in
53197         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53198         * modules/getdate (Depends-on): Add c-ctype.
53199
53200 2008-08-02  Bruno Haible  <bruno@clisp.org>
53201
53202         * gnulib-tool (func_import): When updating or creating a .gitignore
53203         file, prepend each added line with a slash, and ignore leading slashes
53204         from the existing lines.
53205         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53206
53207 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53208
53209         Portability fix for GNU make 3.79.1.
53210         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53211         versions do not understand.
53212
53213 2008-08-01  Bruno Haible  <bruno@clisp.org>
53214
53215         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53216         * tests/test-isnanf.h (zero): New variable.
53217         (main): Avoid literal -0.0f.
53218         * tests/test-isnand.h (zero): New variable.
53219         (main): Avoid literal -0.0.
53220         * tests/test-isnanl.h (zero): New variable.
53221         (main): Avoid literal -0.0L.
53222         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53223         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53224         -0.0, -0.0L.
53225         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53226         (test_signbitd): Avoid literal -0.0.
53227         (test_signbitl): Avoid literal -0.0L.
53228         * tests/test-ceilf1.c (zero): New variable.
53229         (main): Avoid literal -0.0f.
53230         * tests/test-ceill.c (zero): New variable.
53231         (main): Avoid literal -0.0L.
53232         * tests/test-floorf1.c (zero): New variable.
53233         (main): Avoid literal -0.0f.
53234         * tests/test-floorl.c (zero): New variable.
53235         (main): Avoid literal -0.0L.
53236         * tests/test-roundf1.c (zero): New variable.
53237         (main): Avoid literal -0.0f.
53238         * tests/test-round1.c (zero): New variable.
53239         (main): Avoid literal -0.0.
53240         * tests/test-roundl.c (zero): New variable.
53241         (main): Avoid literal -0.0L.
53242         * tests/test-truncf1.c (zero): New variable.
53243         (main): Avoid literal -0.0f.
53244         * tests/test-trunc1.c (zero): New variable.
53245         (main): Avoid literal -0.0.
53246         * tests/test-truncl.c (zero): New variable.
53247         (main): Avoid literal -0.0L.
53248         * tests/test-frexp.c (zero): New variable.
53249         (main): Avoid literal -0.0.
53250         * tests/test-frexpl.c (zero): New variable.
53251         (main): Avoid literal -0.0L.
53252         * tests/test-ldexpl.c (zero): New variable.
53253         (main): Avoid literal -0.0L.
53254         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53255         (zerod, zerol): New variables.
53256         (test_function): Avoid literals -0.0, -0.0L.
53257         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53258         (zerod, zerol): New variables.
53259         (test_function): Avoid literals -0.0, -0.0L.
53260         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53261         (zerod, zerol): New variables.
53262         (test_function): Avoid literals -0.0, -0.0L.
53263         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53264         (zerod, zerol): New variables.
53265         (test_function): Avoid literals -0.0, -0.0L.
53266         * tests/test-strtod.c (zero): New variable.
53267         (main): Avoid literal -0.0.
53268         Reported by Jonathan C. Patschke <jp@centtech.com>.
53269
53270 2008-07-31  Jim Meyering  <meyering@redhat.com>
53271
53272         sha256.h: correct definition of SHA224_DIGEST_SIZE
53273         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53274         Reported by Paulie Pena IV <paulie4@gmail.com>.
53275         Define as 224 / 8, rather than as a literal.
53276         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53277         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53278         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53279
53280 2008-07-31  Bruno Haible  <bruno@clisp.org>
53281
53282         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53283         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53284         Reported by Jonathan Patschke <jp@centtech.com>.
53285
53286 2008-07-31  Bruno Haible  <bruno@clisp.org>
53287
53288         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53289         Reported by Paolo Bonzini <bonzini@gnu.org>.
53290
53291 2008-07-30  Eric Blake  <ebb9@byu.net>
53292
53293         test-strtod: allow compilation without -lm
53294         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53295         Reported by Dennis Clarke <blastwave@gmail.com>.
53296
53297 2008-07-28  Jim Meyering  <meyering@redhat.com>
53298
53299         bootstrap: work also when there are no .po files in po/
53300         * build-aux/bootstrap (update_po_files): Complete the change
53301         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53302
53303 2008-07-27  Jim Meyering  <meyering@redhat.com>
53304
53305         * users.txt: Add zile.
53306
53307 2008-07-26  Ben Pfaff  <blp@gnu.org>
53308
53309         Add missing dependencies on new m4/exponent[fdl].m4 files.
53310         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53311         * modules/isnand-nolibm: Add m4/exponentd.m4.
53312         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53313         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53314         m4/isnan[fdl].m4, because the macros actually used moved.
53315         Reported by Jim Meyering.
53316
53317 2008-07-14  Ben Pfaff  <blp@gnu.org>
53318
53319         Add isinf module.
53320         * lib/isinf.c: New file.
53321         * lib/math.in.h: Define isinf macro if we have decided to replace
53322         it.
53323         * m4/isinf.m4: New file.
53324         * m4/math_h.m4: Initialize and substitute variables for isinf
53325         module.
53326         * modules/isinf: New file.
53327         * modules/isinf-tests: New file.
53328         * modules/math: Add substitutions for new module.
53329         * tests/test-isinf.c: New file.
53330         * doc/posix-functions/isinf.texi: Mention new module.
53331         * MODULES.html.sh: Mention new module.
53332
53333 2008-07-14  Ben Pfaff  <blp@gnu.org>
53334
53335         Factor out some macros for use by additional modules.
53336         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53337         exponentf.m4.
53338         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53339         exponentd.m4.
53340         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53341         file exponentl.m4.
53342         * m4/exponentf.m4: New file.
53343         * m4/exponentd.m4: New file.
53344         * m4/exponentl.m4: New file.
53345         * modules/isnanf: Use new file m4/exponentf.m4.
53346         * modules/isnand: Use new file m4/exponentd.m4.
53347         * modules/isnanl: Use new file m4/exponentl.m4.
53348
53349 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53350
53351         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53352         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53353         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53354         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53355
53356         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53357         readlink on platforms without PATH_MAX.
53358
53359 2008-07-21  Eric Blake  <ebb9@byu.net>
53360
53361         Warn, not fail, on stale version.
53362         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53363
53364         Don't allow installation with stale devel version number.
53365         * top/GNUmakefile (_is-install-target): New macro.
53366         (_curr-ver): Forbid installation with stale version number.
53367
53368 2008-07-20  Bruno Haible  <bruno@clisp.org>
53369
53370         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53371         TESTS_ENVIRONMENT.
53372         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53373
53374 2008-07-20  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/c-stack.h (c_stack_action): Add documentation.
53377         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53378
53379 2008-07-20  Bruno Haible  <bruno@clisp.org>
53380
53381         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53382         * modules/readlink (License): Likewise.
53383
53384 2008-07-17  Eric Blake  <ebb9@byu.net>
53385
53386         * modules/c-stack (Link): Fix typo.
53387
53388         Make c-stack use libsigsegv, when available.
53389         * modules/c-stack (Depends-on): Add libsigsegv.
53390         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53391         needed.
53392         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53393         (segv_handler, overflow_handler, c_stack_action)
53394         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53395         implementation when libsigsegv is available, but only when using
53396         the library is necessary.
53397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53398         comment, explaining why XSI check fails on Linux.
53399         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53400         * tests/test-c-stack2.sh: Tweak skip message.
53401         * NEWS: Document new link-time requirements.
53402
53403 2008-07-16  Eric Blake  <ebb9@byu.net>
53404
53405         c-stack: Expose false positives when not using libsigsegv.
53406         * modules/c-stack-tests (Files): Expand test.
53407         * tests/test-c-stack.c (main): Add means to conditionally trigger
53408         non-overflow SIGSEGV.
53409         * tests/test-c-stack2.sh: New file.
53410
53411 2008-07-14  Bruno Haible  <bruno@clisp.org>
53412
53413         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53414         Reported by Eric Blake.
53415
53416 2008-07-14  Sam Steingold  <sds@gnu.org>
53417             Bruno Haible  <bruno@clisp.org>
53418
53419         New module libsigsegv.
53420         * modules/libsigsegv: New file.
53421         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53422         modifications.
53423         * MODULES.html.sh (Signal handling): New section.
53424
53425 2008-07-14  Bruno Haible  <bruno@clisp.org>
53426
53427         * modules/unictype/ctype-* (Description): Add the word "function".
53428         Improves the resulting doc in MODULES.html.
53429
53430 2008-07-12  Ben Pfaff  <blp@gnu.org>
53431
53432         Add longlong module.
53433         * modules/longlong: New file.
53434
53435 2008-07-12  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53438         to empty.
53439
53440 2008-07-10  Ben Pfaff  <blp@gnu.org>
53441
53442         Add isnan module.
53443         * doc/posix-functions/isnan.texi: Mention new module.
53444         * lib/math.in.h: Define isnan macro if we have decided to replace
53445         it.
53446         * m4/isnan.m4: New file.
53447         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53448         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53449         also.
53450         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53451         redundancy.
53452         * m4/math_h.m4: Initialize and substitute variables for isnan
53453         module.
53454         * modules/isnan: New file.
53455         * modules/isnan-tests: New file.
53456         * modules/math: Add substitutions for new module.
53457         * tests/test-isnan.c: New file.
53458         * MODULES.html.sh: Mention new module.
53459
53460 2008-07-10  Ben Pfaff  <blp@gnu.org>
53461
53462         Add isnanf module.
53463         * lib/isnanf.m4: New file.
53464         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53465         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53466         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53467         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53468         * modules/isnanf: New file.
53469         * modules/isnanf-tests: New file.
53470         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53471         files.
53472         * tests/test-isnanf-nolibm.c: factored most of its contents into
53473         new file tests/test-isnanf.h.
53474         * tests/test-isnanf.h: New file.
53475         * tests/test-isnanf.c: New file.
53476         * MODULES.html.sh: Mention new module.
53477         * doc/glibc-functions/isnanf.texi: Mention new module.
53478
53479 2008-07-10  Ben Pfaff  <blp@gnu.org>
53480
53481         Add isnand module.
53482         * lib/isnand.h: New file.
53483         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53484         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53485         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53486         functionality also.
53487         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53488         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53489         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53490         * modules/isnand: New file.
53491         * modules/isnand-tests: New file.
53492         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53493         files.
53494         * tests/test-isnand-nolibm.c: factored most of its contents into
53495         new file tests/test-isnand.h.
53496         * tests/test-isnand.h: New file.
53497         * tests/test-isnand.c: New file.
53498         * MODULES.html.sh: Mention new module.
53499
53500 2008-07-10  Ben Pfaff  <blp@gnu.org>
53501
53502         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53503         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53504         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53505         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53506         * modules/isnanf-nolibm: Update references to renamed files.
53507         * modules/isnand-nolibm: Likewise.
53508         * modules/isnanf-nolibm-tests: Likewise.
53509         * modules/isnand-nolibm-tests: Likewise.
53510         * lib/frexp.c: Likewise.
53511         * lib/isfinite.c: Likewise.
53512         * lib/signbitd.c: Likewise.
53513         * lib/signbitf.c: Likewise.
53514         * lib/vasnprintf.c: Likewise.
53515         * tests/test-ceilf1.c: Likewise.
53516         * tests/test-ceilf2.c: Likewise.
53517         * tests/test-floorf1.c: Likewise.
53518         * tests/test-floorf2.c: Likewise.
53519         * tests/test-frexp.c: Likewise.
53520         * tests/test-round1.c: Likewise.
53521         * tests/test-round2.c: Likewise.
53522         * tests/test-roundf1.c: Likewise.
53523         * tests/test-strtod.c: Likewise.
53524         * tests/test-trunc1.c: Likewise.
53525         * tests/test-trunc2.c: Likewise.
53526         * tests/test-truncf1.c: Likewise.
53527         * tests/test-truncf2.c: Likewise.
53528         * NEWS: Mention the renamed header files.
53529
53530 2008-07-11  Jim Meyering  <meyering@redhat.com>
53531
53532         vc-list-files: make the last-resort awk code more portable
53533         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53534         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53535         does not support it.
53536
53537 2008-07-10  Eric Blake  <ebb9@byu.net>
53538
53539         Work with tar's bootstrap.
53540         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53541         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53542         an m4 comment.
53543
53544 2008-07-09  Jim Meyering  <meyering@redhat.com>
53545
53546         posix-shell.m4: fix typo that made this test malfunction
53547         * m4/posix-shell.m4: Remove capitalization in variable name.
53548
53549 2008-07-08  Bruno Haible  <bruno@clisp.org>
53550
53551         * m4/onceonly.m4: Update comments.
53552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53553
53554 2008-07-04  Jim Meyering  <meyering@redhat.com>
53555
53556         * users.txt: Add vc-dwim.
53557         (bison, coreutils): Use the gitweb URL.
53558
53559 2008-07-03  Jim Meyering  <meyering@redhat.com>
53560
53561         * users.txt: Add libffcall.  From Sam Steingold.
53562
53563 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53564
53565         getdate.y: do not ignore TZ with relative day, month or year offset
53566         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53567         relative-date-handling, since otherwise, the latter would clobber the
53568         sole output (an updated Start value) of the tz-handling block.
53569         * tests/test-getdate.c: Tests for the fix
53570
53571 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53572
53573         Recognize 'foo_LIBRARIES += libgnu.a'.
53574         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53575         makefile snippet has already specified an installation location,
53576         also using '+='.
53577
53578 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53579
53580         getdate.y: factor out common actions
53581         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53582         Use them in place of open-coded actions.
53583
53584 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53585
53586         Add self-test for getdate module.
53587         * modules/getdate-tests: New file.
53588         * tests/test-getdate.c: New file.
53589
53590 2008-06-29  Bruno Haible  <bruno@clisp.org>
53591
53592         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53593         .gitignore.
53594         Reported by Sylvain Beucler <beuc@beuc.net>.
53595
53596 2008-06-29  Bruno Haible  <bruno@clisp.org>
53597
53598         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53599         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53600
53601 2008-06-29  Bruno Haible  <bruno@clisp.org>
53602
53603         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53604         EXTRA_DIST.
53605         Reported by Sylvain Beucler <beuc@beuc.net>.
53606
53607 2008-06-26  Jim Meyering  <meyering@redhat.com>
53608
53609         make several modules depend on the "open" module
53610         This provides slightly increased consistency when opening-for-write
53611         the name of a non-directory spelled with a trailing slash.
53612         * modules/chdir-safer: Likewise.
53613         * modules/chown: Likewise.
53614         * modules/clean-temp: Likewise.
53615         * modules/copy-file: Likewise.
53616         * modules/fchdir: Likewise.
53617         * modules/fcntl-safer: Likewise.
53618         * modules/pipe: Likewise.
53619         * modules/utime: Likewise.
53620         Prompted by Eric Blake and Bruno Haible.
53621
53622 2008-06-24  Andreas Schwab  <schwab@suse.de>
53623
53624         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53625         literals can be used as initializers for global variables.
53626
53627 2008-06-23  Eric Blake  <ebb9@byu.net>
53628
53629         Make gnulib-cache.m4 easier to diff.
53630         * gnulib-tool (func_import): Allow newlines when reading cached
53631         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53632
53633 2008-06-23  Bruno Haible  <bruno@clisp.org>
53634
53635         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53636         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53637         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53638         m4/signalblocking.m4.
53639         (gl_PREREQ_SIGACTION): Don't invoke it.
53640         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53641         gl_PREREQ_SIG_HANDLER_H.
53642         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53643         Don't check for sigaction here.
53644
53645 2008-06-23  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53648         (install_handlers): Don't set the SA_RESETHAND flag.
53649
53650 2008-06-23  Bruno Haible  <bruno@clisp.org>
53651
53652         * m4/sigaction.m4: Comment fixes.
53653         * lib/signal.in.h: Likewise.
53654
53655 2008-06-23  Eric Blake  <ebb9@byu.net>
53656
53657         Fix typo.
53658         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53659
53660         Avoid SA_ namespace.
53661         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53662         Reported by Ralf Wildenhues.
53663
53664         Avoid test failure due to SA_RESTORER.
53665         * tests/test-sigaction.c (SA_MASK): New macro.
53666         (main): Avoid failing due to extension flags being set.
53667         Reported by Jim Meyering.
53668
53669         Revert use of sig-handler.h in sigprocmask.c.
53670         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53671         it requires the existence of struct sigaction.
53672         * lib/sigprocmask.c (handler_t): Restore typedef.
53673         (rpl_signal, old_handlers): Use local type.
53674
53675 2008-06-22  Bruno Haible  <bruno@clisp.org>
53676
53677         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53678         conditionally.
53679         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53680
53681 2008-06-22  Bruno Haible  <bruno@clisp.org>
53682
53683         * doc/posix-functions/siginterrupt.texi: Move note.
53684
53685         * lib/signal.in.h (SA_RESTART): New macro.
53686         * lib/sigaction.c: Update comment.
53687
53688         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53689
53690         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53691         (gl_PREREQ_SIGPROCMASK): Invoke it.
53692         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53693
53694         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53695
53696         * lib/sigprocmask.c: Update a comment.
53697
53698 2008-06-21  Eric Blake  <ebb9@byu.net>
53699
53700         Use sigaction module rather than signal().
53701         * modules/c-stack (Depends-on): Add sigaction.
53702         * modules/fatal-signal (Depends-on): Likewise.
53703         * modules/nanosleep (Depends-on): Likewise.
53704         * modules/sigprocmask (Files): Add sig-handler.h.
53705         * modules/sigaction (Files): Likewise.
53706         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53707         Eggert.
53708         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53709         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53710         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53711         (init_fatal_signals): Likewise.
53712         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53713         (siginterrupt): Delete fallback.
53714         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53715         instead.
53716         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53717         siginterrupt.
53718
53719         New module sigaction, for mingw.
53720         * modules/sigaction: New module...
53721         * modules/sigaction-tests: ...and its test.
53722         * m4/sigaction.m4: New file.
53723         * lib/sigaction.c: Likewise.
53724         * tests/test-sigaction.c: Likewise.
53725         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53726         * modules/signal (Makefile.am): Likewise.
53727         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53728         needed.
53729         * doc/posix-headers/signal.texi (signal.h): Mention provided
53730         types.
53731         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53732         that sigaction is preferable.
53733         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53734         module.
53735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53736         sigaction.
53737
53738         Improve robustness of sigprocmask by overriding signal.
53739         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53740         is in use.
53741         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53742         (SIGKILL, SIGSTOP): Provide fallbacks.
53743         (rpl_signal): Implement.
53744         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53745         signal can be called inside handlers.
53746
53747         Fix nanosleep module on mingw.
53748         * modules/nanosleep (Depends-on): Add sys_select.
53749         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53750
53751         Fix licensing of sigprocmask.
53752         * modules/raise (License): Relicense as LGPL.
53753
53754 2008-06-21  Bruno Haible  <bruno@clisp.org>
53755
53756         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53757         result if it contains question marks.
53758         Reported by Michael Geng <linux@michaelgeng.de>.
53759
53760 2008-06-19  Bruno Haible  <bruno@clisp.org>
53761
53762         Fix CVS-ism.
53763         * doc/gnulib.texi: Include updated-stamp.texi.
53764         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53765         (updated-stamp.texi): New rule.
53766         (gnulib.info): Depend on it.
53767         * doc/.gitignore: Add updated-stamp.texi.
53768         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53769
53770 2008-06-19  Bruno Haible  <bruno@clisp.org>
53771
53772         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53773         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53774
53775 2008-06-19  Eric Blake  <ebb9@byu.net>
53776
53777         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53778         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53779         Reported by Stepan Kasal.
53780
53781 2008-06-18  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53784         Reported by Eric Blake.
53785
53786 2008-06-18  Eric Blake  <ebb9@byu.net>
53787
53788         Work around cygwin 1.5.25 strsignal bug.
53789         * tests/test-strsignal.c: Allow for const char *.
53790         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53791
53792 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53793
53794         * users.txt: Update URL to article and add author/date
53795         information.
53796
53797 2008-06-17  Bruno Haible  <bruno@clisp.org>
53798
53799         New macro gl_DISABLE_THREADS.
53800         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53801         if the user did not pass --enable-threads or --disable-threads option.
53802         (gl_DISABLE_THREADS): New macro.
53803         Reported by Eric Blake <ebb9@byu.net>.
53804
53805 2008-06-17  Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53808         when the macro ignores it.
53809         Based on a patch by Eric Blake <ebb9@byu.net>.
53810
53811 2008-06-17  Bruno Haible  <bruno@clisp.org>
53812
53813         * modules/tls (License): Change to LGPLv2+.
53814         Reported by Eric Blake.
53815
53816 2008-06-17  Eric Blake  <ebb9@byu.net>
53817
53818         Simplify c-stack prerequisites.
53819         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53821         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53822         check.
53823         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53824         <sys/resource.h>.
53825
53826         Move c-stack test into testsuite.
53827         * modules/c-stack-tests: New file.
53828         * lib/c-stack.c [DEBUG]: Move test program...
53829         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53830         fail test if sigaltstack is lacking.
53831         * tests/test-c-stack.sh: New driver file.
53832
53833 2008-06-16  Eric Blake  <ebb9@byu.net>
53834
53835         Use raise module consistently.
53836         * modules/fatal-signal (Depends-on): Add raise.
53837         * modules/sigprocmask (Depends-on): Likewise.
53838         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53839         * lib/sigprocmask.c (sigprocmask): Likewise.
53840         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53841         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53842
53843         Fix compliance bug in sigpending.
53844         * lib/sigprocmask.c (sigpending): Return pending array via
53845         parameter, not return value.
53846
53847 2008-06-14  Eric Blake  <ebb9@byu.net>
53848
53849         Improve obstack-printf test code.
53850         * tests/test-obstack-printf.c (test_function): Fix comment, and
53851         simplify usage of obstack_* in macros.  Add a test for coverage.
53852         Reported by Bruno Haible.
53853
53854 2008-06-14  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53857         array size as a constant, not as a const variable.
53858         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53859         AC_USE_SYSTEM_EXTENSIONS.
53860         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53861         Test whether the obstack_printf function actually exists.
53862         * modules/obstack-printf (Depends-on): Add extensions.
53863         (Include): Remove obstack.h.
53864         * modules/obstack-printf-posix (Depends-on): Add extensions.
53865         (Include): Remove obstack.h.
53866
53867 2008-06-13  Eric Blake  <ebb9@byu.net>
53868
53869         Add obstack-printf and obstack-printf-posix modules.
53870         * modules/obstack-printf: New file.
53871         * modules/obstack-printf-posix: Likewise.
53872         * MODULES.html.sh (Misc): Mention them.
53873         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53874         Likewise.
53875         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53876         Likewise.
53877         * modules/stdio (Makefile.am): Accomodate new modules.
53878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53879         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53880         Declare.
53881         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53882         functions.
53883         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53884         (gl_REPLACE_OBSTACK_PRINTF): New macros
53885         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53886         * tests/test-obstack-printf.c: New file.
53887         * modules/obstack-printf-tests: Likewise.
53888         * modules/obstack-printf-posix-tests: Likewise.
53889
53890 2008-06-11  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53893         * lib/open.c: Include errno.h.
53894         (open): Fail when attempting to write to a file that has a trailing
53895         slash.
53896         * tests/test-open.c (main): Test against trailing slash bug.
53897         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53898
53899 2008-06-10  Bruno Haible  <bruno@clisp.org>
53900
53901         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53902         for $? to work inside the trap command, with various /bin/sh-s.
53903         * tests/test-vc-list-files-cvs.sh: Likewise.
53904
53905 2008-06-10  Bruno Haible  <bruno@clisp.org>
53906
53907         * lib/acl-internal.h: Don't include gettext.h here.
53908         * lib/set-mode-acl.c: Include gettext.h here.
53909         * lib/copy-acl.c: Likewise.
53910
53911 2008-06-10  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53914         * lib/wait-process.c (wait_subprocess): Likewise.
53915         * lib/execute.h (execute): Add termsigp argument.
53916         * lib/execute.c (execute): Likewise.
53917         * lib/csharpcomp.c (compile_csharp_using_pnet,
53918         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53919         * lib/csharpexec.c (execute_csharp_using_pnet,
53920         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53921         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53922         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53923         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53924         is_jikes_present): Update.
53925         * lib/javaexec.c (execute_java_class): Update.
53926         * lib/javaversion.c (execute_and_read_line): Update.
53927         * NEWS: Document the changes.
53928         Reported by Eric Blake.
53929
53930 2008-06-10  Eric Blake  <ebb9@byu.net>
53931
53932         Add missing include.
53933         * tests/test-strstr.c (includes): Add <signal.h>.
53934         * tests/test-strcasestr.c (includes): Likewise.
53935         * tests/test-memmem.c (includes): Likewise.
53936
53937 2008-06-10  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/wait-process.c (wait_subprocess): Add an assertion.
53940
53941 2008-06-10  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53944
53945 2008-06-10  Bruno Haible  <bruno@clisp.org>
53946
53947         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53948         using alarm().
53949         * tests/test-strcasestr.c (main): Likewise.
53950         * tests/test-strstr.c (main): Likewise.
53951
53952 2008-06-09  Bruno Haible  <bruno@clisp.org>
53953
53954         Work around the Solaris 10 ACE ACLs ABI change.
53955         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53956         declare if ACL_NO_TRIVIAL is present.
53957         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53958         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53959         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53960         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53961         define if ACL_NO_TRIVIAL is present.
53962         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53963         and use the current ABI.
53964         (file_has_acl): Use same #if condition as elsewhere.
53965         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53966         in use, and use the current ABI.
53967         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53968         Reported by Jim Meyering.
53969
53970 2008-06-09  Eric Blake  <ebb9@byu.net>
53971
53972         Work around environments that (stupidly) ignore SIGALRM.
53973         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53974         before using alarm().
53975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53977         Reported by Ian Beckwith <ianb@erislabs.net>.
53978
53979         Produce autobuild blurb earlier in log.
53980         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53981
53982 2008-06-09  Jim Meyering  <meyering@redhat.com>
53983         and OndÅ™ej Vašík  <ovasik@redhat.com>
53984
53985         utimens.c: correct kernel bug work-around
53986         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53987         failure, not success, and the kernel bug we're trying to work
53988         around affects not just the utimensat call, but also the fallback
53989         futimens call.
53990         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53991         not success.
53992         [HAVE_FUTIMENS]: Use the same work-around, here.
53993
53994 2008-06-09  Jim Meyering  <meyering@redhat.com>
53995
53996         add more guards around definition of ACE_-related code
53997         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53998         ALLOW and ACE_OWNER are also defined.
53999
54000 2008-06-08  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/acl-internal.h: Add me as co-author.
54003         * lib/file-has-acl.c: Likewise.
54004         * lib/set-mode-acl.c: Likewise.
54005         * lib/copy-acl.c: Likewise.
54006
54007 2008-06-08  Bruno Haible  <bruno@clisp.org>
54008
54009         Add support for AIX ACLs.
54010         * lib/acl-internal.h (acl_nontrivial): New declaration.
54011         * lib/file-has-acl.c (acl_nontrivial): New function.
54012         (file_has_acl): Add implementation using AIX 4 ACL API.
54013         * lib/set-mode-acl.c (qset_acl): Likewise.
54014         * lib/copy-acl.c (qcopy_acl): Likewise.
54015
54016 2008-06-08  Bruno Haible  <bruno@clisp.org>
54017
54018         Add support for HP-UX ACLs.
54019         * lib/acl-internal.h (acl_nontrivial): New declaration.
54020         * lib/file-has-acl.c (acl_nontrivial): New function.
54021         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54022         * lib/set-mode-acl.c (qset_acl): Likewise.
54023         * lib/copy-acl.c (qcopy_acl): Likewise.
54024
54025 2008-06-08  Bruno Haible  <bruno@clisp.org>
54026
54027         Add support for Cygwin ACLs.
54028         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54029         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54030         the chmod_or_fchmod call.
54031         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54032
54033 2008-06-08  Bruno Haible  <bruno@clisp.org>
54034
54035         Fix bug with setuid modes in Solaris 10+ code.
54036         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54037         succeeded, when the mode contains some special bits.
54038
54039 2008-06-08  Bruno Haible  <bruno@clisp.org>
54040
54041         Add support for Solaris 7..10 ACLs.
54042         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54043         declarations.
54044         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54045         functions.
54046         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54047         * lib/set-mode-acl.c (qset_acl): Likewise.
54048         * lib/copy-acl.c (qcopy_acl): Likewise.
54049
54050 2008-06-08  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54053         declaration.
54054         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54055         (acl_access_nontrivial): Remove MacOS X case.
54056         (file_has_acl): Use acl_extended_nontrivial.
54057         * lib/copy-acl.c (qcopy_acl): Likewise.
54058
54059 2008-06-08  Bruno Haible  <bruno@clisp.org>
54060
54061         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54062
54063 2008-06-08  Jim Meyering  <meyering@redhat.com>
54064
54065         * modules/acl (Maintainer): Add Bruno Haible.
54066
54067 2008-06-07  Bruno Haible  <bruno@clisp.org>
54068
54069         Improve support for Tru64 ACLs.
54070         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54071         ACL on OSF/1.
54072
54073 2008-06-07  Bruno Haible  <bruno@clisp.org>
54074
54075         Add support for MacOS X ACLs.
54076         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54077         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54078         * lib/set-mode-acl.c (qset_acl): Likewise.
54079         * lib/copy-acl.c (qcopy_acl): Likewise.
54080
54081 2008-06-07  Bruno Haible  <bruno@clisp.org>
54082
54083         Fix memory leak introduced on 2008-05-22.
54084         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54085         use.
54086
54087 2008-06-07  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54090         to construct an empty ACL.
54091
54092 2008-06-07  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54095         precisely.
54096         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54097
54098 2008-06-07  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54101         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54102
54103 2008-06-07  Bruno Haible  <bruno@clisp.org>
54104
54105         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54106         regardless of POSIX.
54107         * doc/posix-functions/_longjmp.texi: Likewise.
54108         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54109         SystemV platform in this case.
54110
54111 2008-06-06  Eric Blake  <ebb9@byu.net>
54112
54113         Document abort() bugs.
54114         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54115
54116         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54117         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54118         sigsetjmp.
54119         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54120         siglongjmp, but only as a macro.
54121         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54122         is obsolete.
54123         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54124
54125         Tweak documentation to cover cygwin argz bugs.
54126         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54127         argz bug fix; no code change needed since no cygwin releases
54128         occurred between the last fix and the bug being tested.
54129         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54130         module and recently fixed cygwin bugs.
54131         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54132         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54133         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54134         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54135         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54136         Likewise.
54137         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54138         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54139         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54140         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54141         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54142         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54143         Likewise.
54144
54145         Avoid gcc warning on cygwin.
54146         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54147         !ACL_NO_TRIVIAL]: Avoid unused variable.
54148
54149 2008-06-05  Eric Blake  <ebb9@byu.net>
54150
54151         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54152         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54153         git-version-gen fails to come up with a version.
54154         Reported by Simon Josefsson.
54155
54156 2008-06-05  Jim Meyering  <meyering@redhat.com>
54157             Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         utimens.c: work around a probable Linux kernel bug
54160         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54161         appears to be a kernel bug that causes utimensat to return 280
54162         instead of 0, indicating success.
54163
54164 2008-06-04  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54167         2008-06-01 commit.
54168
54169 2008-06-04  Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54172         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54173         (file_has_acl): Use it. Save errno afterwards.
54174         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54175
54176 2008-06-03  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54179         draft code. Simplify #ifs.
54180         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54181         Put Solaris code after POSIX-draft code. Fix comments regarding
54182         Solaris 10, HP-UX. Mention Cygwin.
54183         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54184
54185 2008-06-03  Eric Blake  <ebb9@byu.net>
54186
54187         Provide fallback for older kernels.
54188         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54189         Provide runtime fallback if kernel lacks support.
54190         Reported by Mike Frysinger.
54191
54192 2008-06-02  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54195         it exists.
54196
54197 2008-06-02  Bruno Haible  <bruno@clisp.org>
54198
54199         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54200         * lib/copy-acl.c (qcopy_acl): Update comment.
54201
54202 2008-06-02  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54205         like ACL APIs.
54206
54207 2008-06-02  Bruno Haible  <bruno@clisp.org>
54208
54209         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54210         * tests/test-set-mode-acl.sh: Likewise.
54211         * tests/test-copy-acl.sh: Likewise.
54212         * tests/test-copy-file.sh: Likewise.
54213
54214 2008-06-02  Bruno Haible  <bruno@clisp.org>
54215
54216         * tests/test-file-has-acl.sh: Remove unused code.
54217
54218 2008-06-01  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54221         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54222         messages.
54223         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54224
54225 2008-06-01  Bruno Haible  <bruno@clisp.org>
54226
54227         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54228         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54229         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54230         APIs.
54231         * modules/acl-tests (configure.ac): Remove tests now contained in
54232         m4/acl.m4.
54233
54234 2008-06-02  Jim Meyering  <meyering@redhat.com>
54235
54236         announce-gen: use a better key-server host name
54237         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54238         it may be more consistently reliable.  Suggested by Werner Koch
54239         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54240
54241 2008-06-01  Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54244         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54245
54246 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54247
54248         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54249
54250 2008-06-01  Bruno Haible  <bruno@clisp.org>
54251
54252         New ACL tests.
54253         * tests/test-file-has-acl.sh: New file.
54254         * tests/test-file-has-acl.c: New file.
54255         * tests/test-set-mode-acl.sh: New file.
54256         * tests/test-set-mode-acl.c: New file.
54257         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54258         * tests/test-copy-acl.c: New file.
54259         * modules/acl-tests: New file, based on modules/copy-file-tests.
54260         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54261         (Depends-on): Add acl-tests.
54262         (configure.ac): Remove checks.
54263         (Makefile.am): Don't create test-sameacls program here any more.
54264
54265 2008-06-01  Bruno Haible  <bruno@clisp.org>
54266
54267         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54268         * tests/test-sameacls.c: Include progname.h.
54269         (main): Invoke set_program_name. Portability fixes for MacOS X,
54270         Solaris, HP-UX.
54271
54272 2008-06-01  Bruno Haible  <bruno@clisp.org>
54273
54274         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54275         function.
54276         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54277
54278 2008-06-01  Bruno Haible  <bruno@clisp.org>
54279
54280         * modules/rpmatch (Depends-on): Add strdup.
54281
54282 2008-06-01  Bruno Haible  <bruno@clisp.org>
54283
54284         * lib/pipe.c: Include unistd-safer.h.
54285         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54286         * modules/pipe (Depends-on): Add unistd-safer.
54287
54288 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54289
54290         * modules/autobuild (configure.ac): Call AB_INIT.
54291
54292 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54293
54294         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54295         Suggested by Bruno Haible <bruno@clisp.org>.
54296
54297 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54298
54299         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54300         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54301         <bruno@clisp.org>.
54302
54303 2008-05-29  Eric Blake  <ebb9@byu.net>
54304
54305         Prefer new POSIX 200x interfaces over futimesat.
54306         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54307         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54308         when available.
54309         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54310
54311 2008-05-28  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/stpcpy (License): Change to LGPLv2+.
54314         Requested by David Lutterkort <dlutter@redhat.com>.
54315
54316 2008-05-27  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54319         current mingw.
54320         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54321
54322 2008-05-27  Bruno Haible  <bruno@clisp.org>
54323
54324         * modules/iconv_open (Link): New section, from module 'iconv'.
54325         * modules/striconv (Link): Likewise.
54326         * modules/striconveh (Link): Likewise.
54327         * modules/xstriconv (Link): Likewise.
54328         * modules/unicodeio (Link): Likewise.
54329         * modules/propername (Link): Likewise.
54330         Reported by Jim Meyering.
54331
54332 2008-05-26  Jim Meyering  <meyering@redhat.com>
54333
54334         sha256: do not artificially restrict buffer length to be < 2^32
54335         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54336         uint32_t to size_t.
54337         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54338         to match.
54339
54340         avoid unaligned access errors, e.g., on sparc
54341         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54342         direct access through a possibly-unaligned uint64* pointer.
54343         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54344         direct access through a possibly-unaligned uint32* pointer.
54345         Prompted by this patch from Tom "spot" Callaway:
54346         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54347
54348         sha512.c: fix typo in comment
54349         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54350
54351 2008-05-25  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54354         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54355         (Makefile.am): Update lib_SOURCES.
54356
54357 2008-05-25  Bruno Haible  <bruno@clisp.org>
54358
54359         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54360
54361 2008-05-25  Jim Meyering  <meyering@redhat.com>
54362
54363         useless-if-before-free: freed expr may have white-space differences
54364         * build-aux/useless-if-before-free: Recognize cases in which the
54365         freed expression differs from the tested one in embedded white
54366         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54367         $1 was used, so we can't make any regexp shy.  Improved tests now
54368         detect this.
54369
54370         useless-if-before-free: accept white space in the expression.
54371         * build-aux/useless-if-before-free: For now, any white space
54372         in the expression must be identical in the free argument.
54373
54374         useless-if-before-free: efficiency tweak
54375         * build-aux/useless-if-before-free: Make the expression-matching
54376         regexp "shy".
54377         Make the *outer* regexp shy, not the expr-matching one.
54378
54379         update code-in-comment to accept cast of free arg
54380         * build-aux/useless-if-before-free: Update regexp.
54381
54382 2008-05-25  Bruno Haible  <bruno@clisp.org>
54383
54384         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54385         * modules/copy-file-tests (Files, Makefile.am): Update.
54386         * tests/test-copy-file.c (func_test_copy): Update.
54387
54388 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54389
54390         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54391
54392 2008-05-23  Bruno Haible  <bruno@clisp.org>
54393
54394         Improve support for ACLs on OSF/1.
54395         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54396         Remove fallback for unknown flavors of ACLs.
54397
54398 2008-05-22  Bruno Haible  <bruno@clisp.org>
54399
54400         Add support for ACLs on OSF/1.
54401         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54402         replacements.
54403         (acl_free_text): New macro fallback.
54404         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54405         acl_free.
54406         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54407         acl_free_text function. Require AC_C_INLINE.
54408
54409 2008-05-22  Bruno Haible  <bruno@clisp.org>
54410
54411         Make copy_acl work on MacOS X 10.5.
54412         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54413         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54414         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54415         If MODE_INSIDE_ACL, don't assume that every system has the same text
54416         representation for ACLs as FreeBSD.
54417         * lib/copy-acl.c (copy_acl): Add support for platforms with
54418         !MODE_INSIDE_ACL.
54419         * lib/file-has-acl.c (file_has_acl): Likewise.
54420         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54421         FreeBSD, MacOS X, or IRIX, respectively.
54422
54423 2008-05-22  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/acl.h: Don't include <sys/acl.h>.
54426         (GETACLCNT): Move fallback to lib/acl-internal.h.
54427         * lib/acl-internal.h: Include <sys/acl.h> here.
54428         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54429
54430 2008-05-22  Bruno Haible  <bruno@clisp.org>
54431
54432         Split off copy_acl function to separate file.
54433         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54434         * lib/acl.c (copy_acl): Moved function to separate file.
54435         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54436         * modules/acl (Files): Add lib/copy-acl.c.
54437         (Makefiles.am): Augment lib_SOURCES.
54438
54439 2008-05-22  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/copy-file-tests: New file.
54442         * tests/test-copy-file.sh: New file.
54443         * tests/test-copy-file.c: New file.
54444         * tests/test-copy-file-sameacls.c: New file.
54445
54446 2008-05-22  Eric Blake  <ebb9@byu.net>
54447
54448         Avoid gcc warning.
54449         * tests/test-memcmp.c (main): Pass NULL indirectly.
54450
54451 2008-05-21  Bruno Haible  <bruno@clisp.org>
54452
54453         Add reference doc about ACLs.
54454         * doc/acl-resources.txt: New file.
54455         * doc/acl-cygwin.txt: New file.
54456
54457 2008-05-21  Bruno Haible  <bruno@clisp.org>
54458
54459         Avoid one more warning from gcc.
54460         * lib/vasnprintf.c (IF_LINT): Update comments.
54461         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54462
54463 2008-05-21  Jim Meyering  <meyering@redhat.com>
54464
54465         avoid a warning from gcc
54466         * lib/vasnprintf.c (IF_LINT): Define.
54467         (scale10_round_decimal_long_double):
54468         Use it to avoid a "may be used uninitialized" warning.
54469         (scale10_round_decimal_double): Likewise.
54470
54471 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54472
54473         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54474         declared.
54475
54476 2008-05-20  Bruno Haible  <bruno@clisp.org>
54477
54478         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54479         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54480
54481 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54482
54483         * modules/memcmp-tests: New file.
54484         * tests/test-memcmp.c: New file.
54485
54486 2008-05-19  Bruno Haible  <bruno@clisp.org>
54487
54488         * modules/propername (Notice, configure.ac): Put quoted "..." into
54489         --keyword option.
54490         * lib/propername.h: Update comments accordingly.
54491         Reported by Eric Blake.
54492
54493 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54494
54495         * modules/getpass-gnu (Depends-on): Add fseeko.
54496
54497 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54498
54499         * modules/base64-tests: New file.
54500
54501 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54502
54503         * lib/base64.c (base64_decode_ctx): If a decode context structure
54504         was passed in use it to ignore newlines.  If a context structure
54505         was _not_ passed in, continue to treat newlines as garbage (this
54506         is the historical behavior).  Formerly base64_decode.
54507         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54508         takes a decode context structure.
54509         * lib/base64.h (base64_decode): Macro for four-argument calls.
54510         (base64_decode_alloc): Likewise.
54511         * lib/base64.c (base64_decode_ctx): If a decode context structure
54512         was passed in use it to ignore newlines.  If a context structure
54513         was _not_ passed in, continue to treat newlines as garbage (this
54514         is the historical behavior).  Formerly base64_decode.
54515         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54516         takes a decode context structure.
54517         * lib/base64.h (base64_decode): Macro for four-argument calls.
54518         (base64_decode_alloc): Likewise.
54519
54520 2008-05-19  Jim Meyering  <meyering@redhat.com>
54521
54522         avoid a warning from gcc
54523         * lib/trim.c (IF_LINT): Define.
54524         (trim2): Use it to avoid a "may be used uninitialized" warning.
54525
54526         Fix doc typo.
54527         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54528
54529 2008-05-19  Bruno Haible  <bruno@clisp.org>
54530
54531         * doc/glibc-functions/getpass.texi: Document limits of other
54532         implementations.
54533
54534 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54535             Bruno Haible <bruno@clisp.org>
54536
54537         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54538
54539 2008-05-18  Bruno Haible  <bruno@clisp.org>
54540
54541         * modules/propername: New file, from GNU gettext.
54542         * lib/propername.h: New file, from GNU gettext.
54543         * lib/propername.c: New file, from GNU gettext.
54544         * MODULES.html.sh (Internationalization functions): Add propername.
54545
54546 2008-05-16  Jim Meyering  <meyering@redhat.com>
54547             Bruno Haible  <bruno@clisp.org>
54548
54549         Avoid some warnings from "gcc -Wshadow".
54550         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54551
54552 2008-05-15  Eric Blake  <ebb9@byu.net>
54553
54554         Extend previous patch to cygwin 1.7.0.
54555         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54556         fast implementation in cygwin >= 1.7.0.
54557         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54559
54560 2008-05-15  Bruno Haible  <bruno@clisp.org>
54561
54562         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54563         implementation in glibc >= 2.9.
54564         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54566
54567 2008-05-15  Bruno Haible  <bruno@clisp.org>
54568
54569         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54570         (Unicode string functions): Add unilbrk/*.
54571         Reported by Karl Berry.
54572
54573 2008-05-15  Eric Blake  <ebb9@byu.net>
54574
54575         Fix violation of <stdbool.h> replacement in regex.
54576         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54577         * lib/regexec.c (re_search_internal): Likewise.
54578         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54579
54580 2008-05-15  Jim Meyering  <meyering@redhat.com>
54581
54582         avoid distracting test output when git or cvs is not found
54583         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54584         * tests/test-vc-list-files-git.sh: Likewise.
54585
54586 2008-05-15  Eric Blake  <ebb9@byu.net>
54587
54588         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54589         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54590         glibc version.
54591         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54592         * doc/posix-functions/strstr.texi (strstr): Likewise.
54593         * lib/str-two-way.h (MAX): Sychronize with glibc.
54594
54595 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54596
54597         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54598         opr.ctx_type.
54599         (calc_first): Initialize constraint field.
54600         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54601         Fix grammar.
54602         (duplicate_node): Merge constraint field for all node types.
54603         (calc_eclosure_iter): Look at constraint field for all node types.
54604         * lib/regex_internal.c (create_cd_newstate): Don't look at
54605         opr.ctx_type.
54606
54607 2008-05-14  Bruno Haible  <bruno@clisp.org>
54608
54609         Help GCC to do better code generation.
54610         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54611         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54612         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54613         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54614         Declare with attribute 'malloc' if supported.
54615
54616 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54617
54618         use "echo STR|wc -c" rather than unportable "expr length STR"
54619         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54620         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54621
54622 2008-05-14  Jim Meyering  <meyering@redhat.com>
54623
54624         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54625         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54626         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54627         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54628         via Collin Lasse.
54629
54630 2008-05-14  Eric Blake  <ebb9@byu.net>
54631
54632         Avoid quadratic growth in gl_LIBSOURCES.
54633         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54634         Suggested by Bruno Haible.
54635
54636         Test xmemdup0.
54637         * modules/xmemdup0-tests: New file.
54638         * tests/test-xmemdup0.c: Likewise.
54639
54640 2008-05-13  Eric Blake  <ebb9@byu.net>
54641
54642         Split xmemdup0 into its own module.
54643         * modules/xmemdup0: New file.
54644         * lib/xmemdup0.h: Likewise.
54645         * lib/xmemdup0.c: Likewise.
54646         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54647         * lib/xalloc.h (xmemdup0): Remove.
54648         * lib/xmalloc.c (xmemdup0): Likewise.
54649
54650 2008-05-13  Eric Blake  <ebb9@byu.net>
54651             Bruno Haible  <bruno@clisp.org>
54652
54653         Reduce number of forks required during autoconf.
54654         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54655         and gl_LIBSOURCES_DIR.
54656         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54657         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54658         m4_syscmd per file.
54659         <m4_foreach_w>: Move...
54660         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54661
54662 2008-05-13  Eric Blake  <ebb9@byu.net>
54663
54664         * gnulib-tool: Fix various comment typos.
54665
54666 2008-05-12  Bruno Haible  <bruno@clisp.org>
54667
54668         Tailor the linebreaking algorithm.
54669         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54670
54671 2008-05-12  Bruno Haible  <bruno@clisp.org>
54672
54673         Update to Unicode 5.0.0.
54674         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54675         LBP_JV, LBP_JT. Redistribute values.
54676         (unilbrk_table): Change size.
54677         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54678         Unicode TR#14 rev. 22.
54679         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54680         LBP_JV, LBP_JT. Redistribute values.
54681         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54682         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54683         Update.
54684         * lib/unilbrk/lbrkprop1.h: Regenerated.
54685         * lib/unilbrk/lbrkprop2.h: Regenerated.
54686         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54687         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54688         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54689         Likewise.
54690         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54691         Likewise.
54692         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54693         result.
54694         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54695         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54696         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54697         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54698         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54699         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54700
54701 2008-05-11  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54704
54705 2008-05-11  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54708         * modules/unilbrk/gen-lbrk: New file.
54709
54710 2008-05-11  Bruno Haible  <bruno@clisp.org>
54711
54712         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54713         * m4/sha512.m4 (gl_SHA512): Likewise.
54714
54715 2008-05-11  Jim Meyering  <meyering@redhat.com>
54716
54717         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54718         * modules/crypto/sha256: New file.
54719         * modules/crypto/sha512: Likewise.
54720         * lib/sha256.c: Likewise.
54721         * lib/sha256.h: Likewise.
54722         * lib/sha512.c: Likewise.
54723         * lib/sha512.h: Likewise.
54724         * lib/u64.h: Likewise.
54725         * m4/sha256.m4: Likewise.
54726         * m4/sha512.m4: Likewise.
54727         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54728
54729 2008-05-10  Bruno Haible  <bruno@clisp.org>
54730
54731         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54732         (Input/Output <stdio.h>): Add xprintf.
54733         (Signal handling <signal.h>): Add strsignal.
54734         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54735         (Core language properties): Add func.
54736         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54737         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54738         strings.
54739         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54740         (Input/output): New section.
54741         (File system functions): Add openat-die, stat-macros.
54742         (Networking functions): Add sockets.
54743         (Unicode string functions): Add unictype/*.
54744         (Support for building libraries and executables): Add gperf.
54745         (Support for building documentation): Add agpl-3.0.
54746         (Misc): Add nocrash.
54747
54748 2008-05-10  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/unictype/gen-ctype: New file.
54751
54752 2008-05-10  Jim Meyering  <meyering@redhat.com>
54753
54754         Make chdir-safer.c more efficient on a system with no symlinks.
54755         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54756         also if ELOOP is zero.  Suggested by Bruno Haible.
54757
54758         Make chdir-safer.c slightly safer.
54759         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54760         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54761
54762         Avoid compile failure on systems without ELOOP (like mingw).
54763         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54764         Reported by Bruno Haible.
54765
54766 2008-05-10  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54769         (is_utf8_encoding): Use a case-insensitive comparison.
54770         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54771         streq.
54772
54773 2008-05-10  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54776         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54777         * lib/unilbrk/ulc-common.h (iconv_string_length,
54778         iconv_string_keeping_offsets): Remove declarations.
54779         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54780         Don't include <iconv.h>, streq.h, xsize.h.
54781         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54782         conversion.
54783         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54784         <iconv.h>, streq.h, xsize.h.
54785         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54786         conversion.
54787         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54788         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54789         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54790         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54791
54792 2008-05-10  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54795         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54796
54797         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54798         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54799
54800         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54801         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54802
54803         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54804         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54805
54806         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54807         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54808
54809         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54810         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54811
54812         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54813         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54814
54815         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54816         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54817
54818 2008-05-10  Bruno Haible  <bruno@clisp.org>
54819
54820         Split up 'linebreak' module.
54821         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54822         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54823         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54824         modifications.
54825         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54826         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54827         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54828         lib/linebreak.c.
54829         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54830         lib/linebreak.c.
54831         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54832         lib/linebreak.c.
54833         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54834         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54835         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54836         lib/linebreak.c.
54837         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54838         lib/linebreak.c.
54839         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54840         lib/linebreak.c.
54841         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54842         lib/linebreak.c.
54843         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54844         lib/linebreak.c.
54845         * modules/unilbrk/base: New file.
54846         * modules/unilbrk/tables: New file.
54847         * modules/unilbrk/u8-possible-linebreaks: New file.
54848         * modules/unilbrk/u16-possible-linebreaks: New file.
54849         * modules/unilbrk/u32-possible-linebreaks: New file.
54850         * modules/unilbrk/ulc-common: New file.
54851         * modules/unilbrk/ulc-possible-linebreaks: New file.
54852         * modules/unilbrk/u8-width-linebreaks: New file.
54853         * modules/unilbrk/u16-width-linebreaks: New file.
54854         * modules/unilbrk/u32-width-linebreaks: New file.
54855         * modules/unilbrk/ulc-width-linebreaks: New file.
54856         * lib/linebreak.h: Remove file.
54857         * lib/linebreak.c: Remove file.
54858         * m4/linebreak.m4: Remove file.
54859         * modules/linebreak: Remove file.
54860         * NEWS: Mention the changes.
54861
54862 2008-05-09  Eric Blake  <ebb9@byu.net>
54863
54864         Add xmemdup0.
54865         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54866         implementation.
54867         * lib/xmalloc.c (xmemdup0): New C implementation.
54868
54869 2008-05-08  Bruno Haible  <bruno@clisp.org>
54870
54871         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54872
54873 2008-05-07  Eric Blake  <ebb9@byu.net>
54874
54875         Support cross-compilation of <wctype.h>.
54876         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54877         AC_CACHE_CHECK.
54878
54879 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54880
54881         * build-aux/vc-list-files: Add support for bzr.
54882
54883 2008-05-03  Jim Meyering  <meyering@redhat.com>
54884
54885         avoid failed assertion with tight malloc
54886         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54887
54888 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54889
54890         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54891         are needed from arpa/inet.h.
54892         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54893         Reported by Bruno Haible.
54894
54895 2008-05-02  Jim Meyering  <meyering@redhat.com>
54896
54897         avoid compilation error on FreeBSD 6
54898         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54899
54900 2008-05-01  Jim Meyering  <meyering@redhat.com>
54901
54902         useless-if-before-free: correct --help's exit status description
54903         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54904         for one or more matches, etc.  Reported by Bruno Haible.
54905
54906         vc-list-files: make the stand-alone gnulib test work
54907         * modules/vc-list-files-tests (configure.ac):
54908         Define and AC_SUBST abs_aux_dir.
54909         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54910         $(abs_top_srcdir) to each script and having each of them
54911         duplicate the work of setting PATH, set PATH here, using
54912         the new variable, abs_aux_dir instead.
54913         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54914         * tests/test-vc-list-files-git.sh: Likewise.
54915         Reported by Bruno Haible.
54916
54917 2008-05-01  Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54920         reallocation. Rename 'done' to 'found_delimiter'.
54921
54922 2008-05-01  Jim Meyering  <meyering@redhat.com>
54923
54924         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54925         * build-aux/vc-list-files: Use `...`, not $(...).
54926
54927 2008-04-30  Jim Meyering  <meyering@redhat.com>
54928
54929         add tests for vc-list-files
54930         * modules/vc-list-files-tests: New module.
54931         * tests/test-vc-list-files-cvs.sh: New file.
54932         * tests/test-vc-list-files-git.sh: New file.
54933
54934         avoid a warning from gcc
54935         * lib/getndelim2.c (IF_LINT): Define.
54936         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54937
54938         vc-list-files: work properly with build-aux/cvsu, too
54939         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54940         to all cvs-based clauses.
54941
54942         vc-list-files: work properly in the CVS+awk case, too
54943         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54944
54945         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54946         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54947         take more than one file argument, so .  Add quotes, just in case $dir
54948         ever contains a shell meta-character.  Prompted by Soren Hansen in
54949         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54950
54951 2008-04-29  Eric Blake  <ebb9@byu.net>
54952
54953         Optimize getndelim2 to use block operations when possible.
54954         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54955         freadseek, and memchr2.
54956         * lib/getndelim2.c (getndelim2): Use them for block reads.
54957
54958 2008-04-29  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54961         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54962         * modules/inet_ntop (Depends-on): Add extensions.
54963         * modules/inet_pton (Depends-on): Likewise.
54964         Reported by Simon Josefsson.
54965
54966 2008-04-29  Jim Meyering  <meyering@redhat.com>
54967
54968         When the is more than one match in a block, match all of them.
54969         * build-aux/useless-if-before-free: Iterate through each block
54970         until there are no more matches.
54971
54972         Fix broken useless-if-before-free script.
54973         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54974         the expression to match cast of argument to free-like function.
54975
54976 2008-04-29  Eric Blake  <ebb9@byu.net>
54977
54978         Use new header.
54979         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54980
54981 2008-04-29  Jim Meyering  <meyering@redhat.com>
54982
54983         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54984         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54985         by gnulib to exist and to declare e.g., inet_ntop.
54986         Don't include "inet_ntop.h", now removed.
54987
54988         * m4/arpa_inet_h.m4: Remove trailing blanks.
54989
54990 2008-04-29  Eric Blake  <ebb9@byu.net>
54991
54992         Silence valgrind on safe reads beyond potential array bounds.
54993         * lib/rawmemchr.valgrind: New file.
54994         * lib/strchrnul.valgrind: Likewise.
54995         * modules/rawmemchr (Files): Distribute new file.
54996         * modules/strchrnul (Files): Likewise.
54997         Suggested by Bruno Haible.
54998
54999 2008-04-29  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55002         (inet_ntop, inet_pton): Change portability warning's wording.
55003         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55004         Invoke gl_CHECK_NEXT_HEADERS.
55005         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55006         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55007         set ARPA_INET_H.
55008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55009         * modules/arpa_inet (Description): No longer only for systems that
55010         lack it.
55011         (Depends-on): Add include_next.
55012         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55013         HAVE_ARPA_INET_H.
55014
55015 2008-04-29  Jim Meyering  <meyering@redhat.com>
55016
55017         * modules/mkdir (License): Re-license as LGPLv2+.
55018
55019 2008-04-29  Bruno Haible  <bruno@clisp.org>
55020
55021         * modules/rawmemchr (Maintainer): Set to Eric.
55022         * modules/strchrnul (Maintainer): Likewise.
55023
55024 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55025
55026         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55027         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55028
55029         * modules/arpa_inet (arpa/inet.h): Use them.
55030
55031 2008-04-28  Eric Blake  <ebb9@byu.net>
55032
55033         Test getndelim2.
55034         * modules/getndelim2-tests: New file.
55035         * tests/test-getndelim2.c: Likewise.
55036         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55037         stream.
55038         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55039
55040         * MODULES.html.sh: Document new module.
55041
55042 2008-04-20  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/c-stack.c (die): Use raise.
55045         * modules/c-stack (Depends-on): Add raise.
55046
55047 2008-04-28  Bruno Haible  <bruno@clisp.org>
55048
55049         Expect rpmatch to be declared.
55050         * lib/yesno.c (rpmatch): Remove declaration.
55051
55052         Declare rpmatch.
55053         * lib/stdlib.in.h (rpmatch): New declaration.
55054         * lib/rpmatch.c: Include <stdlib.h> first.
55055         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55056         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55058         HAVE_RPMATCH.
55059         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55061         (Include): Set to <stdlib.h>.
55062         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55063         HAVE_RPMATCH.
55064         * NEWS: Document the change.
55065
55066 2008-04-28  Bruno Haible  <bruno@clisp.org>
55067
55068         Change rpmatch to use nl_langinfo when appropriate.
55069         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55070         (N_): New macro.
55071         (localized_pattern): New function/macro.
55072         (try): Remove match, nomatch arguments. Copy the pattern into safe
55073         memory before caching it.
55074         (rpmatch): Use localized_pattern. Add translator comments.
55075         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55076         Suggested by Eric Blake.
55077         * modules/rpmatch (Depends-on): Add stdbool.
55078
55079 2008-04-28  Eric Blake  <ebb9@byu.net>
55080
55081         Add rawmemchr module, matching glibc.
55082         * modules/string (Makefile.am): New indicator.
55083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55084         * lib/string.in.h (rawmemchr): Declare when appropriate.
55085         * modules/rawmemchr: New file.
55086         * m4/rawmemchr.m4: Likewise.
55087         * lib/rawmemchr.c: Likewise.
55088         * modules/rawmemchr-tests: Likewise.
55089         * tests/test-rawmemchr.c: Likewise.
55090         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55091         module.
55092         * modules/strchrnul (Depends-on): Add rawmemchr.
55093         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55094
55095         Whitespace cleanup.
55096         * tests/test-strchrnul.c: Reindent.
55097         * lib/strchrnul.c: Likewise.
55098
55099         Optimize and test strchrnul.
55100         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55101         * modules/strchrnul-tests: New file.
55102         * tests/test-strchrnul.c: Likewise.
55103
55104         Remove intprops dependency.
55105         * modules/memchr (Depends-on): Remove intprops.
55106         * modules/memrchr (Depends-on): Likewise.
55107         * modules/memchr2 (Depends-on): Likewise.
55108         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55109         * lib/memrchr.c (__memrchr): Likewise.
55110         * lib/memrchr2.c (memchr2): Likewise.
55111         Reported by Simon Josefsson.
55112
55113 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55114
55115         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55116         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55117
55118 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55119
55120         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55121
55122         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55123
55124         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55125
55126         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55127         declarations.
55128         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55129
55130         * m4/inet_pton.m4: Don't check for header files.
55131
55132         * m4/inet_ntop.m4: Don't check for header files.
55133
55134 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55135
55136         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55137         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55138         trigger for cygwin).
55139         Reported by Bruno Haible  <bruno@clisp.org>.
55140
55141 2008-04-28  Bruno Haible  <bruno@clisp.org>
55142
55143         * doc/posix-functions/strdup.texi: Mention mingw problem.
55144
55145 2008-04-27  Bruno Haible  <bruno@clisp.org>
55146
55147         * modules/stat-time-tests (Depends-on): Add sleep.
55148         * tests/test-stat-time.c (force_unlink): New function.
55149         (cleanup): Use it.
55150         (test_mtime): Remove the ctime related tests.
55151         (test_ctime): New function, containing the ctime related tests.
55152         (main): Call test_ctime, except on native Windows platforms.
55153
55154 2008-04-27  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/rpmatch.c (rpmatch): Add some comments.
55157         Reported by James Youngman <jay@gnu.org>.
55158
55159 2008-04-27  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55162         quiet NaNs.
55163
55164 2008-04-27  Bruno Haible  <bruno@clisp.org>
55165
55166         Make test-yesno.sh work on mingw.
55167         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55168         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55169         (main): Set stdin to binary mode.
55170         * modules/yesno-tests (Depends-on): Add binary-io.
55171
55172 2008-04-27  Bruno Haible  <bruno@clisp.org>
55173
55174         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55175         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55176         argument that lie outside the IEEE 854 domain.
55177         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55178         (gl_ISFINITE): Use it.
55179         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55180
55181 2008-04-27  Bruno Haible  <bruno@clisp.org>
55182
55183         Allow local renaming in config.h.
55184         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55185
55186 2008-04-27  Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/memchr.c (__memchr): Change type of 'i'.
55189         * lib/memchr2.c (memchr2): Likewise.
55190
55191 2008-04-26  Eric Blake  <ebb9@byu.net>
55192         and Bruno Haible  <bruno@clisp.org>
55193
55194         Optimize and test memrchr.
55195         * modules/memrchr (Depends-on): Add intprops.
55196         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55197         * modules/memrchr-tests: New file.
55198         * tests/test-memrchr.c: New file.
55199
55200 2008-04-26  Bruno Haible  <bruno@clisp.org>
55201
55202         Add tentative support for DragonFly BSD.
55203         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55204         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55205         fp.
55206         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55207         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55208         * lib/fpurge.c (fpurge): Likewise.
55209         * lib/freadable.c (freaadable): Likewise.
55210         * lib/freadahead.c (freadahead): Likewise.
55211         * lib/freading.c (freading): Likewise.
55212         * lib/freadptr.c (freadptr): Likewise.
55213         * lib/freadseek.c (freadptrinc): Likewise.
55214         * lib/fseeko.c (fseeko): Likewise.
55215         * lib/fseterr.c (fseterr): Likewise.
55216         * lib/fwritable.c (fwritable): Likewise.
55217         * lib/fwriting.c (fwriting): Likewise.
55218
55219 2008-04-26  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/stdio-impl.h: New file.
55222         * lib/fbufmode.c: Include stdio-impl.h.
55223         (fbufmode): Use fp_, remove redundant #defines.
55224         * lib/fflush.c: Include stdio-impl.h.
55225         (clear_ungetc_buffer): Remove redundant #defines.
55226         * lib/fpurge.c: Include stdio-impl.h.
55227         (fpurge): Remove redundant #defines.
55228         * lib/freadable.c: Include stdio-impl.h.
55229         (freadable): Remove redundant #defines.
55230         * lib/freadahead.c: Include stdio-impl.h.
55231         (freadahead): Remove redundant #defines.
55232         * lib/freading.c: Include stdio-impl.h.
55233         (freading): Remove redundant #defines.
55234         * lib/freadptr.c: Include stdio-impl.h.
55235         (freadptr): Remove redundant #defines.
55236         * lib/freadseek.c: Include stdio-impl.h.
55237         (freadptrinc): Remove redundant #defines.
55238         * lib/fseeko.c: Include stdio-impl.h.
55239         (rpl_fseeko): Remove redundant #defines.
55240         * lib/fseterr.c: Include stdio-impl.h.
55241         (fseterr): Remove redundant #defines.
55242         * lib/fwritable.c: Include stdio-impl.h.
55243         (fwritable: Remove redundant #defines.
55244         * lib/fwriting.c: Include stdio-impl.h.
55245         (fwriting): Remove redundant #defines.
55246         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55247         * modules/fflush (Files): Likewise.
55248         * modules/fpurge (Files): Likewise.
55249         * modules/freadable (Files): Likewise.
55250         * modules/freadahead (Files): Likewise.
55251         * modules/freading (Files): Likewise.
55252         * modules/freadptr (Files): Likewise.
55253         * modules/freadseek (Files): Likewise.
55254         * modules/fseeko (Files): Likewise.
55255         * modules/fseterr (Files): Likewise.
55256         * modules/fwritable (Files): Likewise.
55257         * modules/fwriting (Files): Likewise.
55258
55259 2008-04-26  Bruno Haible  <bruno@clisp.org>
55260
55261         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55262         restore_seek_optimization, update_fpos_cache): New functions, extracted
55263         from rpl_fflush.
55264         (rpl_fflush): Use them.
55265         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55266         (gl_REPLACE_FFLUSH): Use it.
55267
55268 2008-04-26  Bruno Haible  <bruno@clisp.org>
55269
55270         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55271         on Solaris.
55272         * tests/test-xstrtoimax.sh: Likewise.
55273         * tests/test-xstrtoumax.sh: Likewise.
55274         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55275
55276 2008-04-26  Bruno Haible  <bruno@clisp.org>
55277
55278         * modules/memchr-tests: New file.
55279         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55280
55281 2008-04-26  Eric Blake  <ebb9@byu.net>
55282             Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/memchr.c: Include intprops.h.
55285         (__memchr): Optimize parallel detection of matching bytes. Rename local
55286         variables. Add explanatory comments.
55287
55288 2008-04-26  Bruno Haible  <bruno@clisp.org>
55289
55290         Fix module 'memchr', broken since 2000-10-28.
55291         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55292
55293 2008-04-26  Bruno Haible  <bruno@clisp.org>
55294
55295         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55296         comments.
55297
55298 2008-04-25  Eric Blake  <ebb9@byu.net>
55299
55300         Use native fstatat on cygwin 1.7.0.
55301         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55302         first.
55303
55304 2008-04-23  Eric Blake  <ebb9@byu.net>
55305
55306         Improve memchr2 performance.
55307         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55308         NUL bytes.
55309         * modules/memchr2 (Depends-on): Use intprops.h.
55310
55311 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55312
55313         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55314         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55315         <blp@cs.stanford.edu>.
55316
55317 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55318
55319         * lib/arpa_inet.in.h: New file.
55320
55321         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55322         (Makefile.am): Sed in substitute header file.
55323
55324         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55325         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55326
55327         * modules/inet_ntop (configure.ac): Use
55328         gl_ARPA_INET_MODULE_INDICATOR.
55329
55330         * modules/inet_pton (configure.ac): Use
55331         gl_ARPA_INET_MODULE_INDICATOR.
55332
55333 2008-04-22  Jim Meyering  <meyering@redhat.com>
55334
55335         * modules/verify (License): Re-license as LGPLv2+.
55336
55337 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55338
55339         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55340         parameter to void* as per POSIX standard (MinGW uses char*).
55341
55342 2008-04-21  Bruno Haible  <bruno@clisp.org>
55343
55344         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55345         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55346         Define to replacements if REPLACE_ISWCNTRL is 1.
55347         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55348         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55349         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55350         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55351         what it fixes.
55352         * doc/posix-functions/iswalpha.texi: Likewise.
55353         * doc/posix-functions/iswblank.texi: Likewise.
55354         * doc/posix-functions/iswcntrl.texi: Likewise.
55355         * doc/posix-functions/iswdigit.texi: Likewise.
55356         * doc/posix-functions/iswgraph.texi: Likewise.
55357         * doc/posix-functions/iswlower.texi: Likewise.
55358         * doc/posix-functions/iswprint.texi: Likewise.
55359         * doc/posix-functions/iswpunct.texi: Likewise.
55360         * doc/posix-functions/iswspace.texi: Likewise.
55361         * doc/posix-functions/iswupper.texi: Likewise.
55362         * doc/posix-functions/iswxdigit.texi: Likewise.
55363         Reported by Alain Guibert.
55364
55365 2008-04-21  Bruno Haible  <bruno@clisp.org>
55366
55367         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55368         Patch by Alain Guibert.
55369
55370 2008-04-21  Bruno Haible  <bruno@clisp.org>
55371
55372         Fix test failures on mingw.
55373         * tests/test-xstrtol.c (print_no_progname): New function.
55374         (main): Install it in error_print_progname hook.
55375         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55376         * tests/test-xstrtoimax.sh: Likewise.
55377         * tests/test-xstrtoumax.sh: Likewise.
55378
55379 2008-04-21  Bruno Haible  <bruno@clisp.org>
55380
55381         Fix test failure on mingw.
55382         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55383
55384 2008-04-21  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55387         Actually assign a value.
55388
55389 2008-04-20  Bruno Haible  <bruno@clisp.org>
55390
55391         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55392         take 2.
55393         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55394         'canonicalize-lgpl' module is also used.
55395         * lib/canonicalize-lgpl.c: Undo last change.
55396         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55397
55398 2008-04-20  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55401         config.h. Provide _mkdir based fallback for mingw.
55402         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55403         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55404         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55405         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55406         rather than defining mkdir in config.h.
55407         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55408         (gl_SYS_STAT_H_DEFAULTS): New macro.
55409         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55410         HAVE_IO_H any more.
55411         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55412         HAVE_DECL_MKDIR and HAVE_IO_H.
55413
55414 2008-04-20  Bruno Haible  <bruno@clisp.org>
55415
55416         * lib/isapipe.c: Port to native Windows platforms.
55417
55418 2008-04-20  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55421
55422 2008-04-21  Eric Blake  <ebb9@byu.net>
55423
55424         Work around preprocessors that don't handle UINTMAX_MAX.
55425         * lib/memchr2.c (memchr2): Avoid embedded #if.
55426         Reported by Alain Guibert, fix suggested by Bruno Haible.
55427
55428 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55429
55430         * doc/posix-functions/strftime.texi (strftime): Explain better
55431         Windows incompatibility.  Suggested by Micah Cowan
55432         <micah@cowan.name>.
55433
55434 2008-04-20  Bruno Haible  <bruno@clisp.org>
55435
55436         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55437         unistr/u8-mblen.
55438
55439 2008-04-20  Bruno Haible  <bruno@clisp.org>
55440
55441         Fix test failure on platforms with non-GNU iconv.
55442         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55443         (U_TO_U8): Use it, rather than u16_to_u8.
55444         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55445         units at the end of the input string.
55446         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55447
55448 2008-04-20  Bruno Haible  <bruno@clisp.org>
55449
55450         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55451         when the resulting length is 0.
55452         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55453
55454 2008-04-20  Bruno Haible  <bruno@clisp.org>
55455
55456         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55457         works.
55458         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55459
55460 2008-04-20  Bruno Haible  <bruno@clisp.org>
55461
55462         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55463         * modules/tsearch-tests (configure.ac): Test for initstate function.
55464
55465 2008-04-20  Bruno Haible  <bruno@clisp.org>
55466
55467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55468         for nlink_t if missing.
55469         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55470
55471 2008-04-19  Bruno Haible  <bruno@clisp.org>
55472
55473         Work around snprintf bug on Linux libc5.
55474         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55476         gl_SNPRINTF_SIZE1.
55477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55478         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55479         that test failed.
55480         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55481         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55482         * modules/snprintf (Files): Add m4/printf.m4.
55483         * modules/vsnprintf (Files): Likewise.
55484         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55485         * doc/posix-functions/vsnprintf.texi: Likewise.
55486
55487 2008-04-19  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55490         from 0.0058 to less than 10^-7.
55491
55492 2008-04-19  Bruno Haible  <bruno@clisp.org>
55493
55494         Fix rounding when a precision is given.
55495         * lib/vasnprintf.c (is_borderline): New function.
55496         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55497         9...9x.
55498         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55499         %e, %g.
55500         * tests/test-vasprintf-posix.c (test_function): Likewise.
55501         * tests/test-snprintf-posix.h (test_function): Likewise.
55502         * tests/test-sprintf-posix.h (test_function): Likewise.
55503         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55504         * tests/test-printf-posix.h (test_function): Likewise.
55505         * tests/test-printf-posix.output: Update.
55506         Reported by John Darrington <john@darrington.wattle.id.au> via
55507         Ben Pfaff <blp@cs.stanford.edu>.
55508
55509 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55510
55511         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55512         Suggested by Bruno Haible <bruno@clisp.org>.
55513
55514 2008-04-17  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55517         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55518         implementation.
55519         Patch by Bruce Merry <bmerry@gmail.com>.
55520
55521 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55522
55523         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55524         doesn't work under Windows.
55525
55526 2008-04-16  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55529         New macros.
55530         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55531         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55532         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55533         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55534         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55535         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55536         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55537         macros.
55538         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55539         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55540         Northern Sotho, Uighur.
55541
55542 2008-04-16  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55545         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55546         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55547         Reported by Daniel Bergström <daniel@octocode.com>.
55548
55549 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55550             Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55553         function.
55554         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55555         New functions, mostly extracted from gl_locale_name_default.
55556         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55557
55558 2008-04-16  Eric Blake  <ebb9@byu.net>
55559
55560         Adjust strtod detection to catch glibc 2.7 bug.
55561         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55562         Reported by John Gatewood Ham.
55563
55564 2008-04-16  Bruno Haible  <bruno@clisp.org>
55565
55566         Add tentative support for Linux libc5.
55567         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55568         * lib/fpurge.c (fpurge): Likewise.
55569         * lib/freadable.c (freadable): Likewise.
55570         * lib/freadahead.c (freadahead): Likewise.
55571         * lib/freading.c (freading): Likewise.
55572         * lib/freadptr.c (freadptr): Likewise.
55573         * lib/freadseek.c (freadptrinc): Likewise.
55574         * lib/fseeko.c (rpl_fseeko): Likewise.
55575         * lib/fseterr.c (fseterr): Likewise.
55576         * lib/fwritable.c (fwritable): Likewise.
55577         * lib/fwriting.c (fwriting): Likewise.
55578         Reported by Alain Guibert <alguibert+bts@free.fr>.
55579
55580 2008-04-15  Bruno Haible  <bruno@clisp.org>
55581
55582         * modules/mathl (configure.ac): Define module indicator.
55583
55584 2008-04-15  Bruno Haible  <bruno@clisp.org>
55585
55586         * lib/logl.c (logl): Remove unused variables.
55587
55588 2008-04-15  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55591         fails.
55592
55593 2008-04-15  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/trim.c (trim2): Fix argument of isspace() macro.
55596
55597 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55598
55599         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55600         to 0.
55601         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55602
55603 2008-04-14  Bruno Haible  <bruno@clisp.org>
55604
55605         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55606         AC_LANG_PROGRAM argument.
55607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55608         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55610         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55611         * m4/math_h.m4 (gl_MATH_H): Likewise.
55612         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55613         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55614         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55615         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55616         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55617         * m4/regex.m4 (gl_REGEX): Likewise.
55618         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55619         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55621         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55623         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55626
55627 2008-04-14  Jim Meyering  <meyering@redhat.com>
55628
55629         test-strtod: fix typos: s/abs/fabs/
55630         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55631
55632 2008-04-13  Bruno Haible  <bruno@clisp.org>
55633
55634         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55635         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55636         module is also used and while not building the reloc-wrapper.
55637
55638 2008-04-13  Bruno Haible  <bruno@clisp.org>
55639
55640         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55641
55642 2008-04-13  Bruno Haible  <bruno@clisp.org>
55643
55644         Fix AIX compilation failure introduced on 2008-04-02.
55645         * tests/test-frexp.c (exp): Undefine before redefining.
55646         * tests/test-frexpl.c (exp): Likewise.
55647
55648 2008-04-13  Bruno Haible  <bruno@clisp.org>
55649
55650         Work around a HP-UX stdio bug.
55651         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55652         * tests/test-ftello.c (main): Likewise.
55653         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55654         * doc/posix-functions/ftello.texi: Likewise.
55655
55656 2008-04-13  Bruno Haible  <bruno@clisp.org>
55657
55658         Make test-signbit pass on HP-UX/hppa.
55659         * tests/test-signbit.c (minus_zerol): New variable.
55660         (test_signbitl): Use it.
55661
55662 2008-04-13  Bruno Haible  <bruno@clisp.org>
55663
55664         Make truncl work on OSF/1 4.0.
55665         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55666         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55667         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55669         HAVE_DECL_TRUNCL.
55670         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55671         HAVE_DECL_TRUNCL.
55672         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55673
55674 2008-04-13  Bruno Haible  <bruno@clisp.org>
55675
55676         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55677
55678 2008-04-13  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55681         expression, so as to avoid HP-UX 11 cc compiler bug.
55682
55683 2008-04-13  Bruno Haible  <bruno@clisp.org>
55684
55685         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55686
55687 2008-04-13  Bruno Haible  <bruno@clisp.org>
55688
55689         * lib/git-merge-changelog.c: Remove empty declaration outside of
55690         functions.
55691
55692 2008-04-13  Bruno Haible  <bruno@clisp.org>
55693
55694         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55695
55696 2008-04-13  Bruno Haible  <bruno@clisp.org>
55697
55698         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55699         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55701         also if it exists but lacks definitions of the SHUT_* macros.
55702         * modules/sys_socket (Description): Update.
55703         Reported by Elbert Pol <e.pol@chello.nl>.
55704
55705 2008-04-13  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/localcharset.c (OS2): Don't redefine if already defined.
55708         Reported by Elbert Pol <e.pol@chello.nl>.
55709
55710 2008-04-13  Bruno Haible  <bruno@clisp.org>
55711
55712         * lib/binary-io.h [__EMX__]: Include <io.h>.
55713         Reported by Elbert Pol <e.pol@chello.nl>.
55714
55715 2008-04-12  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/fpucw.h: Enable the definitions also for x86_64.
55718         Needed for NetBSD/x86_64.
55719         Reported by Thomas Klausner <tk@giga.or.at>.
55720
55721 2008-04-12  Bruno Haible  <bruno@clisp.org>
55722
55723         * tests/test-strtod.c: Include isnand.h.
55724         (main): Use isnand instead of isnan.
55725         Reported by Jim Meyering.
55726
55727 2008-04-12  Bruno Haible  <bruno@clisp.org>
55728
55729         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55730         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55731
55732 2008-04-12  Jim Meyering  <meyering@redhat.com>
55733
55734         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55735
55736 2008-04-12  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55739         Reported by Elbert Pol <e.pol@chello.nl>.
55740
55741 2008-04-12  Eric Blake  <ebb9@byu.net>
55742
55743         Work around Solaris 10 math.h bug.
55744         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55745         (gl_MATH_H_DEFAULTS): Set up default.
55746         * modules/math (Makefile.am): Replace new indicators.
55747         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55748         * tests/test-math.c (main): Test this.
55749         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55750         * doc/posix-headers/math.texi (math.h): Mention bug.
55751         Reported by Nelson H. F. Beebe and Jim Meyering.
55752
55753 2008-04-11  Bruno Haible  <bruno@clisp.org>
55754
55755         Adapt to future versions of Apple GCC.
55756         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55757         Reported by Peter O'Gorman <peter@pogma.com>.
55758
55759 2008-04-11  Bruno Haible  <bruno@clisp.org>
55760
55761         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55762
55763 2008-04-11  Bruno Haible  <bruno@clisp.org>
55764
55765         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55766
55767         * modules/getaddrinfo-tests (Makefile.am): Define
55768         test_getaddrinfo_LDADD.
55769
55770 2008-04-11  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55773         (init): Fix syntax error.
55774         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55775         is declared.
55776
55777 2008-04-11  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55780         * modules/glob (Depends-on): Add stdbool.
55781
55782 2008-04-11  Bruno Haible  <bruno@clisp.org>
55783
55784         * lib/trim.c: Include <string.h>.
55785
55786 2008-04-11  Eric Blake  <ebb9@byu.net>
55787
55788         Avoid compile failure on OS/2.
55789         * lib/regex_internal.h (internal_function): Disable optimization
55790         on OS/2 (__EMX__), where it caused compiler error.
55791         Reported by Elbert Pol.
55792
55793 2008-04-11  Bruno Haible  <bruno@clisp.org>
55794
55795         Flush the standard error stream before aborting. Needed on mingw.
55796         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55797         * tests/test-array_list.c (ASSERT): Likewise.
55798         * tests/test-array_oset.c (ASSERT): Likewise.
55799         * tests/test-avltree_list.c (ASSERT): Likewise.
55800         * tests/test-avltree_oset.c (ASSERT): Likewise.
55801         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55802         * tests/test-binary-io.c (ASSERT): Likewise.
55803         * tests/test-byteswap.c (ASSERT): Likewise.
55804         * tests/test-c-ctype.c (ASSERT): Likewise.
55805         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55806         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55807         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55808         * tests/test-c-strstr.c (ASSERT): Likewise.
55809         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55810         * tests/test-canonicalize.c (ASSERT): Likewise.
55811         * tests/test-carray_list.c (ASSERT): Likewise.
55812         * tests/test-ceilf1.c (ASSERT): Likewise.
55813         * tests/test-ceilf2.c (ASSERT): Likewise.
55814         * tests/test-ceill.c (ASSERT): Likewise.
55815         * tests/test-count-one-bits.c (ASSERT): Likewise.
55816         * tests/test-fbufmode.c (ASSERT): Likewise.
55817         * tests/test-fflush2.c (ASSERT): Likewise.
55818         * tests/test-floorf1.c (ASSERT): Likewise.
55819         * tests/test-floorf2.c (ASSERT): Likewise.
55820         * tests/test-floorl.c (ASSERT): Likewise.
55821         * tests/test-fopen.c (ASSERT): Likewise.
55822         * tests/test-fpending.c (ASSERT): Likewise.
55823         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55824         * tests/test-fpurge.c (ASSERT): Likewise.
55825         * tests/test-freadable.c (ASSERT): Likewise.
55826         * tests/test-freadahead.c (ASSERT): Likewise.
55827         * tests/test-freading.c (ASSERT): Likewise.
55828         * tests/test-freadptr.c (ASSERT): Likewise.
55829         * tests/test-freadptr2.c (ASSERT): Likewise.
55830         * tests/test-freadseek.c (ASSERT): Likewise.
55831         * tests/test-freopen.c (ASSERT): Likewise.
55832         * tests/test-frexp.c (ASSERT): Likewise.
55833         * tests/test-frexpl.c (ASSERT): Likewise.
55834         * tests/test-fseek.c (ASSERT): Likewise.
55835         * tests/test-fseeko.c (ASSERT): Likewise.
55836         * tests/test-fstrcmp.c (ASSERT): Likewise.
55837         * tests/test-ftell.c (ASSERT): Likewise.
55838         * tests/test-ftello.c (ASSERT): Likewise.
55839         * tests/test-func.c (ASSERT): Likewise.
55840         * tests/test-fwritable.c (ASSERT): Likewise.
55841         * tests/test-fwriting.c (ASSERT): Likewise.
55842         * tests/test-getdelim.c (ASSERT): Likewise.
55843         * tests/test-getline.c (ASSERT): Likewise.
55844         * tests/test-i-ring.c (ASSERT): Likewise.
55845         * tests/test-iconv-utf.c (ASSERT): Likewise.
55846         * tests/test-iconv.c (ASSERT): Likewise.
55847         * tests/test-isfinite.c (ASSERT): Likewise.
55848         * tests/test-isnand.c (ASSERT): Likewise.
55849         * tests/test-isnanf.c (ASSERT): Likewise.
55850         * tests/test-isnanl.h (ASSERT): Likewise.
55851         * tests/test-ldexpl.c (ASSERT): Likewise.
55852         * tests/test-linked_list.c (ASSERT): Likewise.
55853         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55854         * tests/test-localename.c (ASSERT): Likewise.
55855         * tests/test-lseek.c (ASSERT): Likewise.
55856         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55857         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55858         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55859         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55860         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55861         * tests/test-mbschr.c (ASSERT): Likewise.
55862         * tests/test-mbscspn.c (ASSERT): Likewise.
55863         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55864         * tests/test-mbspbrk.c (ASSERT): Likewise.
55865         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55866         * tests/test-mbsrchr.c (ASSERT): Likewise.
55867         * tests/test-mbsspn.c (ASSERT): Likewise.
55868         * tests/test-mbsstr1.c (ASSERT): Likewise.
55869         * tests/test-mbsstr2.c (ASSERT): Likewise.
55870         * tests/test-mbsstr3.c (ASSERT): Likewise.
55871         * tests/test-memchr2.c (ASSERT): Likewise.
55872         * tests/test-memmem.c (ASSERT): Likewise.
55873         * tests/test-open.c (ASSERT): Likewise.
55874         * tests/test-printf-frexp.c (ASSERT): Likewise.
55875         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55876         * tests/test-printf-posix.c (ASSERT): Likewise.
55877         * tests/test-quotearg.c (ASSERT): Likewise.
55878         * tests/test-rbtree_list.c (ASSERT): Likewise.
55879         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55880         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55881         * tests/test-round1.c (ASSERT): Likewise.
55882         * tests/test-roundf1.c (ASSERT): Likewise.
55883         * tests/test-roundl.c (ASSERT): Likewise.
55884         * tests/test-signbit.c (ASSERT): Likewise.
55885         * tests/test-sleep.c (ASSERT): Likewise.
55886         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55887         * tests/test-snprintf.c (ASSERT): Likewise.
55888         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55889         * tests/test-stat-time.c (ASSERT): Likewise.
55890         * tests/test-strcasestr.c (ASSERT): Likewise.
55891         * tests/test-strerror.c (ASSERT): Likewise.
55892         * tests/test-striconv.c (ASSERT): Likewise.
55893         * tests/test-striconveh.c (ASSERT): Likewise.
55894         * tests/test-striconveha.c (ASSERT): Likewise.
55895         * tests/test-strsignal.c (ASSERT): Likewise.
55896         * tests/test-strstr.c (ASSERT): Likewise.
55897         * tests/test-strtod.c (ASSERT): Likewise.
55898         * tests/test-trunc1.c (ASSERT): Likewise.
55899         * tests/test-trunc2.c (ASSERT): Likewise.
55900         * tests/test-truncf1.c (ASSERT): Likewise.
55901         * tests/test-truncf2.c (ASSERT): Likewise.
55902         * tests/test-truncl.c (ASSERT): Likewise.
55903         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55904         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55905         * tests/test-vasnprintf.c (ASSERT): Likewise.
55906         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55907         * tests/test-vasprintf.c (ASSERT): Likewise.
55908         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55909         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55910         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55911         * tests/test-vsnprintf.c (ASSERT): Likewise.
55912         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55913         * tests/test-wcwidth.c (ASSERT): Likewise.
55914         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55915         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55916         * tests/test-xvasprintf.c (ASSERT): Likewise.
55917         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55918         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55919         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55920         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55921         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55922         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55923         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55924         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55925         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55926         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55927         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55928         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55929         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55930         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55931         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55932         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55933         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55934         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55935         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55936         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55937         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55938         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55939         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55940         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55941         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55942         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55943         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55944         * tests/unictype/test-combining.c (ASSERT): Likewise.
55945         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55946         * tests/unictype/test-digit.c (ASSERT): Likewise.
55947         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55948         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55949         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55950         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55951         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55952         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55953         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55954         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55955         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55956         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55957         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55958         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55959         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55960         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55961         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55962         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55963         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55964         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55965         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55966         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55967         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55968         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55969         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55970         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55971         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55972         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55973         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55974         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55975         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55976         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55977         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55978         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55979         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55980         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55981         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55982         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55983         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55984         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55985         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55986         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55987         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55988         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55989         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55990         Reported by Eric Blake.
55991
55992 2008-04-11  Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/wchar.in.h: Tweak comment.
55995
55996 2008-04-11  Bruno Haible  <bruno@clisp.org>
55997
55998         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55999         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56000         gl_COMMON.
56001         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56002
56003 2008-04-11  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56006
56007 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56008
56009         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56010         of attempting to use non-existing /dev/*random.  Based on patch
56011         from Adam Strzelecki <ono@java.pl> in
56012         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56013
56014 2008-04-08  Bruno Haible  <bruno@clisp.org>
56015
56016         Add tentative support for emx+gcc.
56017         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56018         * lib/fpurge.c (fpurge): Likewise.
56019         * lib/freadable.c (freadable): Likewise.
56020         * lib/freadahead.c (freadahead): Likewise.
56021         * lib/freading.c (freading): Likewise.
56022         * lib/freadptr.c (freadptr): Likewise.
56023         * lib/freadseek.c (freadptrinc): Likewise.
56024         * lib/fseeko.c (rpl_fseeko): Likewise.
56025         * lib/fseterr.c (fseterr): Likewise.
56026         * lib/fwritable.c (fwritable): Likewise.
56027         * lib/fwriting.c (fwriting): Likewise.
56028         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56029
56030 2008-04-09  Eric Blake  <ebb9@byu.net>
56031
56032         Avoid some autoconf warnings.
56033         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56034         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56035         * m4/afs.m4 (gl_AFS): Likewise.
56036         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56037         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56039         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56040         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56041         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56042         (AC_CHECK_DECLS_ONCE): Likewise.
56043         Rename file...
56044         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56045         gnulib-tool requires autoconf 2.59 or better.
56046         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56047
56048 2008-04-08  Eric Blake  <ebb9@byu.net>
56049
56050         Use 'git describe --match' if present (added in git 1.5.5).
56051         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56052         if possible.
56053
56054 2008-04-08  Bruno Haible  <bruno@clisp.org>
56055
56056         Add tentative support for OpenServer.
56057         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56058         _ptr, _cnt.
56059         * lib/fpurge.c (fpurge): Likewise.
56060         * lib/freadable.c (freadable): Likewise.
56061         * lib/freadahead.c (freadahead): Likewise.
56062         * lib/freading.c (freading): Likewise.
56063         * lib/freadptr.c (freadptr): Likewise.
56064         * lib/freadseek.c (freadptrinc): Likewise.
56065         * lib/fseeko.c (rpl_fseeko): Likewise.
56066         * lib/fseterr.c (fseterr): Likewise.
56067         * lib/fwritable.c (fwritable): Likewise.
56068         * lib/fwriting.c (fwriting): Likewise.
56069         Reported by Roger Cornelius <rac@tenzing.org> and
56070         Brian K. White <brian@aljex.com>.
56071
56072 2008-04-06  Jim Meyering  <meyering@redhat.com>
56073
56074         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56075
56076 2008-04-06  Bruno Haible  <bruno@clisp.org>
56077
56078         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56079         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56080         * tests/test-printf-posix.sh: Likewise.
56081         * tests/test-vfprintf-posix.sh: Likewise.
56082         * tests/test-vprintf-posix.sh: Likewise.
56083         * tests/test-xprintf-posix.sh: Likewise.
56084
56085 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56086
56087         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56088         hide error from 'ls', needed on OS/2.
56089         Report by Elbert Pol <elbert.pol@gmail.com>.
56090
56091 2008-04-04  Eric Blake  <ebb9@byu.net>
56092
56093         Make test-fseeko.c failures meaningful.
56094         * tests/test-fseeko.c: Print line number on failure.
56095         * tests/test-fseek.c: Likewise.
56096         Reported by Nelson H. F. Beebe.
56097
56098         Improve strtod bug detection check.
56099         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56100         required for Solaris 10.
56101         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56102
56103 2008-04-04  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56106         by m4/setenv.m4.
56107
56108 2008-04-03  Eric Blake  <ebb9@byu.net>
56109
56110         Ensure sane .version contents.
56111         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56112         version string.
56113         * build-aux/git-version-gen: Improve documentation.
56114
56115         Make GNU make output nicer.
56116         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56117         MAKECMDGOALS to enforce message for all command line targets.  Set
56118         srcdir for use in maint.mk.
56119
56120         Another maintainer tweak.
56121         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56122         a target that regenerates version.
56123
56124 2008-04-03  Jim Meyering  <meyering@redhat.com>
56125
56126         vc-list-files: don't cause coreutils "make po-check" failure
56127         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56128
56129 2008-04-03  Eric Blake  <ebb9@byu.net>
56130
56131         Allow VPATH usage of vc-list-files.
56132         * build-aux/vc-list-files (scriptversion): Add timestamp.
56133         (options): Add --help, --version, -C.
56134         (CVS): Support installed cvsu.
56135
56136 2008-04-02  Bruno Haible  <bruno@clisp.org>
56137
56138         Avoid some "statement with no effect" warnings from gcc.
56139         * tests/test-wctype.c (main): Explicitly ignore unused values.
56140         Reported by Jim Meyering.
56141
56142 2008-04-02  Jim Meyering  <meyering@redhat.com>
56143
56144         Avoid some warnings from "gcc -Wshadow".
56145         * tests/test-frexp.c (exp): Define to a different identifier.
56146         * tests/test-frexpl.c (exp): Likewise.
56147
56148 2008-04-03  Jim Meyering  <meyering@redhat.com>
56149
56150         bootstrap: remove dangling *.[ch] symlinks from lib
56151         * build-aux/bootstrap [dangling symlink removal]: Move find's
56152         -depth option to precede all others, to avoid a warning.
56153         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56154
56155 2008-04-02  Bruno Haible  <bruno@clisp.org>
56156
56157         Avoid some warnings from "gcc -Wshadow".
56158         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56159         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56160         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56161         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56162         Reported by Jim Meyering.
56163
56164 2008-04-01  Bruno Haible  <bruno@clisp.org>
56165
56166         Fix test to work on IRIX 6.5 with cc.
56167         * tests/test-math.c (numeric_equal): New function.
56168         (main): Use it.
56169
56170 2008-04-01  Bruno Haible  <bruno@clisp.org>
56171
56172         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56173
56174 2008-04-01  Bruno Haible  <bruno@clisp.org>
56175
56176         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56177         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56178         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56179         (Depends-on): Remove math.
56180
56181         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56182         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56183         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56184         (Depends-on): Remove math.
56185
56186         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56187         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56188         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56189         (Depends-on): Remove math.
56190         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56191         (Depends-on): Remove math.
56192
56193         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56194         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56195         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56196         (Depends-on): Remove math.
56197         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56198         (Depends-on): Remove math.
56199
56200         * tests/test-round1.c: Include nan.h.
56201         (main): Use NaNd instead of NAN.
56202         * modules/round-tests (Files): Add tests/nan.h.
56203
56204         * tests/test-trunc1.c: Include nan.h.
56205         (main): Use NaNd instead of NAN.
56206         * modules/trunc-tests (Files): Add tests/nan.h.
56207
56208         * tests/test-roundf1.c: Include nan.h.
56209         (main): Use NaNf instead of NAN.
56210         * modules/roundf-tests (Files): Add tests/nan.h.
56211
56212         * tests/test-truncf1.c: Include nan.h.
56213         (main): Use NaNf instead of NAN.
56214         * modules/truncf-tests (Files): Add tests/nan.h.
56215
56216         * tests/test-ceilf1.c: Include nan.h.
56217         (main): Use NaNf instead of NAN.
56218         * modules/ceilf-tests (Files): Add tests/nan.h.
56219
56220         * tests/test-floorf1.c: Include nan.h.
56221         (main): Use NaNf instead of NAN.
56222         * modules/floorf-tests (Files): Add tests/nan.h.
56223
56224         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56225         (main): Use NaNf instead of NAN.
56226         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56227
56228         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56229         (main): Use NaNd instead of NAN.
56230         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56231
56232         * tests/test-frexp.c: Include nan.h.
56233         (main): Use NaNd instead of NAN.
56234         * modules/frexp-tests (Files): Add tests/nan.h.
56235
56236         * lib/isnan.c: Don't include <math.h>.
56237         (FUNC): Don't use NAN macro.
56238         * modules/isnand-nolibm (Depends-on): Remove math.
56239         * modules/isnanf-nolibm (Depends-on): Remove math.
56240         * modules/isnanl (Depends-on): Remove math.
56241         * modules/isnanl-nolibm (Depends-on): Remove math.
56242
56243         * tests/nan.h: New file.
56244
56245 2008-04-01  Eric Blake  <ebb9@byu.net>
56246
56247         Fix typos.
56248         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56249         values to be the right type.
56250
56251         For now, cater to gnulib strtod inaccuracies.
56252         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56253         fractional results.  While not as nice from a QoI perspective, it
56254         is a quicker patch than correctly implementing decimal to binary
56255         rounding.
56256
56257 2008-03-31  Eric Blake  <ebb9@byu.net>
56258
56259         Guarantee a definition of NAN.
56260         * lib/math.in.h (NAN): Define if missing.
56261         * tests/test-math.c (main): Test it.
56262         * doc/posix-headers/math.texi (math.h): Document this.
56263         * lib/isnan.c (rpl_isnand): Use it.
56264         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56265         * tests/test-floorf1.c (NaN): Likewise.
56266         * tests/test-frexp.c (NaN): Likewise.
56267         * tests/test-isnand.c (NaN): Likewise.
56268         * tests/test-isnanf.c (NaN): Likewise.
56269         * tests/test-round1.c (NaN): Likewise.
56270         * tests/test-roundf1.c (NaN): Likewise.
56271         * tests/test-snprintf-posix.h (NaN): Likewise.
56272         * tests/test-sprintf-posix.h (NaN): Likewise.
56273         * tests/test-trunc1.c (NaN): Likewise.
56274         * tests/test-truncf1.c (NaN): Likewise.
56275         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56276         * tests/test-vasprintf-posix.c (NaN): Likewise.
56277         * modules/isnand-nolibm (Depends-on): Add math.
56278         * modules/isnanf-nolibm (Depends-on): Likewise.
56279         * modules/isnanl (Depends-on): Likewise.
56280         * modules/isnanl-nolibm (Depends-on): Likewise.
56281         * modules/snprintf-posix-tests (Depends-on): Likewise.
56282         * modules/sprintf-posix-tests (Depends-on): Likewise.
56283         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56284         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56285         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56286         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56287
56288 2008-03-31  Bruno Haible  <bruno@clisp.org>
56289
56290         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56291         * doc/posix-functions/strtod.texi: Likewise.
56292
56293 2008-03-31  Bruno Haible  <bruno@clisp.org>
56294
56295         * tests/test-strtod.c (main): Don't use C99 syntax.
56296
56297 2008-03-31  Bruno Haible  <bruno@clisp.org>
56298
56299         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56300         Reported by Eric Blake.
56301
56302 2008-03-31  Jim Meyering  <meyering@redhat.com>
56303
56304         Don't compare actual signbit return values.
56305         * tests/test-strtod.c (main): Rather, compare only their
56306         zero/non-zero nature.
56307
56308 2008-03-31  Eric Blake  <ebb9@byu.net>
56309
56310         More strtod documentation.
56311         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56312         failures as distinct bugs.
56313
56314 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56315
56316         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56317         Problem reported by Erik Benada in
56318         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56319
56320 2008-03-30  Bruno Haible  <bruno@clisp.org>
56321
56322         * tests/test-strtod.c: Add comments about which assertion fails on which
56323         platform.
56324         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56325
56326 2008-03-30  Eric Blake  <ebb9@byu.net>
56327
56328         Test signbit behavior on zeros.
56329         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56330         (test_signbitd, test_signbitl): Likewise.
56331
56332         More strtod touchups.
56333         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56334         sign of negative underflow, for now.  Use .5, not .1.
56335         * doc/posix-functions/strtod.texi (strtod): Mention these
56336         limitations.
56337         Reported by Jim Meyering.
56338
56339 2008-03-30  Bruno Haible  <bruno@clisp.org>
56340
56341         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56342         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56343
56344 2008-03-30  Bruno Haible  <bruno@clisp.org>
56345
56346         Avoid failure when attempting to return empty iconv results on some
56347         platforms.
56348         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56349         allocation, don't report ENOMEM when the resulting string is empty.
56350
56351 2008-03-30  Bruno Haible  <bruno@clisp.org>
56352
56353         Fix buffer overrun.
56354         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56355         Don't consider the width for tmp_length. Check count against tmp_length
56356         before doing the padding. Ensure enough allocation during padding.
56357
56358 2008-03-30  Eric Blake  <ebb9@byu.net>
56359
56360         strtod touchups.
56361         * lib/strtod.c (strtod): Avoid compiler warnings.
56362         Reported by Jim Meyering.
56363
56364 2008-03-30  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56367         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56368         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56369         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56370         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56371         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56372         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56373         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56374
56375         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56376         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56377         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56378         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56379         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56380         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56381         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56382         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56383
56384         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56385         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56386         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56387         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56388         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56389         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56390         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56391         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56392
56393         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56394         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56395
56396         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56397         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56398
56399         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56400         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56401
56402         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56404         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56405
56406         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56408         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56409
56410         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56411         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56412         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56413
56414         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56416         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56417
56418         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56419         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56421         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56422         (Depends-on): Add EOVERFLOW.
56423         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56424         (Depends-on): Add EOVERFLOW.
56425         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56426         (Depends-on): Add EOVERFLOW.
56427         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56428         (Depends-on): Add EOVERFLOW.
56429         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56430         (Depends-on): Add EOVERFLOW.
56431         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56432         (Depends-on): Add EOVERFLOW.
56433         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56434         (Depends-on): Add EOVERFLOW.
56435         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56436         (Depends-on): Add EOVERFLOW.
56437
56438         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56440         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56441
56442         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56444         * modules/snprintf (Depends-on): Add EOVERFLOW.
56445
56446         * lib/poll.c (EOVERFLOW): Remove fallback.
56447         * modules/poll (Depends-on): Add EOVERFLOW.
56448
56449         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56450         * modules/getugroups (Depends-on): Add EOVERFLOW.
56451
56452         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56453         * modules/getdelim (Depends-on): Add EOVERFLOW.
56454
56455         * lib/ftell.c (EOVERFLOW): Remove fallback.
56456         * modules/ftell (Depends-on): Add EOVERFLOW.
56457
56458         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56460         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56461
56462         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56463
56464         * modules/EOVERFLOW-tests: New file.
56465         * tests/test-EOVERFLOW.c: New file.
56466
56467         * modules/EOVERFLOW: New file.
56468         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56469
56470 2008-03-30  Bruno Haible  <bruno@clisp.org>
56471
56472         Fix bug introduced on 2007-06-10.
56473         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56474         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56475
56476 2008-03-30  Bruno Haible  <bruno@clisp.org>
56477
56478         Improve freadseek's efficiency after ungetc.
56479         * lib/freadseek.c: Include freadahead.h.
56480         (freadptrinc): New function, extracted from freadseek.
56481         (freadseek): Use it in a loop. Use freadahead to determine the number
56482         of loop iterations.
56483         * modules/freadseek (Depends-on): Add freadahead.
56484         (configure.ac): Require AC_C_INLINE.
56485
56486 2008-03-30  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/freadseek.c (freadseek): Don't ignore the return value of
56489         freadptr.
56490
56491 2008-03-29  Eric Blake  <ebb9@byu.net>
56492
56493         Add hex float support.
56494         * modules/strtod (Depends-on): Add c-ctype.
56495         (Link): Mention POW_LIB.
56496         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56497         whitespace between 'e' and exponent.
56498         * tests/test-strtod.c (main): Enable hex float tests.
56499         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56500         now provides.
56501
56502         Document various strtod bugs, with some fixes.
56503         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56504         "-0x", "inf", "nan", and hex constants.
56505         * doc/posix-functions/atof.texi (atof): Likewise.
56506         * modules/stdlib (Makefile.am): Support strtod.
56507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56508         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56509         detect additional strtod bugs.
56510         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56511         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56512         bool where appropriate.  Parse 'inf' and 'nan'.
56513         * tests/test-strtod.c: New file.
56514         * modules/strtod (Depends-on): Add stdbool, stdlib.
56515         (configure.ac): Turn on module indicator.
56516         * modules/strtod-tests: New module.
56517
56518 2008-03-29  Eric Blake  <ebb9@byu.net>
56519
56520         Fix ftell on mingw.
56521         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56522         * modules/ftell-tests (Depends-on): Add binary-io.
56523         * modules/ftello-tests (Depends-on): Likewise.
56524         * tests/test-ftell.c (main): Enhance test to cover behavior after
56525         ungetc.  Enforce binary mode.
56526         * tests/test-ftello.c (main): Likewise.
56527
56528         Pass test-freadseek on cygwin.
56529         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56530         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56531         ungetc buffer.
56532
56533         * tests/test-fflush2.c (main): Fix typo.
56534
56535 2008-03-29  Bruno Haible  <bruno@clisp.org>
56536
56537         * tests/test-fflush2.c (main): Temporarily disable the contents of
56538         this test.
56539         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56540         Reported by Eric Blake.
56541
56542 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56543
56544         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56545         (GC_SHA224_DIGEST_SIZE): Add.
56546
56547         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56548         (gc_hash_digest_length): Likewise.
56549         (gc_hash_buffer): Likewise.
56550
56551 2008-03-25  Bruno Haible  <bruno@clisp.org>
56552
56553         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56554         detail which gettext release to use.
56555         Reported by Simon Josefsson.
56556
56557 2008-03-26  Jim Meyering  <meyering@redhat.com>
56558
56559         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56560         * modules/gnumakefile (clean-GNUmakefile): Also, use
56561         test ... && ... || : syntax rather than if-then ... fi.
56562
56563         gnumakefile: Don't double-quote-expand $(VPATH) value.
56564         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56565
56566 2008-03-24  Eric Blake  <ebb9@byu.net>
56567
56568         Alter GNUmakefile to install into top directory.
56569         * modules/maintainer-makefile: Split, and add dependency...
56570         * modules/gnumakefile: to this new module.
56571         * build-aux/GNUmakefile: Move...
56572         * top/GNUmakefile: ...here.
56573         * build-aux/maint.mk: Move...
56574         * top/maint.mk: ...here.
56575         * MODULES.html.sh (Support for maintaining...): Document new
56576         module.
56577
56578 2008-03-23  Bruno Haible  <bruno@clisp.org>
56579
56580         * gnulib-tool: New options --vc-files, --no-vc-files.
56581         (func_usage): Document them.
56582         (vc_files): New variable.
56583         (func_import): Consider vc_files.
56584         (func_create_testdir): Set vc_files to empty.
56585         Suggested by Jim Meyering and Karl Berry.
56586
56587 2008-03-23  Bruno Haible  <bruno@clisp.org>
56588
56589         Fix regex compilation error on HP-UX 11.
56590         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56591         * modules/regex (Files): Add m4/mbstate_t.m4.
56592         Reported by Ton Voon <ton.voon@altinity.com>.
56593
56594 2008-03-23  Bruno Haible  <bruno@clisp.org>
56595
56596         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56597
56598 2008-03-23  Eric Blake  <ebb9@byu.net>
56599             Bruno Haible  <bruno@clisp.org>
56600
56601         Install files from top/ in the destination directory.
56602         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56603         augmentation also for the files from top/.
56604         (func_import, func_create_testdir): Rewrite file names:
56605         top/filename -> filename.
56606
56607 2008-03-23  Bruno Haible  <bruno@clisp.org>
56608
56609         Tweak "gnulib --version" output.
56610         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56611
56612 2008-03-23  Bruno Haible  <bruno@clisp.org>
56613
56614         Tweak "gnulib --version" output.
56615         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56616         rather than contents of ChangeLog, when possible.
56617
56618 2008-03-21  Eric Blake  <ebb9@byu.net>
56619
56620         More --version tweaks.
56621         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56622         date of last ChangeLog entry.
56623
56624 2008-03-21  Jim Meyering  <meyering@redhat.com>
56625
56626         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56627
56628 2008-03-20  Eric Blake  <ebb9@byu.net>
56629
56630         VPATH fix.
56631         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56632
56633 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56634
56635         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56636         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56637
56638 2008-03-20  Eric Blake  <ebb9@byu.net>
56639
56640         Sync GNUmakefile with coreutils.
56641         * build-aux/GNUmakefile (have-Makefile): Rename...
56642         (_have-Makefile): ...to this, for namespace consideration.
56643         (GNUmakefile.cfg): Include, if present.
56644         (_autoreconf): Define a default.
56645         (_is-dist-target): New rule for rebuilds to pick up intra-release
56646         version.
56647         (maint-cfg.mk): Rename...
56648         (cfg.mk): ...to this.
56649
56650 2008-03-18  Jim Meyering  <meyering@redhat.com>
56651
56652         New script and module: mktempd
56653         * MODULES.html.sh (maint+release support): Add mktempd.
56654         * build-aux/mktempd: New file.
56655         * modules/mktempd: New file.
56656
56657 2008-03-15  Jim Meyering  <meyering@redhat.com>
56658
56659         Undo last change.
56660         * lib/sha1.c, lib/md5.c: 63 != ~63.
56661         Reported by Andreas Schwab.
56662
56663         sha1.c, md5.c: Hoist a redundant expression.
56664         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56665         "ctx->buflen" only once, before calling *_process_block.
56666         * lib/md5.c (md5_process_bytes): Likewise.
56667
56668 2008-03-14  Eric Blake  <ebb9@byu.net>
56669
56670         Bump copyright year in files generated by gnulib-tool.
56671         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56672         gnulib-tool, rather than hard-coding it.
56673
56674         Fix 'gnulib-tool --version' output to work with git.
56675         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56676         (startup): ...here.
56677         (func_version): Use it to invoke git-version-gen, rather than
56678         relying on CVS keyword expansion.  Modernize wording.
56679         (cvsdatestamp, last_checkin_date, version): Kill unused
56680         variables.
56681
56682 2008-03-12  Jim Meyering  <meyering@redhat.com>
56683
56684         Recognize optional cast of the argument to free.
56685         * build-aux/useless-if-before-free: Update regexps.
56686
56687         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56688
56689 2008-03-11  Bruno Haible  <bruno@clisp.org>
56690
56691         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56692         by a single package.
56693         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56694         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56695         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56696         Reported by Sam Steingold <sds@gnu.org>.
56697
56698 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56699
56700         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56701         repositories.
56702
56703 2008-03-11  Bruno Haible  <bruno@clisp.org>
56704
56705         Avoid conflicts between local macro definitions.
56706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56707         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56708
56709 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56710             Bruno Haible  <bruno@clisp.org>
56711
56712         Make va_copy work with some version of xlc on AIX 5.1.
56713         * lib/stdarg.in.h: New file.
56714         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56715         On AIX, use a <stdarg.h> file substitute.
56716         * modules/stdarg (Files): Add lib/stdarg.in.h.
56717         (Depends-on): Add include_next.
56718         (Makefile.am): Build a stdarg.h substitute if requested.
56719         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56720
56721 2008-03-10  Bruno Haible  <bruno@clisp.org>
56722
56723         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56725         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56726
56727 2008-03-10  Bruno Haible  <bruno@clisp.org>
56728
56729         * modules/stdlib (Depends-on): Add include_next, remove
56730         absolute-header.
56731
56732 2008-03-09  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/freadahead.h (freadahead): Document more precisely.
56735         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56736         the sum of both buffer sizes.
56737         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56738         * NEWS: Document the change.
56739
56740 2008-03-09  Bruno Haible  <bruno@clisp.org>
56741
56742         Extend freadptr to return also the buffer size.
56743         * lib/freadptr.h (freadptr): Add sizep argument.
56744         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56745         (freadptr): Add sizep argument. Determine buffer size like freadahead
56746         does.
56747         * tests/test-freadptr.c: Don't include freadahead.h.
56748         (main): Adapt for new calling convention of freadptr.
56749         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56750         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56751         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56752         tests/test-freadptr2.sh.
56753         (Depends): Remove freadahead.
56754         (TESTS): Add test-freadptr2.sh.
56755         (check_PROGRAMS): Add test-freadptr2.
56756
56757 2008-03-09  Bruno Haible  <bruno@clisp.org>
56758
56759         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56760         Report and solution by Simon Josefsson.
56761
56762 2008-03-06  Bruno Haible  <bruno@clisp.org>
56763
56764         Make fflush after ungetc work on BSD platforms.
56765         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56766         * tests/test-fflush2.c: New file.
56767         * tests/test-fflush2.sh: New file.
56768         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56769         tests/test-fflush2.c.
56770         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56771         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56772
56773 2008-03-06  Eric Blake  <ebb9@byu.net>
56774
56775         Likewise for ftello.
56776         * modules/ftello (Dependencies): Add extensions.
56777         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56778
56779 2008-03-06  Bruno Haible  <bruno@clisp.org>
56780
56781         * modules/fseeko (Dependencies): Add extensions.
56782         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56783         Needed on glibc systems.
56784
56785 2008-03-06  Bruno Haible  <bruno@clisp.org>
56786
56787         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56788         email address.
56789         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56790
56791 2008-03-06  Bruno Haible  <bruno@clisp.org>
56792
56793         * users.txt: Add libgnupdf.
56794
56795 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56796
56797         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56798         (Header File Substitutes, Function Substitutes,
56799         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56800         (Build robot for gnulib): Fix typo.
56801
56802 2008-03-06  Bruno Haible  <bruno@clisp.org>
56803
56804         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56805         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56806
56807 2008-03-06  Bruno Haible  <bruno@clisp.org>
56808
56809         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56810         * doc/gnulib.texi: Include it.
56811
56812 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56813
56814         * modules/func (License): Change license to unlimited; there was
56815         no LGPL parts in the module anyway.
56816
56817 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56818
56819         * modules/__func__: Renamed to modules/func.
56820         * modules/__func__-tests: Renamed to modules/func-tests.
56821         * tests/test-__func__.c: Renamed to tests/test-func.c.
56822         * m4/__func__.m4: Renamed to m4/func.m4.
56823         * doc/gnulib.texi (__func__): Section renamed to func.
56824         Suggested by Eric Blake <ebb9@byu.net>.
56825
56826 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56827
56828         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56829         about __func__.  Make example self-contained.  Suggested by Eric
56830         Blake <ebb9@byu.net>.
56831
56832         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56833         Suggested by Eric Blake <ebb9@byu.net>.
56834
56835 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56836
56837         * modules/__func__: New file.
56838         * modules/__func__-tests: New file.
56839         * tests/test-__func__.c: New file.
56840         * m4/__func__.m4: New file.
56841         * doc/gnulib.texi (__func__): Document __func__ module.
56842
56843 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56844
56845         * modules/byteswap (License): Re-license as LGPLv2+.
56846
56847 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56848
56849         * doc/Makefile: Add pdf target.
56850
56851 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56852
56853         * modules/inline (License): Use 'unlimited', since there are only
56854         *.m4 files in this module.
56855
56856 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56857             Bruno Haible  <bruno@clisp.org>
56858
56859         Add support for HP C 7.1 on OpenVMS 8.3.
56860         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56861
56862 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56863
56864         Update VMS specifics.
56865         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56866
56867 2008-03-02  Jim Meyering  <meyering@redhat.com>
56868
56869         Remove the last dependency on the "free" module.
56870         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56871         Reported by Bob Proulx.
56872
56873         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56874
56875         Remove useless "if" tests before free.  Deprecate "free" module.
56876         * doc/posix-functions/free.texi: Mention that this
56877         module is no longer useful.
56878         * modules/free (Notice): Say this module is obsolete.
56879         * modules/readutmp (Depends-on): Remove free.
56880         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56881         * lib/putenv.c (putenv): Likewise.
56882         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56883         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56884         * tests/test-c-strcasestr.c (main): Likewise.
56885         * tests/test-c-strstr.c (main): Likewise.
56886         * tests/test-mbscasestr1.c (main): Likewise.
56887         * tests/test-mbscasestr2.c (main): Likewise.
56888         * tests/test-mbsstr1.c (main): Likewise.
56889         * tests/test-mbsstr2.c (main): Likewise.
56890         * tests/test-memmem.c (main): Likewise.
56891         * tests/test-strcasestr.c (main): Likewise.
56892         * tests/test-striconv.c (main): Likewise.
56893         * tests/test-striconveh.c (main): Likewise.
56894         * tests/test-striconveha.c (main): Likewise.
56895         * tests/test-strstr.c (main): Likewise.
56896
56897         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56898
56899         bootstrap: sync from coreutils again
56900         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56901
56902 2008-03-01  Jim Meyering  <meyering@redhat.com>
56903
56904         bootstrap: sync from coreutils
56905         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56906         also when the target doesn't exist.
56907
56908 2008-03-01  Eric Blake  <ebb9@byu.net>
56909
56910         Fix bugs in last patch.
56911         * lib/memchr2.c (memchr2): Fix typo.
56912         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56913         extension.
56914         Reported by Bruce Korb.
56915
56916         New module 'memchr2'.
56917         * modules/memchr2: New file.
56918         * modules/memchr2-tests: Likewise.
56919         * lib/memchr2.h: Likewise.
56920         * lib/memchr2.c: Likewise, based on memchr.c.
56921         * tests/test-memchr2.c: New test.
56922         * MODULES.html.sh (String handling): Add memchr2.
56923
56924 2008-02-29  Bruno Haible  <bruno@clisp.org>
56925
56926         * modules/freadseek-tests: New file.
56927         * tests/test-freadseek.sh: New file.
56928         * tests/test-freadseek.c: New file.
56929
56930         New module 'freadseek'.
56931         * modules/freadseek: New file.
56932         * lib/freadseek.h: New file.
56933         * lib/freadseek.c: New file.
56934         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56935
56936 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56937
56938         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56939         wydawca.
56940
56941         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56942         program_invocation_name and program_invocation_short_name are
56943         present.
56944
56945 2008-02-28  Bruno Haible  <bruno@clisp.org>
56946
56947         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56948         * tests/test-freadptr.sh: Also test non-seekable stdin.
56949
56950 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56951
56952         * build-aux/bootstrap (source_base, m4_base)
56953         (doc_base, tests_base): New variables.
56954         (gnulib_tool_options): Do not hardcode base directories, use
56955         the above variables instead.
56956
56957 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56958
56959         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56960
56961 2008-02-28  Bruno Haible  <bruno@clisp.org>
56962
56963         * modules/freadptr-tests: New file.
56964         * tests/test-freadptr.sh: New file.
56965         * tests/test-freadptr.c: New file.
56966
56967         New module 'freadptr'.
56968         * modules/freadptr: New file.
56969         * lib/freadptr.h: New file.
56970         * lib/freadptr.c: New file.
56971         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56972
56973 2008-02-26  Karl Berry  <karl@freefriends.org>
56974
56975         Sync from Libtool:
56976         * libltdl/argz.c (argz_add, argz_count): New functions.
56977         * libltdl/argz.in.h: Declare them.
56978         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56979
56980 2008-02-22  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56983         is a pointer type.  Needed for HP-UX 10.
56984         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56985         * doc/posix-functions/gmtime_r.texi: Likewise.
56986         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56987
56988 2008-02-24  Bruno Haible  <bruno@clisp.org>
56989
56990         * modules/environ-tests: New file.
56991         * tests/test-environ.c: New file.
56992
56993         New module 'environ'.
56994         * modules/environ: New file.
56995         * lib/unistd.in.h (environ): New declaration.
56996         * m4/environ.m4: New file.
56997         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56998         after use.
56999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57000         HAVE_DECL_ENVIRON.
57001         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57002         HAVE_DECL_ENVIRON.
57003         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57004         wrong claim that 'environ' is missing on some systems.
57005         * modules/execute (Depends-on): Add environ.
57006         * lib/execute.c (environ): Remove fallback declaration.
57007         * modules/pipe (Depends-on): Add environ.
57008         * lib/pipe.c (environ): Remove fallback declaration.
57009         * modules/setenv (Depends-on): Add environ.
57010         * lib/setenv.c (environ): Remove fallback declaration.
57011         * modules/unsetenv (Depends-on): Add environ.
57012         * lib/unsetenv.c (environ): Remove fallback declaration.
57013         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57014         m4/environ.m4.
57015         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57016         (gl_PREREQ_UNSETENV): Likewise.
57017
57018 2008-02-24  Bruno Haible  <bruno@clisp.org>
57019
57020         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57021
57022 2008-02-20  Bob Proulx  <bob@proulx.com>
57023
57024         Enable use of older two part flavor 'git describe'.
57025         * build-aux/git-version-gen: If using the older two part flavor of
57026         git version then recreate the third part now present in the
57027         newer three part flavor of git describe.
57028
57029 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57030
57031         * lib/fts.c (fts_build): Typo correction to comment.
57032
57033 2008-02-17  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57036         generating no-op conflicts.
57037
57038 2008-02-17  Bruno Haible  <bruno@clisp.org>
57039
57040         Speed up by 10%.
57041         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57042         result_entries, rather than an index-based loop.
57043
57044 2008-02-17  Bruno Haible  <bruno@clisp.org>
57045
57046         Speed up by 25%.
57047         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57048         'hashcode_cached'.
57049         (entry_create): New function.
57050         (entry_hashcode): Use the cached hashcode if possible.
57051         (read_changelog_file, try_split_merged_entry): Use entry_create.
57052
57053 2008-02-17  Bruno Haible  <bruno@clisp.org>
57054
57055         Speed up from O(n^2) to O(n) for long ChangeLog files.
57056         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57057         (read_changelog_file): Change implementation of entries_reversed list
57058         to rbtreehash.
57059         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57060
57061 2008-02-17  Bruno Haible  <bruno@clisp.org>
57062
57063         New option --split-merged-entry.
57064         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57065         (find_paragraph_end, try_split_merged_entry): New functions.
57066         (long_options): Add option --split-merged-entry.
57067         (usage): Document option --split-merged-entry.
57068         (main): Implement option --split-merged-entry.
57069         Reported by Eric Blake.
57070
57071 2008-02-17  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/git-merge-changelog.c: Include c-strstr.h.
57074         (main): Support the "git pull --rebase" situation.
57075         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57076         Reported by Eric Blake.
57077
57078 2008-02-16  Eric Blake  <ebb9@byu.net>
57079
57080         Avoid doubling \ in common case of "c-maybe" quoting style.
57081         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57082         eliding outer quotes.
57083         * lib/quotearg.h: Document this.
57084         * tests/test-quotearg.c (result_strings, inputs, results_g)
57085         (flag_results, locale_results): Test it by adding a new string to
57086         each test group.
57087         (compare_strings): Test new string.
57088
57089 2008-02-13  Eric Blake  <ebb9@byu.net>
57090
57091         Avoid trigraph quoting in default output.
57092         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57093         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57094         unless explicitly requested.
57095         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57096
57097 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57098
57099         Don't rely on signed integer overflowing to negative value.
57100         * lib/getugroups.c (getugroups): Include <limits.h>.
57101         Instead, compare against INT_MAX, and increment only if the test passes.
57102
57103 2008-02-13  Jim Meyering  <meyering@redhat.com>
57104         and Eric Blake  <ebb9@byu.net>
57105
57106         Avoid shadowing warning and compile errors on Linux.
57107         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57108         forwarding macros on Linux.
57109         (dcgettext): Define a stub, for Linux.
57110         (results_g, main): Avoid warnings.
57111
57112 2008-02-12  Eric Blake  <ebb9@byu.net>
57113
57114         Silence warning in last patch.
57115         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57116
57117         Quotearg part 4: add tests, fix c-maybe colon quoting.
57118         * lib/quotearg.h: Improve documentation.
57119         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57120         escapes when adding outer quotes.  When quoting trigraphs, use
57121         valid C notation.  When quoting NUL, omit extra characters if next
57122         character is not digit.  Alter prototype.
57123         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57124         callers.
57125         * modules/quotearg-tests: New module.
57126         * tests/test-quotearg.c: New test.
57127
57128 2008-02-07  Eric Blake  <ebb9@byu.net>
57129
57130         Quotearg part 3: add flag to control outer quote elision.
57131         * lib/quotearg.h (c_maybe_quoting_style): New style.
57132         (enum quoting_flags): Better documentation of flags.
57133         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57134         c-maybe style.
57135         (quotearg_buffer_restyled): Handle new flag to elide outer
57136         quotes.
57137
57138         Quotearg part 2: add flag that can control NUL elision.
57139         * lib/quotearg.h (set_quoting_flags): New prototype.
57140         * lib/quotearg.c (struct quoting_options): Add flag field.
57141         (set_quoting_flags): New function.
57142         (quotearg_buffer_restyled): Add flags parameter.
57143         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57144         (quotearg_n_options): Set the flag, since length cannot be
57145         returned.
57146         (quoting_options_from_style): Default flags correctly.
57147
57148         Quotearg part 1: more wrappers, restore quotearg_char state.
57149         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57150         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57151         (quotearg_colon_mem): New wrappers.
57152         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57153         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57154         functions.
57155         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57156         (quotearg_colon_mem): New functions.
57157
57158 2008-02-11  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57161         library in the current directory: it does not work with parallel make.
57162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57163
57164 2008-02-11  Bruno Haible  <bruno@clisp.org>
57165
57166         * .gitattributes: New file.
57167
57168 2008-02-11  Jim Meyering  <meyering@redhat.com>
57169
57170         useless-if-before-free: Fix reversed exit values.
57171         * build-aux/useless-if-before-free: Use correct values
57172         for EXIT_MATCH and EXIT_NO_MATCH.
57173
57174         * build-aux/useless-if-before-free: Close stdout carefully.
57175
57176 2008-02-10  Bruno Haible  <bruno@clisp.org>
57177
57178         New module 'git-merge-changelog'.
57179         * modules/git-merge-changelog: New file.
57180         * lib/git-merge-changelog.c: New file.
57181
57182 2008-02-10  Jim Meyering  <meyering@redhat.com>
57183
57184         useless-if-before-free: New option: --list (-l).
57185
57186         useless-if-before-free: Don't exit immediately upon open failure.
57187         * build-aux/useless-if-before-free: Exit 2 for errors.
57188         Upon failure to open a file, don't exit immediately.
57189         Rather, just warn and continue with any remaining files.
57190
57191 2008-02-10  Bruno Haible  <bruno@clisp.org>
57192
57193         New abstract list operation 'node_set_value'.
57194         * lib/gl_list.h (gl_list_node_set_value): New function.
57195         (struct gl_list_implementation): New field node_set_value.
57196         * lib/gl_list.c (gl_list_node_set_value): New function.
57197         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57198         (gl_array_list_implementation): Update.
57199         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57200         (gl_carray_list_implementation): Update.
57201         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57202         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57203         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57204         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57205         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57206         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57207         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57208         Update.
57209         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57210         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57211         (gl_sublist_list_implementation): Update.
57212
57213 2008-02-10  Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57216         Needed when ELEMENT is #defined to 'some_type *'.
57217
57218 2008-02-10  Jim Meyering  <meyering@redhat.com>
57219
57220         New script and module: useless-if-before-free
57221         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57222         * build-aux/useless-if-before-free: New file.
57223         * modules/useless-if-before-free: New file.
57224
57225         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57226
57227         xstrtol_error: Fix typo.
57228         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57229         s/exit_failure/exit_status/.
57230
57231 2008-02-09  Jim Meyering  <meyering@redhat.com>
57232
57233         New script and module: gitlog-to-changelog
57234         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57235         * modules/gitlog-to-changelog: New file.
57236         * build-aux/gitlog-to-changelog: New file.
57237
57238 2008-02-08  Jim Meyering  <meyering@redhat.com>
57239
57240         Avoid two "parameter unused" warnings.
57241         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57242         Mark "st" as used.
57243
57244         Use "git COMMAND", not "git-COMMAND".
57245         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57246         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57247         * build-aux/git-version-gen: Use "git status", not "git-status".
57248
57249 2008-02-07  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57252         Avoids a crash on Windows Vista.
57253         Reported by Adam Strzelecki <ono@java.pl> via
57254         Simon Josefsson <simon@josefsson.org>.
57255
57256 2008-02-06  Bruno Haible  <bruno@clisp.org>
57257
57258         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57259         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57260         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57262         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57264         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57265         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57273         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57274         left-adjust flag.
57275         * tests/test-snprintf-posix.h (test_function): Likewise.
57276         * tests/test-sprintf-posix.h (test_function): Likewise.
57277         * tests/test-vasprintf-posix.c (test_function): Likewise.
57278         * doc/posix-functions/fprintf.texi: Update.
57279         * doc/posix-functions/printf.texi: Update.
57280         * doc/posix-functions/snprintf.texi: Update.
57281         * doc/posix-functions/sprintf.texi: Update.
57282         * doc/posix-functions/vfprintf.texi: Update.
57283         * doc/posix-functions/vprintf.texi: Update.
57284         * doc/posix-functions/vsnprintf.texi: Update.
57285         * doc/posix-functions/vsprintf.texi: Update.
57286         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57287
57288 2008-02-06  Bruno Haible  <bruno@clisp.org>
57289
57290         Fix bug introduced on 2008-01-26.
57291         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57292
57293 2008-02-06  Bruno Haible  <bruno@clisp.org>
57294
57295         Fix bug introduced on 2007-06-10.
57296         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57297         !NEED_PRINTF_FLAG_ZERO.
57298
57299 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57300
57301         getloadavg: use libperfstat on AIX5
57302         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57303
57304 2008-02-03  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/diffseq.h: Add comments about required #includes.
57307         Reported by Michael Biggs <gnulib@doubleplum.net>.
57308
57309 2008-02-01  Bruno Haible  <bruno@clisp.org>
57310
57311         * users.txt: Add gnuit.
57312
57313 2008-01-31  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/md4.c (set_uint32): Mark as inline.
57316         * lib/md5.c (set_uint32): Likewise.
57317         * lib/sha1.c (set_uint32): Likewise.
57318         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57319         * m4/md5.m4 (gl_MD5): Likewise.
57320         * m4/sha1.m4 (gl_SHA1): Likewise.
57321
57322 2008-01-31  Jim Meyering  <meyering@redhat.com>
57323
57324         Use "sizeof VAR", rather than a literal "4".
57325         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57326         * lib/md4.c (md4_read_ctx): Likewise.
57327         * lib/sha1.c (sha1_read_ctx): Likewise.
57328
57329 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57330
57331         * tests/test-sha1.c: New file, based on test-md5.c.
57332
57333         * modules/crypto/sha1-tests: New file.
57334
57335 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57336
57337         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57338
57339 2008-01-31  Jim Meyering  <meyering@redhat.com>
57340
57341         Prefer "sizeof v" over the equivalent "4".
57342         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57343         * lib/md5.c (set_uint32): Likewise.
57344         * lib/sha1.c (set_uint32): Likewise.
57345
57346 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57347
57348         * lib/sha1.c (set_uint32): Mark function as static.
57349
57350 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57351
57352         md2: clarify comments to say that alignment is not required.
57353         * lib/md2.h: Remove warning about alignment in comment.
57354         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57355         never been required.
57356
57357 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57358
57359         md4: adapt alignment constraint fix from sha1.
57360         * lib/md4.c (set_uint32): New function, from sha1.c
57361         (md4_read_ctx): Use it.
57362         (md4_finish_ctx): Doc fix.
57363         * lib/md4.h: Doc fix.
57364
57365 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57366
57367         md5: adapt alignment constraint fix from sha1.
57368         * lib/md5.c (set_uint32): New function, from sha1.c
57369         (md5_read_ctx): Use it.
57370         (md5_finish_ctx): Doc fix.
57371         * lib/md5.h: Doc fix.
57372
57373 2008-01-30  Peter Palfrader  <weasel@debian.org>
57374
57375         sha1: remove the result buffer alignment constraint
57376         * lib/sha1.c (set_uint32): New function.
57377         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57378         constraint.
57379         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57380         * lib/sha1.h: Likewise.
57381
57382 2008-01-30  Andreas Schwab  <schwab@suse.de>
57383             Bruno Haible  <bruno@clisp.org>
57384
57385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57386         correct definition of LDBL_MIN_EXP.
57387
57388 2008-01-30  Karl Berry  <karl@gnu.org>
57389
57390         * config/srclist-update: try to preserve x bit on updates.
57391         * config/srclistvars.sh: update for karl.
57392
57393 2008-01-29  Jim Meyering  <meyering@redhat.com>
57394
57395         vasnprintf.c: Avoid warning about unused label
57396         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57397         "overflow" label definition and associated code with the
57398         same cpp condition that guards the sole use of that label.
57399
57400 2008-01-26  Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57403         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57404         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57405         * lib/isnanl-nolibm.h (isnanl): Likewise.
57406         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57407
57408 2008-01-26  Bruno Haible  <bruno@clisp.org>
57409
57410         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57411         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57412
57413 2008-01-26  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57416         GCC >= 4.0 built-in.
57417         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57418
57419 2008-01-26  Bruno Haible  <bruno@clisp.org>
57420
57421         Rename isnan, applicable to 'double' only, to isnand.
57422         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57423         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57424         (configure.ac): Update.
57425         (Include): Replace "isnan.h" with "isnand.h".
57426         * m4/isnand.m4: Renamed from m4/isnan.m4.
57427         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57428         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57429         instead of isnan.c.
57430         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57431         instead of HAVE_ISNAN_IN_LIBC.
57432         (isnand): Renamed from isnan.
57433         * lib/isnand.c: New file.
57434         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57435         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57436         (Makefile.am): Update.
57437         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57438         Include isnand.h instead of isnan.h.
57439         (main): Test isnand instead of isnan.
57440         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57441         isnan-nolibm.
57442         * modules/frexp (Depends-on): Likewise.
57443         * modules/frexp-tests (Depends-on): Likewise.
57444         * modules/frexp-nolibm (Depends-on): Likewise.
57445         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57446         * modules/isfinite (Depends-on): Likewise.
57447         * modules/round-tests (Depends-on): Likewise.
57448         * modules/signbit (Depends-on): Likewise.
57449         * modules/signbit-tests (Depends-on): Likewise.
57450         * modules/snprintf-posix (Depends-on): Likewise.
57451         * modules/sprintf-posix (Depends-on): Likewise.
57452         * modules/trunc-tests (Depends-on): Likewise.
57453         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57454         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57455         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57456         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57457         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57458         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57459         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57460         * modules/vasnprintf-posix (Depends-on): Likewise.
57461         * modules/vasprintf-posix (Depends-on): Likewise.
57462         * modules/vfprintf-posix (Depends-on): Likewise.
57463         * modules/vsnprintf-posix (Depends-on): Likewise.
57464         * modules/vsprintf-posix (Depends-on): Likewise.
57465         * lib/frexp.c: Include isnand.h instead of isnan.h.
57466         (ISNAN): Set to isnand instead of isnan.
57467         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57468         (gl_isfinited): Use isnand instead of isnan.
57469         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57470         (gl_signbitd): Use isnand instead of isnan.
57471         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57472         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57473         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57474         (main): Use isnand instead of isnan.
57475         * tests/test-round1.c: Include isnand.h.
57476         (main): Use isnand instead of isnan.
57477         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57478         (ISNAN): Set to isnand instead of isnan.
57479         * tests/test-trunc1.c: Include isnand.h.
57480         (main): Use isnand instead of isnan.
57481         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57482         (equal): Use isnand instead of isnan.
57483         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57484         isnand-nolibm.
57485         * NEWS: Mention the change.
57486
57487 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57488             Bruno Haible  <bruno@clisp.org>
57489
57490         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57491         the GCC builtins for signbits are present and set
57492         REPLACE_SIGNBIT_USING_GCC if so.
57493         * lib/math.in.h (signbit): Define using GCC builtins if
57494         REPLACE_SIGNBIT_USING_GCC is set.
57495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57496         REPLACE_SIGNBIT_USING_GCC.
57497         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57498
57499 2008-01-25  Jim Meyering  <meyering@redhat.com>
57500
57501         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57502         * lib/poll.c: Include <config.h>, not "config.h".
57503         * tests/test-getaddrinfo.c: Likewise.
57504
57505 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57506
57507         * modules/sockets-tests: New file.
57508
57509 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57510
57511         * modules/sockets: New module, can be used to call WSA_Startup and
57512         WSA_Cleanup when needed.
57513
57514         * lib/sockets.h, lib/sockets.c: New files.
57515
57516         * m4/sockets.m4: New file.
57517
57518         * tests/test-sockets.c: New file.
57519
57520 2008-01-19  Bruno Haible  <bruno@clisp.org>
57521
57522         * doc/posix-headers: Renamed from doc/headers.
57523         * doc/posix-functions: Renamed from doc/functions.
57524         * doc/gnulib.texi: Update.
57525
57526 2008-01-19  Bruno Haible  <bruno@clisp.org>
57527
57528         * doc/glibc-functions/strcasestr.texi: Include contents of
57529         doc/functions/strcasestr.texi, fixing the list of platforms.
57530         * doc/functions/strcasestr.texi: Remove file.
57531
57532 2008-01-19  Bruno Haible  <bruno@clisp.org>
57533
57534         * doc/glibc-functions/memmem.texi: Include contents of
57535         doc/functions/memmem.texi.
57536         * doc/functions/memmem.texi: Remove file.
57537
57538 2008-01-18  Bruno Haible  <bruno@clisp.org>
57539
57540         * doc/glibc-functions/*.texi: New files.
57541         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57542         to use the new files.
57543
57544 2008-01-17  Bruno Haible  <bruno@clisp.org>
57545
57546         * tests/test-gethostname.c (main): Fix printf statement.
57547
57548 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57549
57550         * modules/gethostname-tests: New file.
57551
57552         * tests/test-gethostname.c: New file.
57553
57554 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57555
57556         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57557         used by the UNAME case.  Reported by Bruno Haible
57558         <bruno@clisp.org>.
57559
57560 2008-01-17  Eric Blake  <ebb9@byu.net>
57561
57562         Convert c-strcasestr to be more efficient.
57563         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57564         (Depends-on): Add c-strcase, remove malloca, strnlen.
57565         * tests/test-c-strcasestr.c (main): Enhance test.
57566         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57567
57568 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57569
57570         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57571         Use it in creating po/Makevars.
57572
57573 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57574
57575         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57576         Applications that requires it should initialize libgcrypt
57577         manually.
57578
57579 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57580
57581         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57582
57583 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57584
57585         Fix problem with getdate on mingw32 reported by Simon Josefsson
57586         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57587         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57588         tzname", when deciding whether to declare tzname.
57589         * lib/strftime.c (tzname): Likewise.
57590
57591 2008-01-15  Bruno Haible  <bruno@clisp.org>
57592
57593         Work around a MacOS X 10.5 bug in frexpl().
57594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57595         * doc/functions/frexpl.texi: Document the bug.
57596         Reported by Elias Pipping <pipping@gentoo.org>.
57597
57598 2008-01-14  Eric Blake  <ebb9@byu.net>
57599
57600         Touch up previous patch.
57601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57602         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57603
57604         Convert strcasestr module to use Two-Way algorithm.
57605         * modules/strcasestr-simple: New module, based on the old
57606         strcasestr, but with Two-Way rather than KMP.
57607         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57608         * lib/string.in.h (rpl_strcasestr): Declare.
57609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57610         performance.
57611         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57612         * modules/string (Makefile.am): Support strcasestr.
57613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57614         * modules/strcasestr-tests (Depends-on): Check for alarm.
57615         * tests/test-strcasestr.c: Augment test.
57616         * lib/str-two-way.h: Clean up stray macro.
57617         * NEWS: Document new module.
57618         * MODULES.html.sh (string handling): Likewise.
57619         * doc/functions/strcasestr.texi: New file.
57620         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57621         here, since it is not a POSIX function.
57622
57623 2008-01-14  Colin Watson  <cjwatson@debian.org>
57624             Bruno Haible  <bruno@clisp.org>
57625
57626         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57627         works fine; if not, set REPLACE_STRSIGNAL.
57628         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57630         REPLACE_STRSIGNAL.
57631         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57632         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57633         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57634
57635 2008-01-14  Bruno Haible  <bruno@clisp.org>
57636
57637         * modules/strsignal (Include): Change to <string.h>.
57638
57639 2008-01-14  Colin Watson  <cjwatson@debian.org>
57640
57641         * modules/argp (Notice): Add a notice recommending to change
57642         XGETTEXT_OPTIONS.
57643         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57644
57645 2008-01-13  Colin Watson  <cjwatson@debian.org>
57646
57647         * modules/strsignal-tests: New file.
57648         * tests/test-strsignal.c: New file.
57649
57650         * lib/strsignal.c: New file, from glibc with modifications.
57651         * lib/siglist.h: New file, from glibc with modifications.
57652         * lib/string.in.h (strsignal): New declaration.
57653         * m4/strsignal.m4: New file.
57654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57655         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57656         * modules/strsignal: New file.
57657         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57658         HAVE_DECL_STRSIGNAL.
57659
57660 2008-01-13  Bruno Haible  <bruno@clisp.org>
57661
57662         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57663         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57664         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57665         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57666
57667 2008-01-13  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57670         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57671         * lib/argp.h (__attribute__): Likewise.
57672         * lib/c-stack.c (__attribute__): Likewise.
57673         * lib/error.h (__attribute__): Likewise.
57674         * lib/fts.c (__attribute__): Likewise.
57675         * lib/openat.h (__attribute__): Likewise.
57676         * lib/stdio.in.h (__attribute__): Likewise.
57677         * lib/string.in.h (__attribute__): Likewise.
57678         * lib/utimens.c (__attribute__): Likewise.
57679         * lib/vasnprintf.h (__attribute__): Likewise.
57680         * lib/xalloc.h (__attribute__): Likewise.
57681         * lib/xprintf.h (__attribute__): Likewise.
57682         * lib/xstrtol.h (__attribute__): Likewise.
57683         * lib/xvasprintf.h (__attribute__): Likewise.
57684
57685 2008-01-12  Bruno Haible  <bruno@clisp.org>
57686
57687         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57688         * doc/glibc-headers/a.out.texi: New file.
57689         * doc/glibc-headers/aliases.texi: New file.
57690         * doc/glibc-headers/alloca.texi: New file.
57691         * doc/glibc-headers/ar.texi: New file.
57692         * doc/glibc-headers/argp.texi: New file.
57693         * doc/glibc-headers/argz.texi: New file.
57694         * doc/glibc-headers/byteswap.texi: New file.
57695         * doc/glibc-headers/crypt.texi: New file.
57696         * doc/glibc-headers/endian.texi: New file.
57697         * doc/glibc-headers/envz.texi: New file.
57698         * doc/glibc-headers/err.texi: New file.
57699         * doc/glibc-headers/error.texi: New file.
57700         * doc/glibc-headers/execinfo.texi: New file.
57701         * doc/glibc-headers/fpu_control.texi: New file.
57702         * doc/glibc-headers/fstab.texi: New file.
57703         * doc/glibc-headers/fts.texi: New file.
57704         * doc/glibc-headers/getopt.texi: New file.
57705         * doc/glibc-headers/ieee754.texi: New file.
57706         * doc/glibc-headers/ifaddrs.texi: New file.
57707         * doc/glibc-headers/libintl.texi: New file.
57708         * doc/glibc-headers/mcheck.texi: New file.
57709         * doc/glibc-headers/mntent.texi: New file.
57710         * doc/glibc-headers/obstack.texi: New file.
57711         * doc/glibc-headers/paths.texi: New file.
57712         * doc/glibc-headers/printf.texi: New file.
57713         * doc/glibc-headers/pty.texi: New file.
57714         * doc/glibc-headers/resolv.texi: New file.
57715         * doc/glibc-headers/shadow.texi: New file.
57716         * doc/glibc-headers/sysexits.texi: New file.
57717         * doc/glibc-headers/ttyent.texi: New file.
57718
57719 2008-01-12  Jim Meyering  <meyering@redhat.com>
57720
57721         announce-gen: emit Gnulib's git-based version string.
57722         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57723         New option --gnulib-version=V, where V is expected to be
57724         the output of running git describe in the gnulib directory.
57725         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57726         not useful, and plan to stop publishing an xdelta file with each
57727         coreutils release.
57728
57729         * build-aux/announce-gen: Also check for lzma-compressed files.
57730
57731 2008-01-11  Bruno Haible  <bruno@clisp.org>
57732
57733         * tests/test-memmem.c (main): Increase maximum allowed time.
57734         * tests/test-strstr.c (main): Likewise.
57735
57736 2008-01-11  Bruno Haible  <bruno@clisp.org>
57737
57738         * doc/functions/memmem.texi: Add more precisions about platforms.
57739         * doc/functions/strstr.texi: Likewise.
57740
57741 2008-01-10  Eric Blake  <ebb9@byu.net>
57742
57743         * m4/strstr.m4: Delete cruft from copy-n-paste.
57744         Reported by Bruno Haible.
57745
57746 2008-01-10  Bruno Haible  <bruno@clisp.org>
57747
57748         Make c-strstr rely on strstr.
57749         * lib/c-strstr.c: Don't include str-kmp.h.
57750         (c_strstr): Define in terms of strstr.
57751         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57752         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57753
57754 2008-01-10  Bruno Haible  <bruno@clisp.org>
57755
57756         * doc/gnulib.texi (String Functions in C Locale): New section.
57757         * doc/c-ctype.texi: New file.
57758         * doc/c-strcase.texi: New file.
57759         * doc/c-strcaseeq.texi: New file.
57760         * doc/c-strcasestr.texi: New file.
57761         * doc/c-strstr.texi: New file.
57762         * doc/c-strtod.texi: New file.
57763         * doc/c-strtold.texi: New file.
57764
57765 2008-01-10  Eric Blake  <ebb9@byu.net>
57766
57767         * lib/relocatable.h: Fix a comment.
57768
57769 2008-01-10  Eric Blake  <ebb9@byu.net>
57770
57771         Share two-way algorithm.
57772         * lib/str-two-way.h: New file, merged from...
57773         * lib/memmem.c: ...here...
57774         * lib/strstr.c: ...and here.
57775         * modules/memmem (Files): Use it.
57776         * modules/strstr (Files): Likewise.
57777
57778         Avoid quadratic strstr implementations.
57779         * lib/strstr.c: New file.
57780         * m4/strstr.m4: Likewise.
57781         * modules/strstr: Likewise.
57782         * modules/strstr-tests: Likewise.
57783         * tests/test-strstr.c: Likewise.
57784         * lib/string.in.h (rpl_strstr): Declare.
57785         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57787         * modules/string (Makefile.am): Likewise.
57788         * MODULES.html.sh (string handling): Mention new module.
57789         * doc/functions/strstr.texi (strstr): Document the bug.
57790
57791 2008-01-10  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/relocatable.h (relocate): State whether result is freshly
57794         allocated or not.
57795         * lib/relocatable.c (relocate): Return a freshly allocated string
57796         instead of a pointer to a privately held string.
57797         Reported by Sylvain Beucler <beuc@gnu.org>.
57798
57799 2008-01-10  Colin Watson  <cjwatson@debian.org>
57800
57801         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57802         s/S_ISNLK/S_ISLNK/.
57803
57804 2008-01-09  Bruno Haible  <bruno@clisp.org>
57805
57806         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57807         and other files.
57808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57809         if it's only a guess.
57810         * modules/memmem: Simplify by depending on memmem-simple.
57811
57812 2008-01-09  Bruno Haible  <bruno@clisp.org>
57813
57814         Work around OpenBSD 4.0 tdelete() bug.
57815         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57816         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57817         macros and don't redefine the enum values.
57818         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57819         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57820         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57821
57822 2008-01-09  Bruno Haible  <bruno@clisp.org>
57823
57824         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57825         (main): Don't perform the tests if setlocale did not install a UTF-8
57826         locale. Needed on OpenBSD 4.0.
57827         * modules/wcwidth-tests (Depends-on): Add localcharset.
57828
57829 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57832         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57833         * NEWS: announce this.
57834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57835
57836 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57837         and Eric Blake  <ebb9@byu.net>
57838
57839         Add memmem-simple module.
57840         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57841         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57842         * modules/memmem-simple: New file.
57843         * modules/memmem (Description): Tweak.
57844         * MODULES.html.sh (string handling): Mention new module.
57845         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57846         addressed by memmem-simple.
57847         * NEWS: Document the difference.
57848
57849 2008-01-09  Eric Blake  <ebb9@byu.net>
57850
57851         Give gcc some memmem optimization hints.
57852         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57853         (strcasestr): Declare as pure.
57854         * modules/memmem (Maintainer): Claim my implementation.
57855
57856 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57857
57858         Support AIX 6.1 and higher.
57859         * build-aux/config.libpath: Likewise.
57860         * build-aux/config.rpath: Likewise.
57861
57862 2008-01-08  Jim Meyering  <meyering@redhat.com>
57863             Bruno Haible  <bruno@clisp.org>
57864
57865         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57866         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57867         Reported by Peter Fales in
57868         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57869
57870 2008-01-08  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/unictype/category-of (Depends-on): Add
57873         unictype/category-none.
57874         * modules/unictype/category-and-tests (Depends-on): Add
57875         unictype/category-{L,N,Lu,Nd}.
57876         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57877         * modules/unictype/category-or-tests (Depends-on): Add
57878         unictype/category-{L,N}.
57879         * modules/unictype/category-name-tests (Depends-on): Add
57880         unictype/category-{Z,Nl}.
57881         Reported by Simon Josefsson.
57882
57883 2008-01-08  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57886         convention better.
57887         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57888         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57889         Reported by Peter Miller <millerp@canb.auug.org.au>.
57890
57891 2008-01-08  Eric Blake  <ebb9@byu.net>
57892
57893         Rewrite memmem to guarantee linear complexity without malloc.
57894         * lib/memmem.c (memmem): Use Two-Way rather than
57895         Knuth-Morris-Pratt, to allow O(1) space usage.
57896         (critical_factorization, two_way_short_needle)
57897         (two_way_long_needle): New functions.
57898         (knuth_morris_pratt): Delete.
57899         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57900         Add stdint.
57901         * tests/test-memmem.c (main): Add tests for periodic needle and
57902         sublinear performance.
57903         * doc/functions/memmem.texi (memmem): Document other deficiencies
57904         in cygwin and older glibc.
57905
57906 2008-01-08  Bruno Haible  <bruno@clisp.org>
57907
57908         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57909         augmentation.
57910
57911 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57912
57913         Add a configure time option: --disable-acl.
57914         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57915         AC_ARG_ENABLE(acl).
57916
57917 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57918
57919         * tests/test-localename.c: Don't include obsolete "setenv.h".
57920
57921         * modules/localename-tests (Depends-on): Need unsetenv.
57922
57923 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57924
57925         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57926
57927 2008-01-06  Colin Watson  <cjwatson@debian.org>
57928
57929         * users.txt: Add man-db.
57930
57931 2008-01-07  Bruno Haible  <bruno@clisp.org>
57932
57933         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57934         previous section name.
57935
57936 2008-01-07  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/progname.c (set_program_name): Don't strip off a leading
57939         "lt-" prefix outside a .libs directory.
57940         Suggested by Paul Eggert.
57941
57942 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57943             Bruno Haible  <bruno@clisp.org>
57944
57945         Improve memory cleanup in 'relocatable' module.
57946         * lib/relocatable.h (compute_curr_prefix): Change return type to
57947         'char *'.
57948         * lib/relocatable.c (compute_curr_prefix): Change return type to
57949         'char *'. Free curr_installdir after use.
57950         (relocate): Free curr_prefix_better after use.
57951         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57952
57953 2008-01-01  Bruno Haible  <bruno@clisp.org>
57954
57955         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57956         failure on older glibc systems.
57957         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57958
57959 2008-01-05  Eric Blake  <ebb9@byu.net>
57960
57961         Avoid quadratic system memmem.
57962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57963         Reported by Ralf Wildenhues.
57964
57965         Fix memmem test for mingw.
57966         * modules/memmem-tests (configure.ac): Check for alarm.
57967         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57968         it.
57969         * doc/functions/memmem.texi: New file.
57970         * doc/gnulib.texi (Function Substitutes): Add memmem.
57971         Reported by Bruno Haible.
57972
57973 2008-01-04  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57976         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57977         gl_HEADER_STRING_H_DEFAULTS.
57978
57979 2008-01-04  Eric Blake  <ebb9@byu.net>
57980
57981         Shorten duration of memmem test.
57982         * tests/test-memmem.c (main): Use alarm to declare failure if test
57983         is taking too long.
57984         Reported by Ralf Wildenhues.
57985
57986 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57987
57988         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57989         string, needed by strerror.
57990
57991 2008-01-03  Colin Watson  <cjwatson@debian.org>
57992             Bruno Haible  <bruno@clisp.org>
57993
57994         * doc/gnulib-tool.texi (Localization): New section.
57995
57996 2008-01-02  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57999         variables to 'unsigned char *' type.
58000         Reported by Paul Eggert.
58001
58002 2008-01-02  Jim Meyering  <jim@meyering.net>
58003
58004         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58005
58006 2007-12-31  Jim Meyering  <jim@meyering.net>
58007
58008         Avoid use of private FTS type name.
58009         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58010
58011 2007-12-30  Karl Berry  <karl@gnu.org>
58012
58013         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58014         work around defect in Texinfo and/or the standalone Info browser.
58015
58016 2007-12-30  Bruno Haible  <bruno@clisp.org>
58017
58018         Unify 5 copies of the KMP code.
58019         * lib/str-kmp.h: New file.
58020         * lib/c-strcasestr.c: Include str-kmp.h.
58021         (knuth_morris_pratt): Remove function.
58022         (c_strcasestr): Update.
58023         * lib/c-strstr.c: Include str-kmp.h.
58024         (knuth_morris_pratt): Remove function.
58025         (c_strcasestr): Update.
58026         * lib/mbscasestr.c: Include str-kmp.h.
58027         (knuth_morris_pratt_unibyte): Remove function.
58028         * lib/mbsstr.c: Include str-kmp.h.
58029         (knuth_morris_pratt_unibyte): Remove function.
58030         * lib/strcasestr.c: Include str-kmp.h.
58031         (knuth_morris_pratt): Remove function.
58032         (strcasestr): Update.
58033         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58034         * modules/c-strstr (Files): Likewise.
58035         * modules/mbscasestr (Files): Likewise.
58036         * modules/mbsstr (Files): Likewise.
58037         * modules/strcasestr (Files): Likewise.
58038         Suggested by Paul Eggert.
58039
58040 2007-12-30  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58043         defined.
58044
58045 2007-12-30  Bruno Haible  <bruno@clisp.org>
58046
58047         * lib/xmalloca.h: Include xalloc.h.
58048         (xnmalloca): New macro.
58049
58050 2007-12-30  Bruno Haible  <bruno@clisp.org>
58051
58052         * lib/malloca.h (nmalloca): New macro.
58053         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58054         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58055         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58056         knuth_morris_pratt_multibyte): Likewise.
58057         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58058         knuth_morris_pratt_multibyte): Likewise.
58059         * lib/memmem.c (knuth_morris_pratt): Likewise.
58060         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58061
58062 2007-12-25  Bruno Haible  <bruno@clisp.org>
58063
58064         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58065         * lib/glob.c: Don't include openat.h.
58066         (link_exists2_p): Add back the code that deals with the
58067         !GLOB_ALTDIRFUNC case.
58068         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58069         let it do the filename concatenation.
58070         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58071         * modules/glob (Depends-on): Remove openat.
58072
58073 2007-12-31  Bruno Haible  <bruno@clisp.org>
58074
58075         * modules/dirfd (License): Change to LGPLv2+.
58076         Approved by Jim Meyering.
58077
58078 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58081         when multiplying M by sizeof (size_t).
58082
58083 2007-12-10  Martin Lambers  <marlam@marlam.de>
58084
58085         Override getpagesize on mingw.
58086         * lib/getpagesize.c: New file.
58087         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58088         * modules/getpagesize (Files): Add lib/getpagesize.c.
58089         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58091         REPLACE_GETPAGESIZE.
58092         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58093
58094 2007-12-25  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/localcharset (Notice): New field.
58097         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58098         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58099
58100 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58101             Bruno Haible  <bruno@clisp.org>
58102
58103         Avoid using the syntax symbol() in formatted documentation.
58104         * MODULES.html.sh (func_module): When replacing symbol() with a
58105         hyperlink, remove the parentheses. Show an error if some remain.
58106         Recognize and render the '...' syntax.
58107         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58108         Rework. Add paragraph about GCC's inlining.
58109         * doc/alloca.texi: Likewise.
58110         * doc/error.texi: Remove parentheses from symbol reference.
58111         * doc/gnulib-intro.texi: Likewise.
58112         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58113         * modules/fnmatch (Description): Reword to say "the ... function".
58114         * modules/full-read (Description): Likewise.
58115         * modules/full-write (Description): Likewise.
58116         * modules/safe-read (Description): Likewise.
58117         * modules/safe-write (Description): Likewise.
58118         * modules/strchrnul (Description): Likewise.
58119         * modules/trim (Description): Likewise.
58120         * modules/error (Description): Remove parentheses from symbol
58121         references.
58122         * modules/verror (Description): Likewise.
58123         Reported by Karl Berry.
58124
58125 2007-12-25  Bruno Haible  <bruno@clisp.org>
58126
58127         Fixup after 2007-10-16 commit.
58128         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58129
58130 2007-12-24  Bruno Haible  <bruno@clisp.org>
58131
58132         Make --enable-relocatable work with DESTDIR.
58133         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58134         to compute installdir from destprog.
58135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58136         also set the RELOC_DESTDIR variable.
58137         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58138
58139 2007-12-24  Bruno Haible  <bruno@clisp.org>
58140
58141         Fix link error due to xalloc_die().
58142         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58143         of xreadlink.
58144         * lib/relocwrapper.c: Update comments.
58145         * build-aux/install-reloc: Remove xreadlink.c from file list.
58146         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58147         xreadlink.c.
58148         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58149
58150 2007-12-24  Bruno Haible  <bruno@clisp.org>
58151
58152         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58153         * lib/setenv.h: Remove file.
58154         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58155         lib/setenv.h.
58156         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58157         (Depends-on): Add stdlib.
58158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58159         gl_FUNC_UNSETENV.
58160         (Include): Replace setenv.h with <stdlib.h>.
58161         * modules/unsetenv: New file.
58162         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58163         * lib/unsetenv.c: Include <stdlib.h> first.
58164         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58165         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58166         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58167         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58168         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58169         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58171         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58172         * doc/functions/unsetenv.texi: Update.
58173         * modules/xsetenv (Depends-on): Add unsetenv.
58174         * modules/getdate (Depends-on): Likewise.
58175         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58176         * lib/xsetenv.c: Don't include setenv.h.
58177         * lib/getdate.y: Likewise.
58178         * lib/relocwrapper.c: Likewise.
58179         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58180         (Depends-on): Add stdlib.
58181         * NEWS: Mention the changes.
58182         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58183
58184 2007-12-23  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58187         indentation.
58188
58189 2007-12-23  Bruno Haible  <bruno@clisp.org>
58190
58191         * lib/c-strcasestr.c: Add more comments.
58192         * lib/c-strstr.c: Likewise.
58193         * lib/mbscasestr.c: Likewise.
58194         * lib/mbsstr.c: Likewise.
58195         * lib/strcasestr.c: Likewise.
58196         * lib/memmem.c: Likewise.
58197
58198 2007-12-23  Bruno Haible  <bruno@clisp.org>
58199
58200         * tests/test-memmem.c: Include <string.h> first.
58201
58202 2007-12-22  Bruno Haible  <bruno@clisp.org>
58203
58204         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58205         the contents of $testsbase.
58206         Reported by Ralf Wildenhues.
58207
58208 2007-12-22  Bruno Haible  <bruno@clisp.org>
58209
58210         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58211         two variables local_ldadd_before, local_ldadd_last.
58212
58213 2007-12-20  Eric Blake  <ebb9@byu.net>
58214
58215         Work around circular library issue when cross-compiling.
58216         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58217         that progname.o does not need to pull in rpl_memcmp.
58218
58219 2007-12-19  Eric Blake  <ebb9@byu.net>
58220
58221         Fix memmem to avoid O(n^2) worst-case complexity.
58222         * lib/memmem.c (knuth_morris_pratt): New function.
58223         (memmem): Use it if first few naive iterations fail.
58224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58225         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58226         * modules/memchr (License): Likewise.
58227         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58228         malloca.
58229         * tests/test-memmem.c: Rewrite, borrowing ideas from
58230         test-mbsstr1.c; the old version wouldn't even compile!
58231         * modules/memmem-tests: New file.
58232         * lib/string.in.h (rpl_memmem): Add declaration.
58233         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58235         REPLACE_MEMMEM.
58236
58237 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58240         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58241         before any system include files, and undef after them all.  This
58242         should fix a problem on VMS reported by John E. Malmberg in
58243         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58244
58245 2007-12-17  Eric Blake  <ebb9@byu.net>
58246
58247         Revert addition of verify, for BSD/OS.
58248         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58249         can't handle large files, for the sake of obsolete platforms.
58250         * modules/fseeko (Depends-on): Remove verify.
58251         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58252         * doc/functions/ftello.texi (ftello): Likewise.
58253         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58254         Reported by Larry Jones.
58255
58256 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58257
58258         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58259         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58260
58261 2007-12-17  Jim Meyering  <meyering@redhat.com>
58262
58263         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58264         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58265         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58266         * modules/getcwd (Depends-on): Add openat.
58267         Reported by Petr Salinger.
58268
58269 2007-12-17  Bruno Haible  <bruno@clisp.org>
58270
58271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58272         avoid a segmentation fault of the configure test on x86_64 systems.
58273
58274 2007-12-15  Jim Meyering  <meyering@redhat.com>
58275
58276         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58277
58278 2007-12-13  Eric Blake  <ebb9@byu.net>
58279
58280         Another fseek test.
58281         * tests/test-fseek.c (main): Also test ungetc handling.
58282         * tests/test-fseeko.c (main): Likewise.
58283         * modules/fseeko (Depends-on): Add verify.
58284         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58285         large.
58286         Reported by Larry Jones.
58287
58288         Fix fseeko on mingw.
58289         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58290         seek.
58291
58292         Beef up fseek tests.
58293         * tests/test-fseek.c (main): Also test eof handling.
58294         * tests/test-fseeko.c (main): Likewise.
58295         Reported by Larry Jones.
58296
58297 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58298
58299         Fix fseeko on BSD-based platforms.
58300         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58301         successful seek.
58302
58303 2007-12-12  Eric Blake  <ebb9@byu.net>
58304
58305         Allow circular dependency of separate libtests.a
58306         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58307         when use_libtests.
58308
58309 2007-12-11  Eric Blake  <ebb9@byu.net>
58310
58311         Fix bug with -0.0L in previous patch.
58312         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58313         * tests/test-isnan.c (main): Also test on zeroes.
58314         * tests/test-isnanf.c (main): Likewise.
58315         * tests/test-isnanl.h (main): Likewise.
58316
58317         Detect pseudo-denormals on x86 even when cross-compiling.
58318         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58319         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58320         invalid bit patterns that happen to satisfy ==.
58321
58322         Avoid link failures with separate libtests.a.
58323         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58324         last, to satisfy circular dependencies.
58325
58326 2007-12-11  Eric Blake  <ebb9@byu.net>
58327         and Bruno Haible  <bruno@clisp.org>
58328
58329         Fix OpenBSD 4.0 <float.h> handling of long double.
58330         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58331         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58332         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58333
58334 2007-12-11  Jim Meyering  <meyering@redhat.com>
58335
58336         * users.txt: Add libvirt.
58337
58338         Support versions of autoconf prior to 2.59c.
58339         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58340         if it is not already defined.
58341
58342 2007-12-09  Bruno Haible  <bruno@clisp.org>
58343
58344         Let 'gnulib-tool --import' collect sources needed for the tests in
58345         tests/ rather than in lib/.
58346         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58347         argument. If true, add rules to generate libtests.a, and put libtests.a
58348         into $(LDADD). Consider source files in subdirectories and set
58349         uses_subdirs.
58350         (func_emit_initmacro_start, func_emit_initmacro_end,
58351         func_emit_initmacro_done): Pass all arguments explicitly.
58352         (func_import): Determine two module lists main_modules,
58353         testsrelated_modules. Determine use_libtests. Determine two variables
58354         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58355         instead of just sed_transform_lib_file. Determine two variables
58356         main_files and testsrelated_files. Compute 'files' as the union of
58357         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58358         func_add_or_update. In the generated gnulib-comp.m4, collect the
58359         object files for tests/ in different variables than those for lib/.
58360         Substitute LIBTESTS_LIBDEPS.
58361         (func_create_testdir): Combine the uses_subdirs results from
58362         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58363
58364 2007-12-09  Bruno Haible  <bruno@clisp.org>
58365
58366         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58367         the build-aux directory.
58368
58369 2007-12-09  Bruno Haible  <bruno@clisp.org>
58370
58371         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58372         introduced on 2006-09-09.
58373
58374 2007-12-07  Jim Meyering  <meyering@redhat.com>
58375
58376         Let these macros work also with autoconf-2.59.
58377         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58378         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58380
58381 2007-12-06  Jim Meyering  <meyering@redhat.com>
58382
58383         Avoid a configure-time syntax error in gl_FUNC_ACL.
58384         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58385         function in each branch, before testing the cache variable.
58386
58387 2007-12-04  Eric Blake  <ebb9@byu.net>
58388
58389         Make scripts executable.
58390         * build-aux/config.guess: Add execute permissions.
58391         * build-aux/config.sub: Likewise.
58392         * build-aux/gendocs.sh: Likewise.
58393
58394         Fix frexp on mingw.
58395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58396         cross-compiling.
58397         * doc/functions/frexp.texi (frexp): Document the bug.
58398
58399         Make cygwin fseeko check more reliable.
58400         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58401         version numbers, rather than unrelated feature check.
58402         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58403         * doc/functions/ftello.texi (ftello): Likewise.
58404         Reported by Bruno Haible.
58405
58406         * m4/strerror.m4: Bump version number.
58407
58408 2007-12-03  Bruno Haible  <bruno@clisp.org>
58409
58410         * doc/functions/mprotect.texi: Mention the mingw problem.
58411
58412 2007-12-03  Eric Blake  <ebb9@byu.net>
58413
58414         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58415         REPLACE_STRERROR is initialized before this macro.
58416
58417 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58420         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58421         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58422         put -lsec in even for programs other than 'ls'.  This fixes a problem
58423         for gettext reported by Bruno Haible in
58424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58425         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58426         Add support for Solaris 10.  This isn't efficient, but should get the
58427         job done for now.
58428
58429 2007-12-03  James Youngman  <jay@gnu.org>
58430
58431         * doc/regexprops-generic.texi: change "an close-group" to "a
58432         close-group" and "illegal" to "not allowed".
58433
58434 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58435
58436         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58437         pr_byname.h. Needed for the rare case when the maintainer has done
58438         "make maintainer-clean" in the source directory and then attempts a
58439         build outside the source directory.
58440         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58441         scripts_byname.h.
58442
58443 2007-12-02  Martin Lambers <marlam@marlam.de>
58444             Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/getpagesize.h: Remove file.
58447         * lib/unistd.in.h: Include declaration of getpagesize here.
58448         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58449         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58450         HAVE_SYS_PARAM_H.
58451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58452         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58453         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58454         (Depends-on): Add unistd.
58455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58456         (Include): Use <unistd.h> instead of getpagesize.h.
58457         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58458         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58459         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58460         gl_GETPAGESIZE invocation, already handled by module dependency.
58461         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58462
58463 2007-12-02  Bruno Haible  <bruno@clisp.org>
58464
58465         * modules/strings-tests: New file.
58466         * tests/test-strings.c: New file.
58467
58468         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58469         * lib/strings.in.h: New file.
58470         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58471         * m4/strings_h.m4: New file.
58472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58473         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58474         * modules/strings: New file.
58475         * modules/string (Makefile.am): Update.
58476         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58477         Reported by Karl Berry.
58478
58479 2007-12-01  Eric Blake  <ebb9@byu.net>
58480
58481         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58482         accomodate fix in cygwin 1.5.25.
58483
58484 2007-12-01  Jim Meyering  <meyering@redhat.com>
58485
58486         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58487         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58488         that would inhibit utf8-optimization of a regexp containing line-
58489         or buffer-anchors, e.g., `^', `$'.
58490
58491 2007-11-30  Bruno Haible  <bruno@clisp.org>
58492
58493         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58494         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58495         glthread_recursive_lock_init.
58496         * lib/lock.c (glthread_recursive_lock_init)
58497         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58498         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58499
58500 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58501
58502         New function qset_acl, like set_acl but with syscall semantics.
58503         * lib/acl.h (qset_acl): New decl.
58504         * lib/acl.c (qset_acl): New function.
58505         (set_acl): Use new function.  Use more-consistent diagnostics.
58506
58507 2007-11-28  Jim Meyering  <meyering@redhat.com>
58508
58509         * modules/physmem (License): Change from GPL to LGPLv2+.
58510
58511 2007-11-26  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58514         'long double' type has excess precision.
58515         Reported by Jim Meyering in
58516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58517
58518 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58519
58520         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58521         Sync from <http://gnu.org/licenses>.
58522         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58523         with license text from same location.
58524         * doc/maintain.texi, doc/standards.texi:  Sync from
58525         <http://savannah.gnu.org/projects/gnustandards>.
58526
58527 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58528         and Jim Meyering  <meyering@redhat.com>
58529
58530         Adjust getdate' grammar to accept a slightly more regular language.
58531         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58532         Before, the former was rejected.
58533         * lib/getdate.y (digits_to_date_time): New function, factored
58534         out of ...
58535         (number): ...here.  Just call digits_to_date_time.
58536         (hybrid): New non-terminal to handle an <unsigned number,
58537         signed relative offset> sequence consistently.
58538
58539 2007-11-18  Jim Meyering  <meyering@redhat.com>
58540
58541         Pull my changes from coreutils:
58542         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58543         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58544         use of $gnulib_tool_option_extras, so that it's separated from the
58545         preceding argument.
58546
58547         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58548         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58549         parent destination directories before copying a file into place.
58550
58551 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58552
58553         bootstrap: work also with 4-argument variant of AC_INIT
58554         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58555
58556 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58557
58558         Port test-getaddrinfo to Solaris.
58559         Problem reported by Bruno Haible in
58560         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58561         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58562         explanation of setting 'hints'.
58563         Don't reject an implementation merely because it returns EAI_SERVICE.
58564         (EAI_SERVICE): Define to 0 if not defined.
58565
58566 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         The license of gnu-make and posix-shell is now "GPLed build tool".
58569         * modules/gnu-make (License): Likewise.
58570         * modules/posix-shell (License): Likewise.
58571
58572         New module posix-shell, for determining a POSIX shell
58573         or perhaps something that is close enough to a POSIX shell.
58574         * m4/posix-shell.m4: New file.
58575         * modules/posix-shell: New file.
58576
58577         * MODULES.html.sh: Mention new module.
58578
58579         New module gnu-make, for determining whether we're using GNU Make.
58580         * m4/gnu-make.m4: New file.
58581         * modules/gnu-make: New file.
58582         * MODULES.html.sh: Mention new module.
58583
58584 2007-11-14  Jim Meyering  <meyering@redhat.com>
58585
58586         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58587         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58588         use this macro to create a function _definition_.
58589         Remove useless "#undef ARGMATCH_DIE".
58590
58591 2007-11-14  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/config.charset: Update for OpenBSD 4.1.
58594         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58595
58596 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         Document 64-bit #if problems in stdint.texi.
58599         * doc/headers/stdint.texi (stdint.h): Mention problems with
58600         64-bit-#if, and how to work around them.
58601
58602         Don't insist on 'long long int' support in the preprocessor.  It
58603         breaks too many things.  For example, PRIdMAX still uses a 'long
58604         long int' format with the latest Sun compiler, even though
58605         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58606         preprocessor problem.  This causes the latest coreutils to dump
58607         core on Solaris 10 sparc with the Sun C compiler.
58608         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58609         the troublesome expressions at configure-time, not at #if-time.
58610         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58611         preprocessor.
58612         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58613         compile-time C checks, done at 'configure'-time.
58614         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58615         * modules/inttypes (Makefile): Substitute the new symbols that
58616         gl_INTTYPES_H now generates.
58617         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58618
58619 2007-11-12  Bruno Haible  <bruno@clisp.org>
58620
58621         Tests for Unicode character classification functions.
58622
58623         * modules/unictype/bidicategory-byname-tests: New file.
58624         * modules/unictype/bidicategory-name-tests: New file.
58625         * modules/unictype/bidicategory-of-tests: New file.
58626         * modules/unictype/bidicategory-test-tests: New file.
58627         * modules/unictype/block-list-tests: New file.
58628         * modules/unictype/block-of-tests: New file.
58629         * modules/unictype/block-test-tests: New file.
58630         * modules/unictype/category-C-tests: New file.
58631         * modules/unictype/category-Cc-tests: New file.
58632         * modules/unictype/category-Cf-tests: New file.
58633         * modules/unictype/category-Cn-tests: New file.
58634         * modules/unictype/category-Co-tests: New file.
58635         * modules/unictype/category-Cs-tests: New file.
58636         * modules/unictype/category-L-tests: New file.
58637         * modules/unictype/category-Ll-tests: New file.
58638         * modules/unictype/category-Lm-tests: New file.
58639         * modules/unictype/category-Lo-tests: New file.
58640         * modules/unictype/category-Lt-tests: New file.
58641         * modules/unictype/category-Lu-tests: New file.
58642         * modules/unictype/category-M-tests: New file.
58643         * modules/unictype/category-Mc-tests: New file.
58644         * modules/unictype/category-Me-tests: New file.
58645         * modules/unictype/category-Mn-tests: New file.
58646         * modules/unictype/category-N-tests: New file.
58647         * modules/unictype/category-Nd-tests: New file.
58648         * modules/unictype/category-Nl-tests: New file.
58649         * modules/unictype/category-No-tests: New file.
58650         * modules/unictype/category-P-tests: New file.
58651         * modules/unictype/category-Pc-tests: New file.
58652         * modules/unictype/category-Pd-tests: New file.
58653         * modules/unictype/category-Pe-tests: New file.
58654         * modules/unictype/category-Pf-tests: New file.
58655         * modules/unictype/category-Pi-tests: New file.
58656         * modules/unictype/category-Po-tests: New file.
58657         * modules/unictype/category-Ps-tests: New file.
58658         * modules/unictype/category-S-tests: New file.
58659         * modules/unictype/category-Sc-tests: New file.
58660         * modules/unictype/category-Sk-tests: New file.
58661         * modules/unictype/category-Sm-tests: New file.
58662         * modules/unictype/category-So-tests: New file.
58663         * modules/unictype/category-Z-tests: New file.
58664         * modules/unictype/category-Zl-tests: New file.
58665         * modules/unictype/category-Zp-tests: New file.
58666         * modules/unictype/category-Zs-tests: New file.
58667         * modules/unictype/category-and-not-tests: New file.
58668         * modules/unictype/category-and-tests: New file.
58669         * modules/unictype/category-byname-tests: New file.
58670         * modules/unictype/category-name-tests: New file.
58671         * modules/unictype/category-none-tests: New file.
58672         * modules/unictype/category-of-tests: New file.
58673         * modules/unictype/category-or-tests: New file.
58674         * modules/unictype/category-test-withtable-tests: New file.
58675         * modules/unictype/combining-class-tests: New file.
58676         * modules/unictype/ctype-alnum-tests: New file.
58677         * modules/unictype/ctype-alpha-tests: New file.
58678         * modules/unictype/ctype-blank-tests: New file.
58679         * modules/unictype/ctype-cntrl-tests: New file.
58680         * modules/unictype/ctype-digit-tests: New file.
58681         * modules/unictype/ctype-graph-tests: New file.
58682         * modules/unictype/ctype-lower-tests: New file.
58683         * modules/unictype/ctype-print-tests: New file.
58684         * modules/unictype/ctype-punct-tests: New file.
58685         * modules/unictype/ctype-space-tests: New file.
58686         * modules/unictype/ctype-upper-tests: New file.
58687         * modules/unictype/ctype-xdigit-tests: New file.
58688         * modules/unictype/decimal-digit-tests: New file.
58689         * modules/unictype/digit-tests: New file.
58690         * modules/unictype/mirror-tests: New file.
58691         * modules/unictype/numeric-tests: New file.
58692         * modules/unictype/property-alphabetic-tests: New file.
58693         * modules/unictype/property-ascii-hex-digit-tests: New file.
58694         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58695         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58696         * modules/unictype/property-bidi-block-separator-tests: New file.
58697         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58698         * modules/unictype/property-bidi-common-separator-tests: New file.
58699         * modules/unictype/property-bidi-control-tests: New file.
58700         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58701         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58702         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58703         * modules/unictype/property-bidi-european-digit-tests: New file.
58704         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58705         * modules/unictype/property-bidi-left-to-right-tests: New file.
58706         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58707         * modules/unictype/property-bidi-other-neutral-tests: New file.
58708         * modules/unictype/property-bidi-pdf-tests: New file.
58709         * modules/unictype/property-bidi-segment-separator-tests: New file.
58710         * modules/unictype/property-bidi-whitespace-tests: New file.
58711         * modules/unictype/property-byname-tests: New file.
58712         * modules/unictype/property-combining-tests: New file.
58713         * modules/unictype/property-composite-tests: New file.
58714         * modules/unictype/property-currency-symbol-tests: New file.
58715         * modules/unictype/property-dash-tests: New file.
58716         * modules/unictype/property-decimal-digit-tests: New file.
58717         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58718         * modules/unictype/property-deprecated-tests: New file.
58719         * modules/unictype/property-diacritic-tests: New file.
58720         * modules/unictype/property-extender-tests: New file.
58721         * modules/unictype/property-format-control-tests: New file.
58722         * modules/unictype/property-grapheme-base-tests: New file.
58723         * modules/unictype/property-grapheme-extend-tests: New file.
58724         * modules/unictype/property-grapheme-link-tests: New file.
58725         * modules/unictype/property-hex-digit-tests: New file.
58726         * modules/unictype/property-hyphen-tests: New file.
58727         * modules/unictype/property-id-continue-tests: New file.
58728         * modules/unictype/property-id-start-tests: New file.
58729         * modules/unictype/property-ideographic-tests: New file.
58730         * modules/unictype/property-ids-binary-operator-tests: New file.
58731         * modules/unictype/property-ids-trinary-operator-tests: New file.
58732         * modules/unictype/property-ignorable-control-tests: New file.
58733         * modules/unictype/property-iso-control-tests: New file.
58734         * modules/unictype/property-join-control-tests: New file.
58735         * modules/unictype/property-left-of-pair-tests: New file.
58736         * modules/unictype/property-line-separator-tests: New file.
58737         * modules/unictype/property-logical-order-exception-tests: New file.
58738         * modules/unictype/property-lowercase-tests: New file.
58739         * modules/unictype/property-math-tests: New file.
58740         * modules/unictype/property-non-break-tests: New file.
58741         * modules/unictype/property-not-a-character-tests: New file.
58742         * modules/unictype/property-numeric-tests: New file.
58743         * modules/unictype/property-other-alphabetic-tests: New file.
58744         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58745         * modules/unictype/property-other-grapheme-extend-tests: New file.
58746         * modules/unictype/property-other-id-continue-tests: New file.
58747         * modules/unictype/property-other-id-start-tests: New file.
58748         * modules/unictype/property-other-lowercase-tests: New file.
58749         * modules/unictype/property-other-math-tests: New file.
58750         * modules/unictype/property-other-uppercase-tests: New file.
58751         * modules/unictype/property-paired-punctuation-tests: New file.
58752         * modules/unictype/property-paragraph-separator-tests: New file.
58753         * modules/unictype/property-pattern-syntax-tests: New file.
58754         * modules/unictype/property-pattern-white-space-tests: New file.
58755         * modules/unictype/property-private-use-tests: New file.
58756         * modules/unictype/property-punctuation-tests: New file.
58757         * modules/unictype/property-quotation-mark-tests: New file.
58758         * modules/unictype/property-radical-tests: New file.
58759         * modules/unictype/property-sentence-terminal-tests: New file.
58760         * modules/unictype/property-soft-dotted-tests: New file.
58761         * modules/unictype/property-space-tests: New file.
58762         * modules/unictype/property-terminal-punctuation-tests: New file.
58763         * modules/unictype/property-test-tests: New file.
58764         * modules/unictype/property-titlecase-tests: New file.
58765         * modules/unictype/property-unassigned-code-value-tests: New file.
58766         * modules/unictype/property-unified-ideograph-tests: New file.
58767         * modules/unictype/property-uppercase-tests: New file.
58768         * modules/unictype/property-variation-selector-tests: New file.
58769         * modules/unictype/property-white-space-tests: New file.
58770         * modules/unictype/property-xid-continue-tests: New file.
58771         * modules/unictype/property-xid-start-tests: New file.
58772         * modules/unictype/property-zero-width-tests: New file.
58773         * modules/unictype/scripts-tests: New file.
58774         * modules/unictype/syntax-c-ident-tests: New file.
58775         * modules/unictype/syntax-c-whitespace-tests: New file.
58776         * modules/unictype/syntax-java-ident-tests: New file.
58777         * modules/unictype/syntax-java-whitespace-tests: New file.
58778         * tests/unictype/test-bidi_byname.c: New file.
58779         * tests/unictype/test-bidi_name.c: New file.
58780         * tests/unictype/test-bidi_of.c: New file.
58781         * tests/unictype/test-bidi_test.c: New file.
58782         * tests/unictype/test-block_list.c: New file.
58783         * tests/unictype/test-block_of.c: New file.
58784         * tests/unictype/test-block_test.c: New file.
58785         * tests/unictype/test-categ_and.c: New file.
58786         * tests/unictype/test-categ_and_not.c: New file.
58787         * tests/unictype/test-categ_byname.c: New file.
58788         * tests/unictype/test-categ_name.c: New file.
58789         * tests/unictype/test-categ_none.c: New file.
58790         * tests/unictype/test-categ_of.c: New file.
58791         * tests/unictype/test-categ_or.c: New file.
58792         * tests/unictype/test-categ_test_withtable.c: New file.
58793         * tests/unictype/test-combining.c: New file.
58794         * tests/unictype/test-decdigit.c: New file.
58795         * tests/unictype/test-digit.c: New file.
58796         * tests/unictype/test-mirror.c: New file.
58797         * tests/unictype/test-numeric.c: New file.
58798         * tests/unictype/test-pr_byname.c: New file.
58799         * tests/unictype/test-pr_test.c: New file.
58800         * tests/unictype/test-predicate-part1.h: New file.
58801         * tests/unictype/test-predicate-part2.h: New file.
58802         * tests/unictype/test-scripts.c: New file.
58803         * tests/unictype/test-sy_c_ident.c: New file.
58804         * tests/unictype/test-sy_java_ident.c: New file.
58805
58806         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58807         for Unicode 5.0.0.
58808         * tests/unictype/test-categ_Cc.c: Likewise.
58809         * tests/unictype/test-categ_Cf.c: Likewise.
58810         * tests/unictype/test-categ_Cn.c: Likewise.
58811         * tests/unictype/test-categ_Co.c: Likewise.
58812         * tests/unictype/test-categ_Cs.c: Likewise.
58813         * tests/unictype/test-categ_L.c: Likewise.
58814         * tests/unictype/test-categ_Ll.c: Likewise.
58815         * tests/unictype/test-categ_Lm.c: Likewise.
58816         * tests/unictype/test-categ_Lo.c: Likewise.
58817         * tests/unictype/test-categ_Lt.c: Likewise.
58818         * tests/unictype/test-categ_Lu.c: Likewise.
58819         * tests/unictype/test-categ_M.c: Likewise.
58820         * tests/unictype/test-categ_Mc.c: Likewise.
58821         * tests/unictype/test-categ_Me.c: Likewise.
58822         * tests/unictype/test-categ_Mn.c: Likewise.
58823         * tests/unictype/test-categ_N.c: Likewise.
58824         * tests/unictype/test-categ_Nd.c: Likewise.
58825         * tests/unictype/test-categ_Nl.c: Likewise.
58826         * tests/unictype/test-categ_No.c: Likewise.
58827         * tests/unictype/test-categ_P.c: Likewise.
58828         * tests/unictype/test-categ_Pc.c: Likewise.
58829         * tests/unictype/test-categ_Pd.c: Likewise.
58830         * tests/unictype/test-categ_Pe.c: Likewise.
58831         * tests/unictype/test-categ_Pf.c: Likewise.
58832         * tests/unictype/test-categ_Pi.c: Likewise.
58833         * tests/unictype/test-categ_Po.c: Likewise.
58834         * tests/unictype/test-categ_Ps.c: Likewise.
58835         * tests/unictype/test-categ_S.c: Likewise.
58836         * tests/unictype/test-categ_Sc.c: Likewise.
58837         * tests/unictype/test-categ_Sk.c: Likewise.
58838         * tests/unictype/test-categ_Sm.c: Likewise.
58839         * tests/unictype/test-categ_So.c: Likewise.
58840         * tests/unictype/test-categ_Z.c: Likewise.
58841         * tests/unictype/test-categ_Zl.c: Likewise.
58842         * tests/unictype/test-categ_Zp.c: Likewise.
58843         * tests/unictype/test-categ_Zs.c: Likewise.
58844         * tests/unictype/test-ctype_alnum.c: Likewise.
58845         * tests/unictype/test-ctype_alpha.c: Likewise.
58846         * tests/unictype/test-ctype_blank.c: Likewise.
58847         * tests/unictype/test-ctype_cntrl.c: Likewise.
58848         * tests/unictype/test-ctype_digit.c: Likewise.
58849         * tests/unictype/test-ctype_graph.c: Likewise.
58850         * tests/unictype/test-ctype_lower.c: Likewise.
58851         * tests/unictype/test-ctype_print.c: Likewise.
58852         * tests/unictype/test-ctype_punct.c: Likewise.
58853         * tests/unictype/test-ctype_space.c: Likewise.
58854         * tests/unictype/test-ctype_upper.c: Likewise.
58855         * tests/unictype/test-ctype_xdigit.c: Likewise.
58856         * tests/unictype/test-decdigit.h: Likewise.
58857         * tests/unictype/test-digit.h: Likewise.
58858         * tests/unictype/test-numeric.h: Likewise.
58859         * tests/unictype/test-pr_alphabetic.c: Likewise.
58860         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58861         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58862         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58863         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58864         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58865         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58866         * tests/unictype/test-pr_bidi_control.c: Likewise.
58867         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58868         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58869         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58870         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58871         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58872         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58873         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58874         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58875         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58876         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58877         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58878         * tests/unictype/test-pr_combining.c: Likewise.
58879         * tests/unictype/test-pr_composite.c: Likewise.
58880         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58881         * tests/unictype/test-pr_dash.c: Likewise.
58882         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58883         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58884         * tests/unictype/test-pr_deprecated.c: Likewise.
58885         * tests/unictype/test-pr_diacritic.c: Likewise.
58886         * tests/unictype/test-pr_extender.c: Likewise.
58887         * tests/unictype/test-pr_format_control.c: Likewise.
58888         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58889         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58890         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58891         * tests/unictype/test-pr_hex_digit.c: Likewise.
58892         * tests/unictype/test-pr_hyphen.c: Likewise.
58893         * tests/unictype/test-pr_id_continue.c: Likewise.
58894         * tests/unictype/test-pr_id_start.c: Likewise.
58895         * tests/unictype/test-pr_ideographic.c: Likewise.
58896         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58897         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58898         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58899         * tests/unictype/test-pr_iso_control.c: Likewise.
58900         * tests/unictype/test-pr_join_control.c: Likewise.
58901         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58902         * tests/unictype/test-pr_line_separator.c: Likewise.
58903         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58904         * tests/unictype/test-pr_lowercase.c: Likewise.
58905         * tests/unictype/test-pr_math.c: Likewise.
58906         * tests/unictype/test-pr_non_break.c: Likewise.
58907         * tests/unictype/test-pr_not_a_character.c: Likewise.
58908         * tests/unictype/test-pr_numeric.c: Likewise.
58909         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58910         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58911         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58912         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58913         * tests/unictype/test-pr_other_id_start.c: Likewise.
58914         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58915         * tests/unictype/test-pr_other_math.c: Likewise.
58916         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58917         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58918         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58919         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58920         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58921         * tests/unictype/test-pr_private_use.c: Likewise.
58922         * tests/unictype/test-pr_punctuation.c: Likewise.
58923         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58924         * tests/unictype/test-pr_radical.c: Likewise.
58925         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58926         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58927         * tests/unictype/test-pr_space.c: Likewise.
58928         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58929         * tests/unictype/test-pr_titlecase.c: Likewise.
58930         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58931         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58932         * tests/unictype/test-pr_uppercase.c: Likewise.
58933         * tests/unictype/test-pr_variation_selector.c: Likewise.
58934         * tests/unictype/test-pr_white_space.c: Likewise.
58935         * tests/unictype/test-pr_xid_continue.c: Likewise.
58936         * tests/unictype/test-pr_xid_start.c: Likewise.
58937         * tests/unictype/test-pr_zero_width.c: Likewise.
58938         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58939         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58940
58941 2007-11-12  Bruno Haible  <bruno@clisp.org>
58942
58943         Unicode character classification functions.
58944         * lib/unictype.h: New file.
58945         * modules/unictype/base: New file.
58946         * modules/unictype/category-L: New file.
58947         * modules/unictype/category-Lu: New file.
58948         * modules/unictype/category-Ll: New file.
58949         * modules/unictype/category-Lt: New file.
58950         * modules/unictype/category-Lm: New file.
58951         * modules/unictype/category-Lo: New file.
58952         * modules/unictype/category-M: New file.
58953         * modules/unictype/category-Mn: New file.
58954         * modules/unictype/category-Mc: New file.
58955         * modules/unictype/category-Me: New file.
58956         * modules/unictype/category-N: New file.
58957         * modules/unictype/category-Nd: New file.
58958         * modules/unictype/category-Nl: New file.
58959         * modules/unictype/category-No: New file.
58960         * modules/unictype/category-P: New file.
58961         * modules/unictype/category-Pc: New file.
58962         * modules/unictype/category-Pd: New file.
58963         * modules/unictype/category-Ps: New file.
58964         * modules/unictype/category-Pe: New file.
58965         * modules/unictype/category-Pi: New file.
58966         * modules/unictype/category-Pf: New file.
58967         * modules/unictype/category-Po: New file.
58968         * modules/unictype/category-S: New file.
58969         * modules/unictype/category-Sm: New file.
58970         * modules/unictype/category-Sc: New file.
58971         * modules/unictype/category-Sk: New file.
58972         * modules/unictype/category-So: New file.
58973         * modules/unictype/category-Z: New file.
58974         * modules/unictype/category-Zs: New file.
58975         * modules/unictype/category-Zl: New file.
58976         * modules/unictype/category-Zp: New file.
58977         * modules/unictype/category-C: New file.
58978         * modules/unictype/category-Cc: New file.
58979         * modules/unictype/category-Cf: New file.
58980         * modules/unictype/category-Cs: New file.
58981         * modules/unictype/category-Co: New file.
58982         * modules/unictype/category-Cn: New file.
58983         * modules/unictype/category-or: New file.
58984         * modules/unictype/category-of: New file.
58985         * modules/unictype/category-test: New file.
58986         * modules/unictype/category-test-withtable: New file.
58987         * modules/unictype/category-byname: New file.
58988         * modules/unictype/category-none: New file.
58989         * modules/unictype/category-and: New file.
58990         * modules/unictype/category-and-not: New file.
58991         * modules/unictype/category-name: New file.
58992         * modules/unictype/combining-class: New file.
58993         * modules/unictype/category-all: New file.
58994         * modules/unictype/bidicategory-all: New file.
58995         * modules/unictype/bidicategory-byname: New file.
58996         * modules/unictype/bidicategory-name: New file.
58997         * modules/unictype/bidicategory-of: New file.
58998         * modules/unictype/bidicategory-test: New file.
58999         * modules/unictype/decimal-digit: New file.
59000         * modules/unictype/digit: New file.
59001         * modules/unictype/numeric: New file.
59002         * modules/unictype/mirror: New file.
59003         * modules/unictype/property-white-space: New file.
59004         * modules/unictype/property-alphabetic: New file.
59005         * modules/unictype/property-other-alphabetic: New file.
59006         * modules/unictype/property-not-a-character: New file.
59007         * modules/unictype/property-default-ignorable-code-point: New file.
59008         * modules/unictype/property-other-default-ignorable-code-point: New
59009         file.
59010         * modules/unictype/property-deprecated: New file.
59011         * modules/unictype/property-logical-order-exception: New file.
59012         * modules/unictype/property-variation-selector: New file.
59013         * modules/unictype/property-private-use: New file.
59014         * modules/unictype/property-unassigned-code-value: New file.
59015         * modules/unictype/property-uppercase: New file.
59016         * modules/unictype/property-other-uppercase: New file.
59017         * modules/unictype/property-lowercase: New file.
59018         * modules/unictype/property-other-lowercase: New file.
59019         * modules/unictype/property-titlecase: New file.
59020         * modules/unictype/property-soft-dotted: New file.
59021         * modules/unictype/property-id-start: New file.
59022         * modules/unictype/property-other-id-start: New file.
59023         * modules/unictype/property-id-continue: New file.
59024         * modules/unictype/property-other-id-continue: New file.
59025         * modules/unictype/property-xid-start: New file.
59026         * modules/unictype/property-xid-continue: New file.
59027         * modules/unictype/property-pattern-white-space: New file.
59028         * modules/unictype/property-pattern-syntax: New file.
59029         * modules/unictype/property-join-control: New file.
59030         * modules/unictype/property-grapheme-base: New file.
59031         * modules/unictype/property-grapheme-extend: New file.
59032         * modules/unictype/property-other-grapheme-extend: New file.
59033         * modules/unictype/property-grapheme-link: New file.
59034         * modules/unictype/property-bidi-control: New file.
59035         * modules/unictype/property-bidi-left-to-right: New file.
59036         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59037         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59038         * modules/unictype/property-bidi-european-digit: New file.
59039         * modules/unictype/property-bidi-eur-num-separator: New file.
59040         * modules/unictype/property-bidi-eur-num-terminator: New file.
59041         * modules/unictype/property-bidi-arabic-digit: New file.
59042         * modules/unictype/property-bidi-common-separator: New file.
59043         * modules/unictype/property-bidi-block-separator: New file.
59044         * modules/unictype/property-bidi-segment-separator: New file.
59045         * modules/unictype/property-bidi-whitespace: New file.
59046         * modules/unictype/property-bidi-non-spacing-mark: New file.
59047         * modules/unictype/property-bidi-boundary-neutral: New file.
59048         * modules/unictype/property-bidi-pdf: New file.
59049         * modules/unictype/property-bidi-embedding-or-override: New file.
59050         * modules/unictype/property-bidi-other-neutral: New file.
59051         * modules/unictype/property-hex-digit: New file.
59052         * modules/unictype/property-ascii-hex-digit: New file.
59053         * modules/unictype/property-ideographic: New file.
59054         * modules/unictype/property-unified-ideograph: New file.
59055         * modules/unictype/property-radical: New file.
59056         * modules/unictype/property-ids-binary-operator: New file.
59057         * modules/unictype/property-ids-trinary-operator: New file.
59058         * modules/unictype/property-zero-width: New file.
59059         * modules/unictype/property-space: New file.
59060         * modules/unictype/property-non-break: New file.
59061         * modules/unictype/property-iso-control: New file.
59062         * modules/unictype/property-format-control: New file.
59063         * modules/unictype/property-dash: New file.
59064         * modules/unictype/property-hyphen: New file.
59065         * modules/unictype/property-punctuation: New file.
59066         * modules/unictype/property-line-separator: New file.
59067         * modules/unictype/property-paragraph-separator: New file.
59068         * modules/unictype/property-quotation-mark: New file.
59069         * modules/unictype/property-sentence-terminal: New file.
59070         * modules/unictype/property-terminal-punctuation: New file.
59071         * modules/unictype/property-currency-symbol: New file.
59072         * modules/unictype/property-math: New file.
59073         * modules/unictype/property-other-math: New file.
59074         * modules/unictype/property-paired-punctuation: New file.
59075         * modules/unictype/property-left-of-pair: New file.
59076         * modules/unictype/property-combining: New file.
59077         * modules/unictype/property-composite: New file.
59078         * modules/unictype/property-decimal-digit: New file.
59079         * modules/unictype/property-numeric: New file.
59080         * modules/unictype/property-diacritic: New file.
59081         * modules/unictype/property-extender: New file.
59082         * modules/unictype/property-ignorable-control: New file.
59083         * modules/unictype/property-test: New file.
59084         * modules/unictype/property-byname: New file.
59085         * modules/unictype/property-all: New file.
59086         * modules/unictype/scripts: New file.
59087         * modules/unictype/scripts-all: New file.
59088         * modules/unictype/block-of: New file.
59089         * modules/unictype/block-test: New file.
59090         * modules/unictype/block-list: New file.
59091         * modules/unictype/block-all: New file.
59092         * modules/unictype/syntax-c-whitespace: New file.
59093         * modules/unictype/syntax-java-whitespace: New file.
59094         * modules/unictype/syntax-c-ident: New file.
59095         * modules/unictype/syntax-java-ident: New file.
59096         * modules/unictype/ctype-alnum: New file.
59097         * modules/unictype/ctype-alpha: New file.
59098         * modules/unictype/ctype-cntrl: New file.
59099         * modules/unictype/ctype-digit: New file.
59100         * modules/unictype/ctype-graph: New file.
59101         * modules/unictype/ctype-lower: New file.
59102         * modules/unictype/ctype-print: New file.
59103         * modules/unictype/ctype-punct: New file.
59104         * modules/unictype/ctype-space: New file.
59105         * modules/unictype/ctype-upper: New file.
59106         * modules/unictype/ctype-xdigit: New file.
59107         * modules/unictype/ctype-blank: New file.
59108         * lib/unictype/bidi_byname.c: New file.
59109         * lib/unictype/bidi_name.c: New file.
59110         * lib/unictype/bidi_of.c: New file.
59111         * lib/unictype/bidi_test.c: New file.
59112         * lib/unictype/bitmap.h: New file.
59113         * lib/unictype/block_test.c: New file.
59114         * lib/unictype/blocks.c: New file.
59115         * lib/unictype/categ_C.c: New file.
59116         * lib/unictype/categ_Cc.c: New file.
59117         * lib/unictype/categ_Cf.c: New file.
59118         * lib/unictype/categ_Cn.c: New file.
59119         * lib/unictype/categ_Co.c: New file.
59120         * lib/unictype/categ_Cs.c: New file.
59121         * lib/unictype/categ_L.c: New file.
59122         * lib/unictype/categ_Ll.c: New file.
59123         * lib/unictype/categ_Lm.c: New file.
59124         * lib/unictype/categ_Lo.c: New file.
59125         * lib/unictype/categ_Lt.c: New file.
59126         * lib/unictype/categ_Lu.c: New file.
59127         * lib/unictype/categ_M.c: New file.
59128         * lib/unictype/categ_Mc.c: New file.
59129         * lib/unictype/categ_Me.c: New file.
59130         * lib/unictype/categ_Mn.c: New file.
59131         * lib/unictype/categ_N.c: New file.
59132         * lib/unictype/categ_Nd.c: New file.
59133         * lib/unictype/categ_Nl.c: New file.
59134         * lib/unictype/categ_No.c: New file.
59135         * lib/unictype/categ_P.c: New file.
59136         * lib/unictype/categ_Pc.c: New file.
59137         * lib/unictype/categ_Pd.c: New file.
59138         * lib/unictype/categ_Pe.c: New file.
59139         * lib/unictype/categ_Pf.c: New file.
59140         * lib/unictype/categ_Pi.c: New file.
59141         * lib/unictype/categ_Po.c: New file.
59142         * lib/unictype/categ_Ps.c: New file.
59143         * lib/unictype/categ_S.c: New file.
59144         * lib/unictype/categ_Sc.c: New file.
59145         * lib/unictype/categ_Sk.c: New file.
59146         * lib/unictype/categ_Sm.c: New file.
59147         * lib/unictype/categ_So.c: New file.
59148         * lib/unictype/categ_Z.c: New file.
59149         * lib/unictype/categ_Zl.c: New file.
59150         * lib/unictype/categ_Zp.c: New file.
59151         * lib/unictype/categ_Zs.c: New file.
59152         * lib/unictype/categ_and.c: New file.
59153         * lib/unictype/categ_and_not.c: New file.
59154         * lib/unictype/categ_byname.c: New file.
59155         * lib/unictype/categ_name.c: New file.
59156         * lib/unictype/categ_none.c: New file.
59157         * lib/unictype/categ_of.c: New file.
59158         * lib/unictype/categ_or.c: New file.
59159         * lib/unictype/categ_test.c: New file.
59160         * lib/unictype/combining.c: New file.
59161         * lib/unictype/ctype_alnum.c: New file.
59162         * lib/unictype/ctype_alpha.c: New file.
59163         * lib/unictype/ctype_blank.c: New file.
59164         * lib/unictype/ctype_cntrl.c: New file.
59165         * lib/unictype/ctype_digit.c: New file.
59166         * lib/unictype/ctype_graph.c: New file.
59167         * lib/unictype/ctype_lower.c: New file.
59168         * lib/unictype/ctype_print.c: New file.
59169         * lib/unictype/ctype_punct.c: New file.
59170         * lib/unictype/ctype_space.c: New file.
59171         * lib/unictype/ctype_upper.c: New file.
59172         * lib/unictype/ctype_xdigit.c: New file.
59173         * lib/unictype/decdigit.c: New file.
59174         * lib/unictype/digit.c: New file.
59175         * lib/unictype/identsyntaxmap.h: New file.
59176         * lib/unictype/mirror.c: New file.
59177         * lib/unictype/numeric.c: New file.
59178         * lib/unictype/pr_alphabetic.c: New file.
59179         * lib/unictype/pr_ascii_hex_digit.c: New file.
59180         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59181         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59182         * lib/unictype/pr_bidi_block_separator.c: New file.
59183         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59184         * lib/unictype/pr_bidi_common_separator.c: New file.
59185         * lib/unictype/pr_bidi_control.c: New file.
59186         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59187         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59188         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59189         * lib/unictype/pr_bidi_european_digit.c: New file.
59190         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59191         * lib/unictype/pr_bidi_left_to_right.c: New file.
59192         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59193         * lib/unictype/pr_bidi_other_neutral.c: New file.
59194         * lib/unictype/pr_bidi_pdf.c: New file.
59195         * lib/unictype/pr_bidi_segment_separator.c: New file.
59196         * lib/unictype/pr_bidi_whitespace.c: New file.
59197         * lib/unictype/pr_byname.c: New file.
59198         * lib/unictype/pr_byname.gperf: New file.
59199         * lib/unictype/pr_combining.c: New file.
59200         * lib/unictype/pr_composite.c: New file.
59201         * lib/unictype/pr_currency_symbol.c: New file.
59202         * lib/unictype/pr_dash.c: New file.
59203         * lib/unictype/pr_decimal_digit.c: New file.
59204         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59205         * lib/unictype/pr_deprecated.c: New file.
59206         * lib/unictype/pr_diacritic.c: New file.
59207         * lib/unictype/pr_extender.c: New file.
59208         * lib/unictype/pr_format_control.c: New file.
59209         * lib/unictype/pr_grapheme_base.c: New file.
59210         * lib/unictype/pr_grapheme_extend.c: New file.
59211         * lib/unictype/pr_grapheme_link.c: New file.
59212         * lib/unictype/pr_hex_digit.c: New file.
59213         * lib/unictype/pr_hyphen.c: New file.
59214         * lib/unictype/pr_id_continue.c: New file.
59215         * lib/unictype/pr_id_start.c: New file.
59216         * lib/unictype/pr_ideographic.c: New file.
59217         * lib/unictype/pr_ids_binary_operator.c: New file.
59218         * lib/unictype/pr_ids_trinary_operator.c: New file.
59219         * lib/unictype/pr_ignorable_control.c: New file.
59220         * lib/unictype/pr_iso_control.c: New file.
59221         * lib/unictype/pr_join_control.c: New file.
59222         * lib/unictype/pr_left_of_pair.c: New file.
59223         * lib/unictype/pr_line_separator.c: New file.
59224         * lib/unictype/pr_logical_order_exception.c: New file.
59225         * lib/unictype/pr_lowercase.c: New file.
59226         * lib/unictype/pr_math.c: New file.
59227         * lib/unictype/pr_non_break.c: New file.
59228         * lib/unictype/pr_not_a_character.c: New file.
59229         * lib/unictype/pr_numeric.c: New file.
59230         * lib/unictype/pr_other_alphabetic.c: New file.
59231         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59232         * lib/unictype/pr_other_grapheme_extend.c: New file.
59233         * lib/unictype/pr_other_id_continue.c: New file.
59234         * lib/unictype/pr_other_id_start.c: New file.
59235         * lib/unictype/pr_other_lowercase.c: New file.
59236         * lib/unictype/pr_other_math.c: New file.
59237         * lib/unictype/pr_other_uppercase.c: New file.
59238         * lib/unictype/pr_paired_punctuation.c: New file.
59239         * lib/unictype/pr_paragraph_separator.c: New file.
59240         * lib/unictype/pr_pattern_syntax.c: New file.
59241         * lib/unictype/pr_pattern_white_space.c: New file.
59242         * lib/unictype/pr_private_use.c: New file.
59243         * lib/unictype/pr_punctuation.c: New file.
59244         * lib/unictype/pr_quotation_mark.c: New file.
59245         * lib/unictype/pr_radical.c: New file.
59246         * lib/unictype/pr_sentence_terminal.c: New file.
59247         * lib/unictype/pr_soft_dotted.c: New file.
59248         * lib/unictype/pr_space.c: New file.
59249         * lib/unictype/pr_terminal_punctuation.c: New file.
59250         * lib/unictype/pr_test.c: New file.
59251         * lib/unictype/pr_titlecase.c: New file.
59252         * lib/unictype/pr_unassigned_code_value.c: New file.
59253         * lib/unictype/pr_unified_ideograph.c: New file.
59254         * lib/unictype/pr_uppercase.c: New file.
59255         * lib/unictype/pr_variation_selector.c: New file.
59256         * lib/unictype/pr_white_space.c: New file.
59257         * lib/unictype/pr_xid_continue.c: New file.
59258         * lib/unictype/pr_xid_start.c: New file.
59259         * lib/unictype/pr_zero_width.c: New file.
59260         * lib/unictype/scripts.c: New file.
59261         * lib/unictype/sy_c_ident.c: New file.
59262         * lib/unictype/sy_c_whitespace.c: New file.
59263         * lib/unictype/sy_java_ident.c: New file.
59264         * lib/unictype/sy_java_whitespace.c: New file.
59265
59266         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59267         Unicode 5.0.0.
59268         * lib/unictype/blocks.h: Likewise.
59269         * lib/unictype/categ_C.h: Likewise.
59270         * lib/unictype/categ_Cc.h: Likewise.
59271         * lib/unictype/categ_Cf.h: Likewise.
59272         * lib/unictype/categ_Cn.h: Likewise.
59273         * lib/unictype/categ_Co.h: Likewise.
59274         * lib/unictype/categ_Cs.h: Likewise.
59275         * lib/unictype/categ_L.h: Likewise.
59276         * lib/unictype/categ_Ll.h: Likewise.
59277         * lib/unictype/categ_Lm.h: Likewise.
59278         * lib/unictype/categ_Lo.h: Likewise.
59279         * lib/unictype/categ_Lt.h: Likewise.
59280         * lib/unictype/categ_Lu.h: Likewise.
59281         * lib/unictype/categ_M.h: Likewise.
59282         * lib/unictype/categ_Mc.h: Likewise.
59283         * lib/unictype/categ_Me.h: Likewise.
59284         * lib/unictype/categ_Mn.h: Likewise.
59285         * lib/unictype/categ_N.h: Likewise.
59286         * lib/unictype/categ_Nd.h: Likewise.
59287         * lib/unictype/categ_Nl.h: Likewise.
59288         * lib/unictype/categ_No.h: Likewise.
59289         * lib/unictype/categ_P.h: Likewise.
59290         * lib/unictype/categ_Pc.h: Likewise.
59291         * lib/unictype/categ_Pd.h: Likewise.
59292         * lib/unictype/categ_Pe.h: Likewise.
59293         * lib/unictype/categ_Pf.h: Likewise.
59294         * lib/unictype/categ_Pi.h: Likewise.
59295         * lib/unictype/categ_Po.h: Likewise.
59296         * lib/unictype/categ_Ps.h: Likewise.
59297         * lib/unictype/categ_S.h: Likewise.
59298         * lib/unictype/categ_Sc.h: Likewise.
59299         * lib/unictype/categ_Sk.h: Likewise.
59300         * lib/unictype/categ_Sm.h: Likewise.
59301         * lib/unictype/categ_So.h: Likewise.
59302         * lib/unictype/categ_Z.h: Likewise.
59303         * lib/unictype/categ_Zl.h: Likewise.
59304         * lib/unictype/categ_Zp.h: Likewise.
59305         * lib/unictype/categ_Zs.h: Likewise.
59306         * lib/unictype/categ_of.h: Likewise.
59307         * lib/unictype/combining.h: Likewise.
59308         * lib/unictype/ctype_alnum.h: Likewise.
59309         * lib/unictype/ctype_alpha.h: Likewise.
59310         * lib/unictype/ctype_blank.h: Likewise.
59311         * lib/unictype/ctype_cntrl.h: Likewise.
59312         * lib/unictype/ctype_digit.h: Likewise.
59313         * lib/unictype/ctype_graph.h: Likewise.
59314         * lib/unictype/ctype_lower.h: Likewise.
59315         * lib/unictype/ctype_print.h: Likewise.
59316         * lib/unictype/ctype_punct.h: Likewise.
59317         * lib/unictype/ctype_space.h: Likewise.
59318         * lib/unictype/ctype_upper.h: Likewise.
59319         * lib/unictype/ctype_xdigit.h: Likewise.
59320         * lib/unictype/decdigit.h: Likewise.
59321         * lib/unictype/digit.h: Likewise.
59322         * lib/unictype/mirror.h: Likewise.
59323         * lib/unictype/numeric.h: Likewise.
59324         * lib/unictype/pr_alphabetic.h: Likewise.
59325         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59326         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59327         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59328         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59329         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59330         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59331         * lib/unictype/pr_bidi_control.h: Likewise.
59332         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59333         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59334         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59335         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59336         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59337         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59338         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59339         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59340         * lib/unictype/pr_bidi_pdf.h: Likewise.
59341         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59342         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59343         * lib/unictype/pr_combining.h: Likewise.
59344         * lib/unictype/pr_composite.h: Likewise.
59345         * lib/unictype/pr_currency_symbol.h: Likewise.
59346         * lib/unictype/pr_dash.h: Likewise.
59347         * lib/unictype/pr_decimal_digit.h: Likewise.
59348         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59349         * lib/unictype/pr_deprecated.h: Likewise.
59350         * lib/unictype/pr_diacritic.h: Likewise.
59351         * lib/unictype/pr_extender.h: Likewise.
59352         * lib/unictype/pr_format_control.h: Likewise.
59353         * lib/unictype/pr_grapheme_base.h: Likewise.
59354         * lib/unictype/pr_grapheme_extend.h: Likewise.
59355         * lib/unictype/pr_grapheme_link.h: Likewise.
59356         * lib/unictype/pr_hex_digit.h: Likewise.
59357         * lib/unictype/pr_hyphen.h: Likewise.
59358         * lib/unictype/pr_id_continue.h: Likewise.
59359         * lib/unictype/pr_id_start.h: Likewise.
59360         * lib/unictype/pr_ideographic.h: Likewise.
59361         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59362         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59363         * lib/unictype/pr_ignorable_control.h: Likewise.
59364         * lib/unictype/pr_iso_control.h: Likewise.
59365         * lib/unictype/pr_join_control.h: Likewise.
59366         * lib/unictype/pr_left_of_pair.h: Likewise.
59367         * lib/unictype/pr_line_separator.h: Likewise.
59368         * lib/unictype/pr_logical_order_exception.h: Likewise.
59369         * lib/unictype/pr_lowercase.h: Likewise.
59370         * lib/unictype/pr_math.h: Likewise.
59371         * lib/unictype/pr_non_break.h: Likewise.
59372         * lib/unictype/pr_not_a_character.h: Likewise.
59373         * lib/unictype/pr_numeric.h: Likewise.
59374         * lib/unictype/pr_other_alphabetic.h: Likewise.
59375         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59376         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59377         * lib/unictype/pr_other_id_continue.h: Likewise.
59378         * lib/unictype/pr_other_id_start.h: Likewise.
59379         * lib/unictype/pr_other_lowercase.h: Likewise.
59380         * lib/unictype/pr_other_math.h: Likewise.
59381         * lib/unictype/pr_other_uppercase.h: Likewise.
59382         * lib/unictype/pr_paired_punctuation.h: Likewise.
59383         * lib/unictype/pr_paragraph_separator.h: Likewise.
59384         * lib/unictype/pr_pattern_syntax.h: Likewise.
59385         * lib/unictype/pr_pattern_white_space.h: Likewise.
59386         * lib/unictype/pr_private_use.h: Likewise.
59387         * lib/unictype/pr_punctuation.h: Likewise.
59388         * lib/unictype/pr_quotation_mark.h: Likewise.
59389         * lib/unictype/pr_radical.h: Likewise.
59390         * lib/unictype/pr_sentence_terminal.h: Likewise.
59391         * lib/unictype/pr_soft_dotted.h: Likewise.
59392         * lib/unictype/pr_space.h: Likewise.
59393         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59394         * lib/unictype/pr_titlecase.h: Likewise.
59395         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59396         * lib/unictype/pr_unified_ideograph.h: Likewise.
59397         * lib/unictype/pr_uppercase.h: Likewise.
59398         * lib/unictype/pr_variation_selector.h: Likewise.
59399         * lib/unictype/pr_white_space.h: Likewise.
59400         * lib/unictype/pr_xid_continue.h: Likewise.
59401         * lib/unictype/pr_xid_start.h: Likewise.
59402         * lib/unictype/pr_zero_width.h: Likewise.
59403         * lib/unictype/scripts.h: Likewise.
59404         * lib/unictype/scripts_byname.gperf: Likewise.
59405         * lib/unictype/sy_c_ident.h: Likewise.
59406         * lib/unictype/sy_c_whitespace.h: Likewise.
59407         * lib/unictype/sy_java_ident.h: Likewise.
59408         * lib/unictype/sy_java_whitespace.h: Likewise.
59409
59410         * lib/unictype/Makefile: New file.
59411         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59412         glibc.
59413         * lib/unictype/3level.h: New file, copied from glibc.
59414         * lib/unictype/3levelbit.h: New file.
59415
59416 2007-11-11  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/gperf: New file.
59419         * modules/iconv_open (Depends-on): Add it.
59420         (Makefile.am): Remove the GPERF definition.
59421
59422 2007-11-11  Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59425         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59426
59427 2007-11-11  Bruno Haible  <bruno@clisp.org>
59428
59429         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59430         (usage): Remove function.
59431
59432 2007-11-11  Bruno Haible  <bruno@clisp.org>
59433
59434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59435         gl_FUNC_CEILF_LIBS.
59436         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59437         gl_FUNC_CEIL_LIBS.
59438         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59439         gl_FUNC_CEILL_LIBS.
59440         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59441         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59442         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59443
59444 2007-11-11  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59447         roundf were declared but do not exist on functions.
59448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59449         roundl were declared but do not exist on functions.
59450         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59451         HAVE_FLOORL_AND_CEILL, respectively.
59452         Needed for Sun C on Solaris 10.
59453
59454 2007-11-11  Bruno Haible  <bruno@clisp.org>
59455
59456         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59457         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59458         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59459         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59460         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59461         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59462         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59463         HAVE_DECL_ROUNDF.
59464         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59465         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59467         of HAVE_DECL_ROUND*.
59468         * modules/math (Makefile.am): Update.
59469
59470 2007-11-10  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59473         ptrdiff_t as m4/intl.m4.
59474
59475 2007-11-10  Jim Meyering  <meyering@redhat.com>
59476
59477         Avoid link failure for the argmatch test.
59478         * tests/test-argmatch.c (usage): Define function to avoid a link
59479         failure: argmatch_die requires a usage function.
59480
59481 2007-11-09  Bruno Haible  <bruno@clisp.org>
59482
59483         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59484         * doc/functions/vsnprintf.texi: Likewise.
59485         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59486         with a size argument < 2.
59487
59488 2007-11-09  Bruno Haible  <bruno@clisp.org>
59489
59490         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59491         buffer. Fixes an inefficiency introduced on 2007-11-03.
59492
59493 2007-11-09  Bruno Haible  <bruno@clisp.org>
59494
59495         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59496         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59497
59498 2007-11-08  Jim Meyering  <meyering@redhat.com>
59499
59500         Change cache variable name prefix "jm_" to "gl_" everywhere.
59501         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59502         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59503         * m4/uptime.m4: s/gl_/jm_/
59504
59505 2007-11-07  Bruno Haible  <bruno@clisp.org>
59506
59507         Update to GNU gettext 0.17.
59508         * m4/intl.m4: Update to GNU gettext 0.17.
59509         * m4/po.m4: Likewise.
59510         * modules/gettext (Files): Remove m4/ulonglong.m4.
59511         (configure.ac): Require gettext infrastructure from version 0.17.
59512
59513 2007-11-06  Bruno Haible  <bruno@clisp.org>
59514
59515         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59516         symbolic values are not defined in a public header.
59517         * lib/freadable.c (freadable) [QNX]: Likewise.
59518         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59519         * lib/freading.c (freading) [QNX]: Likewise.
59520         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59521         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59522         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59523         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59524         Reported by Alain Magloire.
59525
59526         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59527
59528 2007-11-05  Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59531         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59532         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59533         Reported by Eric Blake.
59534
59535 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59536             Bruno Haible  <bruno@clisp.org>
59537
59538         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59539         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59540         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59541         (malloc): Undefine also before including <stdlib.h>.
59542         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59543         Needed on OSF/1 4.0.
59544
59545 2007-11-05  Jim Meyering  <meyering@redhat.com>
59546
59547         git-version-gen: sync from coreutils.
59548         * build-aux/git-version-gen: Add comments.
59549         Change the first '-' to '.' in the snapshot version string,
59550         e.g., 6.9-377-08144 -> 6.9.377-08144
59551         Remove first parameter.
59552         Don't declare a version "-dirty" merely because a time
59553         stamp has changed.
59554
59555 2007-11-04  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/lock.h: Protect all macro definitions containing an 'if'
59558         statement through a "do { ... } while (0)".
59559         * lib/tls.h: Likewise.
59560
59561 2007-11-04  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59564
59565 2007-11-04  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59568         * modules/fprintf-posix (Depends-on): Add nocrash.
59569         * modules/snprintf-posix (Depends-on): Likewise.
59570         * modules/sprintf-posix (Depends-on): Likewise.
59571         * modules/vasnprintf-posix (Depends-on): Likewise.
59572         * modules/vasprintf-posix (Depends-on): Likewise.
59573         * modules/vfprintf-posix (Depends-on): Likewise.
59574         * modules/vsnprintf-posix (Depends-on): Likewise.
59575         * modules/vsprintf-posix (Depends-on): Likewise.
59576         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59578         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59579         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59580         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59581         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59582         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59583
59584 2007-11-04  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/nocrash: New file.
59587         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59588         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59589
59590 2007-11-04  Bruno Haible  <bruno@clisp.org>
59591
59592         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59593         precision handling.
59594         * tests/test-vasprintf-posix.c (test_function): Likewise.
59595         * tests/test-snprintf-posix.h (test_function): Likewise.
59596         * tests/test-sprintf-posix.h (test_function): Likewise.
59597
59598         Fix *printf behaviour for large precisions on mingw and BeOS.
59599         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59600         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59602         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59604         gl_PRINTF_PRECISION and test its result. Invoke
59605         gl_PREREQ_VASNPRINTF_PRECISION.
59606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59613         * doc/functions/fprintf.texi: Update.
59614         * doc/functions/printf.texi: Update.
59615         * doc/functions/snprintf.texi: Update.
59616         * doc/functions/sprintf.texi: Update.
59617         * doc/functions/vfprintf.texi: Update.
59618         * doc/functions/vprintf.texi: Update.
59619         * doc/functions/vsnprintf.texi: Update.
59620         * doc/functions/vsprintf.texi: Update.
59621
59622 2007-11-04  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59625
59626 2007-11-04  Bruno Haible  <bruno@clisp.org>
59627
59628         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59629         Reported by Sylvain Beucler <beuc@gnu.org>.
59630
59631 2007-11-03  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-fprintf-posix2.sh: New file.
59634         * tests/test-fprintf-posix2.c: New file.
59635         * modules/fprintf-posix-tests (Files): Add them.
59636         (TESTS): Add test-fprintf-posix2.sh.
59637         (configure.ac): Check for getrlimit and setrlimit.
59638         (check_PROGRAMS): Add test-fprintf-posix2.
59639
59640         * tests/test-printf-posix2.sh: New file.
59641         * tests/test-printf-posix2.c: New file.
59642         * modules/printf-posix-tests (Files): Add them.
59643         (TESTS): Add test-printf-posix2.sh.
59644         (configure.ac): Check for getrlimit and setrlimit.
59645         (check_PROGRAMS): Add test-printf-posix2.
59646
59647         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59648         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59649         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59650         (decode_double): New function, copied from decode_long_double.
59651         (scale10_round_decimal_decoded): New function, extracted from
59652         scale10_round_decimal_long_double.
59653         (scale10_round_decimal_long_double): Use it.
59654         (scale10_round_decimal_double): New function.
59655         (floorlog10): New function.
59656         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59658         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59660         gl_PRINTF_ENOMEM and test its result. Invoke
59661         gl_PREREQ_VASNPRINTF_ENOMEM.
59662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59663         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59669         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59670         * modules/snprintf-posix (Depends-on): Likewise.
59671         * modules/sprintf-posix (Depends-on): Likewise.
59672         * modules/vasnprintf-posix (Depends-on): Likewise.
59673         * modules/vasprintf-posix (Depends-on): Likewise.
59674         * modules/vfprintf-posix (Depends-on): Likewise.
59675         * modules/vsnprintf-posix (Depends-on): Likewise.
59676         * modules/vsprintf-posix (Depends-on): Likewise.
59677         * doc/functions/fprintf.texi: Update.
59678         * doc/functions/printf.texi: Update.
59679         * doc/functions/snprintf.texi: Update.
59680         * doc/functions/sprintf.texi: Update.
59681         * doc/functions/vfprintf.texi: Update.
59682         * doc/functions/vprintf.texi: Update.
59683         * doc/functions/vsnprintf.texi: Update.
59684         * doc/functions/vsprintf.texi: Update.
59685
59686 2007-11-03  Bruno Haible  <bruno@clisp.org>
59687
59688         * modules/frexp-nolibm-tests: New file.
59689
59690         * modules/frexp-nolibm: New file.
59691         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59692
59693 2007-11-03  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59696         value is C99 compliant.
59697         Needed for OSF/1 5.1.
59698
59699 2007-11-03  Bruno Haible  <bruno@clisp.org>
59700
59701         Fix out-of-memory handling of vasnprintf.
59702         * lib/printf-parse.c: Include <errno.h>.
59703         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59704         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59705         is already set.
59706
59707 2007-11-02  Eric Blake  <ebb9@byu.net>
59708
59709         Fix tests on cygwin.
59710         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59711
59712 2007-11-01  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59715         warning.
59716         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59717         needed for POSIX compatibility.
59718
59719 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59722         for compatibility with GNU.
59723
59724 2007-11-01  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59727         (putenv): Renamed from rpl_putenv. Change argument type from
59728         'const char *' to 'char *'.
59729         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59730         of defining putenv in config.h, just set REPLACE_PUTENV.
59731         * modules/putenv (Depends-on): Add stdlib.
59732         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59733         (Include): Use <stdlib.h>.
59734         * lib/stdlib.in.h (putenv): New declaration.
59735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59736         REPLACE_PUTENV.
59737         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59738         REPLACE_PUTENV.
59739         Needed for MacOS X 10.5.0.
59740         Reported by Peter O'Gorman <peter@pogma.com>.
59741
59742 2007-11-01  Jim Meyering  <meyering@redhat.com>
59743
59744         Treat an empty date string exactly like "0".
59745         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59746         if the remaining date string (to be parsed) is empty, use "0".
59747         Reported by Mischa Molhoek and discussed in this thread:
59748         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59749
59750 2007-10-31  Bruno Haible  <bruno@clisp.org>
59751
59752         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59753         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59754         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59755         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59756         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59757         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59758
59759 2007-10-31  Bruno Haible  <bruno@clisp.org>
59760
59761         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59762         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59763         (AC_TYPE_LONG_LONG_INT): Use it.
59764         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59765         it as well.
59766         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59767         to m4/longlong.m4.
59768         * modules/stdint (Files): Remove m4/ulonglong.m4.
59769         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59770         m4/ulonglong.m4.
59771         * modules/strtoumax (Files): Likewise.
59772
59773 2007-10-30  Bruno Haible  <bruno@clisp.org>
59774
59775         * modules/xvasprintf-posix: New file.
59776         Suggested by Eric Blake.
59777
59778 2007-10-30  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/xprintf-posix-tests: New file.
59781         * tests/test-xprintf-posix.sh: New file.
59782         * tests/test-xprintf-posix.c: New file.
59783         * tests/test-xfprintf-posix.c: New file.
59784
59785         * modules/xprintf-posix: New file.
59786
59787 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59788
59789         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59790         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59791         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59792
59793 2007-10-29  Bruno Haible  <bruno@clisp.org>
59794
59795         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59796         contain the special marker '_cv_'.
59797         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59798         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59799         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59800         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59801         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59802         Reported by Ralf Wildenhues.
59803
59804 2007-10-29  Bruno Haible  <bruno@clisp.org>
59805
59806         * gnulib-tool (func_import): When --lgpl is not specified, set
59807         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59808         GPLv3.
59809         Reported by Simon Josefsson.
59810
59811 2007-10-28  Bruno Haible  <bruno@clisp.org>
59812
59813         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59814         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59815         HAVE_DECL_ISFINITE.
59816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59817         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59818         HAVE_DECL_ISFINITE.
59819
59820 2007-10-28  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59823         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59824
59825 2007-10-28  Bruno Haible  <bruno@clisp.org>
59826
59827         Fix link errors with Sun C 5.0 on Solaris 10.
59828         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59829         function is declared but not present in the compiler's libm.
59830         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59831         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59832         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59833         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59834         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59835         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59836         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59838         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59839         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59840         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59841         HAVE_DECL_FLOORL.
59842
59843 2007-10-28  Bruno Haible  <bruno@clisp.org>
59844
59845         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59846         gl_FUNC_FLOORL. Cache the result.
59847         (gl_FUNC_FLOORL): Use it.
59848         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59849         gl_FUNC_CEILL. Cache the result.
59850         (gl_FUNC_CEILL): Use it.
59851
59852         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59853         gl_FUNC_FLOOR. Cache the result.
59854         (gl_FUNC_FLOOR): Use it.
59855         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59856         gl_FUNC_CEIL. Cache the result.
59857         (gl_FUNC_CEIL): Use it.
59858
59859         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59860         gl_FUNC_FLOORF. Cache the result.
59861         (gl_FUNC_FLOORF): Use it.
59862         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59863         gl_FUNC_CEILF. Cache the result.
59864         (gl_FUNC_CEILF): Use it.
59865
59866 2007-10-28  Bruno Haible  <bruno@clisp.org>
59867
59868         * gnulib-tool: Allow specifying the LGPL version number through
59869         --lgpl=2 or --lgpl=3.
59870         (func_usage): Document --lgpl with argument.
59871         Handle --lgpl=... arguments.
59872         (func_import): Recognize also gl_LGPL calls with an argument. When
59873         --lgpl=2 is used and the module's license is just LGPL, report an
59874         error. Set sed_transform_lib_file according to the lgpl variable. In
59875         the generated files, use --lgpl or gl_LGPL invocations with argument,
59876         if necessary.
59877         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59878         an LGPv2+ license.
59879         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59880         gl_LGPL macro.
59881
59882 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59883             Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59886         (u16_uctomb_aux): Likewise.
59887         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59888         !HAVE_INLINE.
59889         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59890
59891 2007-10-28  Bruno Haible  <bruno@clisp.org>
59892
59893         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59894         Invoke AM_GETTEXT_OPTION if it exists.
59895         * modules/vasprintf: Likewise.
59896         * modules/verror: Likewise.
59897         * modules/xprintf: Likewise.
59898         * modules/xvasprintf: Likewise.
59899
59900 2007-10-27  Ben Pfaff  <blp@gnu.org>
59901
59902         * lib/math.in.h: Define isfinite macro and prototypes for
59903         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59904         implementations.
59905         * m4/math_h.m4: New substitutions for isfinite module.
59906         * lib/isfinite.c: New file.
59907         * m4/isfinite.m4: New file.
59908         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59909         * modules/isfinite: New file.
59910         * modules/isfinite-tests: New file.
59911         * tests/tests-isfinite.c: New file.
59912         * doc/functions/isfinite.texi: Mention isfinite module.
59913         * MODULES.html.sh: Mention new module.
59914
59915 2007-10-27  Ben Pfaff  <blp@gnu.org>
59916
59917         Ralf Wildenhues reported that Tru64 4.0D declares the round
59918         functions but does not have definitions.
59919         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59920         cannot be found in any library, set the output variable to
59921         "missing" instead of "".
59922         * m4/round.m4: Also use our substitute if we cannot find round in
59923         any library, even if it is declared.
59924         * m4/roundf.m4: Likewise for roundf.
59925         * m4/roundl.m4: Likewise for roundl.
59926         * lib/math.in.h: Undefine roundf, round, roundl before defining
59927         their replacements, to allow for hypothetical systems where these
59928         may be defined as macros but not available in libraries.
59929
59930 2007-10-27  Bruno Haible  <bruno@clisp.org>
59931
59932         * doc/gnulib.texi: Invoke @firstparagraphindent.
59933         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59934         changes in gnulib.
59935         (Source changes): New section.
59936
59937 2007-10-26  Bruno Haible  <bruno@clisp.org>
59938
59939         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59940         borrowed from autoconf.
59941
59942 2007-10-26  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59945         strerror returned the empty string. Needed on HP-UX 11.00.
59946
59947 2007-10-24  Micah Cowan  <micah@cowan.name>
59948
59949         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59950         * build-aux/bootstrap: Remove support for now-unnecessary option,
59951         --cvs-user, and envvars CVS_USER, CVS_RSH.
59952
59953 2007-10-24  Jim Meyering  <meyering@redhat.com>
59954
59955         Avoid diagnostics from sha1sum when there is no cached checksum.
59956         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59957         if the po.s1 file hasn't been created yet.
59958
59959         * build-aux/bootstrap: Sync from coreutils:
59960         2007-10-24  Jim Meyering  <meyering@redhat.com>
59961         Get gnulib from the git repository, not from an obsolete cvs one.
59962         * build-aux/bootstrap: Suggestion from Micah Cowan.
59963         2007-10-04  Jim Meyering  <jim@meyering.net>
59964         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59965         (update_po_files): Work also when there are no .po files in po/.
59966
59967 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * README: Append ".git" to git and cg examples.
59970         Problem reported by Benoit Sigoure.
59971
59972 2007-10-23  Micah Cowan  <micah@cowan.name>
59973
59974         * users.txt: Add wget.
59975
59976 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59977
59978         Fix linking of some unistdio tests on FreeBSD.
59979         * modules/unistdio/u16-vsnprintf-tests
59980         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59981         * modules/unistdio/u16-vsprintf-tests
59982         (test_u16_vsnprintf1_LDADD): Likewise.
59983         * modules/unistdio/u32-vsnprintf-tests
59984         (test_u32_vsnprintf1_LDADD): Likewise.
59985         * modules/unistdio/u32-vsprintf-tests
59986         (test_u32_vsprintf1_LDADD): Likewise.
59987         * modules/unistdio/u8-vsnprintf-tests
59988         (test_u8_vsnprintf1_LDADD): Likewise.
59989         * modules/unistdio/u8-vsprintf-tests
59990         (test_u8_vsprintf1_LDADD): Likewise.
59991         * modules/unistdio/ulc-vsnprintf-tests
59992         (test_ulc_vsnprintf1_LDADD): Likewise.
59993         * modules/unistdio/ulc-vsprintf-tests
59994         (test_ulc_vsprintf1_LDADD): Likewise.
59995
59996         Fix linking of some uniconv tests on FreeBSD.
59997         * modules/uniconv/u16-conv-from-enc-tests
59998         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59999         * modules/uniconv/u16-conv-to-enc-tests
60000         (test_u16_conv_to_enc_LDADD): Likewise.
60001         * modules/uniconv/u16-strconv-from-enc-tests
60002         (test_u16_strconv_from_enc_LDADD): Likewise.
60003         * modules/uniconv/u16-strconv-to-enc-tests
60004         (test_u16_strconv_to_enc_LDADD): Likewise.
60005         * modules/uniconv/u32-conv-from-enc-tests
60006         (test_u32_conv_from_enc_LDADD): Likewise.
60007         * modules/uniconv/u32-conv-to-enc-tests
60008         (test_u32_conv_to_enc_LDADD): Likewise.
60009         * modules/uniconv/u32-strconv-from-enc-tests
60010         (test_u32_strconv_from_enc_LDADD): Likewise.
60011         * modules/uniconv/u32-strconv-to-enc-tests
60012         (test_u32_strconv_to_enc_LDADD): Likewise.
60013         * modules/uniconv/u8-conv-from-enc-tests
60014         (test_u8_conv_from_enc_LDADD): Likewise.
60015         * modules/uniconv/u8-conv-to-enc-tests
60016         (test_u8_conv_to_enc_LDADD): Likewise.
60017         * modules/uniconv/u8-strconv-from-enc-tests
60018         (test_u8_strconv_from_enc_LDADD): Likewise.
60019         * modules/uniconv/u8-strconv-to-enc-tests
60020         (test_u8_strconv_to_enc_LDADD): Likewise.
60021
60022 2007-10-22  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60025         size.
60026
60027 2007-10-22  Eric Blake  <ebb9@byu.net>
60028
60029         Tweak x*printf documentation.
60030         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60031         variable name and comments.
60032         Suggested by Bruno Haible.
60033
60034 2007-10-22  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/acl.c (copy_acl): Fix file name in comment.
60037
60038 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         Fix Tru64 problem with stdbool.h.
60041         * lib/stdbool.in.h (false, true):
60042         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60043         Don't declare as an enum in this situation; it runs afoul of Tru64.
60044         Problem reported by Steven M. Schweda in
60045         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60046
60047 2007-10-22  Eric Blake  <ebb9@byu.net>
60048
60049         Also wrap vf?printf.
60050         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60051         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60052         (xvprintf, xvfprintf): New functions.
60053
60054 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60055
60056         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60057         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60058
60059         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60060         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60061
60062 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60063
60064         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60065         by Bruno Haible.
60066
60067 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60068
60069         * lib/getloadavg.c
60070         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60071         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60072
60073         * tests/test-i-ring.c: Work for C89.
60074
60075 2007-10-22  Bruno Haible  <bruno@clisp.org>
60076
60077         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60078         -1u, in preprocessor expression, so that we don't test for the bug
60079         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60081
60082 2007-10-22  Eric Blake  <ebb9@byu.net>
60083
60084         * tests/test-yesno.sh: Silence stderr during test.
60085
60086 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60087
60088         * modules/crypto/gc-camellia: New file.
60089
60090         * m4/gc-camellia.m4: New file.
60091
60092         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60093
60094         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60095
60096 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60097
60098         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60099         --help to stdout.  Reported by sms@antinode.org (Steven
60100         M. Schweda).
60101
60102 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60103
60104         * users.txt: Fix link to libksba.
60105
60106 2007-10-21  Ben Pfaff  <blp@gnu.org>
60107
60108         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60109         round.c roundf implementation that depends on floorf and ceilf to
60110         be tested unconditionally.
60111
60112 2007-10-21  Ben Pfaff  <blp@gnu.org>
60113
60114         * m4/check-libm-func.m4: Removed.
60115         * m4/check-math-lib.m4: New file.
60116         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60117         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60118         definition and lack of AC_LIBOBJ([roundf]).
60119         * m4/roundl.m4: Ditto, and similarly for roundl.
60120         * modules/round: Reference new m4 file.
60121         * modules/roundf: Ditto.
60122         * modules/roundl: Ditto.
60123         * tests/test-round2.c (main): Use ROUND instead of round.
60124         Bug report from Bruno Haible.
60125
60126 2007-10-21  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60129         context.
60130
60131 2007-10-21  Bruno Haible  <bruno@clisp.org>
60132
60133         * tests/test-wcwidth.c (main): Allow negative result for some control
60134         characters.
60135
60136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60137         Needed on OSF/1 5.1.
60138
60139 2007-10-21  Bruno Haible  <bruno@clisp.org>
60140
60141         * tests/test-floorf1.c: Include isnanf.h.
60142         (main): Use isnanf() instead of isnan().
60143         * tests/test-ceilf1.c: Include isnanf.h.
60144         (main): Use isnanf() instead of isnan().
60145         * tests/test-truncf1.c: Include isnanf.h.
60146         (main): Use isnanf() instead of isnan().
60147         * tests/test-roundf1.c: Include isnanf.h.
60148         (main): Use isnanf() instead of isnan().
60149
60150 2007-10-21  Eric Blake  <ebb9@byu.net>
60151
60152         * users.txt: Update URL for m4.
60153
60154 2007-10-21  Bruno Haible  <bruno@clisp.org>
60155
60156         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60157
60158 2007-10-21  Bruno Haible  <bruno@clisp.org>
60159
60160         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60161         Git's management files if the CVS files are not present.
60162
60163 2007-10-20  Bruno Haible  <bruno@clisp.org>
60164
60165         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60166         gcc-3.4.x.
60167
60168 2007-10-20  Ben Pfaff  <blp@gnu.org>
60169
60170         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60171         implementations.
60172         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60173         * lib/round.c: New file.
60174         * lib/roundf.c: New file.
60175         * lib/roundl.c: New file.
60176         * m4/round.m4: New file.
60177         * m4/roundf.m4: New file.
60178         * m4/roundl.m4: New file.
60179         * m4/check-libm-func-m4: New file.
60180         * modules/math: Replace round, roundf, roundl related @VARS@ in
60181         math.in.h.
60182         * modules/round: New file.
60183         * modules/round-tests: New file.
60184         * modules/roundf: New file.
60185         * modules/roundf-tests: New file.
60186         * modules/roundl: New file.
60187         * modules/roundl-tests: New file.
60188         * tests/test-round1.c: New file.
60189         * tests/test-round2.c: New file.
60190         * tests/test-roundf1.c: New file.
60191         * tests/test-roundf2.c: New file.
60192         * tests/test-roundl.c: New file.
60193         * doc/functions/round.texi: Mention round module.
60194         * doc/functions/roundf.texi: Mention roundf module.
60195         * doc/functions/roundl.texi: Mention roundl module.
60196         * MODULES.html.sh: Mention new modules.
60197         Thanks to Bruno Haible for suggestions.
60198
60199 2007-10-20  Jim Meyering  <meyering@redhat.com>
60200
60201         * lib/xprintf.c: Include <config.h> unconditionally.
60202
60203         Change xprintf's license to GPL.
60204         * modules/xprintf (License): s/LGPL/GPL/, since this module
60205         depends on modules (exit and exitfail) which are GPL.
60206         Suggestion from Bruno Haible.
60207
60208         xprintf fixes.
60209         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60210         Use a clearer diagnostic.
60211         Patch from Bruno Haible.
60212
60213 2007-10-20  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60216         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60218
60219 2007-10-20  Bruno Haible  <bruno@clisp.org>
60220
60221         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60222         precision in the comparison result > x - 1 or similar.
60223         * tests/test-ceilf2.c (correct_result_p): Likewise.
60224         * tests/test-truncf2.c (correct_result_p): Likewise.
60225         * tests/test-trunc2.c (correct_result_p): Likewise.
60226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60227
60228 2007-10-20  Bruno Haible  <bruno@clisp.org>
60229
60230         * modules/ceil: New file.
60231         * m4/ceil.m4: New file.
60232         * doc/functions/ceil.texi: Mention the 'ceil' module.
60233
60234 2007-10-20  Bruno Haible  <bruno@clisp.org>
60235
60236         * modules/floor: New file.
60237         * m4/floor.m4: New file.
60238         * doc/functions/floor.texi: Mention the 'floor' module.
60239
60240 2007-10-20  Bruno Haible  <bruno@clisp.org>
60241
60242         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60243         of %a.
60244         * modules/floorf-tests (Depends-on): Likewise.
60245         * modules/truncf-tests (Depends-on): Likewise.
60246         * modules/trunc-tests (Depends-on): Likewise.
60247         Reported by Ben Pfaff.
60248
60249 2007-10-19  Jim Meyering  <meyering@redhat.com>
60250
60251         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60252         Don't bother testing specific errno values.  Just test ferror.
60253
60254         New module: xprintf
60255         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60256
60257 2007-10-19  Bruno Haible  <bruno@clisp.org>
60258
60259         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60260         syntax.
60261         * modules/javaexec (Makefile.am): Likewise.
60262         * modules/relocatable-prog (Makefile.am): Likewise.
60263         Suggested by Jim Meyering.
60264
60265 2007-10-18  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60268         Reported by Jim Meyering.
60269
60270 2007-10-18  Eric Blake  <ebb9@byu.net>
60271
60272         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60273
60274 2007-10-18  Bruno Haible  <bruno@clisp.org>
60275
60276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60277         the format string into writable memory. Needed in Fortify conditions.
60278
60279 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60280             Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60283         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60284         * modules/trim (Depends-on): Add mbchar.
60285         (configure.ac): Add gl_FUNC_MBRTOWC.
60286         (Makefile.am): Augment lib_SOURCES.
60287
60288 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60289
60290         Modify glob.c to use fstatat and dirfd, to simplify it.
60291         Suggested by Eric Blake.
60292         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60293         Don't include <stdbool.h>; not used.
60294         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60295         (link_exists_p): Simplify implementation, since we can now assume
60296         dirfd and fstatat.
60297         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60298
60299 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60300
60301         * gnulib-tool (func_get_dependencies): Fix sed script to
60302         match only tests.
60303
60304 2007-10-17  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60307         allow locale names without encoding suffix.
60308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60309         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60310
60311 2007-10-16  Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60314         * lib/getgroups.c (getgroups): Likewise.
60315         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60316
60317 2007-10-16  Bruno Haible  <bruno@clisp.org>
60318
60319         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60320         * modules/malloc-posix (License): Likewise.
60321         * modules/realloc-posix (License): Likewise.
60322         * modules/calloc-posix (License): Likewise.
60323         * modules/intprops (License): Change from GPL to LGPL, with
60324         Paul Eggert's approval.
60325
60326 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         Merge glibc changes into lib/glob.c.
60329
60330         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60331         2007-10-15 04:59:03 UTC.  Here are the changes:
60332
60333         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60334
60335         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60336
60337         * lib/glob.c: Add some branch prediction throughout.
60338
60339         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60340
60341         [BZ #5103]
60342         * lib/glob.c (glob): Recognize patterns starting \/.
60343
60344         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60345
60346         [BZ #3996]
60347         * lib/glob.c (attribute_hidden): Define if not defined.
60348         (glob): Unescape dirname, filename or username when needed and not
60349         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60350         is NULL.  Handle unescaped [ in pattern without closing ].
60351         Don't pass GLOB_CHECK down to recursive glob for directories.
60352         (__glob_pattern_type): New function.
60353         (__glob_pattern_p): Implement using __glob_pattern_type.
60354         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60355         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60356         Remove unreachable code.
60357
60358         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60359
60360         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60361         explain why there are no leaks.
60362
60363         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60364
60365         [BZ #3253]
60366         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60367         time, rather allocate increasingly bigger arrays of pointers, if
60368         possible with alloca, if too large with malloc.
60369
60370 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60373         Problem reported by H.Merijn Brand in
60374         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60375         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60376         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60377
60378 2007-10-15  Bruno Haible  <bruno@clisp.org>
60379
60380         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60381         with explicit rpl_ prefix.
60382         * lib/fopen.c (fopen): Likewise.
60383         * lib/freopen.c (freopen): Likewise.
60384         * lib/iconv.c (iconv): Likewise.
60385         * lib/iconv_close.c (iconv_close): Likewise.
60386
60387 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60388
60389         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60390
60391 2007-10-15  Bruno Haible  <bruno@clisp.org>
60392
60393         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60394         <stddef.h> instead of <stdlib.h> since we only need NULL.
60395         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60396
60397 2007-10-15  Bruno Haible  <bruno@clisp.org>
60398
60399         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60400         Replace paragraph talking about LIBOBJS.
60401         Reported by Colin Watson <cjwatson@debian.org>.
60402
60403 2007-10-15  Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60406         <stdlib.h> before using NULL.
60407
60408 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60409
60410         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60411         Reported by Albert Chin <china@thewrittenword.com>.
60412
60413 2007-10-14  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/iconv_open-utf-tests: New file.
60416         * tests/test-iconv-utf.c: New file.
60417
60418         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60419         * modules/iconv_open-utf: New file.
60420         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60421         (iconv, iconv_close): New declarations.
60422         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60423         be defined.
60424         (iconv_open): Add special handling of conversion between UTF-8 and
60425         UTF-{16,32}{BE,LE}.
60426         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60427         * lib/iconv_close.c: New file.
60428         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60429         gl_FUNC_ICONV_OPEN.
60430         (gl_FUNC_ICONV_OPEN): Use it.
60431         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60432         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60433         and REPLACE_ICONV_UTF.
60434         * modules/iconv_open (Depends-on): Add c-strcase.
60435         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60436         ICONV_CONST.
60437         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60438
60439 2007-10-13  Albert Chin  <china@thewrittenword.com>
60440             Bruno Haible  <bruno@clisp.org>
60441
60442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60443         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60444
60445 2007-10-13  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60448         defined, use the ISO C99 inline semantics.
60449         * lib/argp.h (ARGP_EI): Likewise.
60450
60451 2007-10-13  Bruno Haible  <bruno@clisp.org>
60452
60453         Handle 'inline' change in gcc 4.3.0.
60454         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60455         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60456         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60457         argp_fmtstream_point): Disable 'extern' declaration if the function
60458         definition is going to be provided inline.
60459         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60460         semantics, not the ISO C99 inline semantics.
60461         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60462         'extern' declaration if the function definition is going to be provided
60463         inline.
60464         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60465         the GNU C inline semantics, not the ISO C99 inline semantics. With
60466         GCC 4.2, avoid a warning.
60467
60468 2007-10-13  Bruno Haible  <bruno@clisp.org>
60469
60470         * lib/freading.h (freading): Enable the use of __freading for
60471         glibc >= 2.7.
60472         * lib/freading.c (freading): Likewise.
60473
60474 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60477         "warning: C99 inline functions are not supported; using GNU89".
60478
60479 2007-10-12  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60482         of 2.
60483         * tests/test-ceilf2.c: New file.
60484         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60485
60486         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60487         * modules/ceilf-tests: Update.
60488
60489 2007-10-12  Bruno Haible  <bruno@clisp.org>
60490
60491         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60492         of 2.
60493         * tests/test-floorf2.c: New file.
60494         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60495
60496         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60497         * modules/floorf-tests: Update.
60498
60499 2007-10-12  Bruno Haible  <bruno@clisp.org>
60500
60501         * tests/test-trunc2.c: New file.
60502         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60503
60504         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60505         * modules/trunc-tests: Update.
60506
60507 2007-10-12  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60510         of 2.
60511         * tests/test-truncf2.c: New file.
60512         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60513
60514         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60515         * modules/truncf-tests: Update.
60516
60517 2007-10-11  Eric Blake  <ebb9@byu.net>
60518
60519         Don't claim strerror is broken on Interix.
60520         * doc/functions/strerror.texi (strerror): Known broken systems are
60521         now Solaris 8, and not Interix.
60522         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60523         Interix on cross-compile.
60524         Reported by Martin Koeppe in
60525         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60526
60527 2007-10-11  Bruno Haible  <bruno@clisp.org>
60528
60529         * modules/i-ring-tests: New file.
60530         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60531         instead of assert.
60532
60533 2007-10-11  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/filenamecat-tests: New file.
60536         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60537         * lib/filenamecat.c: Remove test code.
60538
60539 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60542
60543         * lib/strerror.c: Include <string.h> always, to test interface,
60544         and to remove the need for the dummy.
60545         Include intprops.h to compute width instead of doing it ourselves
60546         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60547         (strerror): Define it to return NULL if there's no system strerror.
60548         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60549         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60550         ancient pre-strerror Unix systems well any more.  Saying "unknown
60551         system error" is enough.
60552         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60553         simpler strerror.c implementation.
60554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60555         Simplify the tests to reflect the simpler strerror implementation.
60556         * modules/strerror (Depends-on): Add intprops.
60557
60558 2007-10-09  Eric Blake  <ebb9@byu.net>
60559
60560         Silence test-fpending.
60561         * modules/fpending-tests (Files): Add wrapper script.
60562         * tests/test-fpending.sh: New file.
60563
60564 2007-10-09  Bruno Haible  <bruno@clisp.org>
60565
60566         * MODULES.html.sh (func_module): Don't create a hyperlink for
60567         function names like 'printf_frexp'.
60568         (Misc): Add crc, memxor.
60569         (Characteristics of floating types): New section.
60570         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60571         isnanf-nolibm, signbit, trunc, truncf, truncl.
60572         (Enhancements for ISO C 99 functions): New subsection Input/output.
60573         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60574         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60575         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60576         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60577         (Enhancements for POSIX:2001 functions): Add chdir-long.
60578         (File system functions): Add areadlink, chdir-safer, read-file.
60579         Remove cycle-check.
60580         (File system as inode set): New section.
60581         (Date and time): Add gethrxtime.
60582         (Multithreading): Add openmp.
60583         (Internationalization functions): Add localename.
60584         (Unicode string functions): Add unistr/u*-mbsnlen.
60585         (Support for maintaining and releasing projects): Add git-version-gen.
60586         (Lone files): Remove directories.
60587
60588 2007-10-08  Ben Pfaff  <blp@gnu.org>
60589
60590         * lib/xmalloca.h: Fix typo in comment.
60591
60592 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60595         when avoiding problems with integer overflow.  Use a portable test
60596         instead.
60597
60598 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60599
60600         * modules/dummy (License): Change to LGPLv2+.
60601         * modules/float (License): Likewise
60602         * modules/realloc (License): Likewise
60603         * modules/stdlib (License): Likewise
60604
60605 2007-10-07  Bruno Haible  <bruno@clisp.org>
60606
60607         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60608         * floor.c (TWO_MANT_DIG): Likewise.
60609         * ceil.c (TWO_MANT_DIG): Likewise.
60610         Reported by Ben Pfaff.
60611
60612 2007-10-07  Bruno Haible  <bruno@clisp.org>
60613
60614         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60615         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60616         * lib/frexp.c (FUNC): Likewise.
60617         * lib/printf-frexp.h (printf_frexp): Likewise.
60618         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60619         * lib/printf-frexp.c (FUNC): Likewise.
60620         Suggested by Jim Meyering.
60621
60622 2007-10-07  Jim Meyering  <meyering@redhat.com>
60623
60624         Make xnanosleep's integer overflow test more robust.
60625         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60626         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60627
60628 2007-10-07  Bruno Haible  <bruno@clisp.org>
60629
60630         * NEWS: Mention the license change.
60631
60632         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60633         abbreviations in the modules files.
60634
60635         Change copyright notice from GPLv2+ to GPLv3+.
60636         * README: Change copyright notice.
60637         * MODULES.html.sh: Likewise.
60638         * build-aux/bootstrap.conf: Likewise.
60639         * build-aux/config.libpath: Likewise.
60640         * build-aux/csharpcomp.sh.in: Likewise.
60641         * build-aux/csharpexec.sh.in: Likewise.
60642         * build-aux/install-reloc: Likewise.
60643         * build-aux/javacomp.sh.in: Likewise.
60644         * build-aux/javaexec.sh.in: Likewise.
60645         * build-aux/ldd.sh.in: Likewise.
60646         * build-aux/reloc-ldflags: Likewise.
60647         * build-aux/relocatable.sh.in: Likewise.
60648         * build-aux/x-to-1.in: Likewise.
60649         * check-module: Likewise.
60650         * config/srclistvars.sh: Likewise.
60651         * gnulib-tool: Likewise.
60652         * lib/acl-internal.h: Likewise.
60653         * lib/acl.c: Likewise.
60654         * lib/acl.h: Likewise.
60655         * lib/acl_entries.c: Likewise.
60656         * lib/areadlink-with-size.c: Likewise.
60657         * lib/areadlink.c: Likewise.
60658         * lib/areadlink.h: Likewise.
60659         * lib/argmatch.c: Likewise.
60660         * lib/argmatch.h: Likewise.
60661         * lib/argp-ba.c: Likewise.
60662         * lib/argp-eexst.c: Likewise.
60663         * lib/argp-fmtstream.c: Likewise.
60664         * lib/argp-fmtstream.h: Likewise.
60665         * lib/argp-fs-xinl.c: Likewise.
60666         * lib/argp-help.c: Likewise.
60667         * lib/argp-namefrob.h: Likewise.
60668         * lib/argp-parse.c: Likewise.
60669         * lib/argp-pin.c: Likewise.
60670         * lib/argp-pv.c: Likewise.
60671         * lib/argp-pvh.c: Likewise.
60672         * lib/argp-xinl.c: Likewise.
60673         * lib/argp.h: Likewise.
60674         * lib/at-func.c: Likewise.
60675         * lib/atanl.c: Likewise.
60676         * lib/backupfile.c: Likewise.
60677         * lib/backupfile.h: Likewise.
60678         * lib/basename.c: Likewise.
60679         * lib/binary-io.h: Likewise.
60680         * lib/byteswap.in.h: Likewise.
60681         * lib/c-stack.c: Likewise.
60682         * lib/c-stack.h: Likewise.
60683         * lib/c-strcasestr.c: Likewise.
60684         * lib/c-strcasestr.h: Likewise.
60685         * lib/c-strstr.c: Likewise.
60686         * lib/c-strstr.h: Likewise.
60687         * lib/c-strtod.c: Likewise.
60688         * lib/calloc.c: Likewise.
60689         * lib/canon-host.c: Likewise.
60690         * lib/canon-host.h: Likewise.
60691         * lib/canonicalize-lgpl.c: Likewise.
60692         * lib/canonicalize.c: Likewise.
60693         * lib/canonicalize.h: Likewise.
60694         * lib/ceil.c: Likewise.
60695         * lib/ceilf.c: Likewise.
60696         * lib/ceill.c: Likewise.
60697         * lib/chdir-long.c: Likewise.
60698         * lib/chdir-long.h: Likewise.
60699         * lib/chdir-safer.c: Likewise.
60700         * lib/chdir-safer.h: Likewise.
60701         * lib/chown.c: Likewise.
60702         * lib/classpath.c: Likewise.
60703         * lib/classpath.h: Likewise.
60704         * lib/clean-temp.c: Likewise.
60705         * lib/clean-temp.h: Likewise.
60706         * lib/cloexec.c: Likewise.
60707         * lib/close-stream.c: Likewise.
60708         * lib/closein.c: Likewise.
60709         * lib/closein.h: Likewise.
60710         * lib/closeout.c: Likewise.
60711         * lib/closeout.h: Likewise.
60712         * lib/concat-filename.c: Likewise.
60713         * lib/copy-file.c: Likewise.
60714         * lib/copy-file.h: Likewise.
60715         * lib/count-one-bits.h: Likewise.
60716         * lib/crc.c: Likewise.
60717         * lib/crc.h: Likewise.
60718         * lib/creat-safer.c: Likewise.
60719         * lib/csharpcomp.c: Likewise.
60720         * lib/csharpcomp.h: Likewise.
60721         * lib/csharpexec.c: Likewise.
60722         * lib/csharpexec.h: Likewise.
60723         * lib/cycle-check.c: Likewise.
60724         * lib/cycle-check.h: Likewise.
60725         * lib/diacrit.c: Likewise.
60726         * lib/diacrit.h: Likewise.
60727         * lib/diffseq.h: Likewise.
60728         * lib/dirchownmod.c: Likewise.
60729         * lib/dirent.in.h: Likewise.
60730         * lib/dirfd.c: Likewise.
60731         * lib/dirfd.h: Likewise.
60732         * lib/dirname.c: Likewise.
60733         * lib/dirname.h: Likewise.
60734         * lib/dummy.c: Likewise.
60735         * lib/dup-safer.c: Likewise.
60736         * lib/dup2.c: Likewise.
60737         * lib/eealloc.h: Likewise.
60738         * lib/error.c: Likewise.
60739         * lib/error.h: Likewise.
60740         * lib/euidaccess.c: Likewise.
60741         * lib/exclude.c: Likewise.
60742         * lib/exclude.h: Likewise.
60743         * lib/execute.c: Likewise.
60744         * lib/execute.h: Likewise.
60745         * lib/exitfail.c: Likewise.
60746         * lib/exitfail.h: Likewise.
60747         * lib/expl.c: Likewise.
60748         * lib/fatal-signal.c: Likewise.
60749         * lib/fatal-signal.h: Likewise.
60750         * lib/fbufmode.c: Likewise.
60751         * lib/fbufmode.h: Likewise.
60752         * lib/fchdir.c: Likewise.
60753         * lib/fchmodat.c: Likewise.
60754         * lib/fchownat.c: Likewise.
60755         * lib/fcntl--.h: Likewise.
60756         * lib/fcntl-safer.h: Likewise.
60757         * lib/fcntl.in.h: Likewise.
60758         * lib/fd-safer.c: Likewise.
60759         * lib/fflush.c: Likewise.
60760         * lib/file-has-acl.c: Likewise.
60761         * lib/file-set.c: Likewise.
60762         * lib/file-type.c: Likewise.
60763         * lib/file-type.h: Likewise.
60764         * lib/fileblocks.c: Likewise.
60765         * lib/filemode.c: Likewise.
60766         * lib/filemode.h: Likewise.
60767         * lib/filename.h: Likewise.
60768         * lib/filenamecat.c: Likewise.
60769         * lib/filenamecat.h: Likewise.
60770         * lib/findprog.c: Likewise.
60771         * lib/findprog.h: Likewise.
60772         * lib/float.in.h: Likewise.
60773         * lib/floor.c: Likewise.
60774         * lib/floorf.c: Likewise.
60775         * lib/floorl.c: Likewise.
60776         * lib/fopen-safer.c: Likewise.
60777         * lib/fopen.c: Likewise.
60778         * lib/fpending.c: Likewise.
60779         * lib/fpending.h: Likewise.
60780         * lib/fprintf.c: Likewise.
60781         * lib/fprintftime.h: Likewise.
60782         * lib/fpucw.h: Likewise.
60783         * lib/fpurge.c: Likewise.
60784         * lib/fpurge.h: Likewise.
60785         * lib/freadable.c: Likewise.
60786         * lib/freadable.h: Likewise.
60787         * lib/freadahead.c: Likewise.
60788         * lib/freadahead.h: Likewise.
60789         * lib/freading.c: Likewise.
60790         * lib/freading.h: Likewise.
60791         * lib/free.c: Likewise.
60792         * lib/freopen.c: Likewise.
60793         * lib/frexp.c: Likewise.
60794         * lib/frexpl.c: Likewise.
60795         * lib/fseek.c: Likewise.
60796         * lib/fseterr.c: Likewise.
60797         * lib/fseterr.h: Likewise.
60798         * lib/fstatat.c: Likewise.
60799         * lib/fstrcmp.c: Likewise.
60800         * lib/fstrcmp.h: Likewise.
60801         * lib/fsusage.c: Likewise.
60802         * lib/fsusage.h: Likewise.
60803         * lib/ftell.c: Likewise.
60804         * lib/ftello.c: Likewise.
60805         * lib/fts-cycle.c: Likewise.
60806         * lib/fts.c: Likewise.
60807         * lib/fts_.h: Likewise.
60808         * lib/full-read.c: Likewise.
60809         * lib/full-read.h: Likewise.
60810         * lib/full-write.c: Likewise.
60811         * lib/full-write.h: Likewise.
60812         * lib/fwritable.c: Likewise.
60813         * lib/fwritable.h: Likewise.
60814         * lib/fwriteerror.c: Likewise.
60815         * lib/fwriteerror.h: Likewise.
60816         * lib/fwriting.c: Likewise.
60817         * lib/fwriting.h: Likewise.
60818         * lib/gcd.c: Likewise.
60819         * lib/gcd.h: Likewise.
60820         * lib/getcwd.c: Likewise.
60821         * lib/getdate.h: Likewise.
60822         * lib/getdate.y: Likewise.
60823         * lib/getdomainname.c: Likewise.
60824         * lib/getdomainname.h: Likewise.
60825         * lib/getgroups.c: Likewise.
60826         * lib/gethostname.c: Likewise.
60827         * lib/gethrxtime.c: Likewise.
60828         * lib/gethrxtime.h: Likewise.
60829         * lib/getloadavg.c: Likewise.
60830         * lib/getndelim2.c: Likewise.
60831         * lib/getndelim2.h: Likewise.
60832         * lib/getnline.c: Likewise.
60833         * lib/getnline.h: Likewise.
60834         * lib/getopt.c: Likewise.
60835         * lib/getopt.in.h: Likewise.
60836         * lib/getopt1.c: Likewise.
60837         * lib/getopt_int.h: Likewise.
60838         * lib/getpagesize.h: Likewise.
60839         * lib/getsubopt.c: Likewise.
60840         * lib/gettime.c: Likewise.
60841         * lib/getugroups.c: Likewise.
60842         * lib/getugroups.h: Likewise.
60843         * lib/getusershell.c: Likewise.
60844         * lib/gl_anyavltree_list1.h: Likewise.
60845         * lib/gl_anyavltree_list2.h: Likewise.
60846         * lib/gl_anyhash_list1.h: Likewise.
60847         * lib/gl_anyhash_list2.h: Likewise.
60848         * lib/gl_anylinked_list1.h: Likewise.
60849         * lib/gl_anylinked_list2.h: Likewise.
60850         * lib/gl_anyrbtree_list1.h: Likewise.
60851         * lib/gl_anyrbtree_list2.h: Likewise.
60852         * lib/gl_anytree_list1.h: Likewise.
60853         * lib/gl_anytree_list2.h: Likewise.
60854         * lib/gl_anytree_oset.h: Likewise.
60855         * lib/gl_anytreehash_list1.h: Likewise.
60856         * lib/gl_anytreehash_list2.h: Likewise.
60857         * lib/gl_array_list.c: Likewise.
60858         * lib/gl_array_list.h: Likewise.
60859         * lib/gl_array_oset.c: Likewise.
60860         * lib/gl_array_oset.h: Likewise.
60861         * lib/gl_avltree_list.c: Likewise.
60862         * lib/gl_avltree_list.h: Likewise.
60863         * lib/gl_avltree_oset.c: Likewise.
60864         * lib/gl_avltree_oset.h: Likewise.
60865         * lib/gl_avltreehash_list.c: Likewise.
60866         * lib/gl_avltreehash_list.h: Likewise.
60867         * lib/gl_carray_list.c: Likewise.
60868         * lib/gl_carray_list.h: Likewise.
60869         * lib/gl_linked_list.c: Likewise.
60870         * lib/gl_linked_list.h: Likewise.
60871         * lib/gl_linkedhash_list.c: Likewise.
60872         * lib/gl_linkedhash_list.h: Likewise.
60873         * lib/gl_list.c: Likewise.
60874         * lib/gl_list.h: Likewise.
60875         * lib/gl_oset.c: Likewise.
60876         * lib/gl_oset.h: Likewise.
60877         * lib/gl_rbtree_list.c: Likewise.
60878         * lib/gl_rbtree_list.h: Likewise.
60879         * lib/gl_rbtree_oset.c: Likewise.
60880         * lib/gl_rbtree_oset.h: Likewise.
60881         * lib/gl_rbtreehash_list.c: Likewise.
60882         * lib/gl_rbtreehash_list.h: Likewise.
60883         * lib/gl_sublist.c: Likewise.
60884         * lib/gl_sublist.h: Likewise.
60885         * lib/group-member.c: Likewise.
60886         * lib/group-member.h: Likewise.
60887         * lib/hard-locale.c: Likewise.
60888         * lib/hard-locale.h: Likewise.
60889         * lib/hash-pjw.c: Likewise.
60890         * lib/hash-pjw.h: Likewise.
60891         * lib/hash-triple.c: Likewise.
60892         * lib/hash.c: Likewise.
60893         * lib/hash.h: Likewise.
60894         * lib/human.c: Likewise.
60895         * lib/human.h: Likewise.
60896         * lib/i-ring.c: Likewise.
60897         * lib/i-ring.h: Likewise.
60898         * lib/idcache.c: Likewise.
60899         * lib/imaxabs.c: Likewise.
60900         * lib/imaxdiv.c: Likewise.
60901         * lib/inet_pton.c: Likewise.
60902         * lib/inet_pton.h: Likewise.
60903         * lib/intprops.h: Likewise.
60904         * lib/inttostr.c: Likewise.
60905         * lib/inttostr.h: Likewise.
60906         * lib/inttypes.in.h: Likewise.
60907         * lib/isapipe.c: Likewise.
60908         * lib/isdir.c: Likewise.
60909         * lib/isnan.c: Likewise.
60910         * lib/isnan.h: Likewise.
60911         * lib/isnanf.c: Likewise.
60912         * lib/isnanf.h: Likewise.
60913         * lib/isnanl-nolibm.h: Likewise.
60914         * lib/isnanl.c: Likewise.
60915         * lib/isnanl.h: Likewise.
60916         * lib/javacomp.c: Likewise.
60917         * lib/javacomp.h: Likewise.
60918         * lib/javaexec.c: Likewise.
60919         * lib/javaexec.h: Likewise.
60920         * lib/javaversion.c: Likewise.
60921         * lib/javaversion.h: Likewise.
60922         * lib/javaversion.java: Likewise.
60923         * lib/lbrkprop.h: Likewise.
60924         * lib/lchmod.h: Likewise.
60925         * lib/lchown.c: Likewise.
60926         * lib/ldexpl.c: Likewise.
60927         * lib/linebreak.c: Likewise.
60928         * lib/linebreak.h: Likewise.
60929         * lib/linebuffer.c: Likewise.
60930         * lib/linebuffer.h: Likewise.
60931         * lib/locale.in.h: Likewise.
60932         * lib/logl.c: Likewise.
60933         * lib/long-options.c: Likewise.
60934         * lib/long-options.h: Likewise.
60935         * lib/lstat.c: Likewise.
60936         * lib/lstat.h: Likewise.
60937         * lib/math.in.h: Likewise.
60938         * lib/mbchar.c: Likewise.
60939         * lib/mbchar.h: Likewise.
60940         * lib/mbfile.h: Likewise.
60941         * lib/mbiter.h: Likewise.
60942         * lib/mbscasecmp.c: Likewise.
60943         * lib/mbscasestr.c: Likewise.
60944         * lib/mbschr.c: Likewise.
60945         * lib/mbscspn.c: Likewise.
60946         * lib/mbslen.c: Likewise.
60947         * lib/mbsncasecmp.c: Likewise.
60948         * lib/mbsnlen.c: Likewise.
60949         * lib/mbspbrk.c: Likewise.
60950         * lib/mbspcasecmp.c: Likewise.
60951         * lib/mbsrchr.c: Likewise.
60952         * lib/mbssep.c: Likewise.
60953         * lib/mbsspn.c: Likewise.
60954         * lib/mbsstr.c: Likewise.
60955         * lib/mbstok_r.c: Likewise.
60956         * lib/mbswidth.c: Likewise.
60957         * lib/mbswidth.h: Likewise.
60958         * lib/mbuiter.h: Likewise.
60959         * lib/memcasecmp.c: Likewise.
60960         * lib/memcasecmp.h: Likewise.
60961         * lib/memchr.c: Likewise.
60962         * lib/memcmp.c: Likewise.
60963         * lib/memcoll.c: Likewise.
60964         * lib/memcoll.h: Likewise.
60965         * lib/memcpy.c: Likewise.
60966         * lib/memrchr.c: Likewise.
60967         * lib/mkancesdirs.c: Likewise.
60968         * lib/mkdir-p.c: Likewise.
60969         * lib/mkdir-p.h: Likewise.
60970         * lib/mkdir.c: Likewise.
60971         * lib/mkdirat.c: Likewise.
60972         * lib/mkdtemp.c: Likewise.
60973         * lib/mkstemp-safer.c: Likewise.
60974         * lib/mkstemp.c: Likewise.
60975         * lib/modechange.c: Likewise.
60976         * lib/modechange.h: Likewise.
60977         * lib/mountlist.c: Likewise.
60978         * lib/mountlist.h: Likewise.
60979         * lib/mpsort.c: Likewise.
60980         * lib/nanosleep.c: Likewise.
60981         * lib/obstack.c: Likewise.
60982         * lib/obstack.h: Likewise.
60983         * lib/open-safer.c: Likewise.
60984         * lib/open.c: Likewise.
60985         * lib/openat-die.c: Likewise.
60986         * lib/openat-priv.h: Likewise.
60987         * lib/openat-proc.c: Likewise.
60988         * lib/openat.c: Likewise.
60989         * lib/openat.h: Likewise.
60990         * lib/pagealign_alloc.c: Likewise.
60991         * lib/pagealign_alloc.h: Likewise.
60992         * lib/physmem.c: Likewise.
60993         * lib/physmem.h: Likewise.
60994         * lib/pipe-safer.c: Likewise.
60995         * lib/pipe.c: Likewise.
60996         * lib/pipe.h: Likewise.
60997         * lib/posixtm.c: Likewise.
60998         * lib/posixtm.h: Likewise.
60999         * lib/posixver.c: Likewise.
61000         * lib/printf-frexp.c: Likewise.
61001         * lib/printf-frexp.h: Likewise.
61002         * lib/printf-frexpl.c: Likewise.
61003         * lib/printf-frexpl.h: Likewise.
61004         * lib/printf.c: Likewise.
61005         * lib/progname.c: Likewise.
61006         * lib/progname.h: Likewise.
61007         * lib/progreloc.c: Likewise.
61008         * lib/putenv.c: Likewise.
61009         * lib/quote.c: Likewise.
61010         * lib/quote.h: Likewise.
61011         * lib/quotearg.c: Likewise.
61012         * lib/quotearg.h: Likewise.
61013         * lib/raise.c: Likewise.
61014         * lib/readline.c: Likewise.
61015         * lib/readline.h: Likewise.
61016         * lib/readlink.c: Likewise.
61017         * lib/readtokens.c: Likewise.
61018         * lib/readtokens.h: Likewise.
61019         * lib/readtokens0.c: Likewise.
61020         * lib/readtokens0.h: Likewise.
61021         * lib/readutmp.c: Likewise.
61022         * lib/readutmp.h: Likewise.
61023         * lib/realloc.c: Likewise.
61024         * lib/relocwrapper.c: Likewise.
61025         * lib/rename-dest-slash.c: Likewise.
61026         * lib/rename.c: Likewise.
61027         * lib/rmdir.c: Likewise.
61028         * lib/rpmatch.c: Likewise.
61029         * lib/safe-read.c: Likewise.
61030         * lib/safe-read.h: Likewise.
61031         * lib/safe-write.c: Likewise.
61032         * lib/safe-write.h: Likewise.
61033         * lib/same-inode.h: Likewise.
61034         * lib/same.c: Likewise.
61035         * lib/same.h: Likewise.
61036         * lib/save-cwd.c: Likewise.
61037         * lib/save-cwd.h: Likewise.
61038         * lib/savedir.c: Likewise.
61039         * lib/savedir.h: Likewise.
61040         * lib/savewd.c: Likewise.
61041         * lib/savewd.h: Likewise.
61042         * lib/search.in.h: Likewise.
61043         * lib/setenv.c: Likewise.
61044         * lib/setenv.h: Likewise.
61045         * lib/settime.c: Likewise.
61046         * lib/sh-quote.c: Likewise.
61047         * lib/sh-quote.h: Likewise.
61048         * lib/sig2str.c: Likewise.
61049         * lib/sig2str.h: Likewise.
61050         * lib/signal.in.h: Likewise.
61051         * lib/signbitd.c: Likewise.
61052         * lib/signbitf.c: Likewise.
61053         * lib/signbitl.c: Likewise.
61054         * lib/sigprocmask.c: Likewise.
61055         * lib/sincosl.c: Likewise.
61056         * lib/sleep.c: Likewise.
61057         * lib/sprintf.c: Likewise.
61058         * lib/sqrtl.c: Likewise.
61059         * lib/stat-time.h: Likewise.
61060         * lib/stdio--.h: Likewise.
61061         * lib/stdio-safer.h: Likewise.
61062         * lib/stdlib--.h: Likewise.
61063         * lib/stdlib-safer.h: Likewise.
61064         * lib/stdlib.in.h: Likewise.
61065         * lib/stpcpy.c: Likewise.
61066         * lib/stpncpy.c: Likewise.
61067         * lib/strchrnul.c: Likewise.
61068         * lib/strcspn.c: Likewise.
61069         * lib/strerror.c: Likewise.
61070         * lib/strftime.c: Likewise.
61071         * lib/strftime.h: Likewise.
61072         * lib/striconveh.c: Likewise.
61073         * lib/striconveh.h: Likewise.
61074         * lib/striconveha.c: Likewise.
61075         * lib/striconveha.h: Likewise.
61076         * lib/stripslash.c: Likewise.
61077         * lib/strnlen1.c: Likewise.
61078         * lib/strnlen1.h: Likewise.
61079         * lib/strtod.c: Likewise.
61080         * lib/strtoimax.c: Likewise.
61081         * lib/strtok_r.c: Likewise.
61082         * lib/strtol.c: Likewise.
61083         * lib/strtoll.c: Likewise.
61084         * lib/strtoul.c: Likewise.
61085         * lib/strtoull.c: Likewise.
61086         * lib/sysexits.in.h: Likewise.
61087         * lib/tempname.c: Likewise.
61088         * lib/tempname.h: Likewise.
61089         * lib/timespec.h: Likewise.
61090         * lib/tls.c: Likewise.
61091         * lib/tls.h: Likewise.
61092         * lib/tmpdir.c: Likewise.
61093         * lib/tmpdir.h: Likewise.
61094         * lib/tmpfile-safer.c: Likewise.
61095         * lib/tmpfile.c: Likewise.
61096         * lib/trigl.c: Likewise.
61097         * lib/trigl.h: Likewise.
61098         * lib/trim.c: Likewise.
61099         * lib/trim.h: Likewise.
61100         * lib/trunc.c: Likewise.
61101         * lib/truncf.c: Likewise.
61102         * lib/truncl.c: Likewise.
61103         * lib/tsearch.c: Likewise.
61104         * lib/unicodeio.c: Likewise.
61105         * lib/unicodeio.h: Likewise.
61106         * lib/unistd--.h: Likewise.
61107         * lib/unistd-safer.h: Likewise.
61108         * lib/unistdio/ulc-fprintf.c: Likewise.
61109         * lib/unistdio/ulc-vfprintf.c: Likewise.
61110         * lib/unlinkdir.c: Likewise.
61111         * lib/unlinkdir.h: Likewise.
61112         * lib/unlocked-io.h: Likewise.
61113         * lib/unsetenv.c: Likewise.
61114         * lib/userspec.c: Likewise.
61115         * lib/utime.c: Likewise.
61116         * lib/utimecmp.c: Likewise.
61117         * lib/utimecmp.h: Likewise.
61118         * lib/utimens.c: Likewise.
61119         * lib/verify.h: Likewise.
61120         * lib/verror.c: Likewise.
61121         * lib/verror.h: Likewise.
61122         * lib/version-etc-fsf.c: Likewise.
61123         * lib/version-etc.c: Likewise.
61124         * lib/version-etc.h: Likewise.
61125         * lib/vfprintf.c: Likewise.
61126         * lib/vprintf.c: Likewise.
61127         * lib/vsprintf.c: Likewise.
61128         * lib/w32spawn.h: Likewise.
61129         * lib/wait-process.c: Likewise.
61130         * lib/wait-process.h: Likewise.
61131         * lib/wcwidth.c: Likewise.
61132         * lib/write-any-file.c: Likewise.
61133         * lib/xalloc-die.c: Likewise.
61134         * lib/xalloc.h: Likewise.
61135         * lib/xasprintf.c: Likewise.
61136         * lib/xgetcwd.c: Likewise.
61137         * lib/xgetcwd.h: Likewise.
61138         * lib/xgetdomainname.c: Likewise.
61139         * lib/xgetdomainname.h: Likewise.
61140         * lib/xgethostname.c: Likewise.
61141         * lib/xmalloc.c: Likewise.
61142         * lib/xmalloca.c: Likewise.
61143         * lib/xmalloca.h: Likewise.
61144         * lib/xmemcoll.c: Likewise.
61145         * lib/xnanosleep.c: Likewise.
61146         * lib/xreadlink.c: Likewise.
61147         * lib/xreadlink.h: Likewise.
61148         * lib/xsetenv.c: Likewise.
61149         * lib/xsetenv.h: Likewise.
61150         * lib/xstriconv.c: Likewise.
61151         * lib/xstriconv.h: Likewise.
61152         * lib/xstrndup.c: Likewise.
61153         * lib/xstrndup.h: Likewise.
61154         * lib/xstrtod.c: Likewise.
61155         * lib/xstrtod.h: Likewise.
61156         * lib/xstrtol-error.c: Likewise.
61157         * lib/xstrtol.c: Likewise.
61158         * lib/xstrtol.h: Likewise.
61159         * lib/xtime.h: Likewise.
61160         * lib/xvasprintf.c: Likewise.
61161         * lib/xvasprintf.h: Likewise.
61162         * lib/yesno.c: Likewise.
61163         * lib/yesno.h: Likewise.
61164         * posix-modules: Likewise.
61165         * tests/test-alloca-opt.c: Likewise.
61166         * tests/test-arcfour.c: Likewise.
61167         * tests/test-arctwo.c: Likewise.
61168         * tests/test-argmatch.c: Likewise.
61169         * tests/test-argp-2.sh: Likewise.
61170         * tests/test-argp.c: Likewise.
61171         * tests/test-arpa_inet.c: Likewise.
61172         * tests/test-array_list.c: Likewise.
61173         * tests/test-array_oset.c: Likewise.
61174         * tests/test-atexit.c: Likewise.
61175         * tests/test-avltree_list.c: Likewise.
61176         * tests/test-avltree_oset.c: Likewise.
61177         * tests/test-avltreehash_list.c: Likewise.
61178         * tests/test-base64.c: Likewise.
61179         * tests/test-binary-io.c: Likewise.
61180         * tests/test-byteswap.c: Likewise.
61181         * tests/test-c-ctype.c: Likewise.
61182         * tests/test-c-strcasecmp.c: Likewise.
61183         * tests/test-c-strcasestr.c: Likewise.
61184         * tests/test-c-strncasecmp.c: Likewise.
61185         * tests/test-c-strstr.c: Likewise.
61186         * tests/test-canonicalize-lgpl.c: Likewise.
61187         * tests/test-canonicalize.c: Likewise.
61188         * tests/test-carray_list.c: Likewise.
61189         * tests/test-ceilf.c: Likewise.
61190         * tests/test-ceill.c: Likewise.
61191         * tests/test-count-one-bits.c: Likewise.
61192         * tests/test-crc.c: Likewise.
61193         * tests/test-dirname.c: Likewise.
61194         * tests/test-fbufmode.c: Likewise.
61195         * tests/test-fcntl.c: Likewise.
61196         * tests/test-fflush.c: Likewise.
61197         * tests/test-floorf.c: Likewise.
61198         * tests/test-floorl.c: Likewise.
61199         * tests/test-fopen.c: Likewise.
61200         * tests/test-fprintf-posix.c: Likewise.
61201         * tests/test-fprintf-posix.h: Likewise.
61202         * tests/test-fpurge.c: Likewise.
61203         * tests/test-freadable.c: Likewise.
61204         * tests/test-freadahead.c: Likewise.
61205         * tests/test-freading.c: Likewise.
61206         * tests/test-freopen.c: Likewise.
61207         * tests/test-frexp.c: Likewise.
61208         * tests/test-frexpl.c: Likewise.
61209         * tests/test-fseek.c: Likewise.
61210         * tests/test-fseeko.c: Likewise.
61211         * tests/test-fseterr.c: Likewise.
61212         * tests/test-fstrcmp.c: Likewise.
61213         * tests/test-ftell.c: Likewise.
61214         * tests/test-ftello.c: Likewise.
61215         * tests/test-fwritable.c: Likewise.
61216         * tests/test-fwriting.c: Likewise.
61217         * tests/test-getaddrinfo.c: Likewise.
61218         * tests/test-getpass.c: Likewise.
61219         * tests/test-gettimeofday.c: Likewise.
61220         * tests/test-hmac-md5.c: Likewise.
61221         * tests/test-hmac-sha1.c: Likewise.
61222         * tests/test-iconv.c: Likewise.
61223         * tests/test-iconvme.c: Likewise.
61224         * tests/test-inttypes.c: Likewise.
61225         * tests/test-isnan.c: Likewise.
61226         * tests/test-isnanf.c: Likewise.
61227         * tests/test-isnanl-nolibm.c: Likewise.
61228         * tests/test-isnanl.c: Likewise.
61229         * tests/test-isnanl.h: Likewise.
61230         * tests/test-ldexpl.c: Likewise.
61231         * tests/test-linked_list.c: Likewise.
61232         * tests/test-linkedhash_list.c: Likewise.
61233         * tests/test-locale.c: Likewise.
61234         * tests/test-localename.c: Likewise.
61235         * tests/test-lock.c: Likewise.
61236         * tests/test-lseek.c: Likewise.
61237         * tests/test-malloca.c: Likewise.
61238         * tests/test-math.c: Likewise.
61239         * tests/test-mbscasecmp.c: Likewise.
61240         * tests/test-mbscasestr1.c: Likewise.
61241         * tests/test-mbscasestr2.c: Likewise.
61242         * tests/test-mbscasestr3.c: Likewise.
61243         * tests/test-mbscasestr4.c: Likewise.
61244         * tests/test-mbschr.c: Likewise.
61245         * tests/test-mbscspn.c: Likewise.
61246         * tests/test-mbsncasecmp.c: Likewise.
61247         * tests/test-mbspbrk.c: Likewise.
61248         * tests/test-mbspcasecmp.c: Likewise.
61249         * tests/test-mbsrchr.c: Likewise.
61250         * tests/test-mbsspn.c: Likewise.
61251         * tests/test-mbsstr1.c: Likewise.
61252         * tests/test-mbsstr2.c: Likewise.
61253         * tests/test-mbsstr3.c: Likewise.
61254         * tests/test-md5.c: Likewise.
61255         * tests/test-memmem.c: Likewise.
61256         * tests/test-netinet_in.c: Likewise.
61257         * tests/test-open.c: Likewise.
61258         * tests/test-printf-frexp.c: Likewise.
61259         * tests/test-printf-frexpl.c: Likewise.
61260         * tests/test-printf-posix.c: Likewise.
61261         * tests/test-printf-posix.h: Likewise.
61262         * tests/test-rbtree_list.c: Likewise.
61263         * tests/test-rbtree_oset.c: Likewise.
61264         * tests/test-rbtreehash_list.c: Likewise.
61265         * tests/test-read-file.c: Likewise.
61266         * tests/test-rijndael.c: Likewise.
61267         * tests/test-search.c: Likewise.
61268         * tests/test-signbit.c: Likewise.
61269         * tests/test-sleep.c: Likewise.
61270         * tests/test-snprintf-posix.c: Likewise.
61271         * tests/test-snprintf-posix.h: Likewise.
61272         * tests/test-snprintf.c: Likewise.
61273         * tests/test-sprintf-posix.c: Likewise.
61274         * tests/test-sprintf-posix.h: Likewise.
61275         * tests/test-stat-time.c: Likewise.
61276         * tests/test-stdbool.c: Likewise.
61277         * tests/test-stdint.c: Likewise.
61278         * tests/test-stdio.c: Likewise.
61279         * tests/test-stdlib.c: Likewise.
61280         * tests/test-stpncpy.c: Likewise.
61281         * tests/test-strcasestr.c: Likewise.
61282         * tests/test-striconv.c: Likewise.
61283         * tests/test-striconveh.c: Likewise.
61284         * tests/test-striconveha.c: Likewise.
61285         * tests/test-string.c: Likewise.
61286         * tests/test-sys_select.c: Likewise.
61287         * tests/test-sys_socket.c: Likewise.
61288         * tests/test-sys_stat.c: Likewise.
61289         * tests/test-sys_time.c: Likewise.
61290         * tests/test-sysexits.c: Likewise.
61291         * tests/test-time.c: Likewise.
61292         * tests/test-tls.c: Likewise.
61293         * tests/test-trunc.c: Likewise.
61294         * tests/test-truncf.c: Likewise.
61295         * tests/test-truncl.c: Likewise.
61296         * tests/test-unistd.c: Likewise.
61297         * tests/test-vasnprintf-posix.c: Likewise.
61298         * tests/test-vasnprintf-posix2.c: Likewise.
61299         * tests/test-vasnprintf.c: Likewise.
61300         * tests/test-vasprintf-posix.c: Likewise.
61301         * tests/test-vasprintf.c: Likewise.
61302         * tests/test-verify.c: Likewise.
61303         * tests/test-vfprintf-posix.c: Likewise.
61304         * tests/test-vprintf-posix.c: Likewise.
61305         * tests/test-vsnprintf-posix.c: Likewise.
61306         * tests/test-vsnprintf.c: Likewise.
61307         * tests/test-vsprintf-posix.c: Likewise.
61308         * tests/test-wchar.c: Likewise.
61309         * tests/test-wctype.c: Likewise.
61310         * tests/test-wcwidth.c: Likewise.
61311         * tests/test-xstrtol.c: Likewise.
61312         * tests/test-xvasprintf.c: Likewise.
61313         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61314         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61315         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61316         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61317         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61318         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61319         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61320         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61321         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61322         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61323         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61324         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61325         * tests/uniname/test-uninames.c: Likewise.
61326         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61327         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61328         * tests/unistdio/test-u16-printf1.h: Likewise.
61329         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61330         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61331         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61332         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61333         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61334         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61335         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61336         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61337         * tests/unistdio/test-u32-printf1.h: Likewise.
61338         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61339         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61340         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61341         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61342         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61343         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61344         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61345         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61346         * tests/unistdio/test-u8-printf1.h: Likewise.
61347         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61348         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61349         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61350         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61351         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61352         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61353         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61354         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61355         * tests/unistdio/test-ulc-printf1.h: Likewise.
61356         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61357         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61358         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61359         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61360         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61361         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61362         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61363         * tests/uniwidth/test-u16-width.c: Likewise.
61364         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61365         * tests/uniwidth/test-u32-width.c: Likewise.
61366         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61367         * tests/uniwidth/test-u8-width.c: Likewise.
61368         * tests/uniwidth/test-uc_width.c: Likewise.
61369         * config/srclist-update: Likewise.
61370         (fixlicense): Update to GPLv3+.
61371
61372         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61373         * tests/test-tsearch.c: Change copyright notice.
61374
61375         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61376         * lib/c-strcaseeq.h: Change copyright notice.
61377         * lib/streq.h: Likewise.
61378         * lib/uniconv.h: Likewise.
61379         * lib/uniconv/u-conv-from-enc.h: Likewise.
61380         * lib/uniconv/u-conv-to-enc.h: Likewise.
61381         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61382         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61383         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61384         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61385         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61386         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61387         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61388         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61389         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61390         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61391         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61392         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61393         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61394         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61395         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61396         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61397         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61398         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61399         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61400         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61401         * lib/uniname.h: Likewise.
61402         * lib/uniname/uniname.c: Likewise.
61403         * lib/unistdio.h: Likewise.
61404         * lib/unistdio/u-asnprintf.h: Likewise.
61405         * lib/unistdio/u-asprintf.h: Likewise.
61406         * lib/unistdio/u-printf-args.c: Likewise.
61407         * lib/unistdio/u-printf-args.h: Likewise.
61408         * lib/unistdio/u-printf-parse.h: Likewise.
61409         * lib/unistdio/u-snprintf.h: Likewise.
61410         * lib/unistdio/u-sprintf.h: Likewise.
61411         * lib/unistdio/u-vasprintf.h: Likewise.
61412         * lib/unistdio/u-vsnprintf.h: Likewise.
61413         * lib/unistdio/u-vsprintf.h: Likewise.
61414         * lib/unistdio/u16-asnprintf.c: Likewise.
61415         * lib/unistdio/u16-asprintf.c: Likewise.
61416         * lib/unistdio/u16-printf-parse.c: Likewise.
61417         * lib/unistdio/u16-snprintf.c: Likewise.
61418         * lib/unistdio/u16-sprintf.c: Likewise.
61419         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61420         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61421         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61422         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61423         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61424         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61425         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61426         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61427         * lib/unistdio/u16-vasnprintf.c: Likewise.
61428         * lib/unistdio/u16-vasprintf.c: Likewise.
61429         * lib/unistdio/u16-vsnprintf.c: Likewise.
61430         * lib/unistdio/u16-vsprintf.c: Likewise.
61431         * lib/unistdio/u32-asnprintf.c: Likewise.
61432         * lib/unistdio/u32-asprintf.c: Likewise.
61433         * lib/unistdio/u32-printf-parse.c: Likewise.
61434         * lib/unistdio/u32-snprintf.c: Likewise.
61435         * lib/unistdio/u32-sprintf.c: Likewise.
61436         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61437         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61438         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61439         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61440         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61441         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61442         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61443         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61444         * lib/unistdio/u32-vasnprintf.c: Likewise.
61445         * lib/unistdio/u32-vasprintf.c: Likewise.
61446         * lib/unistdio/u32-vsnprintf.c: Likewise.
61447         * lib/unistdio/u32-vsprintf.c: Likewise.
61448         * lib/unistdio/u8-asnprintf.c: Likewise.
61449         * lib/unistdio/u8-asprintf.c: Likewise.
61450         * lib/unistdio/u8-printf-parse.c: Likewise.
61451         * lib/unistdio/u8-snprintf.c: Likewise.
61452         * lib/unistdio/u8-sprintf.c: Likewise.
61453         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61454         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61455         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61456         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61457         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61458         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61459         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61460         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61461         * lib/unistdio/u8-vasnprintf.c: Likewise.
61462         * lib/unistdio/u8-vasprintf.c: Likewise.
61463         * lib/unistdio/u8-vsnprintf.c: Likewise.
61464         * lib/unistdio/u8-vsprintf.c: Likewise.
61465         * lib/unistdio/ulc-asnprintf.c: Likewise.
61466         * lib/unistdio/ulc-asprintf.c: Likewise.
61467         * lib/unistdio/ulc-printf-parse.c: Likewise.
61468         * lib/unistdio/ulc-snprintf.c: Likewise.
61469         * lib/unistdio/ulc-sprintf.c: Likewise.
61470         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61471         * lib/unistdio/ulc-vasprintf.c: Likewise.
61472         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61473         * lib/unistdio/ulc-vsprintf.c: Likewise.
61474         * lib/unistr.h: Likewise.
61475         * lib/unistr/u-cpy-alloc.h: Likewise.
61476         * lib/unistr/u-cpy.h: Likewise.
61477         * lib/unistr/u-endswith.h: Likewise.
61478         * lib/unistr/u-move.h: Likewise.
61479         * lib/unistr/u-set.h: Likewise.
61480         * lib/unistr/u-startswith.h: Likewise.
61481         * lib/unistr/u-stpcpy.h: Likewise.
61482         * lib/unistr/u-stpncpy.h: Likewise.
61483         * lib/unistr/u-strcat.h: Likewise.
61484         * lib/unistr/u-strcpy.h: Likewise.
61485         * lib/unistr/u-strcspn.h: Likewise.
61486         * lib/unistr/u-strdup.h: Likewise.
61487         * lib/unistr/u-strlen.h: Likewise.
61488         * lib/unistr/u-strncat.h: Likewise.
61489         * lib/unistr/u-strncpy.h: Likewise.
61490         * lib/unistr/u-strnlen.h: Likewise.
61491         * lib/unistr/u-strpbrk.h: Likewise.
61492         * lib/unistr/u-strspn.h: Likewise.
61493         * lib/unistr/u-strstr.h: Likewise.
61494         * lib/unistr/u-strtok.h: Likewise.
61495         * lib/unistr/u16-check.c: Likewise.
61496         * lib/unistr/u16-chr.c: Likewise.
61497         * lib/unistr/u16-cmp.c: Likewise.
61498         * lib/unistr/u16-cpy-alloc.c: Likewise.
61499         * lib/unistr/u16-cpy.c: Likewise.
61500         * lib/unistr/u16-endswith.c: Likewise.
61501         * lib/unistr/u16-mblen.c: Likewise.
61502         * lib/unistr/u16-mbsnlen.c: Likewise.
61503         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61504         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61505         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61506         * lib/unistr/u16-mbtouc.c: Likewise.
61507         * lib/unistr/u16-mbtoucr.c: Likewise.
61508         * lib/unistr/u16-move.c: Likewise.
61509         * lib/unistr/u16-next.c: Likewise.
61510         * lib/unistr/u16-prev.c: Likewise.
61511         * lib/unistr/u16-set.c: Likewise.
61512         * lib/unistr/u16-startswith.c: Likewise.
61513         * lib/unistr/u16-stpcpy.c: Likewise.
61514         * lib/unistr/u16-stpncpy.c: Likewise.
61515         * lib/unistr/u16-strcat.c: Likewise.
61516         * lib/unistr/u16-strchr.c: Likewise.
61517         * lib/unistr/u16-strcmp.c: Likewise.
61518         * lib/unistr/u16-strcpy.c: Likewise.
61519         * lib/unistr/u16-strcspn.c: Likewise.
61520         * lib/unistr/u16-strdup.c: Likewise.
61521         * lib/unistr/u16-strlen.c: Likewise.
61522         * lib/unistr/u16-strmblen.c: Likewise.
61523         * lib/unistr/u16-strmbtouc.c: Likewise.
61524         * lib/unistr/u16-strncat.c: Likewise.
61525         * lib/unistr/u16-strncmp.c: Likewise.
61526         * lib/unistr/u16-strncpy.c: Likewise.
61527         * lib/unistr/u16-strnlen.c: Likewise.
61528         * lib/unistr/u16-strpbrk.c: Likewise.
61529         * lib/unistr/u16-strrchr.c: Likewise.
61530         * lib/unistr/u16-strspn.c: Likewise.
61531         * lib/unistr/u16-strstr.c: Likewise.
61532         * lib/unistr/u16-strtok.c: Likewise.
61533         * lib/unistr/u16-to-u32.c: Likewise.
61534         * lib/unistr/u16-to-u8.c: Likewise.
61535         * lib/unistr/u16-uctomb-aux.c: Likewise.
61536         * lib/unistr/u16-uctomb.c: Likewise.
61537         * lib/unistr/u32-check.c: Likewise.
61538         * lib/unistr/u32-chr.c: Likewise.
61539         * lib/unistr/u32-cmp.c: Likewise.
61540         * lib/unistr/u32-cpy-alloc.c: Likewise.
61541         * lib/unistr/u32-cpy.c: Likewise.
61542         * lib/unistr/u32-endswith.c: Likewise.
61543         * lib/unistr/u32-mblen.c: Likewise.
61544         * lib/unistr/u32-mbsnlen.c: Likewise.
61545         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61546         * lib/unistr/u32-mbtouc.c: Likewise.
61547         * lib/unistr/u32-mbtoucr.c: Likewise.
61548         * lib/unistr/u32-move.c: Likewise.
61549         * lib/unistr/u32-next.c: Likewise.
61550         * lib/unistr/u32-prev.c: Likewise.
61551         * lib/unistr/u32-set.c: Likewise.
61552         * lib/unistr/u32-startswith.c: Likewise.
61553         * lib/unistr/u32-stpcpy.c: Likewise.
61554         * lib/unistr/u32-stpncpy.c: Likewise.
61555         * lib/unistr/u32-strcat.c: Likewise.
61556         * lib/unistr/u32-strchr.c: Likewise.
61557         * lib/unistr/u32-strcmp.c: Likewise.
61558         * lib/unistr/u32-strcpy.c: Likewise.
61559         * lib/unistr/u32-strcspn.c: Likewise.
61560         * lib/unistr/u32-strdup.c: Likewise.
61561         * lib/unistr/u32-strlen.c: Likewise.
61562         * lib/unistr/u32-strmblen.c: Likewise.
61563         * lib/unistr/u32-strmbtouc.c: Likewise.
61564         * lib/unistr/u32-strncat.c: Likewise.
61565         * lib/unistr/u32-strncmp.c: Likewise.
61566         * lib/unistr/u32-strncpy.c: Likewise.
61567         * lib/unistr/u32-strnlen.c: Likewise.
61568         * lib/unistr/u32-strpbrk.c: Likewise.
61569         * lib/unistr/u32-strrchr.c: Likewise.
61570         * lib/unistr/u32-strspn.c: Likewise.
61571         * lib/unistr/u32-strstr.c: Likewise.
61572         * lib/unistr/u32-strtok.c: Likewise.
61573         * lib/unistr/u32-to-u16.c: Likewise.
61574         * lib/unistr/u32-to-u8.c: Likewise.
61575         * lib/unistr/u32-uctomb.c: Likewise.
61576         * lib/unistr/u8-check.c: Likewise.
61577         * lib/unistr/u8-chr.c: Likewise.
61578         * lib/unistr/u8-cmp.c: Likewise.
61579         * lib/unistr/u8-cpy-alloc.c: Likewise.
61580         * lib/unistr/u8-cpy.c: Likewise.
61581         * lib/unistr/u8-endswith.c: Likewise.
61582         * lib/unistr/u8-mblen.c: Likewise.
61583         * lib/unistr/u8-mbsnlen.c: Likewise.
61584         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61585         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61586         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61587         * lib/unistr/u8-mbtouc.c: Likewise.
61588         * lib/unistr/u8-mbtoucr.c: Likewise.
61589         * lib/unistr/u8-move.c: Likewise.
61590         * lib/unistr/u8-next.c: Likewise.
61591         * lib/unistr/u8-prev.c: Likewise.
61592         * lib/unistr/u8-set.c: Likewise.
61593         * lib/unistr/u8-startswith.c: Likewise.
61594         * lib/unistr/u8-stpcpy.c: Likewise.
61595         * lib/unistr/u8-stpncpy.c: Likewise.
61596         * lib/unistr/u8-strcat.c: Likewise.
61597         * lib/unistr/u8-strchr.c: Likewise.
61598         * lib/unistr/u8-strcmp.c: Likewise.
61599         * lib/unistr/u8-strcpy.c: Likewise.
61600         * lib/unistr/u8-strcspn.c: Likewise.
61601         * lib/unistr/u8-strdup.c: Likewise.
61602         * lib/unistr/u8-strlen.c: Likewise.
61603         * lib/unistr/u8-strmblen.c: Likewise.
61604         * lib/unistr/u8-strmbtouc.c: Likewise.
61605         * lib/unistr/u8-strncat.c: Likewise.
61606         * lib/unistr/u8-strncmp.c: Likewise.
61607         * lib/unistr/u8-strncpy.c: Likewise.
61608         * lib/unistr/u8-strnlen.c: Likewise.
61609         * lib/unistr/u8-strpbrk.c: Likewise.
61610         * lib/unistr/u8-strrchr.c: Likewise.
61611         * lib/unistr/u8-strspn.c: Likewise.
61612         * lib/unistr/u8-strstr.c: Likewise.
61613         * lib/unistr/u8-strtok.c: Likewise.
61614         * lib/unistr/u8-to-u16.c: Likewise.
61615         * lib/unistr/u8-to-u32.c: Likewise.
61616         * lib/unistr/u8-uctomb-aux.c: Likewise.
61617         * lib/unistr/u8-uctomb.c: Likewise.
61618         * lib/unitypes.h: Likewise.
61619         * lib/uniwidth.h: Likewise.
61620         * lib/uniwidth/cjk.h: Likewise.
61621         * lib/uniwidth/u16-strwidth.c: Likewise.
61622         * lib/uniwidth/u16-width.c: Likewise.
61623         * lib/uniwidth/u32-strwidth.c: Likewise.
61624         * lib/uniwidth/u32-width.c: Likewise.
61625         * lib/uniwidth/u8-strwidth.c: Likewise.
61626         * lib/uniwidth/u8-width.c: Likewise.
61627         * lib/uniwidth/width.c: Likewise.
61628
61629 2007-10-07  Bruno Haible  <bruno@clisp.org>
61630
61631         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61632         The file is still under LGPL (see modules/inttypes).
61633
61634 2007-10-06  Bruno Haible  <bruno@clisp.org>
61635
61636         * modules/trunc (Dependencies): Add 'extensions'.
61637         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61638         Reported by Ben Pfaff <blp@gnu.org>.
61639
61640 2007-10-06  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/freopen-tests: New file.
61643         * tests/test-freopen.c: New file.
61644
61645         * modules/fopen-tests: New file.
61646         * tests/test-fopen.c: New file.
61647
61648         * modules/fopen: New file.
61649         * lib/fopen.c: New file.
61650         * m4/fopen.m4: New file.
61651         * modules/freopen: New file.
61652         * lib/freopen.c: New file.
61653         * m4/freopen.m4: New file.
61654         * lib/stdio.in.h (fopen, freopen): New declarations.
61655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61656         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61657         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61658         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61659         * doc/functions/fopen.texi: Mention the 'fopen' module.
61660         * doc/functions/freopen.texi: Mention the 'freopen' module.
61661
61662 2007-10-06  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/open-tests: New file.
61665         * tests/test-open.c: New file.
61666
61667         * modules/open: New file.
61668         * lib/open.c: New file.
61669         * m4/open.m4: New file.
61670         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61671         lib/open.c does.
61672         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61673         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61674         macros.
61675         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61676         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61677         REPLACE_OPEN.
61678         * doc/functions/open.texi: Mention the 'open' module.
61679
61680 2007-10-04  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/ceill-tests: New file.
61683         * tests/test-ceill.c: New file.
61684
61685         * modules/ceill: New file.
61686         * lib/ceill.c: Replace entire file.
61687         * m4/ceill.m4: New file.
61688         * lib/math.in.h (ceill): Replace declaration.
61689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61690         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61691         * doc/functions/ceill.texi: Mention the 'ceill' module.
61692         * modules/mathl (Files): Remove lib/ceill.c.
61693         (Depends-on): Add ceill.
61694
61695 2007-10-04  Bruno Haible  <bruno@clisp.org>
61696
61697         * modules/ceilf-tests: New file.
61698         * tests/test-ceilf.c: New file.
61699
61700         * modules/ceilf: New file.
61701         * lib/ceil.c: New file.
61702         * lib/ceilf.c: New file.
61703         * m4/ceilf.m4: New file.
61704         * lib/math.in.h (ceilf): New declaration.
61705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61706         HAVE_DECL_CEILF.
61707         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61708         HAVE_DECL_CEILF.
61709         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61710
61711 2007-10-04  Bruno Haible  <bruno@clisp.org>
61712
61713         * modules/floorl-tests: New file.
61714         * tests/test-floorl.c: New file.
61715
61716         * modules/floorl: New file.
61717         * lib/floorl.c: Replace entire file.
61718         * m4/floorl.m4: New file.
61719         * lib/math.in.h (floorl): Replace declaration.
61720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61721         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61722         * doc/functions/floorl.texi: Mention the 'floorl' module.
61723         * modules/mathl (Files): Remove lib/floorl.c.
61724         (Depends-on): Add floorl.
61725
61726 2007-10-04  Bruno Haible  <bruno@clisp.org>
61727
61728         * modules/floorf-tests: New file.
61729         * tests/test-floorf.c: New file.
61730
61731         * modules/floorf: New file.
61732         * lib/floor.c: New file.
61733         * lib/floorf.c: New file.
61734         * m4/floorf.m4: New file.
61735         * lib/math.in.h (floorf): New declaration.
61736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61737         HAVE_DECL_FLOORF.
61738         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61739         HAVE_DECL_FLOORF.
61740         * doc/functions/floorf.texi: Mention the 'floorf' module.
61741
61742 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61743             Bruno Haible  <bruno@clisp.org>
61744
61745         Advertise for the Git server instead of the CVS server.
61746         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61747         repository instead of the CVS one.
61748         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61749         about all VCS systems generically.
61750         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61751
61752 2007-10-04  Bruno Haible  <bruno@clisp.org>
61753
61754         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61755         means.
61756         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61757
61758 2007-10-04  Bruno Haible  <bruno@clisp.org>
61759
61760         * modules/truncl-tests: New file.
61761         * tests/test-truncl.c: New file.
61762
61763         * modules/truncl: New file.
61764         * lib/truncl.c: New file.
61765         * m4/truncl.m4: New file.
61766         * lib/math.in.h (truncl): New declaration.
61767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61768         HAVE_DECL_TRUNCL.
61769         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61770         HAVE_DECL_TRUNCL.
61771         * doc/functions/truncl.texi: Mention the 'truncl' module.
61772
61773 2007-10-04  Bruno Haible  <bruno@clisp.org>
61774
61775         * modules/truncf-tests: New file.
61776         * tests/test-truncf.c: New file.
61777
61778         * modules/truncf: New file.
61779         * lib/trunc.c: Make paramerizable through USE_* macros.
61780         * lib/truncf.c: New file.
61781         * m4/truncf.m4: New file.
61782         * lib/math.in.h (truncf): New declaration.
61783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61784         HAVE_DECL_TRUNCF.
61785         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61786         HAVE_DECL_TRUNCF.
61787         * doc/functions/truncf.texi: Mention the 'truncf' module.
61788
61789 2007-10-03  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61792         augmentation also for tests modules.
61793         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61794         * modules/atexit-tests (Makefile.am): Likewise.
61795         * modules/binary-io-tests (Makefile.am): Likewise.
61796         * modules/c-strcase-tests (Makefile.am): Likewise.
61797         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61798         * modules/canonicalize-tests (Makefile.am): Likewise.
61799         * modules/closein-tests (Makefile.am): Likewise.
61800         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61801         * modules/freadahead-tests (Makefile.am): Likewise.
61802         * modules/fseek-tests (Makefile.am): Likewise.
61803         * modules/fseeko-tests (Makefile.am): Likewise.
61804         * modules/ftell-tests (Makefile.am): Likewise.
61805         * modules/ftello-tests (Makefile.am): Likewise.
61806         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61807         * modules/isnanl-tests (Makefile.am): Likewise.
61808         * modules/lseek-tests (Makefile.am): Likewise.
61809         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61810         * modules/mbscasestr-tests (Makefile.am): Likewise.
61811         * modules/mbschr-tests (Makefile.am): Likewise.
61812         * modules/mbscspn-tests (Makefile.am): Likewise.
61813         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61814         * modules/mbspbrk-tests (Makefile.am): Likewise.
61815         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61816         * modules/mbsrchr-tests (Makefile.am): Likewise.
61817         * modules/mbsspn-tests (Makefile.am): Likewise.
61818         * modules/mbsstr-tests (Makefile.am): Likewise.
61819         * modules/printf-posix-tests (Makefile.am): Likewise.
61820         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61821         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61822         * modules/tsearch-tests (Makefile.am): Likewise.
61823         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61824         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61825         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61826         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61827         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61828         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61829         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61830         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61831         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61832         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61833         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61834         * modules/xstrtol-tests (Makefile.am): Likewise.
61835         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61836         * modules/yesno-tests (Makefile.am): Likewise.
61837
61838 2007-10-03  Bruno Haible  <bruno@clisp.org>
61839
61840         * modules/trunc-tests: New file.
61841         * tests/test-trunc.c: New file.
61842
61843         * modules/trunc: New file.
61844         * lib/trunc.c: New file.
61845         * m4/trunc.m4: New file.
61846         * lib/math.in.h (trunc): New declaration.
61847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61848         HAVE_DECL_TRUNC.
61849         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61850         HAVE_DECL_TRUNC.
61851         * doc/functions/trunc.texi: Mention the 'trunc' module.
61852
61853 2007-10-03  Bruno Haible  <bruno@clisp.org>
61854
61855         * tests/test-fpending.c: New file, mostly copied
61856         from coreutils/lib/t-fpending.c.
61857         * modules/fpending-tests: New file.
61858
61859 2007-10-03  Bruno Haible  <bruno@clisp.org>
61860
61861         Port the stdio extensions to QNX (untested).
61862         * lib/fseterr.c (fseterr): Add support for QNX.
61863         * lib/fbufmode.c (fbufmode): Likewise.
61864         * lib/freadable.c (freadable): Likewise.
61865         * lib/fwritable.c (fwritable): Likewise.
61866         * lib/freading.c (freading): Likewise.
61867         * lib/fwriting.c (fwriting): Likewise.
61868         * lib/freadahead.c (freadahed): Likewise.
61869         * lib/fpurge.c (fpurge): Likewise.
61870         * lib/fseeko.c (rpl_fseeko): Likewise.
61871
61872 2007-10-03  Bruno Haible  <bruno@clisp.org>
61873             Jim Meyering  <jim@meyering.net>
61874             Eric Blake  <ebb9@byu.net>
61875
61876         * doc/relocatable.texi: Use @command instead of @program.
61877
61878 2007-10-02  Jim Meyering  <jim@meyering.net>
61879
61880         Perform one more "_.h" -> ".in.h" substitution.
61881         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61882         instead of unistd_.h here, too.
61883
61884 2007-10-01  Bruno Haible  <bruno@clisp.org>
61885
61886         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61887         Needed for the alloca-opt module.
61888
61889 2007-09-30  Bruno Haible  <bruno@clisp.org>
61890
61891         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61892         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61893         alloca_.h.
61894         * lib/argz.in.h: Renamed from lib/argz_.h.
61895         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61896         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61897         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61898         byteswap_.h.
61899         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61900         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61901         dirent_.h.
61902         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61903         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61904         fcntl_.h.
61905         * lib/float.in.h: Renamed from lib/float_.h.
61906         * modules/float (Files, Makefile.am): Use float.in.h instead of
61907         float_.h.
61908         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61909         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61910         fnmatch_.h.
61911         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61912         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61913         getopt_.h.
61914         * lib/glob.in.h: Renamed from lib/glob_.h.
61915         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61916         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61917         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61918         iconv_.h.
61919         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61920         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61921         inttypes_.h.
61922         * lib/locale.in.h: Renamed from lib/locale_.h.
61923         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61924         locale_.h.
61925         * lib/math.in.h: Renamed from lib/math_.h.
61926         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61927         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61928         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61929         of netinet_in_.h. Add dependency.
61930         * lib/poll.in.h: Renamed from lib/poll_.h.
61931         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61932         * lib/search.in.h: Renamed from lib/search_.h.
61933         * modules/search (Files, Makefile.am): Use search.in.h instead of
61934         search_.h.
61935         * lib/signal.in.h: Renamed from lib/signal_.h.
61936         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61937         _signal.h.
61938         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61939         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61940         stdbool_.h.
61941         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61942         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61943         stdint_.h.
61944         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61945         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61946         stdio_.h.
61947         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61948         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61949         stdlib_.h.
61950         * lib/string.in.h: Renamed from lib/string_.h.
61951         * modules/string (Files, Makefile.am): Use string.in.h instead of
61952         string_.h.
61953         * doc/gnulib-tool.texi (Initial import): Update.
61954         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61955         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61956         of sys_select_.h. Add dependency.
61957         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61958         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61959         of sys_socket_.h.
61960         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61961         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61962         sys_stat_.h.
61963         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61964         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61965         sys_time_.h.
61966         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61967         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61968         sysexits_.h.
61969         * lib/time.in.h: Renamed from lib/time_.h.
61970         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61971         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61972         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61973         unistd_.h.
61974         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61975         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61976         wchar_.h.
61977         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61978         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61979         wctype_.h.
61980         * build-aux/bootstrap (slurp): Update.
61981         * lib/.cppi-disable: Update.
61982
61983 2007-09-30  Bruno Haible  <bruno@clisp.org>
61984
61985         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61986         Needed on BeOS.
61987
61988 2007-09-30  Bruno Haible  <bruno@clisp.org>
61989
61990         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61991
61992 2007-09-29  Bruno Haible  <bruno@clisp.org>
61993
61994         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61995
61996 2007-09-29  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61999         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62000         * build-aux/install-reloc: Compile also areadlink.c.
62001         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62002
62003 2007-09-29  Bruno Haible  <bruno@clisp.org>
62004
62005         * gnulib-tool (func_emit_initmacro_done): Indentation.
62006
62007 2007-09-29  Bruno Haible  <bruno@clisp.org>
62008
62009         * README: Add CVS checkout update instructions.
62010         Info from Bob Proulx <bob@proulx.com>.
62011
62012 2007-09-28  Eric Blake  <ebb9@byu.net>
62013
62014         Provide move-if-change.
62015         * build-aux/move-if-change: New file, based on best practice
62016         rather than any canonical upstream location.
62017
62018 2007-09-28  Jim Meyering  <jim@meyering.net>
62019
62020         Fix canonicalize loop-detection corner case.
62021         Do not attempt to stat the symlink values stored via seen_triple.
62022         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62023         on linux-2.6.18, (but not 2.6.22).
62024         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62025         triple_compare.  The former compares dev,ino,filename, while the latter
62026         would actually stat dirname(filename) when dev and ino were equal.
62027         * lib/hash-triple.c: Install <string.h>.
62028         (STREQ): Define.
62029         (triple_compare_ino_str): New function.
62030         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62031
62032 2007-09-28  Eric Blake  <ebb9@byu.net>
62033
62034         Enforce that AC_REPLACE_FUNCS files exist.
62035         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62036         override check for typos.
62037
62038         Fix test-closein on Solaris 10.
62039         * tests/test-closein.c (main): Don't assume stdin can be inherited
62040         closed on all systems.
62041         * tests/test-closein.sh: Likewise.
62042         Reported by Piotr Tarnowski.
62043
62044 2007-09-28  Jim Meyering  <jim@meyering.net>
62045
62046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62047
62048 2007-09-27  Jim Meyering  <jim@meyering.net>
62049
62050         canonicalize: Avoid a false-positive cycle failure.
62051         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62052         Sort.  Remove cycle-check.
62053         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62054         not cycle-check.h.
62055         (seen_triple): New function.
62056         (canonicalize_filename_mode): Use it instead of cycle-check.
62057         * tests/test-canonicalize.c: Add a test for this bug.
62058         * tests/test-canonicalize.sh: Set up and run the test.
62059
62060         New module, file-set, from coreutils.
62061         * modules/file-set: Define it.
62062         * lib/file-set.c, lib/file-set.h: Implement.
62063
62064         New module, hash-triple, from coreutils.
62065         * modules/hash-triple: Define it.
62066         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62067
62068 2007-09-25  Eric Blake  <ebb9@byu.net>
62069
62070         Fix strerror on Interix.
62071         * lib/string_.h (strerror): Declare replacement.
62072         * doc/functions/strerror.texi (strerror): Document the Interix
62073         shortcoming.
62074         * modules/string (Makefile.am): Support new hooks.
62075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62076         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62077         gl_FUNC_STRERROR_SEPARATE.
62078         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62079         * lib/strerror.c (rpl_strerror): Provide replacement.
62080         * modules/strerror (Depends-on): Add string.
62081         (configure.ac): Detect use of module.
62082         * tests/test-strerror.c: New file.
62083         * modules/strerror-tests: New test module.
62084         * modules/argp (Depends-on): Add strerror.
62085         * modules/error (Depends-on): Likewise.
62086         Reported by Martin Koeppe.
62087
62088 2007-09-24  Bruno Haible  <bruno@clisp.org>
62089
62090         * README: Update git instructions.
62091
62092 2007-09-24  Eric Blake  <ebb9@byu.net>
62093
62094         Revert fpending breakage from 2007-09-08.
62095         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62096         __fpending.c.
62097
62098 2007-09-24  Jim Meyering  <jim@meyering.net>
62099
62100         filenamecat.c: Add a test.
62101         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62102         showing how the function works when DIR is the empty string.
62103
62104 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62105
62106         * tests/test-canonicalize.sh: Turn on executable bit.
62107
62108 2007-09-19  Eric Blake  <ebb9@byu.net>
62109
62110         * README: Update CVS instructions.
62111
62112 2007-09-18  Bruno Haible  <bruno@clisp.org>
62113
62114         * modules/areadlink: New file.
62115         * lib/areadlink.h (areadlink): New declaration.
62116         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62117
62118 2007-09-17  Jim Meyering  <jim@meyering.net>
62119
62120         * lib/savewd.c (ESTALE) [!defined]: Define.
62121         Reported to be required on Interix by Martin Koeppe.
62122
62123 2007-09-17  Bruno Haible  <bruno@clisp.org>
62124
62125         * gnulib-tool (func_version): Use $version.
62126
62127 2007-09-16  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62130         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62131         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62132         Reported by Greg Schafer <gschafer@zip.com.au>.
62133
62134 2007-09-15  Bruno Haible  <bruno@clisp.org>
62135
62136         * gnulib-tool (sed): Try a little harder to make bash understand the
62137         alias.
62138         Reported by Bruce Korb <bruce.korb@gmail.com>.
62139
62140 2007-09-13  Eric Blake  <ebb9@byu.net>
62141
62142         * ChangeLog: Remove conflict markers.
62143
62144 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62145
62146         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62147         Reported by Bruno Haible <bruno@clisp.org>.
62148
62149 2007-09-12  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62152         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62153         is not defined.
62154
62155 2007-09-12  Eric Blake  <ebb9@byu.net>
62156
62157         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62158         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62159         Autoconf definition.
62160         * modules/euidaccess (Depends-on): Add extensions, for
62161         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62162         * modules/fnmatch (Depends-on): Likewise.
62163         * modules/getaddrinfo (Depends-on): Likewise.
62164         * modules/getdelim (Depends-on): Likewise.
62165         * modules/getline (Depends-on): Likewise.
62166         * modules/getsubopt (Depends-on): Likewise.
62167         * modules/gettext (Depends-on): Likewise.
62168         * modules/group-member (Depends-on): Likewise.
62169         * modules/mbchar (Depends-on): Likewise.
62170         * modules/memmem (Depends-on): Likewise.
62171         * modules/mempcpy (Depends-on): Likewise.
62172         * modules/memrchr (Depends-on): Likewise.
62173         * modules/pagealign_alloc (Depends-on): Likewise.
62174         * modules/readutmp (Depends-on): Likewise.
62175         * modules/stpcpy (Depends-on): Likewise.
62176         * modules/stpncpy (Depends-on): Likewise.
62177         * modules/strchrnul (Depends-on): Likewise.
62178         * modules/strndup (Depends-on): Likewise.
62179         * modules/strsep (Depends-on): Likewise.
62180         * modules/strverscmp (Depends-on): Likewise.
62181         * modules/vasprintf (Depends-on): Likewise.
62182         * modules/wcwidth (Depends-on): Likewise.
62183         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62184         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62185         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62186         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62188         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62189         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62190         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62191         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62192         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62194         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62195         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62196         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62197         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62198         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62199         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62200         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62202         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62203         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62204         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62205         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62206         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62207         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62209         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62210         so that lock.m4 can be used in gettext without extensions module.
62211
62212 2007-09-11  Bruno Haible  <bruno@clisp.org>
62213
62214         * m4/isc-posix.m4: Remove file.
62215         Suggested by Eric Blake.
62216
62217 2007-09-11  Eric Blake  <ebb9@byu.net>
62218
62219         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62220
62221 2007-09-10  Bruno Haible  <bruno@clisp.org>
62222
62223         * posix-modules: Fix typo in error message.
62224         Reported by Matt <mkraai@beckman.com>.
62225
62226 2007-09-09  Bruno Haible  <bruno@clisp.org>
62227
62228         * doc/functions/getdelim.texi: Update list of platforms lacking the
62229         function.
62230         * doc/functions/getline.texi: Likewise.
62231
62232 2007-09-09  Jim Meyering  <jim@meyering.net>
62233
62234         * lib/hash.c (hash_initialize): Detect calloc failure.
62235         Reported by Bruno Haible.
62236
62237 2007-09-09  Bruno Haible  <bruno@clisp.org>
62238
62239         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62240         malloc or realloc fails.
62241
62242 2007-09-09  Bruno Haible  <bruno@clisp.org>
62243
62244         * modules/getcwd (Depends-on): Add malloc-posix.
62245         * modules/glob (Depends-on): Likewise.
62246         * modules/putenv (Depends-on): Likewise.
62247         * modules/strdup (Depends-on): Likewise.
62248         * modules/getdelim (Depends-on): Add realloc-posix.
62249         * modules/read-file (Depends-on): Likewise.
62250
62251 2007-09-09  Bruno Haible  <bruno@clisp.org>
62252
62253         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62254         (gl_FUNC_MALLOC_POSIX): Require it.
62255         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62256         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62257         * modules/realloc (Files): Add m4/malloc.m4.
62258         * modules/calloc (Files): Likewise.
62259
62260 2007-09-09  Bruno Haible  <bruno@clisp.org>
62261
62262         * modules/malloc-posix: New file.
62263         * modules/malloc (Depends-on): Add malloc-posix.
62264         * lib/malloc.c: Include errno.h.
62265         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62266         and a POSIX-compatible malloc into a single function. Set ENOMEM
62267         when returning NULL.
62268         * m4/malloc.m4: New file.
62269         * doc/functions/malloc.texi: Mention the malloc-posix module.
62270         * lib/stdlib_.h (malloc): New declaration.
62271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62272         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62273         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62274         and HAVE_MALLOC_POSIX.
62275
62276 2007-09-09  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/realloc-posix: New file.
62279         * modules/realloc (Depends-on): Add realloc-posix.
62280         * lib/realloc.c: Include errno.h.
62281         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62282         and a POSIX-compatible realloc into a single function. Set ENOMEM
62283         when returning NULL.
62284         * m4/realloc.m4: New file.
62285         * doc/functions/realloc.texi: Mention the realloc-posix module.
62286         * lib/stdlib_.h (realloc): New declaration.
62287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62288         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62289         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62290         and HAVE_REALLOC_POSIX.
62291
62292 2007-09-09  Bruno Haible  <bruno@clisp.org>
62293
62294         * modules/calloc-posix: New file.
62295         * modules/calloc (Depends-on): Add calloc-posix.
62296         * lib/calloc.c: Include errno.h.
62297         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62298         and a POSIX-compatible calloc into a single function. Set ENOMEM
62299         when returning NULL.
62300         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62301         * doc/functions/calloc.texi: Mention the calloc-posix module.
62302         * lib/stdlib_.h (calloc): New declaration.
62303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62304         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62305         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62306         and HAVE_CALLOC_POSIX.
62307
62308 2007-09-09  Bruno Haible  <bruno@clisp.org>
62309
62310         Allow for modules to show an arbitrary notice.
62311         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62312         * gnulib-tool: New option --extract-notice.
62313         (func_usage): Document it.
62314         (sed_extract_prog): Update.
62315         (func_get_notice): New function.
62316         (func_modules_notice): New function.
62317         (func_import, func_create_testdir): Invoke it.
62318         Suggested by Jim Meyering.
62319
62320 2007-09-09  Bruno Haible  <bruno@clisp.org>
62321
62322         * gnulib-tool: New options --verbose, --quiet.
62323         (func_usage): Document them.
62324         (verbose): New variable.
62325         (func_execute_command): New function.
62326         (func_import): Don't show the module list and the file list if
62327         $verbose < 0.
62328         (func_create_testdir): Likewise. Use func_execute_command.
62329         (func_create_megatestdir): Use func_execute_command.
62330
62331 2007-09-08  Bruno Haible  <bruno@clisp.org>
62332
62333         * gnulib-tool (func_import): Prefer rsync over wget when available,
62334         for fetching the PO files.
62335
62336 2007-09-08  Bruno Haible  <bruno@clisp.org>
62337
62338         * posix-modules: New file. Portions copied from gnulib-tool.
62339         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62340
62341 2007-09-08  Jim Meyering  <jim@meyering.net>
62342
62343         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62344         * lib/fpending.h: Rename from __fpending.h.
62345         * lib/fpending.c: Rename from __fpending.c.
62346         Include "fpending.h", not "__fpending.h".
62347         * lib/__fpending.h, lib/__fpending.c: Remove files.
62348         * modules/fpending (Files): Reflect new file names.
62349         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62350
62351 2007-09-08  Bruno Haible  <bruno@clisp.org>
62352
62353         * m4/inttypes-h.m4: Remove stub file.
62354
62355 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62356
62357         * doc/headers/stdint.texi: Discuss #include_next issue.
62358
62359 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62362
62363 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62364
62365         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62366         in variable name.
62367
62368 2007-09-03  Jim Meyering  <jim@meyering.net>
62369
62370         New module: git-version-gen.
62371         * modules/git-version-gen: New file.
62372
62373         Import changes from coreutils for bootstrap script.
62374
62375         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62376
62377         bootstrap: uses rsync to download the .po files
62378         * build-aux/bootstrap (po_download_command_format): New global.
62379         (download_po_files): Use rsync.
62380         (update_po_files): Don't remove .po files after download,
62381         so future rsync runs can take advantage of the copies.
62382
62383         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62384
62385         Solve the unnecessary-.po-file-regeneration problem once and for all.
62386         * build-aux/bootstrap (download_po_files): New function, renamed from
62387         get_translations.  Now, downloads, but doesn't update LINGUAS.
62388         (update_po_files): New function.
62389
62390         bootstrap: Ignore more.
62391         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62392         uniwidth to e.g., lib/.gitignore.
62393         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62394
62395         * build-aux/bootstrap: New setting: vc_ignore.
62396         (insert_sorted_if_absent): Create $file if absent.
62397         Adapt to new, possibly empty, list: $vc_ignore.
62398
62399         bootstrap: generate more ignorable names
62400         * build-aux/bootstrap (slurp): When generating ignorable names,
62401         also map .sin to .sed, .gperf to .c, and .y to .c.
62402
62403 2007-09-03  Jim Meyering  <jim@meyering.net>
62404
62405         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62406         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62407
62408 2007-09-02  Bruno Haible  <bruno@clisp.org>
62409
62410         Fix mis-recognition of 'mcs' on QNX 6.
62411         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62412         output contains the string "Mono".
62413         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62414         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62415
62416 2007-09-01  Bruno Haible  <bruno@clisp.org>
62417
62418         Fix collision between uniwidth/* and linebreak modules.
62419         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62420         u32_width): Remove declarations.
62421         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62422         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62423         streq3, streq2, streq1, streq0): Remove functions.
62424         (STREQ): Remove macro.
62425         (is_cjk_encoding): Remove function.
62426         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62427         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62428         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62429         * NEWS: Document the change.
62430
62431 2007-09-01  Bruno Haible  <bruno@clisp.org>
62432
62433         * lib/streq.h: Add double-inclusion guard.
62434
62435 2007-09-01  Karl Berry  <karl@gnu.org>
62436
62437         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62438
62439 2007-08-28  Jim Meyering  <jim@meyering.net>
62440
62441         Rename mreadlink_with_size to areadlink_with_size.
62442         * NEWS: Document the change.
62443         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62444         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62445         * lib/mreadlink.h: Rename this to...
62446         * lib/areadlink.h: ...this.
62447         * modules/mreadlink-with-size: Rename this to...
62448         * modules/areadlink-with-size: ...this.
62449         * lib/canonicalize.c: Reflect the renaming.
62450         * modules/canonicalize: Likewise.
62451
62452 2007-08-26  Bruno Haible  <bruno@clisp.org>
62453
62454         * gnulib-tool (func_import): When deciding which files to remove,
62455         consider also dangling symbolic links.
62456         Reported by Eric Blake.
62457
62458 2007-08-26  Bruno Haible  <bruno@clisp.org>
62459
62460         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62461
62462 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62463
62464         * lib/readline.c: Don't include getline.h, the prototype is now
62465         found in stdio.h.
62466
62467 2007-08-23  Jim Meyering  <jim@meyering.net>
62468
62469         Getdelim touchup.
62470         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62471         around the funlockfile call, since funlockfile never sets errno.
62472         Don't set errno upon failed realloc.
62473
62474 2007-08-22  Eric Blake  <ebb9@byu.net>
62475
62476         Getline touchups.
62477         * lib/getdelim.c (getdelim): Revert regression that required *n to
62478         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62479         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62480         getdelim, rather than whether implementation is missing.
62481         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62482         * lib/stdio_.h (getline): Also declare if replacement is
62483         required.
62484         * doc/functions/getdelim.texi: New file.
62485         * doc/functions/getline.texi: Likewise.
62486         * doc/gnulib.texi (Function Substitutes): Add new files.
62487         Reported by Bruno Haible.
62488
62489 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62490
62491         * users.txt: Add Guile.
62492
62493 2007-08-22  Eric Blake  <ebb9@byu.net>
62494
62495         * tests/test-getdelim.c (main): Use remove, not unlink.
62496         * tests/test-getline.c (main): Likewise.
62497
62498         Move getline and getdelim into stdio.h, per POSIX 200x.
62499         * modules/getline (Files): Remove getline.h.
62500         (Depends-on): Add stdio.
62501         (configure.ac): Add module indicator.
62502         * modules/getdelim (Files): Remove getdelim.h.
62503         (Depends-on): Add stdio.
62504         (configure.ac): Add module indicator.
62505         * modules/stdio (Makefile.am): Work with new indicators.
62506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62508         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62509         * lib/getdelim.h: Delete.
62510         * lib/getline.h: Delete.
62511         * lib/stdio_.h (getdelim, getline): Declare.
62512         * modules/getdelim-tests: New module.
62513         * modules/getline-tests: Likewise.
62514         * tests/test-getdelim.c: New file.
62515         * tests/test-getline.c: Likewise.
62516         * NEWS: Document the change.
62517         * lib/getline.c: Update choice of header.
62518         * lib/csharpcomp.c: Likewise.
62519         * lib/getpass.c: Likewise.
62520         * lib/javacomp.c: Likewise.
62521         * lib/javaversion.c: Likewise.
62522         * lib/yesno.c: Likewise.
62523         * lib/getdelim.c: Likewise.
62524         (getdelim): Set errno on failure, and avoid memory leak.
62525
62526 2007-08-19  Bruno Haible  <bruno@clisp.org>
62527
62528         * modules/closein (Depends-on): Add freadahead.
62529         * lib/closein.c: Include freadahead.h.
62530         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62531         is zero.
62532
62533 2007-08-19  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/freadahead-tests: New file.
62536         * tests/test-freadahead.sh: New file.
62537         * tests/test-freadahead.c: New file.
62538
62539         * modules/freadahead: New file.
62540         * lib/freadahead.h: New file.
62541         * lib/freadahead.c: New file.
62542         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62543         fbufmode, fpurge, freadable, fwritable.
62544
62545 2007-08-19  Eric Blake  <ebb9@byu.net>
62546
62547         Test yesno in combination with closein.
62548         * lib/yesno.c (yesno): Document use of stdin.
62549         * modules/yesno-tests (Files): New module.
62550         * tests/test-yesno.c (main): New file.
62551         * tests/test-yesno.sh: Likewise.
62552
62553 2007-08-19  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62556         * lib/fseeko.c (rpl_fseeko): Likewise.
62557         * lib/fseterr.c (fseterr): Likewise.
62558
62559 2007-08-19  Bruno Haible  <bruno@clisp.org>
62560
62561         * tests/test-lseek.c (main): Disable a test for BeOS.
62562         * doc/functions/lseek.texi: Document the BeOS bug.
62563
62564 2007-08-19  Bruno Haible  <bruno@clisp.org>
62565             Eric Blake  <ebb9@byu.net>
62566
62567         * lib/lseek.c: Include <sys/stat.h>.
62568         (rpl_lseek): Add workaround code also for Unix platforms.
62569         Needed for BeOS.
62570         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62571         * doc/functions/lseek.texi: Document BeOS definiency.
62572
62573 2007-08-18  Bruno Haible  <bruno@clisp.org>
62574
62575         * modules/fstrcmp-tests: New file.
62576         * tests/test-fstrcmp.c: New file.
62577
62578 2007-08-18  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/fstrcmp: New file, from GNU gettext with modifications.
62581         * lib/fstrcmp.h: New file, from GNU gettext.
62582         * lib/fstrcmp.c: New file, from GNU gettext.
62583         * MODULES.html.sh (String handling): Add fstrcmp.
62584
62585 2007-08-18  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62588         'bool'.
62589         (diag, compareseq): Remove const from the ctxt argument.
62590         (USE_HEURISTIC): Undefine at the end.
62591
62592 2007-08-18  Jim Meyering  <jim@meyering.net>
62593
62594         New file: lib/idcache.h
62595         * NEWS: Mention the addition.
62596         * modules/idcache (Files): Add lib/idcache.h
62597         * lib/idcache.c: Include "idcache.h".
62598         Don't include <sys/types.h>.
62599         Add a FIXME comment.
62600         Move file-scoped "static" declarations to the top.
62601         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62602
62603 2007-08-17  Bruno Haible  <bruno@clisp.org>
62604         and Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         * MODULES.html.sh: Add diffseq.
62607         * modules/diffseq: New file.
62608         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62609         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62610
62611 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         Import changes from coreutils for bootstrap script.
62614
62615         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * build-aux/bootstrap (slurp): Work even in environments where
62618         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62619         current code does not slurp files whose names start with ".", and
62620         this looks like it might be a troublesome area.
62621
62622         2007-07-11  Jim Meyering  <jim@meyering.net>
62623
62624         If there's a GPL vN copyright comment, require that N == 3.
62625
62626         2007-07-08  Jim Meyering  <jim@meyering.net>
62627
62628         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62629         * build-aux/bootstrap (mam_template): Move definition out of loop.
62630
62631         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62632
62633         * build-aux/bootstrap (symlink_to_dir): Rename function from
62634         symlink_to_gnulib.  Add a directory parameter.  Update all
62635         callers.
62636         (cp_mark_as_generated): Also check for -- and link to -- files in
62637         gl/.
62638
62639         2007-07-08  Jim Meyering  <jim@meyering.net>
62640
62641         Adapt to deeper hierarchy in gnulib.
62642         * build-aux/bootstrap (symlink_to_dir): If the destination
62643         directory doesn't exist, create it. This is required at least for
62644         "lib/uniwidth/cjk.h".
62645
62646         2007-05-15  Jim Meyering  <jim@meyering.net>
62647
62648         * build-aux/bootstrap: Now that generated Makefile.am files
62649         are no longer under version control, they must be created at
62650         bootstrap time.
62651
62652 2007-08-14  Ben Pfaff  <blp@gnu.org>
62653
62654         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62655
62656 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62659         given the changes below.
62660         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62661         even on hosts that have padding bits beyond the supported 64.
62662
62663 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62664
62665         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62666         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62667         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62668         depends on it.
62669         (xstrtol_error): Remove.
62670         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62671         but with a different signature.
62672         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62673         * lib/xstrtol-error.c: Include exitfail.h.
62674         (xstrtol_fatal): New function, with a different signature from the
62675         old xstrtol_error, so that the caller need not worry about passing
62676         in an exit status, or about storage management of the option argument.
62677         (xstrtol_error): Now a static function.  Redo signature to
62678         implement xstrtol_fatal.  Output the correct number of hyphens in
62679         front of the option so that the caller need not worry about
62680         storage management.
62681         (N_): New macro.
62682         (_): Remove; not used now.
62683         * modules/xstrtol: Depend on getopt.
62684         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62685         of old STRTOL_FATAL_ERROR macro.
62686         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62687         of test program.
62688         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62689         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62690
62691 2007-08-08  Eric Blake  <ebb9@byu.net>
62692
62693         * lib/xstrtol-error.c: Add missing include.
62694
62695         Move xstrtol messages into gnulib domain, when --pobase is used.
62696         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62697         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62698         * modules/xstrtol (Files): Distribute new file.
62699         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62700         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62701         * tests/test-xstrtol.c: ...into new file.
62702         * tests/test-xstrtoul.c: Also test xstrtoul.
62703         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62704         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62705         * tests/test-xstrtol.sh: Drive the tests.
62706         * tests/test-xstrtoimax.sh: Likewise.
62707         * tests/test-xstrtoumax.sh: Likewise.
62708         * modules/xstrtol-tests: New module.
62709         * modules/xstrtoimax-tests: Likewise.
62710         * modules/xstrtoumax-tests: Likewise.
62711
62712 2007-08-08  Jim Meyering  <jim@meyering.net>
62713
62714         New function: mfile_name_concat.
62715         * lib/filenamecat.c (mfile_name_concat): New function, just like
62716         file_name_concat, but return NULL upon failure rather than exiting
62717         with a diagnostic.
62718         * lib/filenamecat.h: Declare it.
62719
62720 2007-08-07  Bruno Haible  <bruno@clisp.org>
62721
62722         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62723         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62724         warning from gcc.
62725         Reported by Eric Blake.
62726
62727 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62728
62729         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62730         * modules/crypto/arcfour (License): Likewise.
62731         * modules/crypto/des-tests (License): Likewise.
62732         * modules/crypto/gc-arctwo-tests (License): Likewise.
62733         * modules/crypto/gc-des-tests (License): Likewise.
62734         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62735         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62736         * modules/crypto/gc-md2-tests (License): Likewise.
62737         * modules/crypto/gc-md4-tests (License): Likewise.
62738         * modules/crypto/gc-md5-tests (License): Likewise.
62739         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62740         * modules/crypto/gc-rijndael-tests (License): Likewise.
62741         * modules/crypto/gc-sha1-tests (License): Likewise.
62742         * modules/crypto/gc-tests (License): Likewise.
62743         * modules/crypto/hmac-md5 (License): Likewise.
62744         * modules/crypto/hmac-sha1 (License): Likewise.
62745         * modules/crypto/md2-tests (License): Likewise.
62746         * modules/crypto/md4-tests (License): Likewise.
62747         * modules/crypto/md5 (License): Likewise.
62748         * modules/crypto/rijndael (License): Likewise.
62749         * modules/crypto/sha1 (License): Likewise.
62750         * modules/memxor (License): Likewise.
62751
62752 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62753         and Bruno Haible  <bruno@clisp.org>
62754
62755         * NEWS: Describe interface changes to human, xstrtol.
62756         * lib/human.h: Include <xstrtol.h>.
62757         (human_options): Return enum strtol_error, not int.  Remove
62758         bool arg; take int * instead.
62759         * lib/human.c: Don't include "gettext.h".
62760         (_): Remove; no longer used.
62761         Don't include <xstrtol.h>, since human.h does it.
62762         (human_options): Adjust to abovementioned interface changes.
62763         Do not report error to stderr; that's now the caller's
62764         responsibility.
62765         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62766         interface change.
62767         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62768         Str, Argument_type_string.  All uses changed.  Put " argument"
62769         in diagnostics to make them clearer.  Change wording of suffix
62770         message for clarity.
62771         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62772         Argument_type_string.
62773         (STRTOL_FATAL_WARN): Remove; no longer used.
62774         * modules/human (Depends-on): Remove gettext-h.
62775
62776 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62777
62778         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62779
62780 2007-07-31  Bruno Haible  <bruno@clisp.org>
62781
62782         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62783         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62784         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62785
62786 2007-07-31  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62789         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62790
62791 2007-07-30  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62794         * modules/c-ctype (License): Likewise.
62795         * modules/c-strcase (License): Likewise.
62796         * modules/check-version (License): Likewise.
62797         * modules/iconv (License): Likewise.
62798         * modules/iconv_open (License): Likewise.
62799         * modules/read-file (License): Likewise.
62800         * modules/striconv (License): Likewise.
62801         * modules/strverscmp (License): Likewise.
62802         * modules/vasprintf (License): Likewise.
62803         * modules/crypto/des (License): Likewise.
62804         * modules/crypto/gc (License): Likewise.
62805         * modules/crypto/gc-arcfour (License): Likewise.
62806         * modules/crypto/gc-arctwo (License): Likewise.
62807         * modules/crypto/gc-des (License): Likewise.
62808         * modules/crypto/gc-hmac-md5 (License): Likewise.
62809         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62810         * modules/crypto/gc-md2 (License): Likewise.
62811         * modules/crypto/gc-md4 (License): Likewise.
62812         * modules/crypto/gc-md5 (License): Likewise.
62813         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62814         * modules/crypto/gc-random (License): Likewise.
62815         * modules/crypto/gc-rijndael (License): Likewise.
62816         * modules/crypto/gc-sha1 (License): Likewise.
62817         * modules/crypto/md2 (License): Likewise.
62818         * modules/crypto/md4 (License): Likewise.
62819
62820 2007-07-30  Jim Meyering  <jim@meyering.net>
62821
62822         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62823         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62824         it has valid stat data.  This bug would cause du not to count the
62825         sizes of inaccessible directories.
62826         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62827         in <http://bugzilla.redhat.com/250077>.
62828
62829 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62830             Bruno Haible  <bruno@clisp.org>
62831
62832         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62833         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62834         #include_next, gives a diagnostic about it, but reports no error in
62835         the exit code.
62836         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62837
62838 2007-07-24  Ben Pfaff  <blp@gnu.org>
62839
62840         Improve name: "count-one-bits" is better than "popcount".
62841         * MODULES.html.sh: Update name.
62842         * lib/popcount.h: Renamed lib/count-one-bits.h.
62843         (popcount): Renamed count_one_bits.
62844         (popcountl): Renamed count_one_bits_l.
62845         (popcountll): Renamed count_one_bits_ll.
62846         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62847         * modules/popcount: Renamed module/count-one-bits.
62848         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62849         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62850
62851 2007-07-23  Ben Pfaff  <blp@gnu.org>
62852
62853         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62854         better code generation, and add U to large constants to avoid
62855         warnings, in non-GCC case.
62856         Suggested by Bruno Haible.
62857
62858 2007-07-23  Ben Pfaff  <blp@gnu.org>
62859
62860         * lib/popcount.h: Use verify_true instead of if...abort.
62861         * modules/popcount: Depend on verify module.
62862         Suggested by Jim Meyering.
62863
62864 2007-07-23  Bruno Haible  <bruno@clisp.org>
62865
62866         * gnulib-tool (func_import): Create a .cvsignore file also when the
62867         directory is not yet in CVS but the toplevel directory is. When
62868         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62869         Reported by Karl Berry.
62870
62871 2007-07-22  Ben Pfaff  <blp@gnu.org>
62872
62873         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62874         case.
62875         Suggested by Eric Blake.
62876
62877 2007-07-22  Ben Pfaff  <blp@gnu.org>
62878
62879         New module: popcount.
62880         * MODULES.html.sh: Add popcount.
62881         * modules/popcount: New file.
62882         * modules/popcount-tests: New file.
62883         * tests/test-popcount.c: New file.
62884         * lib/popcount.h: New file.
62885         * m4/popcount.m4: New file.
62886
62887 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * build-aux/announce-gen: Update to GPLv3.
62890
62891         * build-aux/config.guess: Update from config.
62892
62893 2007-07-21  Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62896         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62897
62898 2007-07-20  Jim Meyering  <jim@meyering.net>
62899
62900         * check-module: Diagnose a self-dependency.
62901
62902 2007-07-19  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62905         empty.
62906         Reported by Eric Blake.
62907
62908 2007-07-18  Bruno Haible  <bruno@clisp.org>
62909
62910         * gnulib-tool: New options --po-base, --po-domain.
62911         (func_usage): Document them.
62912         (pobase, po_domain): New variables.
62913         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62914         DEFAULT_TEXT_DOMAIN.
62915         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62916         (func_import): Consider pobase and po_domain. Create a po/ directory.
62917         (func_create_testdir): Set pobase and po_domain to empty.
62918         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62919         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62920
62921 2007-07-18  Bruno Haible  <bruno@clisp.org>
62922
62923         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62924         EXTRA_DIST augmentation for files in build-aux/.
62925
62926 2007-07-16  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62929         * modules/getdelim (License): Likewise.
62930
62931 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62932
62933         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62934         * modules/d-type (License): Likewise.
62935         * modules/extensions (License): Likewise.
62936         * modules/fnmatch (License): Likewise.
62937         * modules/fseeko (License): Likewise.
62938         * modules/getaddrinfo (License): Likewise.
62939         * modules/getline (License): Likewise.
62940         * modules/getlogin_r (License): Likewise.
62941         * modules/getpass (License): Likewise.
62942         * modules/gettimeofday (License): Likewise.
62943         * modules/glob (License): Likewise.
62944         * modules/inet_ntop (License): Likewise.
62945         * modules/malloc (License): Likewise.
62946         * modules/malloca (License): Likewise.
62947         * modules/memmem (License): Likewise.
62948         * modules/mempcpy (License): Likewise.
62949         * modules/memset (License): Likewise.
62950         * modules/minmax (License): Likewise.
62951         * modules/mktime (License): Likewise.
62952         * modules/netinet_in (License): Likewise.
62953         * modules/pathmax (License): Likewise.
62954         * modules/poll (License): Likewise.
62955         * modules/regex (License): Likewise.
62956         * modules/snprintf (License): Likewise.
62957         * modules/stdbool (License): Likewise.
62958         * modules/stdint (License): Likewise.
62959         * modules/stdio (License): Likewise.
62960         * modules/strcase (License): Likewise.
62961         * modules/strcasestr (License): Likewise.
62962         * modules/strdup (License): Likewise.
62963         * modules/string (License): Likewise.
62964         * modules/strndup (License): Likewise.
62965         * modules/strnlen (License): Likewise.
62966         * modules/strpbrk (License): Likewise.
62967         * modules/strptime (License): Likewise.
62968         * modules/strsep (License): Likewise.
62969         * modules/sys_select (License): Likewise.
62970         * modules/sys_socket (License): Likewise.
62971         * modules/sys_stat (License): Likewise.
62972         * modules/sys_time (License): Likewise.
62973         * modules/time (License): Likewise.
62974         * modules/time_r (License): Likewise.
62975         * modules/timegm (License): Likewise.
62976         * modules/unistd (License): Likewise.
62977         * modules/vsnprintf (License): Likewise.
62978         * modules/wctype (License): Likewise.
62979
62980 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62981
62982         * modules/argz (License): LGPLv2+.
62983
62984 2007-07-15  Karl Berry  <karl@gnu.org>
62985
62986         * doc/gnulib.texi: revise node structure per new fdl.texi.
62987
62988 2007-07-14  Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62991         the output file.
62992         * lib/uniname/uninames.h: Regenerated.
62993
62994 2007-07-14  Karl Berry  <karl@gnu.org>
62995
62996         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62997         omitting sectioning and index commands.
62998
62999 2007-07-13  Bruno Haible  <bruno@clisp.org>
63000
63001         New gnulib-tool option --more-symlinks.
63002         * gnulib-tool (func_usage): Document --more-symlinks.
63003         (do_copyrights): New variable.
63004         Recognize option --more-symlinks.
63005         (func_import): Don't add a copyright notice transform to
63006         sed_transform_lib_file if do_copyrights is empty.
63007
63008 2007-07-13  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/vasnprintf.c (decimal_point_char): Define also if
63011         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63012         && !NEED_PRINTF_DIRECTIVE_A.
63013         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63014         Gary V. Vaughan <gary@gnu.org>.
63015
63016 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * lib/inttypes_.h: Undo previous change, since it was fixed
63019         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63020
63021 2007-07-13  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63024         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63025
63026 2007-07-13  Jim Meyering  <jim@meyering.net>
63027
63028         df: Don't fail for Tru64's "file-on-file mount".
63029         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63030         so we fall through and use statfs instead.  Details here:
63031         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63032         Reported by Albert Chin.
63033
63034 2007-07-13  Bruno Haible  <bruno@clisp.org>
63035
63036         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63037         * modules/configmake (License): Likewise.
63038         * modules/gettext (License): Likewise.
63039         * modules/gettext-h (License): Likewise.
63040         * modules/include_next (License): Likewise.
63041         * modules/link-warning (License): Likewise.
63042         * modules/localcharset (License): Likewise.
63043         * modules/localename (License): Likewise.
63044         * modules/lock (License): Likewise.
63045         * modules/relocatable-lib-lgpl (License): Likewise.
63046         * modules/size_max (License): Likewise.
63047         * modules/vasnprintf (License): Likewise.
63048         * modules/wchar (License): Likewise.
63049         * modules/xsize (License): Likewise.
63050
63051 2007-07-13  Bruno Haible  <bruno@clisp.org>
63052
63053         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63054         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63055
63056 2007-07-12  Bruno Haible  <bruno@clisp.org>
63057
63058         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63059         in the modules files.
63060
63061 2007-07-11  Karl Berry  <karl@gnu.org>
63062
63063         * MODULES.html.sh (func_module): use
63064          sed -e '\|^'"${includefile}"'$|d'
63065          instead of /.../d, to avoid errors on $includefile's containing /.
63066
63067 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63068
63069         * gnulib-tool (func_import): Avoid duplication of --avoid
63070         statements
63071         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63072         names to `_' in variable names.
63073
63074 2007-07-10  Eric Blake  <ebb9@byu.net>
63075
63076         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63077         * NEWS: Document this change.
63078
63079 2007-07-08  Bruno Haible  <bruno@clisp.org>
63080
63081         Update to Unicode 5.0.
63082         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63083         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63084         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63085         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63086         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63087         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63088         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63089         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63090         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63091         U+10A3F, U+1D242..U+1D244.
63092         (nonspacing_table_ind): Update.
63093         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63094         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63095
63096 2007-07-08  Bruno Haible  <bruno@clisp.org>
63097
63098         Update to Unicode 5.0.
63099         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63100         code transform. Extend the name index field of unicode_name_to_code and
63101         unicode_code_to_name from 16 to 24 bits.
63102         * lib/uniname/uniname.c (unicode_character_name,
63103         unicode_name_character): Add the range 0x12xxx to the code transform.
63104         * lib/uniname/uninames.h: Regenerated.
63105         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63106
63107 2007-07-07  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/wcwidth-tests: New file.
63110         * tests/test-wcwidth.c: New file.
63111
63112         Work around MacOS X wcwidth() bug.
63113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63114         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63115         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63116         original wcwidth in non-UTF-8 locales.
63117         * modules/wcwidth (Depends-on): Add localcharset, streq,
63118         uniwidth/width.
63119         * doc/functions/wcwidth.texi: Update.
63120
63121 2007-07-07  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63124         (wcwidth): New declaration.
63125         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63126         macros.
63127         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63128         here. Prepare for creating <wchar.h> unconditionally.
63129         * modules/wchar (Depends-on): Add link-warning.
63130         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63131         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63132         * lib/wcwidth.h: Remove file.
63133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63134         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63135         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63136         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63137         (Include): Replace wcwidth.h with <wchar.h>.
63138         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63139         * lib/mbchar.h: Don't include wcwidth.h.
63140         * lib/mbswidth.c: Likewise.
63141         * NEWS: Mention the change.
63142
63143 2007-07-07  Bruno Haible  <bruno@clisp.org>
63144
63145         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63146         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63147         definition with an external declaration.
63148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63149         defined as a function. Remove AC_C_INLINE requirement.
63150         * modules/wcwidth (Files): Add lib/wcwidth.c.
63151         (Makefile.am): Remove redundant statement.
63152
63153 2007-07-07  Bruno Haible  <bruno@clisp.org>
63154
63155         * MODULES.html.sh (Unicode string functions): Add the new modules.
63156
63157         * tests/uniwidth/test-u32-strwidth.c: New file.
63158         * modules/uniwidth/u32-strwidth-tests: New file.
63159
63160         * lib/uniwidth/u32-strwidth.c: New file.
63161         * modules/uniwidth/u32-strwidth: New file.
63162
63163         * tests/uniwidth/test-u16-strwidth.c: New file.
63164         * modules/uniwidth/u16-strwidth-tests: New file.
63165
63166         * lib/uniwidth/u16-strwidth.c: New file.
63167         * modules/uniwidth/u16-strwidth: New file.
63168
63169         * tests/uniwidth/test-u8-strwidth.c: New file.
63170         * modules/uniwidth/u8-strwidth-tests: New file.
63171
63172         * lib/uniwidth/u8-strwidth.c: New file.
63173         * modules/uniwidth/u8-strwidth: New file.
63174
63175         * tests/uniwidth/test-u32-width.c: New file.
63176         * modules/uniwidth/u32-width-tests: New file.
63177
63178         * lib/uniwidth/u32-width.c: New file.
63179         * modules/uniwidth/u32-width: New file.
63180
63181         * tests/uniwidth/test-u16-width.c: New file.
63182         * modules/uniwidth/u16-width-tests: New file.
63183
63184         * lib/uniwidth/u16-width.c: New file.
63185         * modules/uniwidth/u16-width: New file.
63186
63187         * tests/uniwidth/test-u8-width.c: New file.
63188         * modules/uniwidth/u8-width-tests: New file.
63189
63190         * lib/uniwidth/u8-width.c: New file.
63191         * modules/uniwidth/u8-width: New file.
63192
63193         * tests/uniwidth/test-uc_width.c: New file.
63194         * modules/uniwidth/width-tests: New file.
63195
63196         * lib/uniwidth/width.c: New file, from GNU libiconv.
63197         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63198         * modules/uniwidth/width: New file.
63199
63200         * lib/uniwidth.h: New file, from GNU libiconv.
63201         * modules/uniwidth/base: New file.
63202
63203 2007-07-07  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/uniname.h: New file, from GNU gettext.
63206         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63207         * lib/uniname/uninames.h: New file, from GNU gettext.
63208         * lib/uniname/uniname.c: New file, from GNU gettext.
63209         * tests/uniname/test-uninames.sh: New file.
63210         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63211         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63212         * modules/uniname/base: New file.
63213         * modules/uniname/uniname: New file.
63214         * modules/uniname/uniname-tests: New file.
63215         * MODULES.html.sh (Unicode string functions): Add the new modules.
63216
63217 2007-07-06  Bruno Haible  <bruno@clisp.org>
63218
63219         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63220
63221 2007-07-06  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63224         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63225         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63226         include <sys/time.h>.
63227         Reported by Eric Blake.
63228
63229 2007-07-06  Eric Blake  <ebb9@byu.net>
63230
63231         Fix testing canonicalize on cygwin.
63232         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63233         Revert patch from 2007-06-19.
63234         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63235         canonicalize module is also in use.
63236         * tests/test-canonicalize.c: New file.
63237         * tests/test-canonicalize.sh: Likewise.
63238         * modules/canonicalize-tests: Likewise.
63239
63240 2007-07-06  Jim Meyering  <jim@meyering.net>
63241
63242         * lib/getugroups.c (getugroups): Detect getgrent failure.
63243         Adjust comment to reflect reality: this function may return -1.
63244
63245 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63246
63247         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63248         the new TP address.
63249         (usage): Fix typo
63250         (gnulib_mk): New variable.
63251
63252 2007-07-05  Jim Meyering  <jim@meyering.net>
63253
63254         Don't let endgrent clobber errno, no matter how improbable.
63255         * lib/getugroups.c (getugroups): Save and restore errno around
63256         endgrent call.
63257
63258         Close the group DB even when failing with 2^31 or more members.
63259         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63260
63261 2007-07-04  Jim Meyering  <jim@meyering.net>
63262
63263         * lib/getugroups.h: New file.
63264         * lib/getugroups.c: Include "getugroups.h".
63265         Remove uses of "register" keyword.
63266         Move local variable, "cp", down into scope where used.
63267         Give "username" parameter the "const" attribute.
63268         * modules/getugroups (Files): Add lib/getugroups.h
63269
63270 2007-07-04  Karl Berry  <karl@gnu.org>
63271
63272         * MODULES.html.sh (func_all_modules): Complete rename of
63273         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63274
63275 2007-07-02  Bruno Haible  <bruno@clisp.org>
63276
63277         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63278         mode, when inttypes.h comes from gnulib.
63279         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63280
63281 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63282
63283         * NEWS: Mention lgpl module name change.
63284
63285         * modules/lgpl-2.1: Renamed from lgpl.
63286
63287         * NEWS: Mention gpl module name change.
63288
63289         * modules/gpl-3.0: New file, based on gpl-2.0.
63290
63291         * modules/gpl-2.0: Renamed from gpl.
63292
63293         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63294         doc/gpl-2.0.texi.
63295
63296 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63299         #define __STDC_LIMIT_MACROS temporarily while including
63300         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63301         Problem reported by Joel E. Denny in
63302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63303
63304 2007-07-01  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/unistdio.h: New file.
63307         * lib/unistdio/u-asnprintf.h: New file.
63308         * lib/unistdio/u-asprintf.h: New file.
63309         * lib/unistdio/u-printf-args.c: New file.
63310         * lib/unistdio/u-printf-args.h: New file.
63311         * lib/unistdio/u-printf-parse.h: New file.
63312         * lib/unistdio/u-snprintf.h: New file.
63313         * lib/unistdio/u-sprintf.h: New file.
63314         * lib/unistdio/u-vasprintf.h: New file.
63315         * lib/unistdio/u-vsnprintf.h: New file.
63316         * lib/unistdio/u-vsprintf.h: New file.
63317         * lib/unistdio/ulc-asnprintf.c: New file.
63318         * lib/unistdio/ulc-asprintf.c: New file.
63319         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63320         * lib/unistdio/ulc-printf-parse.c: New file.
63321         * lib/unistdio/ulc-snprintf.c: New file.
63322         * lib/unistdio/ulc-sprintf.c: New file.
63323         * lib/unistdio/ulc-vasnprintf.c: New file.
63324         * lib/unistdio/ulc-vasprintf.c: New file.
63325         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63326         * lib/unistdio/ulc-vsnprintf.c: New file.
63327         * lib/unistdio/ulc-vsprintf.c: New file.
63328         * lib/unistdio/u8-asnprintf.c: New file.
63329         * lib/unistdio/u8-asprintf.c: New file.
63330         * lib/unistdio/u8-printf-parse.c: New file.
63331         * lib/unistdio/u8-snprintf.c: New file.
63332         * lib/unistdio/u8-sprintf.c: New file.
63333         * lib/unistdio/u8-vasnprintf.c: New file.
63334         * lib/unistdio/u8-vasprintf.c: New file.
63335         * lib/unistdio/u8-vsnprintf.c: New file.
63336         * lib/unistdio/u8-vsprintf.c: New file.
63337         * lib/unistdio/u8-u8-asnprintf.c: New file.
63338         * lib/unistdio/u8-u8-asprintf.c: New file.
63339         * lib/unistdio/u8-u8-snprintf.c: New file.
63340         * lib/unistdio/u8-u8-sprintf.c: New file.
63341         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63342         * lib/unistdio/u8-u8-vasprintf.c: New file.
63343         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63344         * lib/unistdio/u8-u8-vsprintf.c: New file.
63345         * lib/unistdio/u16-asnprintf.c: New file.
63346         * lib/unistdio/u16-asprintf.c: New file.
63347         * lib/unistdio/u16-printf-parse.c: New file.
63348         * lib/unistdio/u16-snprintf.c: New file.
63349         * lib/unistdio/u16-sprintf.c: New file.
63350         * lib/unistdio/u16-vasnprintf.c: New file.
63351         * lib/unistdio/u16-vasprintf.c: New file.
63352         * lib/unistdio/u16-vsnprintf.c: New file.
63353         * lib/unistdio/u16-vsprintf.c: New file.
63354         * lib/unistdio/u16-u16-asnprintf.c: New file.
63355         * lib/unistdio/u16-u16-asprintf.c: New file.
63356         * lib/unistdio/u16-u16-snprintf.c: New file.
63357         * lib/unistdio/u16-u16-sprintf.c: New file.
63358         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63359         * lib/unistdio/u16-u16-vasprintf.c: New file.
63360         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63361         * lib/unistdio/u16-u16-vsprintf.c: New file.
63362         * lib/unistdio/u32-asnprintf.c: New file.
63363         * lib/unistdio/u32-asprintf.c: New file.
63364         * lib/unistdio/u32-printf-parse.c: New file.
63365         * lib/unistdio/u32-snprintf.c: New file.
63366         * lib/unistdio/u32-sprintf.c: New file.
63367         * lib/unistdio/u32-vasnprintf.c: New file.
63368         * lib/unistdio/u32-vasprintf.c: New file.
63369         * lib/unistdio/u32-vsnprintf.c: New file.
63370         * lib/unistdio/u32-vsprintf.c: New file.
63371         * lib/unistdio/u32-u32-asnprintf.c: New file.
63372         * lib/unistdio/u32-u32-asprintf.c: New file.
63373         * lib/unistdio/u32-u32-snprintf.c: New file.
63374         * lib/unistdio/u32-u32-sprintf.c: New file.
63375         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63376         * lib/unistdio/u32-u32-vasprintf.c: New file.
63377         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63378         * lib/unistdio/u32-u32-vsprintf.c: New file.
63379         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63380         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63381         * tests/unistdio/test-ulc-printf1.h: New file.
63382         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63383         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63384         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63385         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63386         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63387         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63388         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63389         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63390         * tests/unistdio/test-u8-asnprintf1.c: New file.
63391         * tests/unistdio/test-u8-asnprintf1.h: New file.
63392         * tests/unistdio/test-u8-printf1.h: New file.
63393         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63394         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63395         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63396         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63397         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63398         * tests/unistdio/test-u8-vasprintf1.c: New file.
63399         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63400         * tests/unistdio/test-u8-vsprintf1.c: New file.
63401         * tests/unistdio/test-u16-asnprintf1.c: New file.
63402         * tests/unistdio/test-u16-asnprintf1.h: New file.
63403         * tests/unistdio/test-u16-printf1.h: New file.
63404         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63405         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63406         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63407         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63408         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63409         * tests/unistdio/test-u16-vasprintf1.c: New file.
63410         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63411         * tests/unistdio/test-u16-vsprintf1.c: New file.
63412         * tests/unistdio/test-u32-asnprintf1.c: New file.
63413         * tests/unistdio/test-u32-asnprintf1.h: New file.
63414         * tests/unistdio/test-u32-printf1.h: New file.
63415         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63416         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63417         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63418         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63419         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63420         * tests/unistdio/test-u32-vasprintf1.c: New file.
63421         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63422         * tests/unistdio/test-u32-vsprintf1.c: New file.
63423         * modules/unistdio/base: New file.
63424         * modules/unistdio/u-printf-args: New file.
63425         * modules/unistdio/ulc-asnprintf: New file.
63426         * modules/unistdio/ulc-asprintf: New file.
63427         * modules/unistdio/ulc-fprintf: New file.
63428         * modules/unistdio/ulc-printf-parse: New file.
63429         * modules/unistdio/ulc-snprintf: New file.
63430         * modules/unistdio/ulc-sprintf: New file.
63431         * modules/unistdio/ulc-vasnprintf: New file.
63432         * modules/unistdio/ulc-vasprintf: New file.
63433         * modules/unistdio/ulc-vfprintf: New file.
63434         * modules/unistdio/ulc-vsnprintf: New file.
63435         * modules/unistdio/ulc-vsprintf: New file.
63436         * modules/unistdio/u8-asnprintf: New file.
63437         * modules/unistdio/u8-asprintf: New file.
63438         * modules/unistdio/u8-printf-parse: New file.
63439         * modules/unistdio/u8-snprintf: New file.
63440         * modules/unistdio/u8-sprintf: New file.
63441         * modules/unistdio/u8-vasnprintf: New file.
63442         * modules/unistdio/u8-vasprintf: New file.
63443         * modules/unistdio/u8-vsnprintf: New file.
63444         * modules/unistdio/u8-vsprintf: New file.
63445         * modules/unistdio/u8-u8-asnprintf: New file.
63446         * modules/unistdio/u8-u8-asprintf: New file.
63447         * modules/unistdio/u8-u8-snprintf: New file.
63448         * modules/unistdio/u8-u8-sprintf: New file.
63449         * modules/unistdio/u8-u8-vasnprintf: New file.
63450         * modules/unistdio/u8-u8-vasprintf: New file.
63451         * modules/unistdio/u8-u8-vsnprintf: New file.
63452         * modules/unistdio/u8-u8-vsprintf: New file.
63453         * modules/unistdio/u16-asnprintf: New file.
63454         * modules/unistdio/u16-asprintf: New file.
63455         * modules/unistdio/u16-printf-parse: New file.
63456         * modules/unistdio/u16-snprintf: New file.
63457         * modules/unistdio/u16-sprintf: New file.
63458         * modules/unistdio/u16-vasnprintf: New file.
63459         * modules/unistdio/u16-vasprintf: New file.
63460         * modules/unistdio/u16-vsnprintf: New file.
63461         * modules/unistdio/u16-vsprintf: New file.
63462         * modules/unistdio/u16-u16-asnprintf: New file.
63463         * modules/unistdio/u16-u16-asprintf: New file.
63464         * modules/unistdio/u16-u16-snprintf: New file.
63465         * modules/unistdio/u16-u16-sprintf: New file.
63466         * modules/unistdio/u16-u16-vasnprintf: New file.
63467         * modules/unistdio/u16-u16-vasprintf: New file.
63468         * modules/unistdio/u16-u16-vsnprintf: New file.
63469         * modules/unistdio/u16-u16-vsprintf: New file.
63470         * modules/unistdio/u32-asnprintf: New file.
63471         * modules/unistdio/u32-asprintf: New file.
63472         * modules/unistdio/u32-printf-parse: New file.
63473         * modules/unistdio/u32-snprintf: New file.
63474         * modules/unistdio/u32-sprintf: New file.
63475         * modules/unistdio/u32-vasnprintf: New file.
63476         * modules/unistdio/u32-vasprintf: New file.
63477         * modules/unistdio/u32-vsnprintf: New file.
63478         * modules/unistdio/u32-vsprintf: New file.
63479         * modules/unistdio/u32-u32-asnprintf: New file.
63480         * modules/unistdio/u32-u32-asprintf: New file.
63481         * modules/unistdio/u32-u32-snprintf: New file.
63482         * modules/unistdio/u32-u32-sprintf: New file.
63483         * modules/unistdio/u32-u32-vasnprintf: New file.
63484         * modules/unistdio/u32-u32-vasprintf: New file.
63485         * modules/unistdio/u32-u32-vsnprintf: New file.
63486         * modules/unistdio/u32-u32-vsprintf: New file.
63487         * modules/unistdio/ulc-asnprintf-tests: New file.
63488         * modules/unistdio/ulc-vasnprintf-tests: New file.
63489         * modules/unistdio/ulc-vasprintf-tests: New file.
63490         * modules/unistdio/ulc-vsnprintf-tests: New file.
63491         * modules/unistdio/ulc-vsprintf-tests: New file.
63492         * modules/unistdio/u8-asnprintf-tests: New file.
63493         * modules/unistdio/u8-vasnprintf-tests: New file.
63494         * modules/unistdio/u8-vasprintf-tests: New file.
63495         * modules/unistdio/u8-vsnprintf-tests: New file.
63496         * modules/unistdio/u8-vsprintf-tests: New file.
63497         * modules/unistdio/u16-asnprintf-tests: New file.
63498         * modules/unistdio/u16-vasnprintf-tests: New file.
63499         * modules/unistdio/u16-vasprintf-tests: New file.
63500         * modules/unistdio/u16-vsnprintf-tests: New file.
63501         * modules/unistdio/u16-vsprintf-tests: New file.
63502         * modules/unistdio/u32-asnprintf-tests: New file.
63503         * modules/unistdio/u32-vasnprintf-tests: New file.
63504         * modules/unistdio/u32-vasprintf-tests: New file.
63505         * modules/unistdio/u32-vsnprintf-tests: New file.
63506         * modules/unistdio/u32-vsprintf-tests: New file.
63507         * MODULES.html.sh (Unicode string functions): Add the new modules.
63508
63509 2007-07-01  Bruno Haible  <bruno@clisp.org>
63510
63511         * lib/sprintf.c (sprintf): Limit the available length estimation,
63512         to avoid address wraparound.
63513         * lib/vsprintf.c (vsprintf): Likewise.
63514         * modules/sprintf-posix (Dependencies): Add stdint.
63515         * modules/vsprintf-posix (Dependencies): Likewise.
63516
63517 2007-07-01  Bruno Haible  <bruno@clisp.org>
63518
63519         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63520         Windows PATH as well. Conservative double-quoting. Comments.
63521
63522 2007-07-01  Bruno Haible  <bruno@clisp.org>
63523             Eric Blake  <ebb9@byu.net>
63524             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63525
63526         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63527         empty components in $PATH, denoting '.'.
63528
63529 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63530
63531         * gnulib-tool: Fix indentation.
63532         (func_create_megatestdir): Likewise.
63533         Report by Bruno Haible.
63534
63535 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63536
63537         Sync from Automake.
63538         * build-aux/gnupload: Fix shell portability issues with for loops.
63539         Report by Karl Berry.
63540
63541 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63542
63543         * build-aux/maint.mk (POURL): Use translationproject.org.
63544
63545 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63546             Bruno Haible  <bruno@clisp.org>
63547
63548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63549         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63550         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63551         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63552         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63553
63554 2007-06-27  Bruno Haible  <bruno@clisp.org>
63555
63556         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63557         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63558
63559 2007-06-26  Karl Berry  <karl@gnu.org>
63560
63561         * MODULES.html.sh: remove xreadlink-with-size.
63562
63563 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63566         method that I hope also handles the double-include problem noted
63567         by Bruno Haible in
63568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63569
63570 2007-06-23  Bruno Haible  <bruno@clisp.org>
63571
63572         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63573         Don't let the 'mostlyclean' target fail if the last subdirectory could
63574         not be removed.
63575         Reported by Karl Berry.
63576
63577 2007-06-23  Bruno Haible  <bruno@clisp.org>
63578
63579         * gnulib-tool (echo): Add a speedier workaround for ksh.
63580         * tests/test-echo.sh: Likewise.
63581
63582 2007-06-23  Bruno Haible  <bruno@clisp.org>
63583
63584         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63585         * tests/test-echo.sh: Likewise.
63586
63587 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63588
63589         * gnulib-tool (IFS): Initialize early, so we don't set it to
63590         empty later.
63591         (self_abspathname): Rewrite algorithm to set it, reindent.
63592         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63593         (func_create_megatestdir): Merge some sed scripts.
63594
63595 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63598         exposed by Sun Studio 11 cc on Solaris 8.
63599
63600 2007-06-22  Bruno Haible  <bruno@clisp.org>
63601
63602         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63603         backslashes.
63604         * tests/test-echo.sh: New file.
63605
63606 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63607
63608         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63609         simplify `sed_replace_build_aux' scripts, they are portable but
63610         echoing them with `echo' is not.
63611         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63612
63613 2007-06-21  Karl Berry  <karl@gnu.org>
63614
63615         * config/srclist.txt: guess we can't handle the licenses via
63616         srclist at the moment.
63617
63618 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * MODULES.html.sh: Add include_next.
63621         * modules/include_next: New file.
63622
63623 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63624
63625         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63626         INCLUDE_NEXT.
63627         (gl_CHECK_NEXT_HEADERS): New macro.
63628         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63629         the obsolescent gl_ABSOLUTE_HEADER.
63630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63631         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63632         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63633         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63634         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63635         * m4/math_h.m4 (gl_MATH_H): Likewise.
63636         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63637         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63638         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63639         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63640         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63641         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63642         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63646         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63647         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63648         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63649         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63650         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63651         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63652         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63653         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63654         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63655         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63656         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63657         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63658         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63659         * lib/float_.h: Likewise.
63660         * lib/inttypes_.h: Likewise.
63661         * lib/math_.h: Likewise.
63662         * lib/search_.h: Likewise.
63663         * lib/signal_.h: Likewise.
63664         * lib/stdint_.h: Likewise.
63665         * lib/stdio_.h: Likewise.
63666         * lib/stdlib_.h: Likewise.
63667         * lib/string_.h: Likewise.
63668         * lib/sys_stat_.h: Likewise.
63669         * lib/sys_time_.h: Likewise.
63670         * lib/time_.h: Likewise.
63671         * lib/unistd_.h: Likewise.
63672         * lib/wchar_.h: Likewise.
63673         * lib/wctype_.h: Likewise.
63674         * lib/dirent_.h: Likewise.
63675         * lib/iconv_.h: Likewise.
63676         * lib/locale_.h: Likewise.
63677         * lib/netinet_in_.h: Likewise.
63678         * lib/sys_select_.h: Likewise.
63679         * lib/sys_socket_.h: Likewise.
63680         * lib/sysexits_.h: Likewise.
63681         * modules/fcntl (Depends-on): Depend on include_next, not
63682         absolute_header.
63683         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63684         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63685         * modules/fchdir: Likewise.
63686         * modules/float: Likewise.
63687         * modules/iconv_open: Likewise.
63688         * modules/inttypes: Likewise.
63689         * modules/locale: Likewise.
63690         * modules/math: Likewise.
63691         * modules/netinet_in: Likewise.
63692         * modules/search: Likewise.
63693         * modules/signal: Likewise.
63694         * modules/stdint: Likewise.
63695         * modules/stdio: Likewise.
63696         * modules/stdlib: Likewise.
63697         * modules/string: Likewise.
63698         * modules/sys_select: Likewise.
63699         * modules/sys_socket: Likewise.
63700         * modules/sys_stat: Likewise.
63701         * modules/sys_time: Likewise.
63702         * modules/sysexits: Likewise.
63703         * modules/time: Likewise.
63704         * modules/unistd: Likewise.
63705         * modules/wchar: Likewise.
63706         * modules/wctype: Likewise.
63707         * modules/sys_stat: Change maintainer to "all".
63708         * modules/unistd: Likewise.
63709
63710 2007-06-20  Karl Berry  <karl@gnu.org>
63711
63712         * config/srclist.txt: track www changes in license files.
63713
63714 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63715
63716         * build-aux/bootstrap: Remove stray dot.
63717         Make sure build_aux settings are honored when linking
63718         gnulib_extra_files.
63719
63720 2007-06-19  Eric Blake  <ebb9@byu.net>
63721
63722         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63723         Allow compilation on cygwin.
63724
63725 2007-06-19  Jim Meyering  <jim@meyering.net>
63726
63727         xreadlink-with-size: Remove module.  No longer used.
63728         Ex-callers now use xreadlink or mreadlink-with-size.
63729         * modules/xreadlink-with-size: Remove module.
63730         * lib/xreadlink-with-size.c: Remove file.
63731         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63732         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63733         just before the function definition *is* accurate.
63734
63735         Eliminate one way canonicalize_filename_mode could exit.
63736         * lib/canonicalize.c (canonicalize_filename_mode):
63737         Use mreadlink_with_size, not xreadlink_with_size.
63738
63739 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         Detect porting problems to FreeBSD/arm, which has time_t wider than
63742         long int.  Original problem reported for GNU diff by Xin Li in
63743         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63744         * modules/getdate (Depends-on): Add intprops, verify.
63745         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63746         is an integer type no wider than long int.
63747
63748 2007-06-18  Jim Meyering  <jim@meyering.net>
63749
63750         New module: mreadlink-with-size.
63751         * MODULES.html.sh: Add mreadlink-with-size.
63752         * modules/mreadlink-with-size: New module
63753         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63754         not xreadlink-with-size.
63755         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63756
63757 2007-06-16  Bruno Haible  <bruno@clisp.org>
63758
63759         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63760         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63761         Reported by Gary V. Vaughan <gary@gnu.org>.
63762
63763 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         Revamp lchown so that it lives in unistd.h where it belongs.
63766         * lib/lchown.h: Remove.
63767         * lib/dirchownmod.c: Don't include lib/lchown.h.
63768         * lib/fchownat.c: Likewise.
63769         * lib/openat.c: Likewise.
63770         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63771         does not follow symlinks.
63772         (EOPNOTSUPP): Define if not defined.
63773         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63774         is defined to 0.
63775         (lchown): New decl.
63776         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63777         Do not check for lchown decl.
63778         Set REPLACE_LCHOWN.
63779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63780         REPLACE_LCHOWN.
63781         * modules/chown: Make it clear it follows symlinks.
63782         * modules/lchown: Make it clear it doesn't follow symlinks.
63783         (Files): Remove lib/lchown.h
63784         (Depends-on): Add unistd.
63785         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63786         (Include): Include <unistd.h>, not "lchown.h".
63787         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63788         REPLACE_LCHOWN.
63789
63790 2007-06-15  Jim Meyering  <jim@meyering.net>
63791
63792         Change license (GPL to LGPL) of fsusage and dependents.
63793         * modules/fsusage (License): Change to LGPL.
63794         * modules/full-read (License): Likewise.
63795         * modules/full-write (License): Likewise.
63796         * modules/safe-read (License): Likewise.
63797         * modules/safe-write (License): Likewise.
63798
63799 2007-06-14  Ben Pfaff  <blp@gnu.org>
63800
63801         Missing part of allocsa -> malloca transition.
63802         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63803         gl_MALLOCA.
63804
63805 2007-06-12  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63808         to ia64, x86_64, i386.
63809         Reported by Eric Blake.
63810
63811 2007-06-12  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63814         cross-compiling to x86_64.
63815
63816 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63819         glitch reported by Ralf Wildenhues in
63820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63821
63822         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63823         Vin Shelton.
63824
63825 2007-06-11  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63828         replacement string.
63829         Reported by Eric Blake.
63830
63831 2007-06-10  Bruno Haible  <bruno@clisp.org>
63832
63833         Prepare vasnprintf code for use with Unicode strings.
63834         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63835         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63836         TYPE_U32_STRING.
63837         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63838         a_u32_string variants.
63839         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63840         * lib/printf-args.c: Don't include config.h and the specification
63841         header if PRINTF_FETCHARGS is already defined.
63842         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63843         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63844         TYPE_U16_STRING, TYPE_U32_STRING.
63845         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63846         u16_directive, u16_directives, u32_directive, u32_directives): New
63847         types.
63848         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63849         New declarations.
63850         * lib/printf-parse.c: Don't include config.h and the specification
63851         header if PRINTF_PARSE is already defined. Eliminate the set of
63852         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63853         them now. Include c-ctype.h.
63854         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63855         directive and CHAR_T_ONLY_ASCII.
63856         * lib/vasnprintf.c: Don't include config.h and the specification header
63857         if VASNPRINTF is already defined.
63858         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63859         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63860         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63861         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63862         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63863         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63864         code accordingly.
63865         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63866         pad_ourselves also in this case, with the 'c' and 's' directives, and
63867         with a different notion of "width".
63868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63869
63870 2007-06-10  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/unistr/u32-mbsnlen: New file.
63873         * lib/unistr/u32-mbsnlen.c: New file.
63874
63875         * modules/unistr/u16-mbsnlen: New file.
63876         * lib/unistr/u16-mbsnlen.c: New file.
63877
63878         * modules/unistr/u8-mbsnlen: New file.
63879         * lib/unistr/u8-mbsnlen.c: New file.
63880
63881         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63882         declarations.
63883
63884 2007-06-10  Bruno Haible  <bruno@clisp.org>
63885
63886         * lib/string_.h (mbsnlen): New declaration.
63887         * lib/mbsnlen.c: New file.
63888         * m4/mbsnlen.m4: New file.
63889         * modules/mbsnlen: New file.
63890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63891         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63892         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63893
63894 2007-06-10  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63897
63898 2007-06-10  Bruno Haible  <bruno@clisp.org>
63899
63900         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63901         * lib/mbuiter.h: Likewise.
63902
63903 2007-06-10  Bruno Haible  <bruno@clisp.org>
63904
63905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63906         declaration.
63907
63908 2007-06-10  Karl Berry  <karl@gnu.org>
63909
63910         * config/srclist.txt: remove gettext entries, Bruno prefers
63911         to update individually.
63912
63913 2007-06-10  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63916         'maxlen'. Ensure only length + width bytes are allocated, not
63917         length + 1 + width.
63918
63919 2007-06-09  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63922         (CHAR_T): Remove macro.
63923         (VASNPRINTF): Update.
63924
63925 2007-06-09  Bruno Haible  <bruno@clisp.org>
63926
63927         * MODULES.html.sh (Unicode string functions): Add the new modules.
63928
63929         * modules/uniconv/u32-conv-to-enc: New file.
63930         * lib/uniconv/u32-conv-to-enc.c: New file.
63931         * modules/uniconv/u32-conv-to-enc-tests: New file.
63932         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63933
63934         * modules/uniconv/u16-conv-to-enc: New file.
63935         * lib/uniconv/u16-conv-to-enc.c: New file.
63936         * lib/uniconv/u-conv-to-enc.h: New file.
63937         * modules/uniconv/u16-conv-to-enc-tests: New file.
63938         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63939
63940         * modules/uniconv/u8-conv-to-enc: New file.
63941         * lib/uniconv/u8-conv-to-enc.c: New file.
63942         * modules/uniconv/u8-conv-to-enc-tests: New file.
63943         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63944
63945         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63946         u32_conv_to_encoding): New declarations.
63947
63948 2007-06-09  Bruno Haible  <bruno@clisp.org>
63949
63950         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63951
63952 2007-06-09  Bruno Haible  <bruno@clisp.org>
63953
63954         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63955         * modules/malloca: Renamed from modules/allocsa, updated.
63956         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63957         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63958         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63959         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63960         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63961         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63962         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63963         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63964         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63965         * modules/c-strcasestr (Depends-on): Update.
63966         * lib/c-strcasestr.c: Update.
63967         * modules/c-strstr (Depends-on): Update.
63968         * lib/c-strstr.c: Update.
63969         * modules/canonicalize-lgpl (Depends-on): Update.
63970         * lib/canonicalize-lgpl.c: Update.
63971         * modules/clean-temp (Depends-on): Update.
63972         * lib/clean-temp.c: Update.
63973         * modules/csharpcomp (Depends-on): Update.
63974         * lib/csharpcomp.c: Update.
63975         * modules/csharpexec (Depends-on): Update.
63976         * lib/csharpexec.c: Update.
63977         * modules/javacomp (Depends-on): Update.
63978         * lib/javacomp.c: Update.
63979         * modules/javaexec (Depends-on): Update.
63980         * lib/javaexec.c: Update.
63981         * modules/mbscasestr (Depends-on): Update.
63982         * lib/mbscasestr.c: Update.
63983         * modules/mbsstr (Depends-on): Update.
63984         * lib/mbsstr.c: Update.
63985         * modules/setenv (Depends-on): Update.
63986         * lib/setenv.c: Update.
63987         * modules/strcasestr (Depends-on): Update.
63988         * lib/strcasestr.c: Update.
63989         * modules/striconveha (Depends-on): Update.
63990         * lib/striconveha.c: Update.
63991         * modules/relocatable-prog-wrapper (Files): Update.
63992         * lib/relocwrapper.c: Update.
63993         * build-aux/install-reloc: Update.
63994         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63995
63996 2007-06-08  Bruno Haible  <bruno@clisp.org>
63997
63998         Port to uClibc.
63999         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64000         * lib/fpurge.c (fpurge): Likewise.
64001         * lib/freading.c (freading): Likewise.
64002         * lib/fseeko.c (rpl_fseeko): Likewise.
64003         * lib/fseterr.c (fseterr): Likewise.
64004         * lib/fwriting.c (fwriting): Likewise.
64005         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64006
64007 2007-06-08  Bruno Haible  <bruno@clisp.org>
64008
64009         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64010         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64011         * modules/gettext (Files): Add m4/intlmacosx.m4.
64012
64013 2007-06-07  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/localename-tests: New file.
64016         * tests/test-localename.c: New file.
64017
64018         New module 'localename'.
64019         * lib/localename.h: New file.
64020         * lib/localename.c: New file, from GNU gettext.
64021         * m4/localename.m4: New file.
64022         * modules/localename: New file.
64023
64024 2007-06-07  Bruno Haible  <bruno@clisp.org>
64025
64026         Work around the lack of <wchar.h> on some builds of uClibc.
64027         * doc/headers/wchar.texi: Update.
64028         * lib/wchar_.h: Include <wchar.h> only if it exists.
64029         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64030         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64031         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64032         doesn't exist.
64033         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64034         * modules/mbfile (Depends-on): Add wchar.
64035         * modules/mbiter (Depends-on): Likewise.
64036         * modules/mbuiter (Depends-on): Likewise.
64037         Reported by Simon Josefsson.
64038
64039 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64040
64041         Work around problem reported by Steven M. Schweda in
64042         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64043         Tru64 5.1B with the Compaq compiler environment installed declares
64044         an 'isblank' function but does not define it in the C library.
64045         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64046         * lib/regex_internal.h (isblank): Likewise.
64047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64048         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64049
64050 2007-06-05  Bruno Haible  <bruno@clisp.org>
64051
64052         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64053         ia64.
64054         * modules/printf-safe: New file.
64055         * modules/fprintf-posix (Depends-on): Add printf-safe.
64056         * modules/printf-posix (Depends-on): Likewise.
64057         * modules/snprintf-posix (Depends-on): Likewise.
64058         * modules/sprintf-posix (Depends-on): Likewise.
64059         * modules/vasnprintf-posix (Depends-on): Likewise.
64060         * modules/vasprintf-posix (Depends-on): Likewise.
64061         * modules/vfprintf-posix (Depends-on): Likewise.
64062         * modules/vprintf-posix (Depends-on): Likewise.
64063         * modules/vsnprintf-posix (Depends-on): Likewise.
64064         * modules/vsprintf-posix (Depends-on): Likewise.
64065         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64066         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64067         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64068         "no" on i386, x86_64, ia64.
64069         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64070         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64071         on i386, x86_64, ia64.
64072         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64073         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64074         on i386, x86_64, ia64.
64075         * tests/test-vasnprintf-posix.c: Include float.h.
64076         (LDBL80_WORDS): New macro.
64077         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64078         on i386, x86_64, ia64.
64079         * tests/test-vasprintf-posix.c: Include float.h.
64080         (LDBL80_WORDS): New macro.
64081         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64082         on i386, x86_64, ia64.
64083         * tests/test-snprintf-posix.c: Include float.h.
64084         * tests/test-sprintf-posix.c: Likewise.
64085         * tests/test-vsnprintf-posix.c: Likewise.
64086         * tests/test-vsprintf-posix.c: Likewise.
64087
64088 2007-06-05  Bruno Haible  <bruno@clisp.org>
64089
64090         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64091         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64092         non-IEEE numbers on i386, x86_64, ia64.
64093         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64094         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64095         * tests/test-isnanl.h: Include float.h.
64096         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64097
64098 2007-06-05  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64101         also the %a / %A. Handle the %a / %A code before this extra handling.
64102
64103 2007-06-05  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64106         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64107
64108 2007-06-05  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64111         typo in variable name.
64112
64113 2007-06-05  Eric Blake  <ebb9@byu.net>
64114
64115         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64116         Reported by Simon Josefsson.
64117
64118 2007-06-04  Bruno Haible  <bruno@clisp.org>
64119
64120         Avoid test failures on some PowerPC platforms.
64121         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64122         Define differently for PowerPC.
64123         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64124         Reported by Gary V. Vaughan <gary@gnu.org>.
64125
64126 2007-06-02  Bruno Haible  <bruno@clisp.org>
64127
64128         Fix test-stdint failure on FreeBSD/ia64.
64129         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64130         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64131         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64132         * doc/headers/stdint.texi: Update.
64133
64134 2007-06-01  Bruno Haible  <bruno@clisp.org>
64135
64136         * tests/test-binary-io.c (main): Pass a third argument to open().
64137         Reported by Gary V. Vaughan <gary@gnu.org>.
64138
64139 2007-06-01  Bruno Haible  <bruno@clisp.org>
64140
64141         * doc/functions/frexpl.texi: Update for mingw.
64142
64143 2007-06-01  Bruno Haible  <bruno@clisp.org>
64144
64145         * tests/test-lseek.c (main): Disable test of errno for invalid third
64146         argument.
64147         * doc/functions/lseek.texi: Update.
64148         Reported by Gary V. Vaughan <gary@gnu.org>.
64149
64150 2007-05-28  Bruno Haible  <bruno@clisp.org>
64151
64152         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64153
64154 2007-05-31  Eric Blake  <ebb9@byu.net>
64155
64156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64157         cross compiling.
64158
64159 2007-05-30  Eric Blake  <ebb9@byu.net>
64160         and Bruno Haible  <bruno@clisp.org>
64161
64162         Work around mingw test failures exposed by m4-1.4.9b.
64163         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64164         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64165         moment.
64166
64167 2007-05-30  Bruno Haible  <bruno@clisp.org>
64168
64169         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64170         assuming that they are closed. Needed on HP-UX 11.
64171
64172 2007-05-29  Bruno Haible  <bruno@clisp.org>
64173
64174         Fix a problem with #include_next.
64175         * lib/dirent_.h: Split the double-inclusion guard.
64176         * lib/fcntl_.h: Likewise.
64177         * lib/float_.h: Likewise.
64178         * lib/iconv_.h: Likewise.
64179         * lib/inttypes_.h: Likewise.
64180         * lib/locale_.h: Likewise.
64181         * lib/math_.h: Likewise.
64182         * lib/netinet_in_.h: Likewise.
64183         * lib/search_.h: Likewise.
64184         * lib/signal_.h: Likewise.
64185         * lib/stdint_.h: Likewise.
64186         * lib/stdio_.h: Likewise.
64187         * lib/stdlib_.h: Likewise.
64188         * lib/string_.h: Likewise.
64189         * lib/sys_select_.h: Likewise.
64190         * lib/sys_socket_.h: Likewise.
64191         * lib/sys_stat_.h: Likewise.
64192         * lib/sys_time_.h: Likewise.
64193         * lib/sysexits_.h: Likewise.
64194         * lib/time_.h: Likewise.
64195         * lib/unistd_.h: Likewise.
64196         * lib/wchar_.h: Likewise.
64197         * lib/wctype_.h: Likewise.
64198
64199 2007-05-29  Bruno Haible  <bruno@clisp.org>
64200
64201         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64202         for the moment.
64203
64204 2007-05-29  Bruno Haible  <bruno@clisp.org>
64205
64206         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64207         invocation.
64208         Reported by Eric Blake.
64209
64210 2007-05-29  Bruno Haible  <bruno@clisp.org>
64211
64212         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64213         compiling case.
64214
64215 2007-05-29  Eric Blake  <ebb9@byu.net>
64216             Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64219         cross compiles.
64220
64221 2007-05-28  Eric Blake  <ebb9@byu.net>
64222
64223         * modules/closein-tests (test_closein_LDADD): Support test on
64224         cygwin with libtool.
64225
64226 2007-05-28  Bruno Haible  <bruno@clisp.org>
64227
64228         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64229         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64230         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64231         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64232         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64233         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64234         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64235         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64236         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64237
64238 2007-05-28  Eric Blake  <ebb9@byu.net>
64239
64240         Unconditionally include <config.h> in unit tests.
64241         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64242         * tests/test-allocsa.c, tests/test-arcfour.c,
64243         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64244         tests/test-array_list.c, tests/test-array_oset.c,
64245         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64246         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64247         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64248         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64249         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64250         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64251         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64252         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64253         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64254         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64255         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64256         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64257         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64258         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64259         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64260         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64261         test-md5.c, test-memmem.c, test-printf-posix.c,
64262         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64263         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64264         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64265         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64266         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64267         test-vasnprintf-posix2.c, test-vasnprintf.c,
64268         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64269         test-vfprintf-posix.c, test-vprintf-posix.c,
64270         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64271         test-xvasprintf.c: Likewise.
64272
64273 2007-05-28  Bruno Haible  <bruno@clisp.org>
64274
64275         * gnulib-tool (func_import): Remember the --with-tests command-line
64276         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64277         Reported by Eric Blake.
64278
64279 2007-05-28  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/ftell-tests: New file.
64282         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64283         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64284
64285         * lib/ftell.c: New file.
64286         * modules/ftell: New file.
64287         * m4/ftell.m4: New file.
64288         * doc/functions/ftell.texi: Update.
64289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64290         REPLACE_FTELL.
64291         * lib/stdio_.h (rpl_ftell): New declaration.
64292         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64293         REPLACE_FTELL.
64294
64295 2007-05-28  Eric Blake  <ebb9@byu.net>
64296
64297         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64298
64299 2007-05-28  Bruno Haible  <bruno@clisp.org>
64300
64301         * modules/fseek-tests: New file.
64302         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64303         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64304
64305         * lib/fseek.c: New file.
64306         * modules/fseek: New file.
64307         * m4/fseek.m4: New file.
64308         * doc/functions/fseek.texi: Update.
64309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64310         REPLACE_FSEEK.
64311         * lib/stdio_.h (rpl_fseek): New declaration.
64312         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64313         REPLACE_FSEEK.
64314
64315 2007-05-28  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/stdio_.h (fflush): More comments.
64318
64319 2007-05-28  Bruno Haible  <bruno@clisp.org>
64320
64321         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64322         runtime test.
64323
64324 2007-05-28  Eric Blake  <ebb9@byu.net>
64325
64326         Improve lseek module.
64327         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64328         * lib/unistd_.h (lseek): Scale back link warning message.
64329         * tests/test-lseek.c: Beef up test.
64330         * tests/test-lseek.sh: Exercise more facets of lseek.
64331         Reported by Bruno Haible.
64332
64333 2007-05-28  Bruno Haible  <bruno@clisp.org>
64334
64335         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64336         to define.
64337
64338 2007-05-27  Bruno Haible  <bruno@clisp.org>
64339
64340         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64341
64342 2007-05-27  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/openmp: New file.
64345         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64346         Noah Misch.
64347
64348 2007-05-26  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/chdir-long (Depends-on): Add fchdir.
64351         * modules/chdir-safer (Depends-on): Likewise.
64352         * modules/fts (Depends-on): Likewise.
64353         * modules/fts-lgpl (Depends-on): Likewise.
64354         * modules/openat (Depends-on): Likewise.
64355         * modules/savewd (Depends-on): Likewise.
64356
64357 2007-05-24  Eric Blake  <ebb9@byu.net>
64358
64359         Fix lseek on mingw.
64360         * modules/lseek: New module.
64361         * m4/lseek.m4: New file.
64362         * lib/lseek.c: New file.
64363         * modules/lseek-tests: New file.
64364         * tests/test-lseek.c: New file.
64365         * tests/test-lseek.sh: New file.
64366         * MODULES.html.sh: Document lseek module.
64367         * modules/fflush (Depends-on): Add lseek, fseeko.
64368         * modules/fseeko (Depends-on): Likewise.
64369         * modules/ftello (Depends-on): Likewise.
64370         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64371         broken.
64372         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64373         broken.
64374         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64375         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64376         * lib/ftello.c (rpl_ftello): Likewise.
64377         * tests/test-fseeko.c (main): Test this.
64378         * tests/test-fseeko.sh: Likewise.
64379         * tests/test-ftello.c (main): Likewise.
64380         * tests/test-ftello.sh: Likewise.
64381         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64382         implies replacing fseek.
64383         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64384         HAVE_FTELLO.
64385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64386         * modules/unistd (Makefile.am): Likewise.
64387         * lib/unistd_.h (lseek): Declare a replacement.
64388         * doc/functions/lseek.texi (lseek): Document this fix.
64389         * doc/functions/fseek.texi (fseek): Likewise.
64390         * doc/functions/ftell.texi (ftell): Likewise.
64391
64392 2007-05-24  Bruno Haible  <bruno@clisp.org>
64393
64394         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64395         in the printed representation of a NaN.
64396         * tests/test-vasprintf-posix.c (test_function): Likewise.
64397         * tests/test-snprintf-posix.h (test_function): Likewise.
64398         * tests/test-sprintf-posix.h (test_function): Likewise.
64399         Reported by Eric Blake.
64400
64401 2007-05-23  Eric Blake  <ebb9@byu.net>
64402
64403         Fix fseeko/ftello on cygwin 1.5.24.
64404         * doc/functions/fseeko.texi (fseeko): Document the fix.
64405         * doc/functions/ftello.texi (ftello): Document the fix.
64406         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64407         * doc/functions/stdout.text (stdout): New file.
64408         * doc/functions/stderr.text (stderr): New file.
64409         * doc/gnulib.texi (Function Substitutes): Use new files.
64410         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64411         prior to 1.7.0.
64412         * tests/test-ftello.c (main): Likewise for ftello.
64413         * tests/test-fseeko.sh: New file.
64414         * tests/test-ftello.sh: New file.
64415         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64416         with seekable stdin.
64417         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64419         (gl_REPLACE_FSEEKO): New macro.
64420         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64421         * modules/fseeko (Files): Distribute fseeko.c.
64422         * modules/ftello (Files): Distribute ftello.c.
64423         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64424         mode.
64425         * lib/ftello.c (rpl_ftello): New file.
64426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64427         fseeko, ftello.
64428         (gl_STDIN_LARGE_OFFSET): New macro.
64429         * modules/stdio (Makefile.am): Perform the replacement.
64430         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64431
64432 2007-05-23  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64435         GNULIB_POSIXCHECK is defined.
64436
64437 2007-05-21  Bruno Haible  <bruno@clisp.org>
64438
64439         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64440         Check also the output for NaN arguments. When cross-compiling, guess
64441         no on IRIX.
64442         * lib/vasnprintf.c: Update comments.
64443         * tests/test-vasnprintf-posix.c (strisnan): New function.
64444         (test_function): Use it.
64445         * tests/test-vasprintf-posix.c (strisnan): New function.
64446         (test_function): Use it.
64447         * tests/test-snprintf-posix.h (strisnan): New function.
64448         (test_function): Use it.
64449         * tests/test-sprintf-posix.h (strisnan): New function.
64450         (test_function): Use it.
64451         Reported by Eric Blake.
64452
64453 2007-05-20  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64456         numbers that fails on BeOS.
64457         * doc/functions/frexpl.texi: Update.
64458
64459 2007-05-20  Jim Meyering  <jim@meyering.net>
64460
64461         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64462         forced upon us by glibc-2.6.
64463
64464 2007-05-20  Bruno Haible  <bruno@clisp.org>
64465
64466         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64467         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64468         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64469         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64470         NEED_PRINTF_INFINITE.
64471         (is_infinitel): New function.
64472         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64474         gl_PREREQ_VASNPRINTF_INFINITE.
64475         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64477         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64478         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64479         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64480         gl_PREREQ_VASNPRINTF_INFINITE.
64481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64488         * doc/functions/fprintf.texi: Update.
64489         * doc/functions/printf.texi: Update.
64490         * doc/functions/snprintf.texi: Update.
64491         * doc/functions/sprintf.texi: Update.
64492         * doc/functions/vfprintf.texi: Update.
64493         * doc/functions/vprintf.texi: Update.
64494         * doc/functions/vsnprintf.texi: Update.
64495         * doc/functions/vsprintf.texi: Update.
64496
64497 2007-05-20  Bruno Haible  <bruno@clisp.org>
64498
64499         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64500         was not found in libc.
64501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64502
64503 2007-05-20  Bruno Haible  <bruno@clisp.org>
64504
64505         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64506         printed as "-nan" instead of "nan".
64507         * tests/test-vasprintf-posix.c (test_function): Likewise.
64508         * tests/test-snprintf-posix.h (test_function): Likewise.
64509         * tests/test-sprintf-posix.h (test_function): Likewise.
64510         Needed for HP-UX 11.
64511
64512 2007-05-20  Jim Meyering  <jim@meyering.net>
64513
64514         Fix buggy test for the fchownat-deref bug.
64515         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64516         symlink required for the run-test.  Without it, this test would
64517         always declare that fchownat doesn't work, and client code would
64518         unnecessarily use the replacement function with fixed libc.
64519         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64520         Reported by Greg Schafer.
64521
64522 2007-05-19  Bruno Haible  <bruno@clisp.org>
64523
64524         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64525         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64526         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64527         Needed for IRIX 6.5 and Solaris 2.5.1.
64528
64529 2007-05-19  Bruno Haible  <bruno@clisp.org>
64530
64531         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64532         (test_function): Skip tests involving -0.0 on platforms where
64533         -0.0 = 0.0.
64534         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64535         (test_function): Skip tests involving -0.0 on platforms where
64536         -0.0 = 0.0.
64537         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64538         (test_function): Skip tests involving -0.0 on platforms where
64539         -0.0 = 0.0.
64540         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64541         (test_function): Skip tests involving -0.0 on platforms where
64542         -0.0 = 0.0.
64543         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64544         tests.
64545         * tests/test-printf-posix.h (test_function): Likewise.
64546         * tests/test-printf-posix.output: Remove all -0.0 related results.
64547         Needed for IRIX 6.5.
64548
64549 2007-05-19  Bruno Haible  <bruno@clisp.org>
64550
64551         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64552         printed as "nan0x7fffffff" instead of "nan".
64553         * tests/test-vasprintf-posix.c (test_function): Likewise.
64554         * tests/test-snprintf-posix.h (test_function): Likewise.
64555         * tests/test-sprintf-posix.h (test_function): Likewise.
64556         * tests/test-fprintf-posix.h (NaN): Remove macro.
64557         (test_function): Remove all NaN related tests.
64558         * tests/test-printf-posix.h (NaN): Remove macro.
64559         (test_function): Remove all NaN related tests.
64560         * tests/test-printf-posix.output: Remove all NaN related results.
64561         Needed for IRIX 6.5.
64562
64563 2007-05-19  Bruno Haible  <bruno@clisp.org>
64564
64565         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64567
64568 2007-05-19  Bruno Haible  <bruno@clisp.org>
64569
64570         * lib/float_.h: New file.
64571         * m4/float_h.m4: New file.
64572         * modules/float: New file.
64573         * modules/isnanl (Dependencies): Add float.
64574         * modules/isnanl-nolibm (Dependencies): Likewise.
64575         * modules/mathl (Dependencies): Likewise.
64576         * modules/printf-frexpl (Dependencies): Likewise.
64577         * modules/signbit (Dependencies): Likewise.
64578         * modules/vasnprintf (Dependencies): Likewise.
64579         * doc/headers/float.texi: Update.
64580
64581 2007-05-19  Jim Meyering  <jim@meyering.net>
64582
64583         * lib/utimens.c (gl_futimens): Rename from futimens,
64584         now that glibc-2.6 declares futimens.
64585         * lib/utimens.h: Likewise.
64586
64587 2007-05-19  Bruno Haible  <bruno@clisp.org>
64588
64589         Avoid test failures on mingw.
64590         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64591         * tests/test-printf-posix.sh: Likewise.
64592         * tests/test-vfprintf-posix.sh: Likewise.
64593         * tests/test-vprintf-posix.sh: Likewise.
64594
64595 2007-05-19  Bruno Haible  <bruno@clisp.org>
64596
64597         Fix *printf result for NaN, Inf, -0.0 on mingw.
64598         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64599         * lib/vasnprintf.c: Include math.h and isnan.h.
64600         (is_infinite_or_zero): New function.
64601         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64602         values in the %f, %F, %e, %E, %g, %G directives.
64603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64604         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64605         gl_PRINTF_INFINITE and test its result. Invoke
64606         gl_PREREQ_VASNPRINTF_INFINITE.
64607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64608         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64609         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64610         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64611         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64612         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64613         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64614         * doc/functions/fprintf.texi: Update.
64615         * doc/functions/printf.texi: Update.
64616         * doc/functions/snprintf.texi: Update.
64617         * doc/functions/sprintf.texi: Update.
64618         * doc/functions/vfprintf.texi: Update.
64619         * doc/functions/vprintf.texi: Update.
64620         * doc/functions/vsnprintf.texi: Update.
64621         * doc/functions/vsprintf.texi: Update.
64622
64623 2007-05-19  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64626         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64627         Instead of multiplying with 10^k, set extra_zeroes to k.
64628         (scale10_round_long_double): Remove function.
64629
64630 2007-05-18  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64633         introduced on 2007-05-06.
64634
64635 2007-05-18  Bruno Haible  <bruno@clisp.org>
64636
64637         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64638         %g directives.
64639         * tests/test-vasprintf-posix.c (test_function): Likewise.
64640         * tests/test-snprintf-posix.h (test_function): Likewise.
64641         * tests/test-sprintf-posix.h (test_function): Likewise.
64642
64643 2007-05-18  Bruno Haible  <bruno@clisp.org>
64644
64645         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64646         (strmatch): New function.
64647         (test_function): Test the %f directive on numbers of various exponents.
64648         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64649         (strmatch): New function.
64650         (test_function): Test the %f directive on numbers of various exponents.
64651         * tests/test-snprintf-posix.h (strmatch): New function.
64652         (test_function): Test the %f directive on numbers of various exponents.
64653         * tests/test-sprintf-posix.h (strmatch): New function.
64654         (test_function): Test the %f directive on numbers of various exponents.
64655         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64656         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64657         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64658         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64659
64660 2007-05-18  Bruno Haible  <bruno@clisp.org>
64661
64662         Add support for 'long double' number output.
64663         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64664         * lib/vasnprintf.c: Include math.h and float+.h.
64665         (mp_limb_t): New type.
64666         (GMP_LIMB_BITS): New macro.
64667         (mp_twolimb_t): New type.
64668         (GMP_TWOLIMB_BITS): New macro.
64669         (mpn_t): New type.
64670         (multiply, divide, convert_to_decimal, decode_long_double,
64671         scale10_round_long_double, scale10_round_decimal_long_double,
64672         floorlog10l): New functions.
64673         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64674         for the %f, %F, %e, %E, %g, %G directives.
64675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64676         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64677         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64678         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64679         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64680         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64681         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64682         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64686         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64687         * modules/snprintf-posix (Depends-on): Likewise.
64688         * modules/sprintf-posix (Depends-on): Likewise.
64689         * modules/vasnprintf-posix (Depends-on): Likewise.
64690         * modules/vasprintf-posix (Depends-on): Likewise.
64691         * modules/vfprintf-posix (Depends-on): Likewise.
64692         * modules/vsnprintf-posix (Depends-on): Likewise.
64693         * modules/vsprintf-posix (Depends-on): Likewise.
64694         * modules/vasnprintf (Files): Add lib/float+.h.
64695         * doc/functions/fprintf.texi: Update.
64696         * doc/functions/printf.texi: Update.
64697         * doc/functions/snprintf.texi: Update.
64698         * doc/functions/sprintf.texi: Update.
64699         * doc/functions/vfprintf.texi: Update.
64700         * doc/functions/vprintf.texi: Update.
64701         * doc/functions/vsnprintf.texi: Update.
64702         * doc/functions/vsprintf.texi: Update.
64703
64704 2007-05-18  Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64707
64708 2007-05-18  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64711         for printing 64-bit integers. Needed for mingw.
64712
64713 2007-05-18  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64716         gl_FUNC_FREXPL_WORKS.
64717         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64718
64719 2007-05-18  Bruno Haible  <bruno@clisp.org>
64720
64721         * modules/frexpl-nolibm-tests: New file.
64722
64723         * modules/frexpl-nolibm: New file.
64724         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64725
64726 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64729         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64730         GCC 4.2, which otherwise issues a lot of warnings.
64731         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64732         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64733         Likewise.
64734         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64735         * modules/iconv_open (iconv.h): Likewise.
64736         * modules/locale (locale.h): Likewise.
64737         * modules/netinet_in (netinet/in.h): Likewise.
64738         * modules/sys_select (sys_select.h): Likewise.
64739         * modules/sys_socket (sys/socket.h): Likewise.
64740         * modules/sys_stat (sys/stat.h): Likewise.
64741         * modules/sysexits (sysexits.h): Likewise.
64742         * modules/unistd (unistd.h): Likewise.
64743
64744 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64745
64746         * modules/closein-tests (Makefile.am): Distribute
64747         `test-closein.sh'.
64748
64749 2007-05-17  Bruno Haible  <bruno@clisp.org>
64750
64751         * tests/test-printf-posix.output: Renamed from
64752         tests/test-fprintf-posix.out.
64753         * modules/fprintf-posix-tests: Update.
64754         * modules/printf-posix-tests: Update.
64755         * modules/vfprintf-posix-tests: Update.
64756         * modules/vprintf-posix-tests: Update.
64757         * tests/test-fprintf-posix.sh: Update.
64758         * tests/test-printf-posix.sh: Update.
64759         * tests/test-vfprintf-posix.sh: Update.
64760         * tests/test-vprintf-posix.sh: Update.
64761         Reported by Ralf Wildenhues.
64762
64763 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64766         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64767         GCC 4.2, which otherwise issues a lot of warnings.
64768         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64769         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64770         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64771         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64772         it should no longer be needed.
64773         * lib/string_.h: Likewise.
64774         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64775         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64776         * modules/inttypes (inttypes.h): Likewise.
64777         * modules/math (math.h): Likewise.
64778         * modules/search (search.h): Likewise.
64779         * modules/signal (signal.h): Likewise.
64780         * modules/stdint (stdint.h): Likewise.
64781         * modules/stdio (stdio.h): Likewise.
64782         * modules/stdlib (stdlib.h): Likewise.
64783         * modules/string (string.h): Likewise.
64784         * modules/sys_time (sys/time.h): Likewise.
64785         * modules/time (time.h): Likewise.
64786         * modules/wchar (wchar.h): Likewise.
64787         * modules/wctype (wtype.h): Likewise.
64788
64789 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64790
64791         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64792
64793 2007-05-13  Bruno Haible  <bruno@clisp.org>
64794
64795         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64796         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64797         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64798         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64799         (gl_PREREQ_STRTOK_R): Don't require it here.
64800
64801 2007-05-13  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64804         when used in C++ mode.
64805
64806 2007-05-12  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/linebuffer.h: Tweak doc.
64809         * lib/linebuffer.c: Likewise.
64810
64811 2007-05-12  James Youngman  <jay@gnu.org>
64812
64813         * lib/linebuffer.c (readlinebuffer_delim): New function,
64814         like readlinebuffer, but use a caller-specified delimiter.
64815         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64816         as the delimiter.
64817         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64818
64819 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64820
64821         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64822         * modules/openat (Files): Remove openat-die.c.
64823         (Depends-on): Add openat-die.
64824         * modules/openat-die: New module.
64825
64826 2007-05-06  Bruno Haible  <bruno@clisp.org>
64827
64828         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64829         Update with info about Cygwin.
64830         * doc/functions/fprintf.texi: Update.
64831         * doc/functions/printf.texi: Update.
64832         * doc/functions/snprintf.texi: Update.
64833         * doc/functions/sprintf.texi: Update.
64834         * doc/functions/vfprintf.texi: Update.
64835         * doc/functions/vprintf.texi: Update.
64836         * doc/functions/vsnprintf.texi: Update.
64837         * doc/functions/vsprintf.texi: Update.
64838         Reported by Eric Blake.
64839
64840 2007-05-06  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64843         padding ourselves for the floating-point directives.
64844         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64847         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64848         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64850         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64856         * tests/test-snprintf-posix.h (test_function): Also check the width
64857         and some flags in the %f directive.
64858         * tests/test-sprintf-posix.h (test_function): Likewise.
64859         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64860         * tests/test-vasprintf-posix.c (test_function): Likewise.
64861         * doc/functions/fprintf.texi: Update.
64862         * doc/functions/printf.texi: Update.
64863         * doc/functions/snprintf.texi: Update.
64864         * doc/functions/sprintf.texi: Update.
64865         * doc/functions/vfprintf.texi: Update.
64866         * doc/functions/vprintf.texi: Update.
64867         * doc/functions/vsnprintf.texi: Update.
64868         * doc/functions/vsprintf.texi: Update.
64869
64870 2007-05-06  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64873         pass the ' flag character to sprintf or snprintf.
64874         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64877         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64878         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64886         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64887         flag.
64888         * tests/test-sprintf-posix.h (test_function): Likewise.
64889         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64890         * tests/test-vasprintf-posix.c (test_function): Likewise.
64891         * doc/functions/fprintf.texi: Update.
64892         * doc/functions/printf.texi: Update.
64893         * doc/functions/snprintf.texi: Update.
64894         * doc/functions/sprintf.texi: Update.
64895         * doc/functions/vfprintf.texi: Update.
64896         * doc/functions/vprintf.texi: Update.
64897         * doc/functions/vsnprintf.texi: Update.
64898         * doc/functions/vsprintf.texi: Update.
64899
64900 2007-05-01  Bruno Haible  <bruno@clisp.org>
64901
64902         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64903
64904 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64907         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64908
64909 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64910
64911         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64912         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64914
64915 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64916
64917         * lib/argp-help.c (struct hol_entry): New member `ord'.
64918         (HOL_ENTRY_PTRCMP): Use ord for comparison
64919         (hol_sort): Initialize ord.
64920
64921 2007-05-01  Bruno Haible  <bruno@clisp.org>
64922
64923         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64924         Reported by Eric Blake.
64925         * doc/gnulib.texi (Function Substitutes): Update.
64926
64927 2007-05-01  Bruno Haible  <bruno@clisp.org>
64928
64929         * doc/functions.texi: Remove file, now redundant through
64930         doc/functions/*.texi.
64931
64932 2007-05-01  Bruno Haible  <bruno@clisp.org>
64933
64934         * modules/argp (Depends-on): Add sleep.
64935
64936 2007-05-01  Bruno Haible  <bruno@clisp.org>
64937
64938         * modules/sleep-tests: New file.
64939         * tests/test-sleep.c: New file.
64940
64941         * modules/sleep: New file.
64942         * lib/sleep.c: New file.
64943         * m4/sleep.m4: New file.
64944         * lib/unistd_.h (sleep): New declaration.
64945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64946         HAVE_SLEEP.
64947         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64948         * doc/functions/sleep.texi: Document the sleep module.
64949
64950 2007-05-01  Bruno Haible  <bruno@clisp.org>
64951
64952         * lib/sigprocmask.h: Remove file.
64953         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64954         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64956         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64957         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64958         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64959         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64960         HAVE_SIGSET_T as a shell variable.
64961         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64962         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64963         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64964         (Depends-on): Add signal. Remove verify.
64965         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64966         (Include): Mention <signal.h> instead of sigprocmask.h.
64967         * NEWS: Mention the change.
64968         * lib/fatal-signal.c: Don't include sigprocmask.h.
64969
64970 2007-05-01  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/signal: New file.
64973         * lib/signal_.h: New file.
64974         * m4/signal_h.m4: New file.
64975
64976 2007-05-01  Bruno Haible  <bruno@clisp.org>
64977
64978         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64979         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64980         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64981         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64982
64983 2007-05-01  Bruno Haible  <bruno@clisp.org>
64984
64985         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64986         configure time.
64987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64988         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64989         * modules/sys_stat (Makefile.am): Substitute their values into
64990         sys/stat.h.
64991
64992 2007-05-01  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64995         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64996         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64997
64998 2007-05-01  Bruno Haible  <bruno@clisp.org>
64999
65000         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65001         'assert' module here.
65002
65003 2007-05-01  Bruno Haible  <bruno@clisp.org>
65004
65005         * doc/functions/*.texi: New files.
65006         * doc/functions/google-ranking.txt: New file.
65007         * doc/gnulib.texi (Function Substitutes): New chapter.
65008         (ctime, inet_ntoa): Remove sections.
65009         * doc/ctime.texi: Remove file.
65010         * doc/inet_ntoa.texi: Remove file.
65011         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65012         dependencies.
65013         (%.info): New rule, specifying a --reference-limit.
65014
65015 2007-05-01  Bruno Haible  <bruno@clisp.org>
65016
65017         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65018
65019 2007-05-01  Bruno Haible  <bruno@clisp.org>
65020
65021         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65022         the portability of 'mkdir' to mingw systems.
65023
65024 2007-05-01  Bruno Haible  <bruno@clisp.org>
65025
65026         * doc/headers/google-ranking.txt: New file.
65027
65028 2007-04-30  Eric Blake  <ebb9@byu.net>
65029
65030         Prefer fseeko to fseek.
65031         * modules/getpass (Depends-on): Add fseeko.
65032         * lib/getpass.c (getpass): Use fseeko, not fseek.
65033
65034 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65035
65036         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65037         assumes the sorting is stable, while most qsort implementations
65038         are not.  Use argument addresses to ensure they never compare as
65039         equal.
65040
65041         * tests/test-argp-2.sh (usage-indent test): Fix output
65042         (func_compare): Restore diff options
65043         * tests/test-argp.c: Restore #include "progname.h"
65044
65045 2007-04-29  Bruno Haible  <bruno@clisp.org>
65046
65047         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65049         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65051         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65052         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65053         (TESTS, check_PROGRAMS): Add test-snprintf.
65054         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65055         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65056         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65057         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65058         assertions that fail on HP-UX, OSF/1, or IRIX.
65059         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65060
65061 2007-04-29  Bruno Haible  <bruno@clisp.org>
65062
65063         * MODULES.html.sh (posix_functions): Remove 'contents'.
65064
65065 2007-04-29  Karl Berry  <karl@gnu.org>
65066
65067         * config/srclist.txt (gendocs_template_min): new entry.
65068
65069 2007-04-29  Bruno Haible  <bruno@clisp.org>
65070
65071         Work around fpurge bug on BSD systems.
65072         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65073         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65074         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65075         fpurge to rpl_fpurge if the system already has this function.
65076         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65077         the case where the system already has this function. Correct invariants
65078         on BSD systems.
65079         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65080         BSD systems.
65081
65082 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65083
65084         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65085         proposed by Sven Verdoolaege.
65086
65087         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65088         options.
65089         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65090         (usage and help tests): Update
65091
65092 2007-04-29  Bruno Haible  <bruno@clisp.org>
65093
65094         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65095         Print more information in case of failure. Disable a test on BeOS.
65096
65097 2007-04-29  Bruno Haible  <bruno@clisp.org>
65098
65099         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65100         This helps debugging on systems on which no gdb is available.
65101
65102 2007-04-29  Bruno Haible  <bruno@clisp.org>
65103
65104         * lib/freading.h: Improve comments.
65105         * lib/fwriting.h: Likewise.
65106         * tests/test-freading.c (main): Don't check freading immediately after
65107         repositioning. Needed for glibc.
65108
65109 2007-04-29  Bruno Haible  <bruno@clisp.org>
65110
65111         * lib/freading.c (freading): Trivial simplification.
65112
65113 2007-04-28  Bruno Haible  <bruno@clisp.org>
65114
65115         * tests/test-fwriting.c (main): Also test the interaction between
65116         fflush and fwriting.
65117         * modules/fwriting-tests (Depends-on): Add fflush.
65118
65119         * tests/test-freading.c (main): Also test the interaction between
65120         fflush and freading.
65121         * modules/freading-tests (Depends-on): Add fflush.
65122
65123 2007-04-28  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65126         fseeko and ftello.
65127         Suggested by Eric Blake.
65128
65129 2007-04-28  Jim Meyering  <jim@meyering.net>
65130
65131         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65132         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65133         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65134
65135 2007-04-27  Eric Blake  <ebb9@byu.net>
65136
65137         * doc/headers/assert.texi (assert.h): Document assert module use.
65138
65139 2007-04-27  Bruno Haible  <bruno@clisp.org>
65140
65141         * doc/headers/*.texi: New files.
65142         * doc/gnulib.texi (Header File Substitutes): New chapter.
65143         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65144         dependencies.
65145         (standards.info ,standards.html, standards.dvi): Update dependencies.
65146         (mostlyclean, clean): New targets.
65147
65148 2007-04-27  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65151         * modules/sysexits (Files, Makefile.am): Update.
65152
65153         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65154         * modules/sys_socket (Files, Makefile.am): Update.
65155
65156         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65157         * modules/sys_stat (Files, Makefile.am): Update.
65158
65159 2007-04-27  Eric Blake  <ebb9@byu.net>
65160
65161         * lib/freading.h: Improve comments.
65162         * lib/fwriting.h: Likewise.
65163         * lib/fflush.c: Likewise.
65164
65165         Fix closein for mingw.
65166         * modules/closein-tests: Add tests for closein.
65167         * tests/test-closein.c: New file.
65168         * tests/test-closein.sh: Likewise.
65169         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65170         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65171
65172 2007-04-27  Bruno Haible  <bruno@clisp.org>
65173
65174         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65175         version is < 6.
65176         * lib/math_.h [__DECC]: Likewise.
65177         * lib/stdio_.h [__DECC]: Likewise.
65178         * lib/stdlib_.h [__DECC]: Likewise.
65179         * lib/string_.h [__DECC]: Likewise.
65180         * lib/time_.h [__DECC]: Likewise.
65181         * lib/wchar_.h [__DECC]: Likewise.
65182         * lib/wctype_.h [__DECC]: Likewise.
65183
65184 2007-04-27  Bruno Haible  <bruno@clisp.org>
65185
65186         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65187
65188 2007-04-27  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/fflush.c: Add comments.
65191         * modules/fpurge-tests (Depends-on): Add fflush.
65192         * modules/freadable-tests (Depends-on): Likewise.
65193         * modules/fwritable-tests (Depends-on): Likewise.
65194
65195 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65196
65197         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65198         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65199         Report by Bruno Haible <bruno@clisp.org>.
65200
65201 2007-04-26  Eric Blake  <ebb9@byu.net>
65202
65203         Fix fflush on mingw.
65204         * modules/fflush (Depends-on): Add freading.
65205         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65206         but unread data.
65207
65208 2007-04-26  Eric Blake  <ebb9@byu.net>
65209         and Bruno Haible  <bruno@clisp.org>
65210
65211         Implement freading and fwriting.
65212         * lib/freading.c: New file.
65213         * lib/freading.h: Likewise.
65214         * m4/freading.m4: Likewise.
65215         * modules/freading: Likewise.
65216         * modules/freading-tests: Likewise.
65217         * tests/test-freading.c: Likewise.
65218         * lib/fwriting.c: New file.
65219         * lib/fwriting.h: Likewise.
65220         * m4/fwriting.m4: Likewise.
65221         * modules/fwriting: Likewise.
65222         * modules/fwriting-tests: Likewise.
65223         * tests/test-fwriting.c: Likewise.
65224         * MODULES.html.sh (File stream based Input/Output): Mention them.
65225
65226 2007-04-26  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65229         'long' when we assume it.
65230         Suggested by Eric Blake.
65231
65232 2007-04-26  Bruno Haible  <bruno@clisp.org>
65233
65234         Ensure fseeko, ftello are declared on glibc systems.
65235         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65236         * modules/fseeko (configure.ac-early): Likewise.
65237         * modules/ftello (configure.ac-early): Likewise.
65238         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65239         AC_FUNC_FSEEKO for this.
65240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65241         (gl_CHECK_FSEEKO): Remove macro.
65242
65243 2007-04-26  Bruno Haible  <bruno@clisp.org>
65244
65245         * tests/test-fflush.c (main): Also check the ftell result after
65246         fflush and fseek/fseeko.
65247         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65248         file descriptor position cache in the stream.
65249         * lib/fseeko.c (rpl_fseeko): Likewise.
65250
65251 2007-04-26  Bruno Haible  <bruno@clisp.org>
65252
65253         * modules/fflush-tests (Depends-on): Add fseeko.
65254
65255 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65256             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65257
65258         * lib/argz_.h: ensure error_t definition is obtained in same
65259         mechanism system argz.h would have.
65260         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65261         argz facilities are known bad.  Err on the side of caution if
65262         cross-compiling.
65263
65264 2007-04-25  Eric Blake  <ebb9@byu.net>
65265
65266         * lib/fpurge.c (includes): Use stdlib.h for free.
65267         * tests/test-fflush.c (main): Also test fflush-fseeko.
65268
65269 2007-04-25  Bruno Haible  <bruno@clisp.org>
65270
65271         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65272         * lib/fseeko.c: New file.
65273         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65274         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65275         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65276         gl_FUNC_FSEEKO.
65277         (gl_FUNC_FSEEKO): Invoke it.
65278         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65279         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65280         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65281
65282 2007-04-25  Bruno Haible  <bruno@clisp.org>
65283
65284         * modules/fflush (Depends-on): Add ftello.
65285
65286 2007-04-25  Bruno Haible  <bruno@clisp.org>
65287
65288         * modules/ftello-tests: New file.
65289         * tests/test-ftello.c: New file.
65290
65291         * modules/ftello: New file.
65292         * m4/ftello.m4: New file.
65293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65294         HAVE_FTELLO.
65295         * lib/stdio_.h (ftello): New declaration.
65296         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65297         HAVE_FTELLO.
65298
65299 2007-04-25  Bruno Haible  <bruno@clisp.org>
65300
65301         * modules/fseeko-tests: New file.
65302         * tests/test-fseeko.c: New file.
65303
65304         * modules/fseeko: New file.
65305         * m4/fseeko.m4: New file.
65306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65307         HAVE_FSEEKO.
65308         * lib/stdio_.h (fseeko): New declaration.
65309         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65310         HAVE_FSEEKO.
65311
65312 2007-04-25  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65315
65316 2007-04-25  Bruno Haible  <bruno@clisp.org>
65317
65318         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65319         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65320         * tests/test-unistd.c: Likewise.
65321         * tests/test-fcntl.c: Likewise.
65322
65323 2007-04-23  Eric Blake  <ebb9@byu.net>
65324
65325         * lib/fflush.c: Fix missing include.
65326         Reported by Bruno Haible.
65327
65328 2007-04-23  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65331         Reported by Eric Blake.
65332
65333 2007-04-23  Bruno Haible  <bruno@clisp.org>
65334
65335         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65336
65337 2007-04-23  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65340
65341 2007-04-23  Bruno Haible  <bruno@clisp.org>
65342
65343         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65344         Needed on HP-UX 11.
65345
65346 2007-04-16  Eric Blake  <ebb9@byu.net>
65347
65348         Make fflush rely on fpurge.
65349         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65350         open coding all variants.
65351         * modules/fflush (Depends-on): Add fpurge and unistd.
65352         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65353         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65354
65355         Fix --with-tests compilation on cygwin.
65356         * modules/argmatch-tests (Makefile.am): List gnulib library first
65357         in LDADD.
65358         * modules/argp-tests (Makefile.am): Likewise.
65359         * modules/array-list-tests (Makefile.am): Likewise.
65360         * modules/array-oset-tests (Makefile.am): Likewise.
65361         * modules/avltree-list-tests (Makefile.am): Likewise.
65362         * modules/avltree-oset-tests (Makefile.am): Likewise.
65363         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65364         * modules/carray-list-tests (Makefile.am): Likewise.
65365         * modules/dirname-tests (Makefile.am): Likewise.
65366         * modules/frexp-tests (Makefile.am): Likewise.
65367         * modules/isnanl-tests (Makefile.am): Likewise.
65368         * modules/linked-list-tests (Makefile.am): Likewise.
65369         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65370         * modules/lock-tests (Makefile.am): Likewise.
65371         * modules/rbtree-list-tests (Makefile.am): Likewise.
65372         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65373         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65374         * modules/tls-tests (Makefile.am): Likewise.
65375         * modules/tsearch-tests (Makefile.am): Likewise.
65376         * modules/xvasprintf-tests (Makefile.am): Likewise.
65377
65378         Fix fpurge for cygwin.
65379         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65380         value.
65381         * modules/fpurge-tests (Depends-on): Clean up trash.
65382
65383 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65384
65385         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65386
65387         * m4/autobuild.m4: Re-indent.
65388
65389 2007-04-13  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/fpurge-tests: New file.
65392         * tests/test-fpurge.c: New file.
65393
65394         * modules/fpurge: New file.
65395         * lib/fpurge.h: New file.
65396         * lib/fpurge.c: New file.
65397         * m4/fpurge.m4: New file.
65398
65399 2007-04-13  Bruno Haible  <bruno@clisp.org>
65400
65401         * modules/fbufmode-tests: New file.
65402         * tests/test-fbufmode.c: New file.
65403
65404         * modules/fbufmode: New file.
65405         * lib/fbufmode.h: New file.
65406         * lib/fbufmode.c: New file.
65407         * m4/fbufmode.m4: New file.
65408
65409 2007-04-13  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/fwritable-tests: New file.
65412         * tests/test-fwritable.c: New file.
65413
65414         * modules/fwritable: New file.
65415         * lib/fwritable.h: New file.
65416         * lib/fwritable.c: New file.
65417         * m4/fwritable.m4: New file.
65418
65419 2007-04-13  Bruno Haible  <bruno@clisp.org>
65420
65421         * modules/freadable-tests: New file.
65422         * tests/test-freadable.c: New file.
65423
65424         * modules/freadable: New file.
65425         * lib/freadable.h: New file.
65426         * lib/freadable.c: New file.
65427         * m4/freadable.m4: New file.
65428
65429 2007-04-13  Bruno Haible  <bruno@clisp.org>
65430
65431         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65432         MOSTLYCLEANFILES.
65433
65434 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65437         gzip bootstrap.conf to avoid dragging in i18n machinery.
65438         (gnulib_tool_option): Use it.
65439
65440 2007-04-13  Bruno Haible  <bruno@clisp.org>
65441
65442         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65443         %F directives.
65444         * tests/test-vasprintf-posix.c (test_function): Likewise.
65445         * tests/test-snprintf-posix.h (test_function): Likewise.
65446         * tests/test-sprintf-posix.h (test_function): Likewise.
65447         * tests/test-fprintf-posix.h (test_function): Likewise.
65448         * tests/test-printf-posix.h (test_function): Likewise.
65449         * tests/test-fprintf-posix.out: Likewise.
65450
65451 2007-04-13  Bruno Haible  <bruno@clisp.org>
65452
65453         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65454         * modules/tls-tests (configure.ac): Likewise.
65455         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65456
65457 2007-04-13  Bruno Haible  <bruno@clisp.org>
65458
65459         * lib/tls.c (glthread_tls_get): Fix return type.
65460         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65461
65462 2007-04-12  Eric Blake  <ebb9@byu.net>
65463
65464         * modules/gettime (Depends-on): Remove gettime.
65465         Reported by Dmitry V. Levin.
65466
65467 2007-04-12  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/fflush (Include): Mention <stdio.h>.
65470         * modules/strtoimax (Include): Mention <inttypes.h>.
65471         * modules/strtoumax (Include): Likewise.
65472
65473 2007-04-12  Eric Blake  <ebb9@byu.net>
65474
65475         * .cvsignore: New file.
65476         * .gitignore: Likewise.
65477
65478 2007-04-12  Bruno Haible  <bruno@clisp.org>
65479
65480         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65481         not before, since $(LDADD) often contains libgnu.a.
65482         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65483         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65484         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65485         Needed on Cygwin.
65486
65487 2007-04-12  Eric Blake  <ebb9@byu.net>
65488
65489         Work around glibc's failure to flush stdin on fclose.
65490         * lib/closein.c (close_stdin): Flush stdin before closing.
65491
65492         Work around glibc's failure to reset seekable stdin on exit.
65493         * modules/closein: New module.
65494         * lib/closein.c: New file.
65495         * lib/closein.h: Likewise.
65496         * m4/closein.m4: Likewise.
65497         * MODULES.html.sh (File stream based Input/Output): Document it.
65498
65499 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65500
65501         * gnulib-tool: Rename generated 'autobuild' script to
65502         'do-autobuild' in --create-megatestdir output.
65503
65504         * doc/gnulib.texi (Build robot for gnulib): Fix.
65505
65506 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65507
65508         * modules/sysexits (Depends-on): Add absolute-header.
65509
65510 2007-04-12  Eric Blake  <ebb9@byu.net>
65511
65512         No need to preserve errno on success.
65513         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65514         Reported by Bruno Haible.
65515
65516 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65517
65518         * MODULES.html.sh (Support for maintaining and releasing
65519         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65520
65521 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65522
65523         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65524
65525 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65526
65527         * modules/autobuild: New module.
65528
65529         * m4/autobuild.m4: New file.
65530
65531 2007-04-11  Bruno Haible  <bruno@clisp.org>
65532
65533         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65534         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65538         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65539         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65541         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65542         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65544         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65545         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65550         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65551         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65558         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65561         Reported by Eric Blake.
65562
65563 2007-04-11  Bruno Haible  <bruno@clisp.org>
65564
65565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65566
65567 2007-04-10  Bruno Haible  <bruno@clisp.org>
65568
65569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65570         for NaN and Infinity. Needed on FreeBSD 6.1.
65571         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65572         regarding results for "%010a" of Infinity and NaN.
65573         * tests/test-vasprintf-posix.c (test_function): Likewise.
65574         * tests/test-snprintf-posix.h (test_function): Likewise.
65575         * tests/test-sprintf-posix.h (test_function): Likewise.
65576         * tests/test-fprintf-posix.h (test_function): Likewise.
65577         * tests/test-printf-posix.h (test_function): Likewise.
65578         * tests/test-fprintf-posix.out: Likewise.
65579
65580 2007-04-10  Bruno Haible  <bruno@clisp.org>
65581
65582         * modules/locale-tests: New file.
65583         * tests/test-locale.c: New file.
65584
65585         * modules/locale: New file.
65586         * lib/locale_.h: New file.
65587         * m4/locale_h.m4: New file.
65588
65589 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65590             Bruno Haible  <bruno@clisp.org>
65591
65592         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65593         be determined, test for availability of the copysignf, copysign,
65594         copysignl functions.
65595         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65596         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65597         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65598
65599 2007-04-09  Eric Blake  <ebb9@byu.net>
65600
65601         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65602         * modules/stdio (Makefile.am): Support fflush.
65603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65604         * modules/fflush: New file.
65605         * lib/fflush.c: Likewise.
65606         * m4/fflush.m4: Likewise.
65607         * modules/fflush-tests: New test.
65608         * tests/test-fflush.c: Likewise.
65609         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65610
65611 2007-04-06  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65614         (VASNPRINTF): Use signbit for faster determination whether to print a
65615         minus sign.
65616         * modules/vasnprintf (Files): Remove lib/float+.h.
65617         * modules/fprintf-posix (Depends-on): Add signbit.
65618         * modules/snprintf-posix (Depends-on): Likewise.
65619         * modules/sprintf-posix (Depends-on): Likewise.
65620         * modules/vasnprintf-posix (Depends-on): Likewise.
65621         * modules/vasprintf-posix (Depends-on): Likewise.
65622         * modules/vfprintf-posix (Depends-on): Likewise.
65623         * modules/vsnprintf-posix (Depends-on): Likewise.
65624         * modules/vsprintf-posix (Depends-on): Likewise.
65625
65626 2007-04-06  Bruno Haible  <bruno@clisp.org>
65627
65628         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65629         * tests/test-frexpl.c (main): Likewise.
65630         * tests/test-ldexpl.c (main): Likewise.
65631         * modules/frexp-tests (Depends-on): Add signbit.
65632         * modules/frexpl-tests (Depdends-on): Likewise.
65633         * modules/ldexpl-tests (Depdends-on): Likewise.
65634
65635 2007-04-06  Bruno Haible  <bruno@clisp.org>
65636
65637         * modules/signbit-tests: New file.
65638         * tests/test-signbit.c: New file.
65639
65640         * modules/signbit: New file.
65641         * lib/signbitf.c: New file.
65642         * lib/signbitd.c: New file.
65643         * lib/signbitl.c: New file.
65644         * m4/signbit.m4: New file.
65645         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65646         (signbit): New macro.
65647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65648         REPLACE_SIGNBIT.
65649         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65650         REPLACE_FREXPL into math.h.
65651
65652 2007-04-06  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/isnanf-nolibm-tests: New file.
65655         * tests/test-isnanf.c: New file.
65656
65657         * modules/isnanf-nolibm: New file.
65658         * lib/isnanf.h: New file.
65659         * lib/isnanf.c: New file.
65660         * lib/isnan.c: Consider the USE_FLOAT macro.
65661         * m4/isnanf.m4: New file.
65662
65663 2007-04-06  Bruno Haible  <bruno@clisp.org>
65664
65665         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65666         (Link): New section.
65667
65668         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65669
65670 2007-04-06  Bruno Haible  <bruno@clisp.org>
65671
65672         Assume the 'long double' type.
65673         * m4/longdouble.m4: Remove file.
65674         * config/srclist.txt: Don't mention longdouble.m4.
65675         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65676         * lib/float+.h: Likewise.
65677         * lib/frexp.c: Likewise.
65678         * lib/printf-args.h: Likewise.
65679         * lib/printf-args.c: Likewise.
65680         * lib/printf-frexp.c: Likewise.
65681         * lib/printf-parse.c: Likewise.
65682         * lib/vasnprintf.c: Likewise.
65683         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65684         * m4/intl.m4: Likewise.
65685         * m4/isnanl.m4: Likewise.
65686         * m4/printf.m4: Likewise.
65687         * m4/printf-frexpl.m4: Likewise.
65688         * m4/vasnprintf.m4: Likewise.
65689         * modules/allocsa (Files): Remove m4/longdouble.m4.
65690         * modules/gettext (Files): Likewise.
65691         * modules/relocatable-prog-wrapper (Files): Likewise.
65692         * modules/vasnprintf (Files): Likewise.
65693         * modules/isnanl (Files): Likewise.
65694         (Include): Simplify.
65695         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65696         (Include): Simplify.
65697         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65698         (Include): Simplify.
65699         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65700         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65701         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65702         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65703         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65704         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65705         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65706         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65707         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65708         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65709         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65710         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65711         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65712         * tests/test-isnanl.c: Likewise.
65713         * tests/test-snprintf-posix.h: Likewise.
65714         * tests/test-sprintf-posix.h: Likewise.
65715         * tests/test-vasnprintf-posix.c: Likewise.
65716         * tests/test-vasnprintf-posix2.c: Likewise.
65717         * tests/test-vasprintf-posix.c: Likewise.
65718
65719 2007-04-06  Bruno Haible  <bruno@clisp.org>
65720
65721         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65722         * lib/math_.h [__DECC]: Include the overridden include file through
65723         #include_next, outside the double-inclusion guard.
65724         * lib/stdio_.h [__DECC]: Likewise.
65725         * lib/stdlib_.h [__DECC]: Likewise.
65726         * lib/string_.h [__DECC]: Likewise.
65727         * lib/time_.h [__DECC]: Likewise.
65728         * lib/wchar_.h [__DECC]: Likewise.
65729         * lib/wctype_.h [__DECC]: Likewise.
65730         * lib/inttypes_.h [__DECC]: Likewise.
65731         Reported by Albert Chin <china@thewrittenword.com> in
65732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65733
65734 2007-04-04  Eric Blake  <ebb9@byu.net>
65735
65736         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65737         1.5.x.
65738
65739 2007-04-04  Bruno Haible  <bruno@clisp.org>
65740
65741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65742         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65743
65744 2007-04-04  Bruno Haible  <bruno@clisp.org>
65745
65746         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65747         results for "%010a" of Infinity and NaN.
65748         * tests/test-vasprintf-posix.c (test_function): Likewise.
65749         * tests/test-snprintf-posix.h (test_function): Likewise.
65750         * tests/test-sprintf-posix.h (test_function): Likewise.
65751         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65752         * tests/test-printf-posix.h (test_function): Likewise.
65753         * tests/test-fprintf-posix.out: Update.
65754         Needed for FreeBSD 6.1.
65755
65756 2007-04-04  Bruno Haible  <bruno@clisp.org>
65757
65758         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65759         directly used by the gnulib modules nor by gnulib-tool.
65760
65761 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * DEPENDENCIES: Give overall description of version dependency
65764         desirability.  Use more-typical names for apps.
65765         Add shell, coreutils, diffutils, grep, tar, gzip.
65766
65767 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65768
65769         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65770
65771 2007-04-04  Karl Berry  <karl@gnu.org>
65772
65773         * MODULES.html.sh (func_module): missing '.
65774
65775 2007-04-03  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/argmatch-tests (Makefile.am): New variable
65778         test_argmatch_LDADD.
65779         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65780         * modules/array-list-tests (Makefile.am): New variable
65781         test_array_list_LDADD.
65782         * modules/array-oset-tests (Makefile.am): New variable
65783         test_array_oset_LDADD.
65784         * modules/avltree-list-tests (Makefile.am): New variable
65785         test_avltree_list_LDADD.
65786         * modules/avltree-oset-tests (Makefile.am): New variable
65787         test_avltree_oset_LDADD.
65788         * modules/avltreehash-list-tests (Makefile.am): New variable
65789         test_avltreehash_list_LDADD.
65790         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65791         test_canonicalize_lgpl_LDADD.
65792         * modules/carray-list-tests (Makefile.am): New variable
65793         test_carray_list_LDADD.
65794         * modules/dirname-tests (Makefile.am): New variable
65795         test_dirname_LDADD.
65796         * modules/linked-list-tests (Makefile.am): New variable
65797         test_linked_list_LDADD.
65798         * modules/linkedhash-list-tests (Makefile.am): New variable
65799         test_linkedhash_list_LDADD.
65800         * modules/rbtree-list-tests (Makefile.am): New variable
65801         test_rbtree_list_LDADD.
65802         * modules/rbtree-oset-tests (Makefile.am): New variable
65803         test_rbtree_oset_LDADD.
65804         * modules/rbtreehash-list-tests (Makefile.am): New variable
65805         test_rbtreehash_list_LDADD.
65806         * modules/xvasprintf-tests (Makefile.am): New variable
65807         test_xvasprintf_LDADD.
65808         Reported by Eric Blake.
65809
65810 2007-04-03  Eric Blake  <ebb9@byu.net>
65811
65812         * DEPENDENCIES: Weaken m4 requirements.
65813
65814 2007-04-03  Bruno Haible  <bruno@clisp.org>
65815
65816         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65817         * modules/isnanl-tests (configure.ac): Likewise.
65818
65819 2007-04-03  Ben Pfaff  <blp@gnu.org>
65820
65821         * modules/iconv_open: Add $(srcdir)/ to source directory
65822         references in Makefile fragments that call gperf, to fix VPATH
65823         builds.
65824
65825 2007-04-03  Bruno Haible  <bruno@clisp.org>
65826
65827         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65828         * lib/ldexpl.c: Undo last change.
65829
65830 2007-04-03  Bruno Haible  <bruno@clisp.org>
65831
65832         * modules/printf-frexpl (Depends-on): Undo last change.
65833         (Files): Add m4/ldexpl.m4.
65834
65835 2007-04-03  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65838         * modules/isnanl (Link): New section.
65839
65840         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65841         * modules/frexp (Link): New section.
65842
65843         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65844         * modules/frexpl (Link): New section.
65845
65846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65847         * modules/ldexpl (Link): New section.
65848
65849 2007-04-03  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/TEMPLATE-EXTENDED: New file.
65852         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65853
65854 2007-04-03  Bruno Haible  <bruno@clisp.org>
65855
65856         * DEPENDENCIES: New file.
65857         Suggested by Simon Josefsson.
65858
65859 2007-04-03  Bruno Haible  <bruno@clisp.org>
65860
65861         * doc/gnulib.texi: Escape @.
65862
65863 2007-04-03  James Youngman  <jay@gnu.org>
65864         and Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65867         birthtime on all systems that have birthtime, not just those which
65868         use st_birthtimensec rather than st_birthtim.  Putting zero in
65869         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65870         that the birth time is not available for files on an NFS mount.
65871
65872 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65873
65874         * modules/memxor: Move back from crypto/, suggested by Bruno.
65875         * modules/crypto/hmac-sha1: Fix memxor dependency.
65876
65877         * modules/crypto/gc: Moved from ../.
65878
65879 2007-04-02  Eric Blake  <ebb9@byu.net>
65880
65881         * lib/ldexpl.c (includes): Avoid libm.
65882
65883         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65884
65885 2007-04-02  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65888         on IRIX.
65889
65890 2007-04-02  Bruno Haible  <bruno@clisp.org>
65891
65892         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65893         x86 or x86_64 platforms running MacOS X.
65894         Reported by Ryan Schmidt <@ryandesign.com>.
65895
65896 2007-04-02  Bruno Haible  <bruno@clisp.org>
65897
65898         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65899         i386.
65900
65901 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65902
65903         * modules/crypto/arcfour: Moved from ../.
65904         * modules/crypto/arcfour-tests: Moved from ../.
65905         * modules/crypto/arctwo: Moved from ../.
65906         * modules/crypto/arctwo-tests: Moved from ../.
65907         * modules/crypto/des: Moved from ../.
65908         * modules/crypto/des-tests: Moved from ../.
65909         * modules/crypto/gc-arcfour: Moved from ../.
65910         * modules/crypto/gc-arcfour-tests: Moved from ../.
65911         * modules/crypto/gc-arctwo: Moved from ../.
65912         * modules/crypto/gc-arctwo-tests: Moved from ../.
65913         * modules/crypto/gc-des: Moved from ../.
65914         * modules/crypto/gc-des-tests: Moved from ../.
65915         * modules/crypto/gc-hmac-md5: Moved from ../.
65916         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65917         * modules/crypto/gc-hmac-sha1: Moved from ../.
65918         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65919         * modules/crypto/gc-md2: Moved from ../.
65920         * modules/crypto/gc-md2-tests: Moved from ../.
65921         * modules/crypto/gc-md4: Moved from ../.
65922         * modules/crypto/gc-md4-tests: Moved from ../.
65923         * modules/crypto/gc-md5: Moved from ../.
65924         * modules/crypto/gc-md5-tests: Moved from ../.
65925         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65926         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65927         * modules/crypto/gc-random: Moved from ../.
65928         * modules/crypto/gc-rijndael: Moved from ../.
65929         * modules/crypto/gc-rijndael-tests: Moved from ../.
65930         * modules/crypto/gc-sha1: Moved from ../.
65931         * modules/crypto/gc-sha1-tests: Moved from ../.
65932         * modules/crypto/gc-tests: Moved from ../.
65933         * modules/crypto/hmac-md5: Moved from ../.
65934         * modules/crypto/hmac-md5-tests: Moved from ../.
65935         * modules/crypto/hmac-sha1: Moved from ../.
65936         * modules/crypto/hmac-sha1-tests: Moved from ../.
65937         * modules/crypto/md2: Moved from ../.
65938         * modules/crypto/md2-tests: Moved from ../.
65939         * modules/crypto/md4: Moved from ../.
65940         * modules/crypto/md4-tests: Moved from ../.
65941         * modules/crypto/md5: Moved from ../.
65942         * modules/crypto/md5-tests: Moved from ../.
65943         * modules/crypto/memxor: Moved from ../.
65944         * modules/crypto/rijndael: Moved from ../.
65945         * modules/crypto/rijndael-tests: Moved from ../.
65946         * modules/crypto/sha1: Moved from ../.
65947
65948 2007-03-30  James Youngman  <jay@gnu.org>
65949
65950         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65951         rename() to change the ctime of a file (because ctime is unaffected
65952         by rename on jfs2 on AIX 5.1).
65953         (main): Start by doing cleanup, in case a previous run failed leaving
65954         test files behind.
65955
65956 2007-03-31  Bruno Haible  <bruno@clisp.org>
65957
65958         Support old proprietary implementations of iconv.
65959         * modules/iconv_open: New file.
65960         * lib/iconv_.h: New file.
65961         * m4/iconv_h.m4: New file.
65962         * lib/iconv_open.c: New file.
65963         * lib/iconv_open-aix.gperf: New file.
65964         * lib/iconv_open-hpux.gperf: New file.
65965         * lib/iconv_open-irix.gperf: New file.
65966         * lib/iconv_open-osf.gperf: New file.
65967         * m4/iconv_open.m4: New file.
65968         * modules/linebreak (Depends-on): Add iconv_open.
65969         * modules/striconv (Depends-on): Likewise.
65970         * modules/striconveh (Depends-on): Likewise.
65971         * modules/unicodeio (Depends-on): Likewise.
65972         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65973         (iconv_t)(-1).
65974         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65975         conversion if cd is (iconv_t)(-1).
65976         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65977         is not possible.
65978
65979 2007-03-31  Bruno Haible  <bruno@clisp.org>
65980
65981         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65982         work on Solaris either. Protect also second use of "autodetect_jp".
65983
65984 2007-03-31  Bruno Haible  <bruno@clisp.org>
65985
65986         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65987         the function is not present.
65988
65989 2007-03-31  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65992         the function is not present.
65993
65994 2007-03-31  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65997         a bug in HP-UX iconv_open().
65998
65999 2007-03-31  Bruno Haible  <bruno@clisp.org>
66000
66001         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66002         (Mathematics <math.h>): New section, add fpieee.
66003         (Input/output <stdio.h>): Add fseterr.
66004         (Mathematics <math.h>): New section, add printf-frexp.
66005         (Container data structures): Add sublist.
66006         (Core language properties): Add fpucw, inline.
66007         (Functions for greatest-width integer types <inttypes.h>): Add
66008         imaxabs, imaxdiv, inttypes.
66009         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66010         isnanl-nolibm, ldexp.
66011         (Mathematics <math.h>): New section, add printf-frexpl.
66012         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66013         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66014         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66015         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66016         (Unicode string functions): Add unistr/u*-mbtoucr.
66017         (Java): Add javacomp-script, javaexec-script.
66018         (C#): Add csharpcomp-script, csharpexec-script.
66019         (Support for building libraries and executables): Add havelib,
66020         relocatable-*.
66021         (Support for maintaining and releasing projects): Renamed from
66022         'Support for maintaining and release projects'. Add announce-gen.
66023
66024 2007-03-31  Bruno Haible  <bruno@clisp.org>
66025
66026         * README: Talk primarily about git.
66027         (git and CVS): Renamed from CVS.
66028         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66029         gnulib is available through git.
66030         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66031
66032 2007-03-30  Bruno Haible  <bruno@clisp.org>
66033
66034         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66035         * lib/poll_.h: Likewise.
66036         * lib/stat_.h: Likewise.
66037         * lib/sys_time_.h: Likewise.
66038         * lib/sysexit_.h: Likewise.
66039         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66040         * lib/stdbool_.h: Likewise.
66041         * lib/byteswap_.h: Add double-inclusion guard.
66042
66043 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66044
66045         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66046
66047 2007-03-30  Karl Berry  <karl@gnu.org>
66048
66049         * config/srclist-update: double space after USA in the license
66050         substitution, since that's how it's usually (?) written.
66051
66052 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66055         reported by Bruno Haible.
66056
66057 2007-03-29  Bruno Haible  <bruno@clisp.org>
66058
66059         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66060         a bug in AIX iconv().
66061
66062 2007-03-29  Bruno Haible  <bruno@clisp.org>
66063
66064         * modules/ldexpl-tests: New file.
66065         * tests/test-ldexpl.c: New file.
66066
66067 2007-03-29  Bruno Haible  <bruno@clisp.org>
66068
66069         * lib/ldexpl.c: Include fpucw.h.
66070         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66071         multiplication.
66072         * modules/ldexpl (Depends-on): Add fpucw.
66073
66074 2007-03-29  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/ldexpl: New file.
66077         * m4/ldexpl.m4: New file.
66078         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66079         set.
66080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66081         REPLACE_LDEXPL.
66082         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66083         REPLACE_LDEXPL.
66084         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66085         gl_FUNC_LDEXPL_WORKS.
66086         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66087         * modules/mathl (Files): Remove lib/ldexpl.c.
66088         (Depends-on): Add ldexpl.
66089
66090 2007-03-29  Bruno Haible  <bruno@clisp.org>
66091
66092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66093
66094 2007-03-29  Bruno Haible  <bruno@clisp.org>
66095
66096         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66097         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66098         and possibly also HP-UX.
66099         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66100         work on AIX, IRIX, HP-UX, OSF/1.
66101         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66102         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66103         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66104         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66105         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66106         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66107
66108 2007-03-29  Bruno Haible  <bruno@clisp.org>
66109
66110         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66111
66112 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66115         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66116
66117 2007-03-29  Eric Blake  <ebb9@byu.net>
66118
66119         * lib/acl-internal.h: Remove redundant include.
66120         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66121         Cygwin when a file is locked.
66122
66123 2007-03-29  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66126         file.
66127         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66128
66129 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66132         try to remove a parent directory if the child couldn't be removed
66133         (except for the first rmdir, which could fail because the child
66134         doesn't exist).  Problem reported by Jeff Blaine in
66135         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66136
66137 2007-03-28  Bruno Haible  <bruno@clisp.org>
66138
66139         * lib/striconveh.c (utf8conv_carefully): New function.
66140         (mem_cd_iconveh_internal): Invoke it.
66141
66142 2007-03-28  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66145         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66146         input.
66147         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66148         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66149         unistr/u8-uctomb.
66150
66151 2007-03-28  Bruno Haible  <bruno@clisp.org>
66152
66153         * modules/unistr/u8-mbtoucr: New file.
66154         * lib/unistr/u8-mbtoucr.c: New file.
66155         * modules/unistr/u16-mbtoucr: New file.
66156         * lib/unistr/u16-mbtoucr.c: New file.
66157         * modules/unistr/u16-mbtoucr: New file.
66158         * lib/unistr/u16-mbtoucr.c: New file.
66159         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66160
66161 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66162             Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66165         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66166         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66167
66168         * m4/stdio_h.m4: Add stubs for vasprintf too.
66169
66170         * modules/stdio: Support vasprintf in sed command.
66171
66172         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66173         vasprintf.h.  Add stdio module indicator.
66174
66175         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66176         vasprintf.h.
66177
66178         * lib/vasprintf.h: File removed.
66179
66180         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66181         * lib/vasprintf.c: Ditto.
66182         * lib/xvasprintf.c: Ditto.
66183         * tests/test-vasprintf-posix.c: Ditto.
66184         * tests/test-vasprintf.c: Ditto.
66185
66186 2007-03-27  Bruno Haible  <bruno@clisp.org>
66187
66188         Make vasnprintf multithread-safe.
66189         * lib/vasnprintf.c (decimal_point_char): New function.
66190         (VASNPRINTF): Use it.
66191         Suggested by Simon Josefsson.
66192
66193 2007-03-27  Eric Blake  <ebb9@byu.net>
66194
66195         Support sub-second birthtime on cygwin.
66196         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66197         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66198         (get_stat_birthtime): Also work with st_birthtim.
66199
66200 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66203         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66204         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66205         (get_stat_birthtime_ns): Simplify compile-time tests.
66206         (get_stat_birthtime): Change the API to look like
66207         get_stat_mtime etc., except return a negative tv_nsec on error.
66208         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66209         Don't check for "spare" fields.
66210         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66211         or for struct stat.st_birthtime, as these tests aren't used.
66212         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66213
66214 2007-03-27  Bruno Haible  <bruno@clisp.org>
66215
66216         * lib/stat-time.h: Include <sys/stat.h>.
66217
66218 2007-03-27  James Youngman  <jay@gnu.org>
66219
66220         * lib/stat-time.h (get_stat_birthtime): New function for
66221           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66222         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66223           and its variants.
66224         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66225         * modules/stat-time-test: New file.
66226         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66227
66228 2007-03-26  Bruno Haible  <bruno@clisp.org>
66229
66230         Better support of signalling NaNs.
66231         * lib/atanl.c: Include isnanl.h.
66232         (atanl): Perform test for NaN at the beginning of the function and
66233         through a call to isnanl.
66234         * lib/cosl.c: Include isnanl.h.
66235         (cosl): Perform test for NaN at the beginning of the function and
66236         through a call to isnanl.
66237         * lib/ldexpl.c: Include isnanl.h.
66238         (ldexpl): Perform test for NaN through a call to isnanl.
66239         * lib/logl.c: Include isnanl.h.
66240         (logl): Perform test for NaN at the beginning of the function and
66241         through a call to isnanl.
66242         * lib/sinl.c: Include isnanl.h.
66243         (sinl): Perform test for NaN at the beginning of the function and
66244         through a call to isnanl.
66245         * lib/sqrtl.c: Include isnanl.h.
66246         (sqrtl): Perform test for NaN at the beginning of the function and
66247         through a call to isnanl.
66248         * lib/tanl.c: Include isnanl.h.
66249         (tanl): Perform test for NaN at the beginning of the function and
66250         through a call to isnanl.
66251         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66252         * modules/mathl (Depends-on): Add isnanl.
66253
66254 2007-03-26  Eric Blake  <ebb9@byu.net>
66255
66256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66257         regression in logic sense of previous patch.
66258
66259 2007-03-26  Bruno Haible  <bruno@clisp.org>
66260
66261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66262         unportable shell command "if ! ...".
66263         Reported by Ralf Wildenhues.
66264
66265 2007-03-25  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66268         <sysexits.h> file, and only add EX_CONFIG.
66269         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66270         absolute file name and whether it is sufficient. Substitute also
66271         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66272         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66273         ABSOLUTE_SYSEXITS_H into sysexits.h.
66274
66275 2007-03-25  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66278         hints is NULL.
66279
66280 2007-03-25  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66283         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66284
66285 2007-03-25  Bruno Haible  <bruno@clisp.org>
66286
66287         * lib/vasnprintf.c: Include langinfo.h.
66288         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66289         multithread-safe.
66290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66294         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66296         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66298         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66299         Reported by Simon Josefsson.
66300
66301 2007-03-25  Bruno Haible  <bruno@clisp.org>
66302
66303         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66304         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66305         * modules/vasnprintf (Depends-on): Add stdint.
66306
66307 2007-03-25  Bruno Haible  <bruno@clisp.org>
66308
66309         * modules/fpieee: New file.
66310         * m4/fpieee.m4: New file.
66311         * modules/isnan-nolibm (Depends-on): Add fpieee.
66312         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66313         * modules/isnanl (Depends-on): Add fpieee.
66314
66315 2007-03-25  Bruno Haible  <bruno@clisp.org>
66316
66317         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66318
66319 2007-03-25  Bruno Haible  <bruno@clisp.org>
66320
66321         Avoid test failures on IRIX 6.5.
66322         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66323         (main): Use it.
66324         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66325         macros.
66326         (main): Use them.
66327
66328 2007-03-25  Bruno Haible  <bruno@clisp.org>
66329
66330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66331         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66332         exists but doesn't work.
66333         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66334         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66336         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66337         math.h.
66338
66339 2007-03-25  Bruno Haible  <bruno@clisp.org>
66340
66341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66342         returns inf. Needed on IRIX 6.5.
66343
66344 2007-03-25  Bruno Haible  <bruno@clisp.org>
66345
66346         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66347         (main): Use isnanl instead of x != x idiom.
66348         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66349
66350         * tests/test-frexp.c: Include isnan.h.
66351         (main): Use isnan instead of x != x idiom.
66352         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66353
66354 2007-03-25  Bruno Haible  <bruno@clisp.org>
66355
66356         * tests/test-frexp.c (NaN): New function/macro.
66357         (main): Use it instead of 0.0 / 0.0.
66358         * tests/test-isnan.c (NaN): New function/macro.
66359         (main): Use it instead of 0.0 / 0.0.
66360         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66361         (test_function): Use it instead of 0.0 / 0.0.
66362         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66363         (test_function): Use it instead of 0.0 / 0.0.
66364         * tests/test-snprintf-posix.h (NaN): New function/macro.
66365         (test_function): Use it instead of 0.0 / 0.0.
66366         * tests/test-sprintf-posix.h (NaN): New function/macro.
66367         (test_function): Use it instead of 0.0 / 0.0.
66368         * tests/test-fprintf-posix.h (NaN): New function/macro.
66369         (test_function): Use it instead of 0.0 / 0.0.
66370         * tests/test-printf-posix.h (NaN): New function/macro.
66371         (test_function): Use it instead of 0.0 / 0.0.
66372
66373         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66374
66375 2007-03-25  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66378
66379 2007-03-25  Bruno Haible  <bruno@clisp.org>
66380
66381         * lib/regexec.c (merge_state_with_log): Make static.
66382
66383 2007-03-25  Bruno Haible  <bruno@clisp.org>
66384
66385         * lib/trigl.c (kernel_rem_pio2): Make static.
66386
66387 2007-03-25  Bruno Haible  <bruno@clisp.org>
66388
66389         * lib/sincosl.c (sincosl_table): Make static.
66390
66391 2007-03-25  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66394         if the compiler does not support C99.
66395
66396 2007-03-25  Bruno Haible  <bruno@clisp.org>
66397
66398         * modules/time (Makefile.am): Ensure all rule action lines start with a
66399         tab.
66400
66401 2007-03-24  Bruno Haible  <bruno@clisp.org>
66402
66403         * modules/tsearch-tests: New file.
66404         * tests/test-tsearch.sh: New file.
66405         * tests/test-tsearch.c: New file, mostly copied from glibc.
66406
66407         * modules/search-tests: New file.
66408         * tests/test-search.c: New file.
66409
66410         * modules/search: New file.
66411         * lib/search_.h: New file, incorporating lib/tsearch.h.
66412         * m4/search_h.m4: New file.
66413         * lib/tsearch.h: Remove file.
66414         * lib/tsearch.c: Include search.h instead of tsearch.h.
66415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66416         HAVE_TSEARCH.
66417         * modules/tsearch (Files): Remove lib/tsearch.h.
66418         (Depends-on): Add search.
66419         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66420         (Include): Change tsearch.h into search.h.
66421
66422 2007-03-24  Bruno Haible  <bruno@clisp.org>
66423
66424         * modules/fpucw: New file.
66425         * lib/fpucw.h: New file.
66426         * lib/frexp.c: Include fpucw.h.
66427         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66428         (FUNC): Use them.
66429         * lib/printf-frexp.c: Include fpucw.h.
66430         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66431         (FUNC): Use them.
66432         * lib/vasnprintf.c: Include fpucw.h.
66433         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66434         'long double' calculations.
66435         * tests/test-frexpl.c: Include fpucw.h.
66436         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66437         * tests/test-printf-frexpl.c: Include fpucw.h.
66438         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66439         * modules/frexpl (Depends-on): Add fpucw.
66440         * modules/printf-frexpl (Depends-on): Likewise.
66441         * modules/fprintf-posix (Depends-on): Likewise.
66442         * modules/snprintf-posix (Depends-on): Likewise.
66443         * modules/sprintf-posix (Depends-on): Likewise.
66444         * modules/vasnprintf-posix (Depends-on): Likewise.
66445         * modules/vasprintf-posix (Depends-on): Likewise.
66446         * modules/vfprintf-posix (Depends-on): Likewise.
66447         * modules/vsnprintf-posix (Depends-on): Likewise.
66448         * modules/vsprintf-posix (Depends-on): Likewise.
66449         * modules/frexpl-tests (Depends-on): Likewise.
66450         * modules/printf-frexpl-tests (Depends-on): Likewise.
66451
66452 2007-03-24  Bruno Haible  <bruno@clisp.org>
66453
66454         * lib/float+.h: New file.
66455         * lib/isnan.c: Include float+.h.
66456         (SIZE): New macro.
66457         (FUNC): Compare only SIZE bytes of the value.
66458         * lib/vasnprintf.c: Include float+.h.
66459         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66460         SIZEOF_LDBL or SIZEOF_DBL bytes.
66461         * modules/isnan-nolibm (Files): Add lib/float+.h.
66462         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66463         * modules/isnanl (Files): Add lib/float+.h.
66464         * modules/vasnprintf (Files): Add lib/float+.h.
66465
66466 2007-03-24  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66469         include isnanl-nolibm.h.
66470
66471 2007-03-24  Bruno Haible  <bruno@clisp.org>
66472
66473         * tests/test-read-file.c (main): Don't produce spurious output for
66474         expected situations. Make the test fail if it encountered unexpected
66475         results.
66476
66477 2007-03-24  Bruno Haible  <bruno@clisp.org>
66478
66479         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66480         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66481
66482 2007-03-24  Bruno Haible  <bruno@clisp.org>
66483
66484         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66485
66486 2007-03-24  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66489         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66490
66491         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66492         * modules/utf8-ucs4: Turn into a symbolic link to module
66493         unistr/u8-mbtouc.
66494
66495         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66496         utf8-ucs4-unsafe.
66497         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66498         unistr/u8-mbtouc-unsafe.
66499
66500         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66501         * modules/utf16-ucs4: Turn into a symbolic link to module
66502         unistr/u16-mbtouc.
66503
66504         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66505         utf16-ucs4-unsafe.
66506         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66507         unistr/u16-mbtouc-unsafe.
66508
66509         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66510         * modules/ucs4-utf8: Turn into a symbolic link to module
66511         unistr/u8-ubtomb.
66512
66513         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66514         * modules/ucs4-utf16: Turn into a symbolic link to module
66515         unistr/u16-ubtomb.
66516
66517 2007-03-24  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66520         Enable the function only if HAVE_INLINE.
66521         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66522         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66523         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66524         Enable the function only if HAVE_INLINE.
66525         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66526         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66527         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66528         Enable the function only if HAVE_INLINE.
66529         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66530         Enable the function only if HAVE_INLINE.
66531         * modules/utf8-ucs4: Update.
66532         * modules/utf8-ucs4-unsafe: Update.
66533         * modules/utf16-ucs4: Update.
66534         * modules/utf16-ucs4-unsafe: Update.
66535         * modules/ucs4-utf8: Update.
66536         * modules/ucs4-utf16: Update.
66537
66538 2007-03-24  Bruno Haible  <bruno@clisp.org>
66539
66540         * lib/utf8-ucs4.h: Remove file.
66541         * lib/utf8-ucs4-unsafe.h: Remove file.
66542         * lib/utf16-ucs4.h: Remove file.
66543         * lib/utf16-ucs4-unsafe.h: Remove file.
66544         * lib/ucs4-utf8.h: Remove file.
66545         * lib/ucs4-utf16.h: Remove file.
66546         * lib/unistr.h: Include their previous contents.
66547         * m4/utf-ucs4.m4: Remove file.
66548         * m4/ucs4-utf.m4: Remove file.
66549         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66550         (Depends-on): Add unistr/base.
66551         (configure.ac): Remove gl_UTF_UCS4.
66552         (Makefile.am): Update.
66553         (Include): Change to unistr.h.
66554         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66555         (Depends-on): Add unistr/base.
66556         (configure.ac): Remove gl_UTF_UCS4.
66557         (Makefile.am): Update.
66558         (Include): Change to unistr.h.
66559         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66560         (Depends-on): Add unistr/base.
66561         (configure.ac): Remove gl_UTF_UCS4.
66562         (Makefile.am): Update.
66563         (Include): Change to unistr.h.
66564         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66565         (Depends-on): Add unistr/base.
66566         (configure.ac): Remove gl_UTF_UCS4.
66567         (Makefile.am): Update.
66568         (Include): Change to unistr.h.
66569         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66570         (Depends-on): Add unistr/base.
66571         (configure.ac): Remove gl_UCS4_UTF.
66572         (Makefile.am): Update.
66573         (Include): Change to unistr.h.
66574         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66575         (Depends-on): Add unistr/base.
66576         (configure.ac): Remove gl_UCS4_UTF.
66577         (Makefile.am): Update.
66578         (Include): Change to unistr.h.
66579         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66580         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66581         utf8-ucs4-unsafe.h.
66582         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66583         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66584         utf16-ucs4-unsafe.h.
66585         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66586         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66587         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66588         * lib/unistr/u8-strchr.c: Likewise.
66589         * lib/unistr/u8-strrchr.c: Likewise.
66590         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66591         * lib/unistr/u16-strchr.c: Likewise.
66592         * lib/unistr/u16-strrchr.c: Likewise.
66593         * lib/striconveh.c: Update.
66594         * lib/linebreak.c: Update.
66595
66596 2007-03-24  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66599         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66600
66601 2007-03-22  Bruno Haible  <bruno@clisp.org>
66602
66603         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66604
66605 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66606
66607         * MODULES.html.sh (File system functions): New module write-any-file.
66608         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66609         * m4/write-any-file.m4: New files.
66610
66611 2007-03-23  Eric Blake  <ebb9@byu.net>
66612
66613         * gnulib-tool: Rearrange space-tab sequences, since some editors
66614         like to eat them.
66615
66616 2007-03-23  Eric Blake  <ebb9@byu.net>
66617
66618         * lib/version-etc.c (version_etc_va): Update license wording to
66619         be more concise.  Recommended by Richard Stallman.
66620
66621 2007-03-22  Bruno Haible  <bruno@clisp.org>
66622
66623         * lib/poll.c (MSG_PEEK): New fallback definition.
66624
66625 2007-03-22  Bruno Haible  <bruno@clisp.org>
66626
66627         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66628         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66629         (main): Update.
66630         Fixes a compilation error on BeOS.
66631
66632 2007-03-22  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/frexpl-tests: New file.
66635         * tests/test-frexpl.c: New file.
66636
66637         * modules/frexpl: New file.
66638         * m4/frexpl.m4: New file.
66639         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66640         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66642         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66643         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66644         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66645
66646 2007-03-22  Bruno Haible  <bruno@clisp.org>
66647
66648         * lib/frexpl.c: Share code with lib/frexp.c.
66649         * modules/mathl (Files): Add lib/frexp.c.
66650         (Depends-on): Add isnanl-nolibm.
66651
66652 2007-03-22  Bruno Haible  <bruno@clisp.org>
66653
66654         * modules/printf-frexp (Files): Add m4/frexp.m4.
66655         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66656         only if the found frexp function actually works.
66657
66658 2007-03-22  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/frexp.c: Remove older implementation that uses divisions.
66661
66662 2007-03-21  Bruno Haible  <bruno@clisp.org>
66663
66664         * modules/frexp-tests: New file.
66665         * tests/test-frexp.c: New file.
66666
66667         * modules/frexp: New file.
66668         * lib/frexp.c: New file.
66669         * m4/frexp.m4: New file.
66670         * lib/math_.h (frexp): New declaration.
66671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66672         REPLACE_FREXP.
66673         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66674
66675 2007-03-21  Bruno Haible  <bruno@clisp.org>
66676
66677         * modules/isnanl-tests: New file.
66678         * tests/test-isnanl.c: New file.
66679
66680         * modules/isnanl: New file.
66681         * lib/isnanl.h: New file.
66682         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66683         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66684         gl_FUNC_ISNANL_WORKS.
66685         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66686         New macros.
66687
66688 2007-03-21  Bruno Haible  <bruno@clisp.org>
66689
66690         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66691         lib/isnanl.h.
66692         (Include): Update.
66693         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66694         * lib/vasnprintf.c: Update.
66695         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66696         tests/test-isnanl.h, remove tests/test-isnanl.c.
66697         (Makefile.am): Update.
66698         * tests/test-isnanl-nolibm.c: New file.
66699         * tests/test-isnanl.h: New file.
66700         * tests/test-isnanl.c: Remove file.
66701
66702 2007-03-21  Jim Meyering  <jim@meyering.net>
66703
66704         When trying to open ".", treat ESTALE like EACCES.
66705         * lib/savewd.c (savewd_save): Resort to forking not just upon
66706         failure with EACCES, but also when errno is ESTALE.
66707
66708 2007-03-20  Bruno Haible  <bruno@clisp.org>
66709
66710         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66711         Needed on AIX 5.1. Reported by Matthew Woehlke.
66712
66713 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         Suggestions by Bruno Haible:
66716         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66717         our own.
66718         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66719         * modules/acl (Depends-on): Add gettext.
66720
66721 2007-03-19  Bruno Haible  <bruno@clisp.org>
66722
66723         * modules/iconvme: Remove file.
66724         * lib/iconvme.h: Remove file.
66725         * lib/iconvme.c: Remove file.
66726         * m4/iconvme.m4: Remove file.
66727
66728 2007-03-19  Bruno Haible  <bruno@clisp.org>
66729
66730         * doc/relocatable-maint.texi: Break long shell script line.
66731         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66732
66733 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66736         handle file_has_acl.
66737         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66738         * lib/acl.c: Move header inclusions and related macro defns into
66739         lib/acl-internal.h.
66740         (S_ISLNK): Remove defn, since that's now done for us.
66741         (file_has_acl): Move to lib/file-has-acl.c.
66742         Call acl_trivial if available.  This is the crucial part of the fix.
66743         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66744         shared within the library.  Rewrite a bit, partly to make it compatible
66745         with the GNU coding style.
66746         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66747         Remove unnecessary double-quotes.
66748         Don't test for acl_to_text; the build will catch that.
66749         Replace acl_entries if it doesn't exist and it is needed.
66750         Check for -lsec and acl_trivial (as used on Solaris 10).
66751         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66752         lib/file-has-acl.c.
66753         (Depends-on): Add sys_stat, for S_ISLNK.
66754
66755 2007-03-19  Ben Pfaff  <blp@gnu.org>
66756
66757         * doc/gnulib.texi: Fix typos.
66758         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66759
66760 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66763         If size is zero here, buf must be zero.
66764
66765 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66766
66767         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66768         <bruno@clisp.org>.
66769
66770 2007-03-18  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66773         Suggested by Eric Blake.
66774
66775 2007-03-18  Ben Pfaff  <blp@gnu.org>
66776
66777         * doc/relocatable.texi: Recommend using as prefix a directory
66778         that does not exist and will never be created.  Based on
66779         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66780         and others.
66781
66782 2007-03-17  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/fchownat.c: Include lchown.h.
66785
66786 2007-03-17  Bruno Haible  <bruno@clisp.org>
66787
66788         Fix endless loop when the given allocated size was > INT_MAX.
66789         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66790         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66791         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66792         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66793         * lib/sprintf.c (sprintf): Likewise.
66794
66795 2007-03-17  Bruno Haible  <bruno@clisp.org>
66796
66797         * tests/test-argp-2.sh (func_compare): Output a context diff.
66798
66799 2007-03-17  Bruno Haible  <bruno@clisp.org>
66800
66801         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66802         locale's decimal-point character.
66803
66804 2007-03-17  Bruno Haible  <bruno@clisp.org>
66805
66806         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66807         before comparing it. Needed because on some platforms (e.g. x86) a
66808         'long double' occupies less bytes than sizeof (long double).
66809
66810 2007-03-17  Bruno Haible  <bruno@clisp.org>
66811
66812         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66813         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66814         * tests/test-getaddrinfo.c (simple): Likewise.
66815         * tests/test-read-file.c (main): Likewise.
66816
66817 2007-03-17  Bruno Haible  <bruno@clisp.org>
66818
66819         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66820
66821 2007-03-17  Bruno Haible  <bruno@clisp.org>
66822
66823         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66824         unused variable.
66825
66826 2007-03-17  Bruno Haible  <bruno@clisp.org>
66827
66828         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66829         * tests/test-c-strncasecmp.c: Likewise.
66830
66831 2007-03-17  Bruno Haible  <bruno@clisp.org>
66832
66833         * modules/stdlib (Depends-on): Add unistd.
66834         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66835         Needed for MacOS X 10.3.
66836
66837 2007-03-17  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66840
66841 2007-03-17  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66844
66845 2007-03-17  Bruno Haible  <bruno@clisp.org>
66846
66847         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66848         to reflect files copied from gnulib (with or without modifications).
66849         Suggested by Jim Meyering.
66850
66851 2007-03-17  Eric Blake  <ebb9@byu.net>
66852
66853         * NEWS: Document stdlib change from 2007-02-18.
66854
66855 2007-03-17  Jim Meyering  <jim@meyering.net>
66856
66857         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66858         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66859         someone uses a name containing shell meta-characters.
66860         Reported by Alfred M. Szmidt.
66861
66862         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66863
66864 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66865
66866         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66867         and copy gettext configuration files only if configure.ac contains
66868         a use of AM_GNU_GETTEXT_VERSION.
66869
66870 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66871
66872         * build-aux/bootstrap (gnulib_name): New variable.
66873         (gnulib_tool_options): Use it.
66874
66875 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66876
66877         * tests/test-des.c: Use new namespace.
66878
66879 2007-03-15  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66882         Reported by James Youngman <jay@gnu.org>.
66883
66884 2007-03-15  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66887         declared prototype. Needed with cc on OSF/1 5.1.
66888
66889 2007-03-15  Bruno Haible  <bruno@clisp.org>
66890
66891         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66892         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66893         (struct gl_list_implementation): Add dispose_fn argument to the
66894         'create_empty', 'create' methods.
66895         (struct gl_list_impl_base): Add field 'dispose_fn'.
66896         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66897         argument.
66898         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66899         dispose_fn argument.
66900         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66901         dispose_fn on the dropped values.
66902         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66903         dispose_fn argument.
66904         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66905         dropped values.
66906         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66907         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66908         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66909         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66910         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66911         argument.
66912         (gl_tree_list_free): Call dispose_fn on the dropped values.
66913         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66914         the dropped values.
66915         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66916         Add dispose_fn argument.
66917         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66918         Call dispose_fn on the dropped values.
66919         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66920         Add dispose_fn argument.
66921         (gl_sublist_create): Initialize the 'dispose_fn' field.
66922         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66923         * tests/test-array_list.c (main): Update.
66924         * tests/test-carray_list.c (main): Update.
66925         * tests/test-avltree_list.c (main): Update.
66926         * tests/test-rbtree_list.c (main): Update.
66927         * tests/test-avltreehash_list.c (main): Update.
66928         * tests/test-rbtreehash_list.c (main): Update.
66929         * tests/test-linked_list.c (main): Update.
66930         * tests/test-linkedhash_list.c (main): Update.
66931         * tests/test-array_oset.c (main): Update.
66932
66933 2007-03-15  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66936         (gl_oset_create_empty): Add dispose_fn argument.
66937         (struct gl_oset_implementation): Add dispose_fn argument to
66938         'create_empty' method.
66939         (struct gl_oset_impl_base): Add dispose_fn field.
66940         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66941         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66942         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66943         values.
66944         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66945         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66946         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66947         dropped value.
66948         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66949         dropped value.
66950         * tests/test-array_oset.c (main): Update.
66951         * tests/test-avltree_oset.c (main): Update.
66952         * tests/test-rbtree_oset.c (main): Update.
66953         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66954
66955 2007-03-13  Bruno Haible  <bruno@clisp.org>
66956
66957         * tests/test-stdbool.c (i): Update after last patch.
66958
66959 2007-03-12  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66962         the iswprint macro. Needed on Solaris 2.5.1.
66963
66964 2007-03-12  Bruno Haible  <bruno@clisp.org>
66965
66966         * tests/test-printf-frexp.c (main): Declare x as volatile.
66967
66968 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66969
66970         * doc/gnulib.texi (Build robot for gnulib): New section.
66971
66972 2007-03-12  Jim Meyering  <jim@meyering.net>
66973
66974         * build-aux/bootstrap: New file.
66975         * build-aux/bootstrap.conf: New file, from coreutils.
66976
66977 2007-03-11  Bruno Haible  <bruno@clisp.org>
66978
66979         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66980
66981 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66982
66983         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66984         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66985         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66986
66987 2007-03-11  Bruno Haible  <bruno@clisp.org>
66988
66989         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66990         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66991
66992 2007-03-11  Bruno Haible  <bruno@clisp.org>
66993
66994         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66995         formula. Needed for SunPRO C 5.0.
66996
66997 2007-03-11  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/long-options (Depends-on): Add getopt.
67000
67001 2007-03-11  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/modechange (Depends-on): Add stdbool.
67004
67005 2007-03-11  Bruno Haible  <bruno@clisp.org>
67006
67007         * modules/i-ring (Depends-on): Add stdbool.
67008
67009 2007-03-11  Bruno Haible  <bruno@clisp.org>
67010
67011         * modules/gc-des (Depends-on): Add stdbool.
67012
67013 2007-03-11  Bruno Haible  <bruno@clisp.org>
67014
67015         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67016
67017 2007-03-11  Bruno Haible  <bruno@clisp.org>
67018
67019         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67020
67021 2007-03-11  Bruno Haible  <bruno@clisp.org>
67022
67023         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67024
67025 2007-03-11  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/vasnprintf.c (sprintf): Undefine.
67028
67029 2007-03-11  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67032         initializers in SunPRO C and Compaq C compilers.
67033
67034 2007-03-11  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67037         decrementing code ANSI C compliant.
67038
67039 2007-03-11  Bruno Haible  <bruno@clisp.org>
67040
67041         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67042         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67043
67044 2007-03-11  Bruno Haible  <bruno@clisp.org>
67045
67046         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67047         <stdbool.h> substitute doesn't pass.
67048
67049 2007-03-11  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67052
67053 2007-03-11  Bruno Haible  <bruno@clisp.org>
67054
67055         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67056         script, for submission to autobuild.josefsson.org.
67057
67058 2007-03-10  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/canonicalize-lgpl-tests: New file.
67061         * tests/test-canonicalize-lgpl.sh: New file.
67062         * tests/test-canonicalize-lgpl.c: New file.
67063
67064         * modules/c-strcase-tests: New file.
67065         * tests/test-c-strcase.sh: New file.
67066         * tests/test-c-strcasecmp.c: New file.
67067         * tests/test-c-strncasecmp.c: New file.
67068
67069         * modules/atexit-tests: New file.
67070         * tests/test-atexit.sh: New file.
67071         * tests/test-atexit.c: New file.
67072
67073 2007-03-10  Bruno Haible  <bruno@clisp.org>
67074
67075         * tests/test-binary-io.sh: Use temporary filenames that are not so
67076         likely to clash with those of other tests (in a parallel make).
67077         * tests/test-binary-io.c: Likewise.
67078
67079 2007-03-10  Bruno Haible  <bruno@clisp.org>
67080
67081         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67082         fallback; use #error instead.
67083         Suggested by Simon Josefsson.
67084
67085 2007-03-10  Bruno Haible  <bruno@clisp.org>
67086
67087         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67088         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67089         first and the last.
67090
67091 2007-03-10  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67094
67095 2007-03-10  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67098         "make distcheck".
67099         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67100         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67101         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67102
67103 2007-03-10  Bruno Haible  <bruno@clisp.org>
67104
67105         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67106         variable.
67107         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67108         variable.
67109
67110 2007-03-09  Eric Blake  <ebb9@byu.net>
67111         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67112
67113         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67114         types are not being provided by gnulib.
67115         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67116         types are supported.
67117
67118 2007-03-10  Bruno Haible  <bruno@clisp.org>
67119
67120         * lib/stdio_.h (__attribute__): New macro.
67121         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67122         vsprintf): Specify __attribute__ __format__ for GCC.
67123         Suggested by Eric Blake.
67124
67125 2007-03-09  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/printf-posix-tests: New file.
67128         * tests/test-printf-posix.sh: New file.
67129         * tests/test-printf-posix.c: New file.
67130
67131         * modules/printf-posix: New file.
67132         * lib/printf.c: New file.
67133         * m4/printf-posix-rpl.m4: New file.
67134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67135         REPLACE_PRINTF.
67136         * lib/stdio_.h (printf): New declaration.
67137         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67138         ____strfmon____): New macros.
67139         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67140         REPLACE_PRINTF.
67141
67142 2007-03-09  Bruno Haible  <bruno@clisp.org>
67143
67144         * tests/test-vasnprintf-posix2.sh: New file.
67145         * tests/test-vasnprintf-posix2.c: New file.
67146         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67147         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67148         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67149
67150         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67151         a locale dependent decimal point, rather than always '.'.
67152
67153 2007-03-09  Eric Blake  <ebb9@byu.net>
67154
67155         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67156         spite of platforms like Tandem/NSK that define it to -1.
67157
67158 2007-03-08  Bruno Haible  <bruno@clisp.org>
67159
67160         * modules/vprintf-posix-tests: New file.
67161         * tests/test-vprintf-posix.sh: New file.
67162         * tests/test-vprintf-posix.c: New file.
67163         * tests/test-printf-posix.h: New file.
67164
67165         * modules/vprintf-posix: New file.
67166         * lib/vprintf.c: New file.
67167         * m4/vprintf-posix.m4: New file.
67168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67169         REPLACE_VPRINTF.
67170         * lib/stdio_.h (vprintf): New declaration.
67171         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67172         REPLACE_VPRINTF.
67173
67174 2007-03-08  Bruno Haible  <bruno@clisp.org>
67175
67176         * modules/fprintf-posix-tests: New file.
67177         * tests/test-fprintf-posix.sh: New file.
67178         * tests/test-fprintf-posix.c: New file.
67179
67180         * modules/fprintf-posix: New file.
67181         * lib/fprintf.c: New file.
67182         * m4/fprintf-posix.m4: New file.
67183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67184         REPLACE_FPRINTF.
67185         * lib/stdio_.h (fprintf): New declaration.
67186         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67187         REPLACE_FPRINTF.
67188
67189 2007-03-08  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/vfprintf-posix-tests: New file.
67192         * tests/test-vfprintf-posix.sh: New file.
67193         * tests/test-vfprintf-posix.c: New file.
67194         * tests/test-fprintf-posix.h: New file.
67195         * tests/test-fprintf-posix.out: New file.
67196
67197         * modules/vfprintf-posix: New file.
67198         * lib/vfprintf.c: New file.
67199         * m4/vfprintf-posix.m4: New file.
67200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67201         REPLACE_VFPRINTF.
67202         * lib/stdio_.h (vfprintf): New declaration.
67203         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67204         REPLACE_VFPRINTF.
67205
67206 2007-03-08  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67209
67210 2007-03-08  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67213         instead of 'expr' invocations.
67214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67219         Suggested by Paul Eggert.
67220
67221 2007-03-08  Bruno Haible  <bruno@clisp.org>
67222
67223         * modules/fseterr-tests: New file.
67224         * tests/test-fseterr.c: New file.
67225
67226         * modules/fseterr: New file.
67227         * lib/fseterr.h: New file.
67228         * lib/fseterr.c: New file.
67229
67230 2007-03-08  Bruno Haible  <bruno@clisp.org>
67231
67232         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67233         * lib/getopt_.h: Likewise.
67234         * lib/mbswidth.h: Likewise.
67235         * lib/setenv.h: Likewise.
67236         * lib/vasnprintf.h: Likewise.
67237         * lib/vasprintf.h: Likewise.
67238         * lib/verror.h: Likewise.
67239         * lib/xsetenv.h: Likewise.
67240         * lib/xvasprintf.h: Likewise.
67241
67242 2007-03-08  Jim Meyering  <jim@meyering.net>
67243
67244         * users.txt: Add parted.
67245
67246         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67247
67248 2007-03-07  Bruno Haible  <bruno@clisp.org>
67249
67250         * m4/printf.m4: Make the shell script snippets copy&pastable.
67251
67252 2007-03-02  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/netinet_in_.h: New file.
67255         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67256         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67257         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67258         (Depends-on): Add absolute-header.
67259         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67260         into netinet/in.h.
67261
67262 2007-03-03  Bruno Haible  <bruno@clisp.org>
67263
67264         * lib/sys_select_.h: New file.
67265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67266         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67267         * modules/sys_select (Files): Add lib/sys_select_.h.
67268         (Depends-on): Add absolute-header.
67269         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67270         into sys/select.h.
67271
67272 2007-03-02  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67275         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67276         values.
67277         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67278         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67279         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67280         * modules/sys_socket (Depends-on): Add absolute-header.
67281         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67282         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67283         (Include): Remove requirement of inclusion of <sys/types.h>.
67284
67285 2007-03-02  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/byteswap_.h (bswap_32): Fix formula.
67288
67289 2007-03-06  Bruno Haible  <bruno@clisp.org>
67290
67291         * modules/sprintf-posix-tests: New file.
67292         * tests/test-sprintf-posix.c: New file.
67293
67294         * modules/sprintf-posix: New file.
67295         * lib/sprintf.c: New file.
67296         * m4/sprintf-posix.m4: New file.
67297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67298         REPLACE_SPRINTF.
67299         * lib/stdio_.h (sprintf): New declaration.
67300         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67301         REPLACE_SPRINTF.
67302
67303 2007-03-06  Bruno Haible  <bruno@clisp.org>
67304
67305         * modules/vsprintf-posix-tests: New file.
67306         * tests/test-vsprintf-posix.c: New file.
67307         * tests/test-sprintf-posix.h: New file.
67308
67309         * modules/vsprintf-posix: New file.
67310         * lib/vsprintf.c: New file.
67311         * m4/vsprintf-posix.m4: New file.
67312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67313         REPLACE_VSPRINTF.
67314         * lib/stdio_.h (vsprintf): New declaration.
67315         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67316         REPLACE_VSPRINTF.
67317
67318 2007-03-06  Bruno Haible  <bruno@clisp.org>
67319
67320         * modules/vsnprintf (Depend-on): Remove minmax.
67321
67322 2007-03-06  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/snprintf-posix-tests: New file.
67325         * tests/test-snprintf-posix.c: New file.
67326
67327         * modules/snprintf-posix: New file.
67328         * m4/snprintf-posix.m4: New file.
67329         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67330         gl_FUNC_SNPRINTF.
67331         (gl_FUNC_SNPRINTF): Invoke it.
67332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67333         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67334         is set.
67335         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67336
67337 2007-03-06  Bruno Haible  <bruno@clisp.org>
67338
67339         * modules/vsnprintf-posix-tests: New file.
67340         * tests/test-vsnprintf-posix.c: New file.
67341         * tests/test-snprintf-posix.h: New file.
67342
67343         * modules/vsnprintf-posix: New file.
67344         * m4/vsnprintf-posix.m4: New file.
67345         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67346         gl_FUNC_VSNPRINTF.
67347         (gl_FUNC_VSNPRINTF): Invoke it.
67348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67349         * lib/stdio_.h (vsnprintf): Define as a replacement if
67350         REPLACE_VSNPRINTF is set.
67351         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67352
67353 2007-03-06  Bruno Haible  <bruno@clisp.org>
67354
67355         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67357
67358 2007-03-06  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67361         (asinl): Declare also if HAVE_DECL_ASINL is set.
67362         (atanl): Declare also if HAVE_DECL_ATANL is set.
67363         (ceill): Declare also if HAVE_DECL_CEILL is set.
67364         (cosl): Declare also if HAVE_DECL_COSL is set.
67365         (expl): Declare also if HAVE_DECL_EXPL is set.
67366         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67367         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67368         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67369         (logl): Declare also if HAVE_DECL_LOGL is set.
67370         (sinl): Declare also if HAVE_DECL_SINL is set.
67371         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67372         (tanl): Declare also if HAVE_DECL_TANL is set.
67373         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67376         declaration of frexpl, ldexpl.
67377         * modules/printf-frexpl (Depends-on): Add math.
67378         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67379
67380 2007-03-05  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67383         frexpl and ldexpl are declared.
67384         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67385
67386 2007-03-05  Bruno Haible  <bruno@clisp.org>
67387
67388         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67389         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67390
67391 2007-03-05  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/stdio_.h: Include <stddef.h>.
67394
67395 2007-03-05  Bruno Haible  <bruno@clisp.org>
67396
67397         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67398
67399 2007-03-05  Bruno Haible  <bruno@clisp.org>
67400
67401         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67402         NetBSD 4, from Ralf Wildenhues.
67403
67404 2007-03-04  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/vasprintf.h: Update #if logic for the case when the functions
67407         exist but are overridden.
67408
67409 2007-03-04  Bruno Haible  <bruno@clisp.org>
67410
67411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67412         implementations: glibc-2.4 and MacOS X 10.3.
67413         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67414         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67415         * tests/test-vasprintf-posix.c (test_function): Likewise.
67416
67417 2007-03-04  Bruno Haible  <bruno@clisp.org>
67418
67419         * modules/vasprintf-posix-tests: New file.
67420         * tests/test-vasprintf-posix.c: New file.
67421
67422         * modules/vasprintf-posix: New file.
67423         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67424         defined.
67425         * m4/vasprintf-posix.m4: New file.
67426         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67427         gl_FUNC_VASPRINTF.
67428         (gl_FUNC_VASPRINTF): Invoke it.
67429         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67430         here.
67431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67432
67433 2007-03-04  Bruno Haible  <bruno@clisp.org>
67434
67435         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67436         REPLACE_GETTIMEOFDAY.
67437         * modules/sys_time (Makefile.am): Likewise.
67438         * m4/sys_time_h.m4: Likewise.
67439         * m4/gettimeofday.m4: Likewise.
67440
67441 2007-03-04  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/vasnprintf-posix-tests: New file.
67444         * tests/test-vasnprintf-posix.c: New file.
67445
67446         * modules/vasnprintf-posix: New file.
67447         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67448         printf-frexpl.h.
67449         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67450         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67451         REPLACE_VASNPRINTF is defined.
67452         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67453         gl_FUNC_VASNPRINTF.
67454         (gl_FUNC_VASNPRINTF): Invoke it.
67455         * m4/vasnprintf-posix.m4: New file.
67456         * m4/printf.m4: New file.
67457
67458 2007-03-04  Bruno Haible  <bruno@clisp.org>
67459
67460         Compile progreloc.c only if --enable-relocatable is specified.
67461         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67462         if --enable-relocatable was specified.
67463         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67464         lib_SOURCES.
67465
67466 2007-03-04  Jim Meyering  <jim@meyering.net>
67467
67468         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67469         Use it consistently, rather than enumerating errno constants.
67470
67471 2007-03-04  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/xvasprintf-tests: New file.
67474         * tests/test-xvasprintf.c: New file.
67475
67476         * modules/vasprintf-tests: New file.
67477         * tests/test-vasprintf.c: New file.
67478
67479         * modules/vasnprintf-tests: New file.
67480         * tests/test-vasnprintf.c: New file.
67481
67482         * modules/vsnprintf-tests: New file.
67483         * tests/test-vsnprintf.c: New file.
67484
67485         * modules/snprintf-tests: New file.
67486         * tests/test-snprintf.c: New file.
67487
67488 2007-03-04  Bruno Haible  <bruno@clisp.org>
67489
67490         Compile relocatable.c only if --enable-relocatable is specified.
67491         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67492         gl_RELOCATABLE_LIBRARY.
67493         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67494         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67495         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67496         gl_RELOCATABLE_LIBRARY.
67497         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67498         (Makefile.am): Remove lib_SOURCES.
67499         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67500         gl_RELOCATABLE_LIBRARY.
67501         (Makefile.am): Remove lib_SOURCES.
67502         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67503         always.
67504         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67505         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67506
67507 2007-03-04  Bruno Haible  <bruno@clisp.org>
67508
67509         * modules/argmatch-tests: New file.
67510         * tests/test-argmatch.c: New file.
67511
67512         * tests/test-allocsa.c (main): Halve the number of loop runs.
67513
67514         * modules/alloca-opt-tests: New file.
67515         * tests/test-alloca-opt.c: New file.
67516
67517 2007-03-04  Jim Meyering  <jim@meyering.net>
67518
67519         Work around difference between Linux ACLs and Solaris 10 ZFS.
67520         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67521         for EINVAL.
67522
67523 2007-03-03  Bruno Haible  <bruno@clisp.org>
67524
67525         * modules/relocatable-prog (Depends-on): Add back progreloc's
67526         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67527
67528 2007-03-03  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67531         * modules/relocatable-lib: New file.
67532
67533 2007-03-03  Bruno Haible  <bruno@clisp.org>
67534
67535         * modules/relocatable-prog: Renamed from modules/relocatable.
67536         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67537
67538 2007-03-03  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67541         m4/relocatable-lib.m4.
67542         (Depends-on): Remove 'relocatable'.
67543         (configure.ac): Add gl_RELOCATABLE_NOP.
67544
67545 2007-03-03  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/relocatable-prog-wrapper: New file.
67548         * modules/relocatable (Depends-on): Add it. Remove all other
67549         dependencies except progname.
67550         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67551
67552         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67553         (gl_FUNC_STRERROR): Nop.
67554         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67555
67556         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67557         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67558
67559         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67560         (gl_FUNC_READLINK): Update.
67561
67562         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67563
67564 2007-03-03  Bruno Haible  <bruno@clisp.org>
67565
67566         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67567         * modules/xreadlink (Depends-on): Add unistd.
67568         * modules/xreadlink-with-size (Depends-on): Likewise.
67569
67570 2007-03-03  Bruno Haible  <bruno@clisp.org>
67571
67572         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67573         extracted from gt_FUNC_SETENV.
67574         (gt_FUNC_SETENV): Remove macro.
67575         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67576         remove gt_FUNC_SETENV.
67577
67578 2007-03-03  Bruno Haible  <bruno@clisp.org>
67579
67580         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67581         ENABLE_RELOCATABLE here.
67582         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67583
67584 2007-03-03  Bruno Haible  <bruno@clisp.org>
67585
67586         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67587         * tests/test-rbtreehash_list.c: Include progname.h.
67588         (main): Call set_program_name.
67589
67590         * modules/rbtree-oset-tests (Depends-on): Add progname.
67591         * tests/test-rbtree_oset.c: Include progname.h.
67592         (main): Call set_program_name.
67593
67594         * modules/rbtree-list-tests (Depends-on): Add progname.
67595         * tests/test-rbtree_list.c: Include progname.h.
67596         (main): Call set_program_name.
67597
67598         * modules/linked-list-tests (Depends-on): Add progname.
67599         * tests/test-linked_list.c: Include progname.h.
67600         (main): Call set_program_name.
67601
67602 2007-03-03  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67605         All uses of __restrict changed to _Restrict_.
67606         * lib/glob_.h (__restrict): Remove macro.
67607
67608 2007-03-02  Bruno Haible  <bruno@clisp.org>
67609
67610         * modules/gettext (configure.ac): Require gettext infrastructure
67611         from version 0.16.1.
67612
67613 2007-03-02  Bruno Haible  <bruno@clisp.org>
67614
67615         * modules/linkedhash-list-tests (Depends-on): Add progname.
67616         * tests/test-linkedhash_list.c: Include progname.h.
67617         (main): Call set_program_name.
67618
67619         * modules/carray-list-tests (Depends-on): Add progname.
67620         * tests/test-carray_list.c: Include progname.h.
67621         (main): Call set_program_name.
67622
67623         * modules/avltreehash-list-tests (Depends-on): Add progname.
67624         * tests/test-avltreehash_list.c: Include progname.h.
67625         (main): Call set_program_name.
67626
67627         * modules/avltree-oset-tests (Depends-on): Add progname.
67628         * tests/test-avltree_oset.c: Include progname.h.
67629         (main): Call set_program_name.
67630
67631         * modules/avltree-list-tests (Depends-on): Add progname.
67632         * tests/test-avltree_list.c: Include progname.h.
67633         (main): Call set_program_name.
67634
67635         * modules/array-oset-tests (Depends-on): Add progname.
67636         * tests/test-array_oset.c: Include progname.h.
67637         (main): Call set_program_name.
67638
67639         * modules/array-list-tests (Depends-on): Add progname.
67640         * tests/test-array_list.c: Include progname.h.
67641         (main): Call set_program_name.
67642
67643         * modules/argp-tests (Depends-on): Add progname.
67644         * tests/test-argp.c: Include argp.h first. Include progname.h.
67645         (main): Call set_program_name.
67646
67647 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * doc/gnulib-tool.texi (Initial import): Reword description of
67650         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67651         limited effect even if defined after the first system include.
67652
67653 2007-03-01  Bruno Haible  <bruno@clisp.org>
67654
67655         * build-aux/config.libpath: Update to libtool-1.5.22.
67656         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67657
67658 2007-03-01  Bruno Haible  <bruno@clisp.org>
67659
67660         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67661         foo_CFLAGS.
67662         Reported by Ralf Wildenhues.
67663
67664 2007-03-01  Bruno Haible  <bruno@clisp.org>
67665
67666         * build-aux/install-reloc: Remove object files left over by some
67667         compilers.
67668         Reported by Ralf Wildenhues.
67669
67670 2007-03-01  Bruno Haible  <bruno@clisp.org>
67671
67672         * build-aux/install-reloc: Break long lines.
67673
67674 2007-03-01  Bruno Haible  <bruno@clisp.org>
67675
67676         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67677         Reported by Ralf Wildenhues.
67678
67679 2007-03-01  Bruno Haible  <bruno@clisp.org>
67680
67681         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67682         include ordering constraints.
67683
67684 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67688         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67689         as another example.
67690         * lib/time_.h: Fix misspelling.
67691         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67692         Require gl_HEADER_TIME_H_DEFAULTS.
67693         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67694         * m4/time_r.m4 (gl_TIME_R): Likewise.
67695         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67696
67697 2007-03-01  Bruno Haible  <bruno@clisp.org>
67698
67699         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67700         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67701
67702 2007-03-01  Jim Meyering  <jim@meyering.net>
67703
67704         * modules/xreadlink (Maintainer): Add my name.
67705         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67706
67707 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67708             Bruno Haible  <bruno@clisp.org>
67709
67710         * build-aux/install-reloc: Compile also c-ctype.c.
67711         * build-aux/relocatable.sh.in: New file.
67712         * doc/relocatable.texi: New file.
67713         * doc/relocatable-maint.texi: New file.
67714         * doc/gnulib.texi: Include relocatable-maint.texi.
67715         * lib/progreloc.c: Include unistd.h unconditionally.
67716         * lib/relocwrapper.c: Include unistd.h unconditionally.
67717         Include c-ctype.h.
67718         (add_dotbin): Use c_tolower.
67719         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67720         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67721         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67722         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67723         to m4/relocatable-lib.m4.
67724         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67725         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67726         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67727         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67728         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67729         * modules/relocatable: New file.
67730         * modules/relocatable-lib: New file.
67731         * modules/relocatable-script: New file.
67732
67733 2007-02-28  Bruno Haible  <bruno@clisp.org>
67734
67735         Import --enable-relocatable infrastructure.
67736         * build-aux/config.libpath: New file, from GNU gettext.
67737         * build-aux/install-reloc: New file, from GNU gettext.
67738         * build-aux/reloc-ldflags: New file, from GNU gettext.
67739         * lib/relocatable.h: New file, from GNU gettext.
67740         * lib/relocatable.c: New file, from GNU gettext.
67741         * lib/relocwrapper.c: New file, from GNU gettext.
67742         * m4/relocatable.m4: New file, from GNU gettext.
67743
67744 2007-02-28  Bruno Haible  <bruno@clisp.org>
67745
67746         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67747
67748         * modules/xreadlink: New file, from GNU gettext with modifications.
67749         * lib/xreadlink.c: New file, from GNU gettext.
67750         * lib/xreadlink.h: Add comments.
67751         (xreadlink): New declaration.
67752
67753         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67754         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67755         lib/xreadlink-with-size.c.
67756         (configure.ac): Remove gl_XREADLINK invocation.
67757         (Makefile.am): Augment lib_SOURCES.
67758         * m4/xreadlink.m4: Remove file.
67759         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67760         (xreadlink_with_size): Renamed from xreadink.
67761         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67762         * modules/canonicalize (Depends-on): Replace xreadlink with
67763         xreadlink-with-size.
67764         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67765
67766 2007-02-25  Jim Meyering  <jim@meyering.net>
67767
67768         * build-aux/announce-gen: When complaining about excess arguments,
67769         list them.
67770
67771 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * README: Document signed integer overflow situation more
67774         accurately.
67775
67776 2007-02-25  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67779         'a' or 'A' conversion.
67780
67781 2007-02-25  Bruno Haible  <bruno@clisp.org>
67782
67783         * modules/filename: Renamed from modules/pathname.
67784         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67785         lib/concatpath.c with lib/concat-filename.c.
67786         (Makefile.am): Update.
67787         (Include): Replace pathname.h with filename.h.
67788         * lib/filename.h: Renamed from lib/pathname.h.
67789         (concatenated_filename): Renamed from concatenated_pathname.
67790         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67791         (concatenated_filename): Renamed from concatenated_pathname.
67792         * lib/findprog.c: Include filename.h instead of pathname.h.
67793         (find_in_path): Update.
67794         * lib/javacomp.c: Include filename.h instead of pathname.h.
67795         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67796         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67797         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67798         is_oldgcj_14_13_usable, is_javac_usable): Update.
67799         * lib/javaexec.c: Include filename.h instead of pathname.h.
67800         (execute_java_class): Update.
67801         * modules/findprog: Update.
67802         * modules/javacomp: Update.
67803         * modules/javaexec: Update.
67804         * MODULES.html.sh (File system functions): Add 'filename', remove
67805         'pathname'.
67806
67807 2007-02-25  Bruno Haible  <bruno@clisp.org>
67808
67809         * modules/printf-frexpl-tests: New file.
67810         * tests/test-printf-frexpl.c: New file.
67811
67812         * modules/printf-frexpl: New file.
67813         * lib/printf-frexpl.h: New file.
67814         * lib/printf-frexpl.c: New file.
67815         * m4/printf-frexpl.m4: New file.
67816
67817 2007-02-25  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/printf-frexp-tests: New file.
67820         * tests/test-printf-frexp.c: New file.
67821
67822         * modules/printf-frexp: New file.
67823         * lib/printf-frexp.h: New file.
67824         * lib/printf-frexp.c: New file.
67825         * m4/printf-frexp.m4: New file.
67826
67827 2007-02-25  Bruno Haible  <bruno@clisp.org>
67828
67829         Assume automake >= 1.10 for the tests.
67830         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67831         * modules/arctwo-tests: Likewise.
67832         * modules/argp-tests: Likewise.
67833         * modules/avltree-list-tests: Likewise.
67834         * modules/avltree-oset-tests: Likewise.
67835         * modules/avltreehash-list-tests: Likewise.
67836         * modules/carray-list-tests: Likewise.
67837         * modules/crc-tests: Likewise.
67838         * modules/des-tests: Likewise.
67839         * modules/gc-arcfour-tests: Likewise.
67840         * modules/gc-arctwo-tests: Likewise.
67841         * modules/gc-des-tests: Likewise.
67842         * modules/gc-hmac-md5-tests: Likewise.
67843         * modules/gc-hmac-sha1-tests: Likewise.
67844         * modules/gc-md2-tests: Likewise.
67845         * modules/gc-md4-tests: Likewise.
67846         * modules/gc-md5-tests: Likewise.
67847         * modules/gc-pbkdf2-sha1-tests: Likewise.
67848         * modules/gc-rijndael-tests: Likewise.
67849         * modules/gc-sha1-tests: Likewise.
67850         * modules/gc-tests: Likewise.
67851         * modules/getaddrinfo-tests: Likewise.
67852         * modules/hmac-md5-tests: Likewise.
67853         * modules/hmac-sha1-tests: Likewise.
67854         * modules/linked-list-tests: Likewise.
67855         * modules/linkedhash-list-tests: Likewise.
67856         * modules/lock-tests: Likewise.
67857         * modules/md2-tests: Likewise.
67858         * modules/md4-tests: Likewise.
67859         * modules/md5-tests: Likewise.
67860         * modules/rbtree-list-tests: Likewise.
67861         * modules/rbtree-oset-tests: Likewise.
67862         * modules/rbtreehash-list-tests: Likewise.
67863         * modules/read-file-tests: Likewise.
67864         * modules/rijndael-tests: Likewise.
67865         * modules/stdint-tests: Likewise.
67866         * modules/tls-tests: Likewise.
67867
67868 2007-02-24  Bruno Haible  <bruno@clisp.org>
67869
67870         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67871         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67872         function; instead check whether isnan with a double argument links.
67873         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67874         function; instead check whether isnan with a 'long double' argument
67875         links.
67876         Reported by Eric Blake <ebb9@byu.net>.
67877
67878 2007-02-24  Bruno Haible  <bruno@clisp.org>
67879
67880         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67881         defined.
67882         * lib/isnanl.c: Remove all code. Just include isnan.c.
67883         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67884
67885 2007-02-25  Jim Meyering  <jim@meyering.net>
67886
67887         Avoid conflicting types for 'unsetenv' on FreeBSD.
67888         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67889         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67890         in stdlib.h.
67891
67892 2007-02-24  Bruno Haible  <bruno@clisp.org>
67893
67894         * modules/isnanl-nolibm-tests: New file.
67895         * tests/test-isnanl.c: New file.
67896
67897         * modules/isnanl-nolibm: New file.
67898         * lib/isnanl.h: New file.
67899         * lib/isnanl.c: New file.
67900         * m4/isnanl.m4: New file.
67901
67902 2007-02-24  Bruno Haible  <bruno@clisp.org>
67903
67904         * modules/isnan-nolibm-tests: New file.
67905         * tests/test-isnan.c: New file.
67906
67907         * modules/isnan-nolibm: New file.
67908         * lib/isnan.h: New file.
67909         * lib/isnan.c: New file.
67910         * m4/isnan.m4: New file.
67911
67912 2007-02-24  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67915         assume that an exponent fits in 20 bits.
67916
67917 2007-02-24  Jim Meyering  <jim@meyering.net>
67918
67919         * m4/regex.m4: Update the description of the configure-time option,
67920         --without-included-regex, to state accurately what the defaults are,
67921         and perhaps to give people an idea why using this option is risky.
67922
67923 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67924
67925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67926         loops on small arguments.  This attempts to avoid the problem
67927         Bruno Haible reported for AIX 4.3.2 in
67928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67929
67930 2007-02-23  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67933         Needed for help2man.
67934
67935 2007-02-23  Karl Berry  <karl@gnu.org>
67936
67937         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67938         exists, foo.h should be cvs-ignored, not committed.
67939
67940 2007-02-23  Eric Blake  <ebb9@byu.net>
67941
67942         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67943         * lib/stat-time.h (includes): Likewise.
67944         * lib/utimecmp.c (includes): Likewise.
67945         * lib/utimens.h (includes): Likewise.
67946         * lib/getdate.y (includes): Also include "timespec.h" for use
67947         internal to the module.
67948         * modules/utimens (Depends-on): Revert yesterday's patch.
67949         * modules/nanosleep (Depends-on): Add missing dependency.
67950
67951 2007-02-22  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/glob.c: Don't include getlogin_r.h.
67954
67955 2007-02-22  Jim Meyering  <jim@meyering.net>
67956
67957         * modules/utimens (Depends-on): Add timespec, required for
67958         utimens.h's inclusion of timespec.h.
67959
67960 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67963         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67964         Schwab in
67965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67966         I'll try to think of a better way to fix the Solaris problem.
67967
67968         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67969         like glibc; on Solaris 10, it fails with errno == EINVAL.
67970         POSIX says the behavior is unspecified if the first argument is NULL,
67971         so play it safe and never pass NULL to the system getcwd.
67972
67973 2007-02-21  Jim Meyering  <jim@meyering.net>
67974
67975         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67976         of gettimeofday.  It would conflict with the one now always
67977         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67978         an IRIX 6.5 build failure.
67979
67980 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         Minor fixups to port to Solaris 10 with Sun C 5.8.
67983         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67984         * modules/getcwd (Depends-on): Add dirfd.
67985         * lib/putenv.c (putenv): #undef it.
67986         (rpl_putenv): New decl.
67987         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67988
67989 2007-02-20  Bruno Haible  <bruno@clisp.org>
67990
67991         * modules/stdio-tests: New file.
67992         * tests/test-stdio.c: New file.
67993
67994         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67995         (Depends-on): Add stdio.
67996         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67997         (Include): Use <stdio.h> instead of vsnprintf.h.
67998         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67999         HAVE_DECL_VSNPRINTF.
68000         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68001
68002         * modules/snprintf (Files): Remove lib/snprintf.h.
68003         (Depends-on): Add stdio.
68004         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68005         (Include): Use <stdio.h> instead of snprintf.h.
68006         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68007         HAVE_DECL_SNPRINTF.
68008         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68009         * lib/getaddrinfo.c: Likewise.
68010
68011         * modules/stdio: New file.
68012         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68013         * lib/snprintf.h: Remove file.
68014         * lib/vsnprintf.h: Remove file.
68015         * lib/.cppi-disable: Remove snprintf.h.
68016         * m4/stdio_h.m4: New file.
68017         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68018
68019 2007-02-20  Jim Meyering  <jim@meyering.net>
68020
68021         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68022         used by e.g., mingw.  From Bruno Haible.
68023
68024 2007-02-19  Bruno Haible  <bruno@clisp.org>
68025
68026         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68027         warnings.
68028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68029
68030 2007-02-19  Bruno Haible  <bruno@clisp.org>
68031
68032         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68033         from mingw users.
68034
68035 2007-02-19  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68038         warnings.
68039         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68040
68041 2007-02-19  Jim Meyering  <jim@meyering.net>
68042
68043         Don't use FD after a successful "fdopendir (fd)".
68044         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68045         Reset it by calling dirfd on the just-obtained DIR*.
68046
68047         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68048         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68049
68050 2007-02-18  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/readlink.c: Include <unistd.h>.
68053         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68054         HAVE_READLINK.
68055         * modules/readlink (Depends-on): Add unistd.
68056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68057         (Include): Add <unistd.h>.
68058
68059         * lib/getlogin_r.h: Remove file.
68060         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68061         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68062         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68063         HAVE_DECL_GETLOGIN_R.
68064         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68066         (Include): Use <unistd.h> instead of getlogin_r.h.
68067
68068         * lib/getcwd.h: Remove file.
68069         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68070         * lib/xgetcwd.c: Likewise.
68071         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68072         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68073         * modules/getcwd (Files): Remove lib/getcwd.h.
68074         (Depends-on): Add unistd.
68075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68076         (Include): Use <unistd.h> instad of getcwd.h.
68077
68078         * lib/ftruncate.c: Include <unistd.h> first.
68079         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68080         Set HAVE_FTRUNCATE.
68081         * modules/ftruncate (Depends-on): Add unistd.
68082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68083
68084         * lib/fchdir.c: Include <unistd.h> first.
68085         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68087         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68088         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68089         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68090
68091         * lib/dup2.c: Include <unistd.h> first.
68092         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68093         HAVE_DUP2.
68094         * modules/dup2 (Depends-on): Add unistd.
68095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68096
68097         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68098         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68099         REPLACE_CHOWN. Don't define chown as a macro here.
68100         * modules/chown (Depends-on): Add unistd.
68101         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68102
68103         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68104         Add definition for GL_LINK_WARNING.
68105         (chown, dup2): New declarations.
68106         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68107         link warning.
68108         (ftruncate): New declaration.
68109         (getcwd): New declaration, taken from old getcwd.h.
68110         (getlogin_r): New declaration, taken from old getlogin_r.h.
68111         (readlink): New declaration.
68112         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68113         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68114         (gl_PREREQ_UNISTD): Remove macro.
68115         (gl_UNISTD_MODULE_INDICATOR): New macro.
68116         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68117         many new variables. Don't set UNISTD_H.
68118         * modules/unistd (Description): Change.
68119         (Depends-on): Add link-warning.
68120         (configure.ac): Update.
68121         (Makefile.am): Create unistd.h always. Substitute many new variables
68122         into it.
68123
68124 2007-02-18  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68127         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68128         HAVE_GETSUBOPT.
68129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68130         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68131         * lib/getsubopt.h: Remove file.
68132         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68133         (Depends-on): Add stdlib.
68134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68135         (Includes): Use <stdlib.h> instead of getsubopt.h.
68136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68137         Set HAVE_GETSUBOPT.
68138         * lib/getsubopt.c: Don't include getsubopt.h.
68139
68140 2007-02-18  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/fchdir (Depends-on): Add dup2.
68143
68144 2007-02-18  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/stdlib_.h: Handle glibc's special invocation convention
68147         specially.
68148
68149 2007-02-18  Bruno Haible  <bruno@clisp.org>
68150
68151         * modules/stdlib-tests: New file.
68152         * tests/test-stdlib.c: New file.
68153
68154         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68155         (Depends-on): Add stdlib.
68156         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68157         (Includes): Use <stdlib.h> instead of mkstemp.h.
68158         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68159         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68160         * lib/mkstemp.c: Don't include mkstemp.h.
68161         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68162         * lib/stdlib--.h: Don't include mkstemp.h.
68163
68164         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68165         (Depends-on): Add stdlib.
68166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68167         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68168         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68169         HAVE_MKDTEMP.
68170         * lib/mkdtemp.c: Don't include mkdtemp.h.
68171         * lib/clean-temp.c: Don't include mkdtemp.h.
68172
68173         * modules/exit (Files): Remove lib/exit.h.
68174         (Depends-on): Add stdlib.
68175         (Makefile.am): Remove lib_SOURCES.
68176         (Include): Use <stdlib.h> instead of exit.h.
68177         * lib/argmatch.c: Don't include exit.h.
68178         * lib/execute.c: Likewise.
68179         * lib/pagealign_alloc.c: Likewise.
68180         * lib/pipe.c: Likewise.
68181         * lib/wait-process.c: Likewise.
68182         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68183         * lib/exitfail.c: Likewise.
68184         * lib/savewd.c: Likewise.
68185         * lib/xsetenv.c: Likewise.
68186
68187         * modules/stdlib: New file.
68188         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68189         and extra comments about mkstemp().
68190         * lib/exit.h: Remove file.
68191         * lib/mkdtemp.h: Remove file.
68192         * lib/mkstemp.h: Remove file.
68193         * m4/stdlib_h.m4: New file.
68194         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68195
68196 2007-02-18  Bruno Haible  <bruno@clisp.org>
68197
68198         * modules/math-tests: New file.
68199         * tests/test-math.c: New file.
68200
68201         * modules/math: New file.
68202         * modules/mathl (Files): Remove lib/mathl.h.
68203         (Depends-on): Add math.
68204         (Makefile.am): Don't mention mathl.h.
68205         (Include): Use <math.h> instead of mathl.h.
68206         * lib/math_.h: New file.
68207         * lib/mathl.h: Remove file.
68208         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68209         mathl.h.
68210         * lib/asinl.c: Likewise.
68211         * lib/atanl.c: Likewise.
68212         * lib/ceill.c: Likewise.
68213         * lib/cosl.c: Likewise.
68214         * lib/expl.c: Likewise.
68215         * lib/floorl.c: Likewise.
68216         * lib/frexpl.c: Likewise.
68217         * lib/ldexpl.c: Likewise.
68218         * lib/logl.c: Likewise.
68219         * lib/sincosl.c: Likewise.
68220         * lib/sinl.c: Likewise.
68221         * lib/sqrtl.c: Likewise.
68222         * lib/tanl.c: Likewise.
68223         * lib/trigl.c: Likewise.
68224         * m4/math_h.m4: New file.
68225         * MODULES.html.sh (Mathematics): Add math.
68226
68227 2007-02-17  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/wctype-tests: New file.
68230         * tests/test-wctype.c: New file.
68231
68232         * modules/wchar-tests: New file.
68233         * tests/test-wchar.c: New file.
68234
68235         * modules/unistd-tests: New file.
68236         * tests/test-unistd.c: New file.
68237
68238         * modules/time-tests: New file.
68239         * tests/test-time.c: New file.
68240
68241         * modules/sysexits-tests: New file.
68242         * tests/test-sysexits.c: New file.
68243
68244         * modules/sys_time-tests: New file.
68245         * tests/test-sys_time.c: New file.
68246
68247         * modules/sys_stat-tests: New file.
68248         * tests/test-sys_stat.c: New file.
68249
68250         * modules/sys_socket-tests: New file.
68251         * tests/test-sys_socket.c: New file.
68252
68253         * modules/sys_select-tests: New file.
68254         * tests/test-sys_select.c: New file.
68255
68256         * modules/string-tests: New file.
68257         * tests/test-string.c: New file.
68258
68259         * modules/stdbool-tests: New file.
68260         * tests/test-stdbool.c: New file.
68261
68262         * modules/netinet_in-tests: New file.
68263         * tests/test-netinet_in.c: New file.
68264
68265         * modules/inttypes-tests: New file.
68266         * tests/test-inttypes.c: New file.
68267
68268         * modules/fcntl-tests: New file.
68269         * tests/test-fcntl.c: New file.
68270
68271         * modules/byteswap-tests: New file.
68272         * tests/test-byteswap.c: New file.
68273
68274         * modules/arpa_inet-tests: New file.
68275         * tests/test-arpa_inet.c: New file.
68276
68277 2007-02-17  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68280         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68281         if the corresponding module is not enabled. Emit link warnings if
68282         the function is used nevertheless.
68283         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68284         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68285         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68286         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68287         * modules/inttypes (Depends-on): Add link-warning.
68288         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68289         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68290         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68291         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68292         * modules/imaxdiv (configure.ac): Likewise.
68293         * modules/strtoimax (configure.ac): Likewise.
68294         * modules/strtoumax (configure.ac): Likewise.
68295
68296 2007-02-17  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68299         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68300         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68301         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68302
68303 2007-02-17  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/link-warning: New file.
68306         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68307         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68308         * modules/string (Depends-on): Add link-warning.
68309         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68310         string.h.
68311         * MODULES.html.sh (Support for building libraries and executables): Add
68312         link-warning.
68313
68314 2007-02-17  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68317         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68318         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68319         long lines.
68320
68321 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68322             Bruno Haible  <bruno@clisp.org>
68323
68324         * modules/tmpfile: New file.
68325         * lib/tmpfile.c: New file.
68326         * m4/tmpfile.m4: New file.
68327         * MODULES.html.sh (func_all_modules): New section "Input/output".
68328
68329 2007-02-15  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68332         (supports_delete_on_close): New function.
68333         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68334
68335 2007-02-14  Bruno Haible  <bruno@clisp.org>
68336
68337         * modules/mbspcasecmp-tests: New file.
68338         * tests/test-mbspcasecmp.sh: New file.
68339         * tests/test-mbspcasecmp.c: New file.
68340
68341         New module mbspcasecmp.
68342         * modules/mbspcasecmp: New file.
68343         * lib/mbspcasecmp.c: New file.
68344         * lib/string_.h (strncasecmp): Change warning message.
68345         (mbspcasecmp): New declaration.
68346         * m4/mbspcasecmp.m4: New file.
68347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68348         GNULIB_MBSPCASECMP.
68349         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68350         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68351
68352 2007-02-14  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/mbsncasecmp-tests: New file.
68355         * tests/test-mbsncasecmp.sh: New file.
68356         * tests/test-mbsncasecmp.c: New file.
68357
68358         New module mbsncasecmp.
68359         * modules/mbsncasecmp: New file.
68360         * lib/mbsncasecmp.c: New file.
68361         * lib/string_.h (mbsncasecmp): New declaration.
68362         * m4/mbsncasecmp.m4: New file.
68363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68364         GNULIB_MBSNCASECMP.
68365         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68366         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68367
68368 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68371         Verify that it doesn't overlap with our flags.
68372         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68373         do not have the desired effect in multibyte locales; instead, use
68374         mbscasecmp.
68375         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68376         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68377         we don't require GNU fnmatch ourselves (if our users require it, they
68378         should do so explicitly).
68379
68380         Fix regex code so it doesn't rely on strcasecmp.
68381         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68382         Otherwise, include gnulib's langinfo.h.
68383         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68384         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68385         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68386         * modules/regex (FILES): Remove m4/codeset.m4.
68387         (Depends-on): Add localcharset.  Remove strcase.
68388
68389 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68390
68391         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68392         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68393
68394 2007-02-13  Bruno Haible  <bruno@clisp.org>
68395
68396         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68398
68399 2007-02-12  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68402         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68403         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68404         time warning rather than a link error.
68405
68406 2007-02-12  Bruno Haible  <bruno@clisp.org>
68407
68408         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68409         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68411
68412 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68415         args, not 2.
68416
68417 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         New module 'time', so that apps can include <time.h> as per
68420         POSIX and GNU instead of separate include files like time_r.h
68421         and timegm.h.  This implementation tries out a simpler approach
68422         for replacing decls in standard include files (as compared to
68423         the string module), somewhat as an experiment.
68424
68425         * config/srclist.txt: Comment out mktime.c for now.
68426         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68427         since it doesn't apply any more.  Use generic wording instead.
68428         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68429         'time'.
68430         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68431         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68432         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68433         Don't include <sys/types.h>; no longer needed since we assume C89.
68434         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68435         * lib/strftime.c: Likewise.
68436         * lib/time_r.c: Likewise.
68437         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68438         * lib/nanosleep.c: Include <time.h> first, to check interface.
68439         * lib/strptime.c: Likewise.
68440         * lib/time_r.c: Likewise.
68441         * lib/timegm.c: Likewise.
68442         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68443         needed.
68444         * lib/timegm.c: Don't include timegm.h; no longer needed.
68445         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68446         time.h now handles any problems in that area.
68447         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68448         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68449         that time.h defines struct timespec.
68450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68451         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68452         handles that.
68453         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68454         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68455         needed.  Set REPLACE_LOCALTIME.
68456         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68457         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68458         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68459         nanosleep; time_h.m4 now does that.  Don't require
68460         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68461         module handles this now.
68462         * modules/getdate (Depends-on): Remove timespec.  Add time.
68463         * modules/nanosleep (Depends-on): Likewise.
68464         * modules/stat-time (Depends-on): Likewise.
68465         * modules/nanosleep (Include): Include time.h, not timespec.h.
68466         * modules/strptime (Files): Remove lib/strptime.h.
68467         (Depends-on): Add extensions, time.
68468         (Include): Include time.h, not strptime.h.
68469         * modules/time_r (Files): Remove lib/time_r.h.
68470         (Depends-on): Add time.
68471         (Include): Include time.h, not time_r.h.
68472         * modules/timegm: Likewise.
68473         * modules/timespec (Description): Now does timespec-related decls
68474         of our own, instead of struct timespec itself.
68475         (Depends-on): Add time; remove extensions.
68476         (Maintainer): Add self.
68477         * modules/utimecmp (Depends-on): Add time; remove timespec.
68478         * modules/utimens (Depends-on): Likewise.
68479         * modules/xnanosleep (Depends-on): Likewise.
68480
68481 2007-02-11  Bruno Haible  <bruno@clisp.org>
68482
68483         * lib/c-strstr.c: Include allocsa.h.
68484         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68485         * lib/c-strcasestr.c: Include allocsa.h.
68486         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68487         * lib/strcasestr.c: Include allocsa.h.
68488         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68489         * lib/mbsstr.c: Include allocsa.h.
68490         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68491         allocsa/freesa instead of malloc/free.
68492         * lib/mbscasestr.c: Include allocsa.h.
68493         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68494         allocsa/freesa instead of malloc/free.
68495         * modules/c-strstr (Depends-on): Add allocsa.
68496         * modules/c-strcasestr (Depends-on): Likewise.
68497         * modules/strcasestr (Depends-on): Likewise.
68498         * modules/mbsstr (Depends-on): Likewise.
68499         * modules/mbscasestr (Depends-on): Likewise.
68500
68501 2007-02-11  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68504
68505         * modules/mbsspn-tests: New file.
68506         * tests/test-mbsspn.sh: New file.
68507         * tests/test-mbsspn.c: New file.
68508
68509 2007-02-11  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68512
68513         * modules/mbspbrk-tests: New file.
68514         * tests/test-mbspbrk.sh: New file.
68515         * tests/test-mbspbrk.c: New file.
68516
68517 2007-02-11  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68520         unneeded cast.
68521
68522         * modules/mbscspn-tests: New file.
68523         * tests/test-mbscspn.sh: New file.
68524         * tests/test-mbscspn.c: New file.
68525
68526 2007-02-11  Bruno Haible  <bruno@clisp.org>
68527
68528         * modules/mbscasecmp-tests: New file.
68529         * tests/test-mbscasecmp.sh: New file.
68530         * tests/test-mbscasecmp.c: New file.
68531
68532 2007-02-11  Bruno Haible  <bruno@clisp.org>
68533
68534         Ensure O(n) worst-case complexity of mbscasestr.
68535         * lib/mbscasestr.c: Include stdbool.h.
68536         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68537         functions.
68538         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68539         the bookkeeping indicates that it's worth it.
68540         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68541
68542         * modules/mbscasestr-tests: New file.
68543         * tests/test-mbscasestr1.c: New file.
68544         * tests/test-mbscasestr2.sh: New file.
68545         * tests/test-mbscasestr2.c: New file.
68546         * tests/test-mbscasestr3.sh: New file.
68547         * tests/test-mbscasestr3.c: New file.
68548         * tests/test-mbscasestr4.sh: New file.
68549         * tests/test-mbscasestr4.c: New file.
68550         * m4/locale-tr.m4: New file.
68551
68552 2007-02-11  Bruno Haible  <bruno@clisp.org>
68553
68554         Ensure O(n) worst-case complexity of mbsstr.
68555         * lib/mbsstr.c: Include stdbool.h.
68556         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68557         functions.
68558         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68559         bookkeeping indicates that it's worth it.
68560         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68561
68562         * modules/mbsstr-tests: New file.
68563         * tests/test-mbsstr1.c: New file.
68564         * tests/test-mbsstr2.sh: New file.
68565         * tests/test-mbsstr2.c: New file.
68566         * tests/test-mbsstr3.sh: New file.
68567         * tests/test-mbsstr3.c: New file.
68568         * m4/locale-fr.m4: New file.
68569
68570 2007-02-11  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/mbsrchr.c (mbsrchr): Fix bug.
68573
68574         * modules/mbsrchr-tests: New file.
68575         * tests/test-mbsrchr.sh: New file.
68576         * tests/test-mbsrchr.c: New file.
68577
68578 2007-02-11  Bruno Haible  <bruno@clisp.org>
68579
68580         * lib/mbschr.c (mbschr): Fix bug.
68581
68582         * modules/mbschr-tests: New file.
68583         * tests/test-mbschr.sh: New file.
68584         * tests/test-mbschr.c: New file.
68585         * m4/locale-zh.m4: New file.
68586
68587 2007-02-11  Bruno Haible  <bruno@clisp.org>
68588
68589         Support for copying multibyte string iterators.
68590         * lib/mbiter.h: Include <string.h>.
68591         (mbiter_multi_copy): New function.
68592         (mbi_copy): New macro.
68593         * lib/mbuiter.h: Include <string.h>.
68594         (mbuiter_multi_copy): New function.
68595         (mbui_copy): New macro.
68596
68597 2007-02-11  Bruno Haible  <bruno@clisp.org>
68598
68599         New module mbslen.
68600         * modules/mbslen: New file.
68601         * lib/mbslen.c: New file.
68602         * lib/string_.h (mbslen): New declaration.
68603         * m4/mbslen.m4: New file.
68604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68605         GNULIB_MBSLEN.
68606         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68607         * MODULES.html.sh (Internationalization functions): Add mbslen.
68608
68609 2007-02-11  Bruno Haible  <bruno@clisp.org>
68610
68611         Ensure O(n) worst-case complexity of strcasestr substitute.
68612         * lib/strcasestr.c: Include stdbool.h.
68613         (knuth_morris_pratt): New function.
68614         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68615         bookkeeping indicates that it's worth it.
68616         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68617
68618         * modules/strcasestr-tests: New file.
68619         * tests/test-strcasestr.c: New file.
68620
68621 2007-02-11  Bruno Haible  <bruno@clisp.org>
68622
68623         Ensure O(n) worst-case complexity of c_strcasestr.
68624         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68625         (knuth_morris_pratt): New function.
68626         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68627         the bookkeeping indicates that it's worth it.
68628         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68629
68630         * modules/c-strcasestr-tests: New file.
68631         * tests/test-c-strcasestr.c: New file.
68632
68633 2007-02-11  Bruno Haible  <bruno@clisp.org>
68634
68635         Ensure O(n) worst-case complexity of c_strstr.
68636         * lib/c-strstr.c: Include stdbool.h, string.h.
68637         (knuth_morris_pratt): New function.
68638         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68639         bookkeeping indicates that it's worth it.
68640         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68641
68642         * lib/c-strstr.c: Complete rewrite for maintainability.
68643
68644         * modules/c-strstr-tests: New file.
68645         * tests/test-c-strstr.c: New file.
68646
68647 2007-02-11  Bruno Haible  <bruno@clisp.org>
68648
68649         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68650         5.2.1 and earlier, whereby \055 was treated just like the range
68651         delimiter '-'.
68652         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68653
68654 2007-02-08  Bruno Haible  <bruno@clisp.org>
68655
68656         * modules/regex (Depends-on): Add stdbool.
68657         Reported by Dalibor Topic <robilad@kaffe.org>.
68658
68659 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68662         Prefer returning from main to exiting from it.
68663         Remove unnecessary parens after sizeof.
68664
68665 2007-02-05  Bruno Haible  <bruno@clisp.org>
68666
68667         New module mbssep.
68668         * modules/mbssep: New file.
68669         * lib/mbssep.c: New file.
68670         * lib/string_.h (strsep): Add a conditional link warning.
68671         (mbssep): New declaration.
68672         * m4/mbssep.m4: New file.
68673         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68674         GNULIB_MBSSEP.
68675         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68676         * MODULES.html.sh (Internationalization functions): Add mbssep.
68677
68678 2007-02-05  Bruno Haible  <bruno@clisp.org>
68679
68680         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68681         Optimize search in case of 1 delimiter.
68682
68683 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68684
68685         * lib/acl.h: Include sys/types.h before sys/acl.h.
68686
68687 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68688
68689         Merge upstream fix for glibc bugzilla #3957:
68690
68691         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68692
68693         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68694         bit for RE_HAT_LISTS_NOT_NEWLINE.
68695         (build_charclass_op): Remove bogus comment.
68696
68697 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68698
68699         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68700
68701 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68704         * lib/memmem.c [!defined _LIBC]: Include config.h.
68705
68706 2007-02-04  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68709         warning message.
68710
68711 2007-02-04  Bruno Haible  <bruno@clisp.org>
68712
68713         New module mbstok_r.
68714         * modules/mbstok_r: New file.
68715         * lib/mbstok_r.c: New file.
68716         * lib/string_.h (strtok_r): Change argument names to match the
68717         comments. Add a conditional link warning.
68718         (mbstok_r): New declaration.
68719         * m4/mbstok_r.m4: New file.
68720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68721         GNULIB_MBSTOK_R.
68722         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68723         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68724
68725 2007-02-04  Bruno Haible  <bruno@clisp.org>
68726
68727         New module mbsspn.
68728         * modules/mbsspn: New file.
68729         * lib/mbsspn.c: New file.
68730         * lib/string_.h (strspn): Add a conditional link warning.
68731         (mbsspn): New declaration.
68732         * m4/mbsspn.m4: New file.
68733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68734         GNULIB_MBSSPN.
68735         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68736         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68737
68738 2007-02-04  Bruno Haible  <bruno@clisp.org>
68739
68740         New module mbspbrk.
68741         * modules/mbspbrk: New file.
68742         * lib/mbspbrk.c: New file.
68743         * lib/string_.h (strpbrk): Add a conditional link warning.
68744         (mbspbrk): New declaration.
68745         * m4/mbspbrk.m4: New file.
68746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68747         GNULIB_MBSPBRK.
68748         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68749         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68750
68751 2007-02-04  Bruno Haible  <bruno@clisp.org>
68752
68753         New module mbscspn.
68754         * modules/mbscspn: New file.
68755         * lib/mbscspn.c: New file.
68756         * lib/string_.h (strcspn): Add a conditional link warning.
68757         (mbscspn): New declaration.
68758         * m4/mbscspn.m4: New file.
68759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68760         GNULIB_MBSCSPN.
68761         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68762         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68763
68764 2007-02-04  Bruno Haible  <bruno@clisp.org>
68765
68766         New module mbscasestr, reduced goal of strcasestr.
68767         * modules/mbscasestr: New file.
68768         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68769         (mbscasestr): Renamed from strcasestr.
68770         * lib/strcasestr.c: Don't include mbuiter.h.
68771         (strcasestr): Remove support for multibyte locales.
68772         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68773         Change the conditional link warning.
68774         (mbscasestr): New declaration.
68775         * m4/mbscasestr.m4: New file.
68776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68777         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68778         REPLACE_STRCASESTR.
68779         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68781         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68782         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68783         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68784         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68785         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68786         (Depends-on): Remove mbuiter.
68787         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68788
68789 2007-02-04  Bruno Haible  <bruno@clisp.org>
68790
68791         Simplify handling of strncasecmp.
68792         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68793         the conditional link warning.
68794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68795         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68796         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68797         * modules/strcase (configure.ac): Don't invoke
68798         gl_STRING_MODULE_INDICATOR.
68799         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68800
68801 2007-02-04  Bruno Haible  <bruno@clisp.org>
68802
68803         New module mbscasecmp, reduced goal of strcasecmp.
68804         * modules/mbscasecmp: New file.
68805         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68806         (mbscasecmp): Renamed from strcasecmp.
68807         * lib/strcasecmp.c: Don't include mbuiter.h.
68808         (strcasecmp): Remove support for multibyte locales.
68809         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68810         Change the conditional link warning.
68811         (mbscasecmp): New declaration.
68812         * m4/mbscasecmp.m4: New file.
68813         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68814         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68815         REPLACE_STRCASECMP.
68816         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68818         GNULIB_MBSCASECMP.
68819         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68820         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68821         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68822         (Depends-on): Remove mbuiter.
68823         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68824
68825 2007-02-04  Bruno Haible  <bruno@clisp.org>
68826
68827         New module mbsstr. Remove module strstr.
68828         * modules/mbsstr: New file.
68829         * modules/strstr: Remove file.
68830         * lib/mbsstr.c: Renamed from lib/strstr.c.
68831         (mbsstr): Renamed from strstr.
68832         * lib/string_.h (strstr): Remove declaration. Change the conditional
68833         link warning.
68834         (mbsstr): New declaration.
68835         * m4/mbsstr.m4: New file.
68836         * m4/strstr.m4: Remove file.
68837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68838         REPLACE_STRSTR.
68839         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68840         Don't initialize GNULIB_STRSTR.
68841         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68842         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68843         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68844         (Support for systems lacking ANSI C 89): Remove strstr.
68845
68846 2007-02-04  Bruno Haible  <bruno@clisp.org>
68847
68848         New module mbsrchr.
68849         * modules/mbsrchr: New file.
68850         * lib/mbsrchr.c: New file.
68851         * lib/string_.h (strrchr): Add a conditional link warning.
68852         (mbsrchr): New declaration.
68853         * m4/mbsrchr.m4: New file.
68854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68855         GNULIB_MBSRCHR.
68856         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68857         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68858
68859 2007-02-04  Bruno Haible  <bruno@clisp.org>
68860
68861         New module mbschr.
68862         * modules/mbschr: New file.
68863         * lib/mbschr.c: New file.
68864         * lib/string_.h (strchr): Add a conditional link warning.
68865         (mbschr): New declaration.
68866         * m4/mbschr.m4: New file.
68867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68868         GNULIB_MBSCHR.
68869         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68870         * MODULES.html.sh (Internationalization functions): Add mbschr.
68871
68872 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68875
68876         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68877
68878 2007-02-04  Bruno Haible  <bruno@clisp.org>
68879
68880         New module description section 'configure.ac-early'.
68881         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68882         (func_get_autoconf_early_snippet): New function.
68883         (func_import, func_create_testdir): Use it. Remove special cases for
68884         modules 'extensions' and 'lock'.
68885         * modules/extensions (configure.ac-early): Require
68886         gl_USE_SYSTEM_EXTENSIONS.
68887         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68888
68889 2007-02-04  Bruno Haible  <bruno@clisp.org>
68890
68891         Make use of gcj-4.3's -fsource and -ftarget option.
68892         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68893         and if so try the options -fsource and -ftarget.
68894         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68895         source_version, ftarget_option, target_version arguments.
68896         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68897         (is_envjavac_oldgcj_14_14_usable): Renamed from
68898         is_envjavac_gcj_14_14_usable.
68899         (is_envjavac_oldgcj_14_13_usable): Renamed from
68900         is_envjavac_gcj_14_13_usable.
68901         (is_gcj_present): Update.
68902         (is_gcj_43, is_gcj43_usable): New functions.
68903         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68904         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68905         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68906         try the options -fsource and -ftarget.
68907
68908 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68911         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68912         larger value.
68913
68914 2007-02-03  Jim Meyering  <jim@meyering.net>
68915
68916         Give tools a better chance to allocate space for very large buffers.
68917         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68918
68919         Make pwd and readlink work also when run with an unreadable parent dir
68920         on systems with openat support.
68921         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68922         provided getcwd function, even when we have openat support.
68923         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68924
68925 2007-02-02  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68928         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68929         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68930         portability problems if one of these functions is only used on specific
68931         platforms.
68932         Reported by Paul Eggert.
68933
68934 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68937         is causing more trouble than it's curing.
68938         * lib/regex_internal.h (__mempcpy): Remove.
68939         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68940         (and make the code a tad smaller to boot).
68941         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68942
68943 2007-02-02  Jim Meyering  <jim@meyering.net>
68944
68945         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68946         section, not in the Makefile.am: one.
68947
68948 2007-02-02  Eric Blake  <ebb9@byu.net>
68949
68950         * lib/strchrnul.c: Always include config.h first.
68951
68952         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68953         gnulib strstr is not necessary here.
68954
68955 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68956
68957         * m4/socklen.m4: Fix typo.
68958
68959 2007-02-02  Eric Blake  <ebb9@byu.net>
68960
68961         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68962         * modules/netinet_in (Makefile.am): Likewise.
68963
68964 2007-02-01  Bruno Haible  <bruno@clisp.org>
68965
68966         * lib/string_.h (GL_LINK_WARNING): New macro.
68967         (strcasecmp, strstr, strcasestr): If provided by the system,
68968         conditionally define as a macro that leads to a warning instead of to
68969         an error.
68970         (strncasecmp): Conditionally define as a macro that leads to a warning.
68971
68972 2007-02-01  Karl Berry  <karl@gnu.org>
68973
68974         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68975
68976 2007-02-01  Bruno Haible  <bruno@clisp.org>
68977
68978         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68979         renamings.
68980
68981 2007-02-01  Eric Blake  <ebb9@byu.net>
68982
68983         * modules/regex (Depends-on): Revert dependence on mempcpy.
68984         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68985         module's definition of mempcpy.
68986         Reported by Paul Eggert.
68987
68988 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68991         the symbol XYZ before redefining it.  This fixes a problem with
68992         programs that don't use XYZ, when compiled on systems that define
68993         XYZ to something else.
68994
68995 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68998         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68999         writeable to group or other and (2) is intended to have a special
69000         mode bit that is set or cleared.  In such a case, the directory
69001         should be neither group- nor other-writeable until the special
69002         mode bits are right.
69003
69004 2007-01-31  Eric Blake  <ebb9@byu.net>
69005
69006         * modules/mountlist (Depends-on): Add strstr.
69007
69008         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69009         bug.
69010         * modules/string (Makefile.am): Remove redundant replacement.
69011         * modules/regex (Depends-on): Add mempcpy.
69012
69013 2007-01-31  Bruno Haible  <bruno@clisp.org>
69014
69015         New module description field 'Link'.
69016         * gnulib-tool (func_usage): Document --extract-link-directive.
69017         (sed_extract_prog): Recognize 'Link' directive.
69018         (func_get_link_directive): New function.
69019         (func_import): Show summary of link directives.
69020         Handle --extract-link-directive option.
69021         * modules/acl (Link): New section.
69022         * modules/clock-time (Link): New section.
69023         * modules/euidaccess (Link): New section.
69024         * modules/gettext (Link): New section.
69025         * modules/iconv (Link): New section.
69026         * modules/lock (Link): New section.
69027         * modules/nanosleep (Link): New section.
69028         * modules/readline (Link): New section.
69029
69030 2007-01-27  Bruno Haible  <bruno@clisp.org>
69031
69032         Enforce the use of gnulib modules for unportable <string.h> functions.
69033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69035         (gl_HEADER_STRING_H_BODY): Require it.
69036         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69037         the symbol XYZ to one that gives a link error.
69038         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69039         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69040         * modules/mempcpy (configure.ac): Likewise.
69041         * modules/memrchr (configure.ac): Likewise.
69042         * modules/stpcpy (configure.ac): Likewise.
69043         * modules/stpncpy (configure.ac): Likewise.
69044         * modules/strcase (configure.ac): Likewise.
69045         * modules/strcasestr (configure.ac): Likewise.
69046         * modules/strchrnul (configure.ac): Likewise.
69047         * modules/strdup (configure.ac): Likewise.
69048         * modules/strndup (configure.ac): Likewise.
69049         * modules/strnlen (configure.ac): Likewise.
69050         * modules/strpbrk (configure.ac): Likewise.
69051         * modules/strsep (configure.ac): Likewise.
69052         * modules/strstr (configure.ac): Likewise.
69053         * modules/strtok_r (configure.ac): Likewise.
69054
69055 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69056
69057         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69058
69059 2007-01-30  Jim Meyering  <jim@meyering.net>
69060
69061         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69062
69063 2007-01-29  Bruno Haible  <bruno@clisp.org>
69064
69065         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69066         * lib/execute.c: Likewise.
69067         * lib/pipe.c: Likewise.
69068         * lib/printf-args.h: Likewise.
69069         * lib/printf-args.c: Likewise.
69070         * lib/printf-parse.c: Likewise.
69071         * lib/vasnprintf.c: Likewise.
69072
69073 2007-01-29  Eric Blake  <ebb9@byu.net>
69074
69075         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69076         declaration.
69077
69078 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * lib/strptime.h (strptime): Use 'restrict' for args where
69081         POSIX requires this.
69082         * lib/strptime.c (strptime): Likewise.
69083         Change license notice from LGPL to GPL, since gnulib-tool will
69084         change this as needed.
69085         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69086         defined.
69087         Include "strptime.h" first, to check interface.
69088         Do not #undef _LIBC and _NL_CURRENT.
69089         Do not include <stdlib.h>; no longer needed.
69090         Include "time_r.h" and declare ptime_locale_status
69091         only if _LIBC is not defined.
69092         (__P): Remove unused macro.
69093         (match_string): Bring back glibc version, but use it only if _LIBC
69094         is defined.
69095         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69096         Remove unnecessary assertion and abort() call.
69097         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69098         * m4/strptime.m4: Fix serial number comment.
69099         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69100         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69101         (Depends-on): Add time_r.
69102
69103 2007-01-29  Bruno Haible  <bruno@clisp.org>
69104
69105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69106         strptime.
69107         * modules/strptime (Depends-on): Add stdbool.
69108         * lib/strptime.h: Include <time.h> always. Add comments.
69109
69110 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69111
69112         * modules/strptime: New file.
69113         * lib/strptime.h: New file.
69114         * lib/strptime.c: New file.
69115         * m4/strptime.m4: New file.
69116
69117 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69118
69119         * MODULES.html.sh: New module mpsort.
69120         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69121
69122         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69123         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69125         All uses changed.
69126         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69127         All uses changed.
69128         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69129         to _Restrict_.
69130         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69131         the parameter matches the prototype.
69132
69133 2007-01-28  Jim Meyering  <jim@meyering.net>
69134
69135         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69136         sys/time.h here, reverting that part of the previous patch:
69137         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69138
69139 2007-01-28  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69142         value of $(SYS_TIME_H).
69143         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69144         remove it conditionally, too. [added by Jim Meyering]
69145         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69147         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69148         GETTIMEOFDAY_REPLACEMENT to 1.
69149
69150 2007-01-28  Bruno Haible  <bruno@clisp.org>
69151
69152         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69153         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69155         Set UNISTD_H instead of UNISTD_H2.
69156         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69157
69158 2007-01-28  Bruno Haible  <bruno@clisp.org>
69159
69160         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69161         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69162
69163 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69164
69165         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69166         (func_create_testdir): Ensure C locale for `grep' and `tr'
69167         character ranges.
69168         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69169         ACLOCAL_AMFLAGS parsing state machine.
69170
69171 2007-01-27  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/unistr/base: Update.
69174
69175 2007-01-27  Bruno Haible  <bruno@clisp.org>
69176
69177         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69178         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69179         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69180         modules/unistr/u32-mbtouc.
69181         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69182         * lib/unistr.h: Update.
69183         * lib/linebreak.c: Update.
69184         * modules/unistr/u32-mbtouc: Renamed from
69185         modules/unistr/u32-mbtouc-safe.
69186         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69187         * lib/unistr.h: Update.
69188         * lib/unistr/u32-to-u8.c: Update.
69189         * lib/unistr/u32-to-u16.c: Update.
69190
69191 2007-01-27  Bruno Haible  <bruno@clisp.org>
69192
69193         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69194         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69195         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69196         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69197         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69198         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69199         modules/unistr/u16-mbtouc.
69200         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69201         * lib/unistr.h: Update.
69202         * lib/linebreak.c: Update.
69203         * modules/linebreak: Update.
69204         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69205         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69206         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69207         * modules/unistr/u16-mbtouc: Renamed from
69208         modules/unistr/u16-mbtouc-safe.
69209         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69210         * lib/unistr.h: Update.
69211         * lib/unistr/u16-to-u8.c: Update.
69212         * modules/unistr/u16-to-u8: Update.
69213         * lib/unistr/u16-to-u32.c: Update.
69214         * modules/unistr/u16-to-u32: Update.
69215
69216 2007-01-27  Bruno Haible  <bruno@clisp.org>
69217
69218         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69219         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69220         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69221         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69222         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69223         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69224         modules/unistr/u8-mbtouc.
69225         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69226         * lib/unistr.h: Update.
69227         * lib/striconveh.c: Update.
69228         * modules/striconveh: Update.
69229         * lib/linebreak.c: Update.
69230         * modules/linebreak: Update.
69231         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69232         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69233         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69234         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69235         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69236         * lib/unistr.h: Update.
69237         * lib/striconveh.c: Update.
69238         * modules/striconveh: Update.
69239         * lib/unistr/u8-to-u16.c: Update.
69240         * modules/unistr/u8-to-u16: Update.
69241         * lib/unistr/u8-to-u32.c: Update.
69242         * modules/unistr/u8-to-u32: Update.
69243
69244 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69245
69246         Sync from Libtool.
69247         * lib/argz.c: Do not include strings.h nor memory.h, include
69248         string.h unconditionally.  Patch by Simon Josefsson.
69249
69250 2007-01-27  Bruno Haible  <bruno@clisp.org>
69251
69252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69253         from gl_HEADER_STRING_H_BODY.
69254         (gl_HEADER_STRING_H_BODY): Require it.
69255         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69256         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69257         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69258         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69260         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69263         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69265         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69266         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69267         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69268         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69269         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69270
69271 2007-01-27  Bruno Haible  <bruno@clisp.org>
69272
69273         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69274         check_PROGRAMS into noinst_PROGRAMS.
69275         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69276         check_PROGRAMS in this case.
69277         (func_import): Set for_test to false.
69278         (func_create_testdir): Set for_test to true.
69279
69280 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69281             Bruno Haible  <bruno@clisp.org>
69282
69283         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69284         (Depends-on): Add string.
69285         (Includes): Use <string.h> instead of strcasestr.h.
69286         * modules/string (Makefile.am): Also substitute the value of
69287         REPLACE_STRCASESTR.
69288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69289         assume strcasestr is declared in <string.h> not <strings.h>. Also
69290         set REPLACE_STRCASESTR.
69291         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69292         REPLACE_STRCASESTR.
69293         * lib/strcasestr.h: Remove file.
69294         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69295         * lib/string_.h (strcasestr): New declaration.
69296
69297 2007-01-27  Bruno Haible  <bruno@clisp.org>
69298
69299         * lib/string_.h: Use 'extern'.
69300
69301 2007-01-27  Jim Meyering  <jim@meyering.net>
69302
69303         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69304         of set-but-not-used local, "q".
69305
69306         * lib/mempcpy.c: Include <config.h> before <string.h>.
69307         This fixes a compilation error on HP-UX, due to the system's
69308         "restrict"-using mempcpy prototype.
69309
69310 2007-01-26  Bruno Haible  <bruno@clisp.org>
69311
69312         Small optimization.
69313         * lib/javacomp.c: Include c-strstr.h.
69314          (is_envjavac_gcj): Use c_strstr instead of strstr.
69315         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69316
69317 2007-01-26  Bruno Haible  <bruno@clisp.org>
69318
69319         * MODULES.html.sh (Unicode string functions): Add the new modules.
69320
69321         * modules/uniconv/u32-strconv-to-locale: New file.
69322         * lib/uniconv/u32-strconv-to-locale.c: New file.
69323
69324         * modules/uniconv/u16-strconv-to-locale: New file.
69325         * lib/uniconv/u16-strconv-to-locale.c: New file.
69326
69327         * modules/uniconv/u8-strconv-to-locale: New file.
69328         * lib/uniconv/u8-strconv-to-locale.c: New file.
69329
69330         * modules/uniconv/u32-strconv-from-locale: New file.
69331         * lib/uniconv/u32-strconv-from-locale.c: New file.
69332
69333         * modules/uniconv/u16-strconv-from-locale: New file.
69334         * lib/uniconv/u16-strconv-from-locale.c: New file.
69335
69336         * modules/uniconv/u8-strconv-from-locale: New file.
69337         * lib/uniconv/u8-strconv-from-locale.c: New file.
69338
69339         * modules/uniconv/u32-strconv-to-enc: New file.
69340         * lib/uniconv/u32-strconv-to-enc.c: New file.
69341         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69342         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69343
69344         * modules/uniconv/u16-strconv-to-enc: New file.
69345         * lib/uniconv/u16-strconv-to-enc.c: New file.
69346         * lib/uniconv/u-strconv-to-enc.h: New file.
69347         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69348         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69349
69350         * modules/uniconv/u8-strconv-to-enc: New file.
69351         * lib/uniconv/u8-strconv-to-enc.c: New file.
69352         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69353         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69354
69355         * modules/uniconv/u32-strconv-from-enc: New file.
69356         * lib/uniconv/u32-strconv-from-enc.c: New file.
69357         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69358         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69359
69360         * modules/uniconv/u16-strconv-from-enc: New file.
69361         * lib/uniconv/u16-strconv-from-enc.c: New file.
69362         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69363         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69364
69365         * modules/uniconv/u8-strconv-from-enc: New file.
69366         * lib/uniconv/u8-strconv-from-enc.c: New file.
69367         * lib/uniconv/u-strconv-from-enc.h: New file.
69368         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69369         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69370
69371         * modules/uniconv/u32-conv-from-enc: New file.
69372         * lib/uniconv/u32-conv-from-enc.c: New file.
69373         * modules/uniconv/u32-conv-from-enc-tests: New file.
69374         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69375
69376         * modules/uniconv/u16-conv-from-enc: New file.
69377         * lib/uniconv/u16-conv-from-enc.c: New file.
69378         * lib/uniconv/u-conv-from-enc.h: New file.
69379         * modules/uniconv/u16-conv-from-enc-tests: New file.
69380         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69381
69382         * modules/uniconv/u8-conv-from-enc: New file.
69383         * lib/uniconv/u8-conv-from-enc.c: New file.
69384         * modules/uniconv/u8-conv-from-enc-tests: New file.
69385         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69386
69387         * modules/uniconv/base: New file.
69388         * lib/uniconv.h: New file.
69389
69390 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * doc/gnulib-tool.texi (Initial import): Update to match current
69393         behavior with strdup module.
69394         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69395         * lib/memmem.h: Remove; all uses removed.  This is now done
69396         by <string.h>.
69397         * lib/mempcpy.h: Likewise.
69398         * lib/memrchr.h: Likewise.
69399         * lib/stpcpy.h: Likewise.
69400         * lib/stpncpy.h: Likewise.
69401         * lib/strcase.h: Likewise.
69402         * lib/strchrnul.h: Likewise.
69403         * lib/strdup.h: Likewise.
69404         * lib/strndup.h: Likewise.
69405         * lib/strnlen.h: Likewise.
69406         * lib/strpbrk.h: Likewise.
69407         * lib/strsep.h: Likewise.
69408         * lib/strstr.h: Likewise.
69409         * lib/strtok_r.h: Likewise.
69410         * lib/string_.h: New file.
69411         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69412         Rely on <string.h> instead.
69413         * lib/canon-host.c: Likewise.
69414         * lib/chdir-long.c: Likewise.
69415         * lib/concatpath.c: Likewise.
69416         * lib/exclude.c: Likewise.
69417         * lib/fchdir.c: Likewise.
69418         * lib/getaddrinfo.c: Likewise.
69419         * lib/getcwd.c: Likewise.
69420         * lib/getsubopt.c: Likewise.
69421         * lib/glob.c: Likewise.
69422         * lib/hard-locale.c: Likewise.
69423         * lib/iconvme.c: Likewise.
69424         * lib/javacomp.c: Likewise.
69425         * lib/mempcpy.c: Likewise.
69426         * lib/memrchr.c: Likewise.
69427         * lib/regex_internal.h: Likewise.
69428         * lib/stpncpy.c: Likewise.
69429         * lib/strcasecmp.c: Likewise.
69430         * lib/strchrnul.c: Likewise.
69431         * lib/strdup.c: Likewise.
69432         * lib/striconv.c: Likewise.
69433         * lib/striconveh.c: Likewise.
69434         * lib/striconveha.c: Likewise.
69435         * lib/strncasecmp.c: Likewise.
69436         * lib/strndup.c: Likewise.
69437         * lib/strnlen.c: Likewise.
69438         * lib/strsep.c: Likewise.
69439         * lib/strstr.c: Likewise.
69440         * lib/strtok_r.c: Likewise.
69441         * lib/userspec.c: Likewise.
69442         * lib/w32spawn.h: Likewise.
69443         * lib/xstrndup.c: Likewise.
69444         * lib/mountlist.c (strstr): Remove decl.
69445         * m4/string_h.m4: New file.
69446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69447         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69448         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69449         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69450         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69451         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69452         Set REPLACE_STRCASECMP if necessary.
69453         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69454         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69455         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69456         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69457         HAVE_DECL_STRDUP if necessary.
69458         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69459         since gl_FUNC_STRNDUP does that now.
69460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69461         Check for decl here...
69462         (gl_PREREQ_STRNLEN): ... not here.
69463         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69464         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69465         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69466         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69467         necessary.
69468         * modules/string: New file.
69469         * modules/memmem (Files): Remove special-purpose include file.
69470         (Depends-on): Add string.
69471         (Include): Include <string.h>, not the removed file.
69472         * modules/mempcpy: Likewise.
69473         * modules/memrchr: Likewise.
69474         * modules/stpcpy: Likewise.
69475         * modules/stpncpy: Likewise.
69476         * modules/strcase: Likewise.
69477         * modules/strchrnul: Likewise.
69478         * modules/strdup: Likewise.
69479         * modules/strndup: Likewise.
69480         * modules/strnlen: Likewise.
69481         * modules/strpbrk: Likewise.
69482         * modules/strsep: Likewise.
69483         * modules/strstr: Likewise.
69484         * modules/strtok_r: Likewise.
69485         * tests/test-dirname.c: Don't include "strdup.h", since
69486         <string.h> now suffices.
69487         * tests/test-memmem.c: Don't include "memmem.h", since
69488         <string.h> now suffices.
69489
69490 2007-01-25  Bruno Haible  <bruno@clisp.org>
69491
69492         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69493         *resultp is 0.
69494
69495         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69496         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69497         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69498         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69499
69500         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69501         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69502         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69503         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69504         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69505         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69506
69507 2007-01-24  Bruno Haible  <bruno@clisp.org>
69508
69509         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69511         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69512         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69513         gl_FUNC_FTS_CORE.
69514         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69515         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69516         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69517         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69518         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69519         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69520         gl_FUNC_FCHOWNAT.
69521         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69522         gl_FUNC_STRFTIME.
69523         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69524         Reported by Ralf Wildenhues.
69525
69526 2007-01-24  Bruno Haible  <bruno@clisp.org>
69527
69528         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69529         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69530         gl_GETADDRINFO.
69531         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69532         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69533         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69534
69535 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69538         Don't use 'exit'; just return from 'main'.
69539         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69540
69541         * lib/fnmatch_.h: Readjust white space and comments to match
69542         glibc, to avoid spurious diffs.
69543
69544 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69547         2004-12-01 change by Jakub Jelinek, since this code won't compile
69548         if !LIBC.  Problem reported by Bob Proulx.
69549
69550 2007-01-23  Bruno Haible  <bruno@clisp.org>
69551
69552         * lib/striconveh.c: Include c-strcaseeq.h.
69553         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69554         * modules/striconveh (Depends-on): Add c-strcaseeq.
69555
69556 2007-01-23  Bruno Haible  <bruno@clisp.org>
69557
69558         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69559
69560         * modules/c-strcaseeq: New file.
69561         * lib/c-strcaseeq.h: New file.
69562
69563         * modules/streq: New file.
69564         * lib/streq.h: New file.
69565
69566 2007-01-23  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/striconveha-tests: New file.
69569         * tests/test-striconveha.c: New file.
69570
69571         * lib/striconveha.h: Include <stdbool.h>.
69572         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69573         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69574         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69575         (mem_iconveha): New function.
69576         (str_iconveha_notranslit): Renamed from str_iconveha.
69577         (str_iconveha): New function.
69578         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69579         c-strcase.
69580
69581 2007-01-23  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69584         encodings without forgiving before trying any encoding with handler.
69585         (str_iconveha): Try all encodings without forgiving before trying any
69586         encoding with handler.
69587
69588 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         Import the following changes from libc.
69591
69592         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69593
69594         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69595
69596         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69597
69598         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69599         normal_bracket label.
69600
69601         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69602
69603         [BZ #361]
69604         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69605         to normal_bracket after fetching the next character.
69606
69607 2007-01-22  Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69610         argument.
69611         * lib/striconveh.c (iconv_carefully_1): New function.
69612         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69613         argument.
69614         (str_cd_iconveh): Update.
69615         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69616         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69617         * tests/test-striconveh.c (MAGIC): New macro.
69618         (new_offsets): New function.
69619         (main): Test call with and without offsets.
69620
69621 2007-01-22  Bruno Haible  <bruno@clisp.org>
69622
69623         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69624         * modules/sys_select (Makefile.am): Likewise.
69625         * modules/sys_socket (Makefile.am): Likewise.
69626         * modules/sys_time (Makefile.am): Likewise.
69627
69628 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * modules/gettimeofday (License): Change from GPL to LGPL, since
69631         gettimeofday is a library function.
69632
69633 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69634
69635         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69636
69637 2007-01-21  Bruno Haible  <bruno@clisp.org>
69638
69639         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69640
69641 2007-01-21  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/striconveha: New file.
69644         * lib/striconveha.h: New file.
69645         * lib/striconveha.c: New file.
69646         * MODULES.html.sh (Internationalization functions): Add striconveha.
69647         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69648         string.
69649         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69650
69651 2007-01-21  Bruno Haible  <bruno@clisp.org>
69652
69653         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69654         * lib/striconveh.c (str_iconveh): Likewise.
69655
69656 2007-01-21  Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/striconveh.h (mem_iconveh): New declaration.
69659         * lib/striconveh.c (mem_iconveh): New function.
69660         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69661
69662 2007-01-21  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69665
69666         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69667         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69668         original result buffer.
69669         (str_cd_iconveh): Update.
69670         * tests/test-striconveh.c (main): Update.
69671
69672         * lib/striconv.h (mem_cd_iconv): Change specification.
69673         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69674         result buffer.
69675         (str_cd_iconv): Update.
69676         * tests/test-striconv.c (main): Update.
69677
69678 2007-01-21  Bruno Haible  <bruno@clisp.org>
69679
69680         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69681
69682 2007-01-20  Jim Meyering  <jim@meyering.net>
69683
69684         * lib/userspec.c (parse_with_separator): If a user or group string
69685         starts with "+", skip the corresponding name-to-ID look-up, since
69686         such a look-up must fail: user and group names may not include "+".
69687
69688 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69691         since we now assume the sys_time module.
69692         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69693         check for sys/time.h; no longer needed.
69694         * modules/poll (Depends-on): Depend on sys_time.
69695
69696 2007-01-18  Bruno Haible  <bruno@clisp.org>
69697
69698         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69699         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69700
69701         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69702         gettimeofday.
69703
69704         * tests/test-gettimeofday.c: Include <time.h>.
69705         (dummy): Remove variable.
69706
69707         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69708         gl_HEADER_SYS_TIME_H.
69709         (gl_HEADER_SYS_TIME_H): New macro.
69710
69711         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69712         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69713         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69714         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69715         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69717         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69718         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69719         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69720         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69721         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69722
69723         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69724         last change; it caused a compilation error when cross-compiling to
69725         Cygwin.
69726
69727 2007-01-18  Jim Meyering  <jim@meyering.net>
69728
69729         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69730         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69731         than the race-prone "test -d sys || mkdir sys".
69732         (configure.ac): Use AC_PROG_MKDIR_P.
69733         * modules/sys_select: Likewise.
69734         * modules/sys_socket: Likewise.
69735         * modules/sys_time: Likewise.
69736
69737 2007-01-18  Eric Blake  <ebb9@byu.net>
69738
69739         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69740         replace gettimeofday.
69741         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69742         name, to avoid infinite recursion.
69743
69744 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69747         module sys_time.
69748         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69749         assume timespec.h defines struct timeval.
69750         * lib/settime.c: Likewise.
69751         * lib/utimens.c: Likewise.
69752         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69753         since we now assume the gettimeofday module.
69754         * lib/tempname.c (__gen_tempname): Likewise.
69755         * lib/gettimeofday.h: Remove.
69756         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69757         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69758         Include <time.h>, for 'time()'.
69759         (localtime_buffer_addr): Also use this workaround if
69760         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69761         to simplify the uses.  All uses changed.
69762         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69763         that #undef is inside {}, and 'const' follows type name consistently.
69764         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69765         (gettimeofday): Do not use the maximum possible value for
69766         tv->tv_usec, since that might break usages other than ls.c.
69767         Instead, we'll leave ls.c alone.  This undoes today's patch
69768         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69769         we've never observed the problem but might as well keep the
69770         canary.
69771         * lib/nanosleep.c: Include timespec.h first, for interface check.
69772         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69773         now assume the sys_time module.
69774         * lib/tempname.c: Likewise.
69775         * lib/timespec.h: Likewise.
69776         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69777         needed.
69778         * lib/strftime.c: Likewise.
69779         * lib/timespec.h: Likewise.
69780         * lib/posixtm.c: Include posixtm.h first, for interface check.
69781         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69782         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69783         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69784         * lib/sys_time_.h: New file.
69785         * lib/timespec.h (struct timespec): Use long int, not long.
69786         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69787         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69788         Remove obsolescent call to AC_HEADER_TIME.
69789         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69792         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69793         Likewise.
69794         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69795         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69796         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69797         into the sys_time module.  Check for gettimeofday just once.
69798         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69799         for gettimeofday signature to just check the signature.  Merely
69800         compile it, since linking doesn't test signature.  Improve test for
69801         whether gettimeofday.o is actually needed.
69802         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69803         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69804         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69805         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69806         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69807         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69808         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69809         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69810         than worrying about sys/time.h.
69811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69812         Don't bother worrying about TIME_WITH_SYS_TIME.
69813         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69814         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69815         * m4/sys_time_h.m4: New file.
69816         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69817         Don't include sys/time.h.  Return from main rather than exiting.
69818         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69819         all uses changed.
69820         * modules/gethrxtime (Depends-on): Add sys_time.
69821         * modules/gettime (Depends-on): Likewise.
69822         * modules/gettimeofday (Depends-on): Likewise.
69823         * modules/nanosleep (Depends-on): Likewise.
69824         * modules/settime (Depends-on): Likewise.
69825         * modules/tempname (Depends-on): Likewise.
69826         * modules/utimens (Depends-on): Likewise.
69827         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69828         (Include): Change back to <sys/time.h>.
69829         (Maintainer): Add self.
69830         * modules/sys_time: New file.
69831         * modules/tempname (Depends-on): Add gettimeofday.
69832         * tests/test-gettimeofday.c: Include <sys/time.h>
69833         rather than gettimeofday.h.
69834
69835 2007-01-17  Bruno Haible  <bruno@clisp.org>
69836
69837         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69838         the license default to GPL.
69839         (func_create_testdir): Don't complain if a module is LGPL and its
69840         tests module depends on GPLed modules.
69841
69842 2007-01-17  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/gettimeofday.c (gettimeofday): Add code for the case
69845         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69846         maximum possible value for tv->tv_usec, rather than the minimum one.
69847
69848 2005-10-08  Martin Lambers  <marlam@marlam.de>
69849 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69850 2007-01-16  Bruno Haible  <bruno@clisp.org>
69851
69852         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69853         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69854         gl_FUNC_GETTIMEOFDAY.
69855         (Include): Add gettimeofday.h.
69856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69857         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69858         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69859         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69860         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69861         * lib/gettimeofday.h: New file.
69862         * lib/gettimeofday.c: Include <sys/timeb.h>.
69863         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69864         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69865         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69866         fall back on time().
69867
69868         * tests/test-gettimeofday.c: New file.
69869         * modules/gettimeofday-tests: New file.
69870
69871 2007-01-16  Eric Blake  <ebb9@byu.net>
69872
69873         * modules/fnmatch (Depends-on): Depend on wchar.
69874         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69875         * m4/fnmatch.m4: Likewise.
69876         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69877         * m4/mbchar.m4: Likewise.
69878         * modules/mbswidth (Depends-on): Depend on wchar.
69879         * lib/mbswidth.c: Assume <wchar.h>.
69880         * m4/mbswidth.m4: Likewise.
69881         * modules/quotearg (Depends-on): Depend on wchar.
69882         * lib/quotearg.c: Assume <wchar.h>.
69883         * m4/quotearg.m4: Likewise.
69884         * modules/regex (Depends-on): Depend on wchar.
69885         * lib/regex_internal.h: Assume <wchar.h>.
69886         * m4/regex.m4: Likewise.
69887         * modules/stdint (Depends-on): Depend on wchar.
69888         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69889         * m4/stdint.m4: Likewise.
69890         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69891         * modules/strftime (Depends-on): Depend on wchar.
69892         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69893         * modules/strtol (Depends-on): Depend on wchar.
69894         * lib/strtol.c: Assume <wchar.h>.
69895         * modules/wcwidth (Depends-on): Depend on wchar.
69896         * lib/wcwidth.h: Assume <wchar.h>.
69897         * m4/wcwidth.m4: Likewise.
69898
69899 2007-01-16  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/csharpexec-script: New, created from...
69902         * modules/csharpexec: ... this.
69903
69904 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69905
69906         * modules/javaexec-script: New, created from...
69907         * modules/javaexec: ... this.
69908
69909 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69910
69911         * modules/poll (Dependencies): Add sys_select.
69912
69913 2007-01-15  Jim Meyering  <jim@meyering.net>
69914
69915         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69916         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69917         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69918         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69919
69920 2007-01-15  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/striconveh: New file.
69923         * lib/striconveh.h: New file.
69924         * lib/striconveh.c: New file.
69925         * MODULES.html.sh (Internationalization functions): Add striconveh.
69926
69927         * modules/striconveh-tests: New file.
69928         * tests/test-striconveh.c: New file.
69929
69930 2007-01-15  Bruno Haible  <bruno@clisp.org>
69931
69932         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69933         not from GNU libiconv or GNU libc.
69934
69935 2007-01-15  Bruno Haible  <bruno@clisp.org>
69936
69937         * doc/gnulib-intro.texi (Copyright): Explain the different license
69938         terms for module descriptions, autoconf macros, tests, documentation.
69939
69940 2007-01-14  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/striconv-tests: New file.
69943         * tests/test-striconv.c: New file.
69944
69945 2007-01-14  Bruno Haible  <bruno@clisp.org>
69946
69947         * modules/iconv-tests: New file.
69948         * tests/test-iconv.c: New file.
69949
69950 2007-01-14  Bruno Haible  <bruno@clisp.org>
69951
69952         * gnulib-tool (func_get_license): For test modules, use the license of
69953         the main module.
69954
69955 2007-01-14  Bruno Haible  <bruno@clisp.org>
69956
69957         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69958         if iconv is found to exist.
69959
69960 2007-01-14  Bruno Haible  <bruno@clisp.org>
69961
69962         * modules/c-ctype-tests: New file.
69963         * tests/test-c-ctype.c: New file.
69964
69965 2007-01-14  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/binary-io-tests: New file.
69968         * tests/test-binary-io.sh: New file.
69969         * tests/test-binary-io.c: New file.
69970
69971 2007-01-14  Bruno Haible  <bruno@clisp.org>
69972
69973         * modules/array-oset-tests: New file.
69974         * tests/test-array_oset.c: New file.
69975
69976 2007-01-14  Bruno Haible  <bruno@clisp.org>
69977
69978         * modules/array-list-tests: New file.
69979         * tests/test-array_list.c: New file.
69980
69981 2007-01-14  Bruno Haible  <bruno@clisp.org>
69982
69983         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69984         and make.
69985         Reported by Simon Josefsson in
69986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69987
69988 2007-01-14  Bruno Haible  <bruno@clisp.org>
69989
69990         * modules/allocsa-tests: New file.
69991         * tests/test-allocsa.c: New file.
69992
69993 2007-01-14  Bruno Haible  <bruno@clisp.org>
69994
69995         * modules/fchdir (Depends-on): Add absolute-header.
69996         * modules/unistd (Depends-on): Likewise.
69997
69998 2006-12-30  Bruno Haible  <bruno@clisp.org>
69999
70000         * modules/fchdir: New file.
70001         * modules/unistd (Files): Add lib/unistd_.h.
70002         (Makefile.am): Generate unistd.h from unistd_.h.
70003         * lib/fchdir.c: New file.
70004         * lib/dirent_.h: New file.
70005         * lib/unistd_.h: New file.
70006         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70007         * m4/fchdir.m4: New file.
70008         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70009         (gl_HEADER_UNISTD): Invoke it.
70010         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70011         function.
70012         * lib/backupfile.c (opendir, closedir): Undefine.
70013         * lib/chown.c (open, close): Undefine.
70014         * lib/clean-temp.c (open, close): Undefine.
70015         * lib/copy-file.c (open, close): Undefine.
70016         * lib/execute.c (open, close): Undefine.
70017         * lib/fsusage.c (open, close): Undefine.
70018         * lib/gc-gnulib.c (open, close): Undefine.
70019         * lib/getcwd.c (opendir, closedir): Undefine.
70020         * lib/glob.c (opendir, closedir): Undefine.
70021         * lib/javacomp.c (open, close): Undefine.
70022         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70023         * lib/openat-proc.c (open, close): Undefine.
70024         * lib/pagealign_alloc.c (open, close): Undefine.
70025         * lib/pipe.c (open, close): Undefine.
70026         * lib/progreloc.c (open, close): Undefine.
70027         * lib/savedir.c (opendir, closedir): Undefine.
70028         * lib/utime.c (open, close): Undefine.
70029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70030
70031 2007-01-10  Bruno Haible  <bruno@clisp.org>
70032
70033         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70034
70035 2007-01-12  Eric Blake  <ebb9@byu.net>
70036
70037         Provide a robust <wchar.h>.  Further simplifications are now
70038         possible in other modules, but not included here.
70039         * modules/wchar: New module.
70040         * m4/wchar.m4: New file.
70041         * lib/wchar_.h: Likewise.
70042         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70043         of the new module.
70044         * MODULES.html.sh (Extended multibyte and wide character utilities):
70045         New section.
70046
70047 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70050         to a reasonable default for memory allocation.
70051         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70052         file system that reports garbage st_size values for symlinks.
70053         Problem reported by Liyang Hu.
70054
70055 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70056
70057         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70058         Emacs .#* auto-save files).
70059
70060 2007-01-11  Bruno Haible  <bruno@clisp.org>
70061
70062         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70063         directory.
70064
70065 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         Use @...@ consistently in lib/wctype_.h.
70068         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70069         on it being set to 1 or 0.
70070         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70071         go back to AC_SUBSTing it.
70072         * modules/wctype (Makefile.am): Undo previous change.
70073
70074 2007-01-10  Eric Blake  <ebb9@byu.net>
70075
70076         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70077         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70078         * modules/wctype (Makefile.am): Likewise.
70079         Reported by Chris McGuire.
70080
70081 2007-01-10  Jim Meyering  <jim@meyering.net>
70082
70083         fts.c: a small readability/maintainability improvement
70084         * lib/fts.c (fts_read): Make this code slightly more readable and
70085         maintainable by hoisting the "sp->fts_cur = p" assignments to
70086         immediately follow the statements that set P.  Derived from
70087         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70088
70089 2007-01-10  Eric Blake  <ebb9@byu.net>
70090
70091         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70092         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70094         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70095         Reported by Chris McGuire.
70096
70097 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70098
70099         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70100         in sed script.
70101
70102 2007-01-09  Bruno Haible  <bruno@clisp.org>
70103
70104         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70105         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70106         variables.
70107         (func_module): Use them.
70108
70109 2007-01-09  Bruno Haible  <bruno@clisp.org>
70110
70111         * modules/unistr/base: New file.
70112         * lib/unistr.h: New file.
70113
70114         * modules/unistr/u8-to-u16: New file.
70115         * lib/unistr/u8-to-u16.c: New file.
70116
70117         * modules/unistr/u8-to-u32: New file.
70118         * lib/unistr/u8-to-u32.c: New file.
70119
70120         * modules/unistr/u16-to-u8: New file.
70121         * lib/unistr/u16-to-u8.c: New file.
70122
70123         * modules/unistr/u16-to-u32: New file.
70124         * lib/unistr/u16-to-u32.c: New file.
70125
70126         * modules/unistr/u32-to-u8: New file.
70127         * lib/unistr/u32-to-u8.c: New file.
70128
70129         * modules/unistr/u32-to-u16: New file.
70130         * lib/unistr/u32-to-u16.c: New file.
70131
70132         * modules/unistr/u8-check: New file.
70133         * modules/unistr/u16-check: New file.
70134         * modules/unistr/u32-check: New file.
70135         * lib/unistr/u8-check.c: New file.
70136         * lib/unistr/u16-check.c: New file.
70137         * lib/unistr/u32-check.c: New file.
70138
70139         * modules/unistr/u8-chr: New file.
70140         * modules/unistr/u16-chr: New file.
70141         * modules/unistr/u32-chr: New file.
70142         * lib/unistr/u8-chr.c: New file.
70143         * lib/unistr/u16-chr.c: New file.
70144         * lib/unistr/u32-chr.c: New file.
70145
70146         * modules/unistr/u8-cmp: New file.
70147         * modules/unistr/u16-cmp: New file.
70148         * modules/unistr/u32-cmp: New file.
70149         * lib/unistr/u8-cmp.c: New file.
70150         * lib/unistr/u16-cmp.c: New file.
70151         * lib/unistr/u32-cmp.c: New file.
70152
70153         * modules/unistr/u8-cpy: New file.
70154         * modules/unistr/u16-cpy: New file.
70155         * modules/unistr/u32-cpy: New file.
70156         * lib/unistr/u8-cpy.c: New file.
70157         * lib/unistr/u16-cpy.c: New file.
70158         * lib/unistr/u32-cpy.c: New file.
70159         * lib/unistr/u-cpy.h: New file.
70160
70161         * modules/unistr/u8-cpy-alloc: New file.
70162         * modules/unistr/u16-cpy-alloc: New file.
70163         * modules/unistr/u32-cpy-alloc: New file.
70164         * lib/unistr/u8-cpy-alloc.c: New file.
70165         * lib/unistr/u16-cpy-alloc.c: New file.
70166         * lib/unistr/u32-cpy-alloc.c: New file.
70167         * lib/unistr/u-cpy-alloc.h: New file.
70168
70169         * modules/unistr/u8-endswith: New file.
70170         * modules/unistr/u16-endswith: New file.
70171         * modules/unistr/u32-endswith: New file.
70172         * lib/unistr/u8-endswith.c: New file.
70173         * lib/unistr/u16-endswith.c: New file.
70174         * lib/unistr/u32-endswith.c: New file.
70175         * lib/unistr/u-endswith.h: New file.
70176
70177         * modules/unistr/u8-mblen: New file.
70178         * modules/unistr/u16-mblen: New file.
70179         * modules/unistr/u32-mblen: New file.
70180         * lib/unistr/u8-mblen.c: New file.
70181         * lib/unistr/u16-mblen.c: New file.
70182         * lib/unistr/u32-mblen.c: New file.
70183
70184         * modules/unistr/u8-mbtouc: New file.
70185         * modules/unistr/u16-mbtouc: New file.
70186         * modules/unistr/u32-mbtouc: New file.
70187         * lib/unistr/u8-mbtouc.c: New file.
70188         * lib/unistr/u16-mbtouc.c: New file.
70189         * lib/unistr/u32-mbtouc.c: New file.
70190
70191         * modules/unistr/u8-mbtouc-safe: New file.
70192         * modules/unistr/u16-mbtouc-safe: New file.
70193         * modules/unistr/u32-mbtouc-safe: New file.
70194         * lib/unistr/u8-mbtouc-safe.c: New file.
70195         * lib/unistr/u16-mbtouc-safe.c: New file.
70196         * lib/unistr/u32-mbtouc-safe.c: New file.
70197
70198         * modules/unistr/u8-move: New file.
70199         * modules/unistr/u16-move: New file.
70200         * modules/unistr/u32-move: New file.
70201         * lib/unistr/u8-move.c: New file.
70202         * lib/unistr/u16-move.c: New file.
70203         * lib/unistr/u32-move.c: New file.
70204         * lib/unistr/u-move.h: New file.
70205
70206         * modules/unistr/u8-next: New file.
70207         * modules/unistr/u16-next: New file.
70208         * modules/unistr/u32-next: New file.
70209         * lib/unistr/u8-next.c: New file.
70210         * lib/unistr/u16-next.c: New file.
70211         * lib/unistr/u32-next.c: New file.
70212
70213         * modules/unistr/u8-prev: New file.
70214         * modules/unistr/u16-prev: New file.
70215         * modules/unistr/u32-prev: New file.
70216         * lib/unistr/u8-prev.c: New file.
70217         * lib/unistr/u16-prev.c: New file.
70218         * lib/unistr/u32-prev.c: New file.
70219
70220         * modules/unistr/u8-set: New file.
70221         * modules/unistr/u16-set: New file.
70222         * modules/unistr/u32-set: New file.
70223         * lib/unistr/u8-set.c: New file.
70224         * lib/unistr/u16-set.c: New file.
70225         * lib/unistr/u32-set.c: New file.
70226         * lib/unistr/u-set.h: New file.
70227
70228         * modules/unistr/u8-startswith: New file.
70229         * modules/unistr/u16-startswith: New file.
70230         * modules/unistr/u32-startswith: New file.
70231         * lib/unistr/u8-startswith.c: New file.
70232         * lib/unistr/u16-startswith.c: New file.
70233         * lib/unistr/u32-startswith.c: New file.
70234         * lib/unistr/u-startswith.h: New file.
70235
70236         * modules/unistr/u8-stpcpy: New file.
70237         * modules/unistr/u16-stpcpy: New file.
70238         * modules/unistr/u32-stpcpy: New file.
70239         * lib/unistr/u8-stpcpy.c: New file.
70240         * lib/unistr/u16-stpcpy.c: New file.
70241         * lib/unistr/u32-stpcpy.c: New file.
70242         * lib/unistr/u-stpcpy.h: New file.
70243
70244         * modules/unistr/u8-stpncpy: New file.
70245         * modules/unistr/u16-stpncpy: New file.
70246         * modules/unistr/u32-stpncpy: New file.
70247         * lib/unistr/u8-stpncpy.c: New file.
70248         * lib/unistr/u16-stpncpy.c: New file.
70249         * lib/unistr/u32-stpncpy.c: New file.
70250         * lib/unistr/u-stpncpy.h: New file.
70251
70252         * modules/unistr/u8-strcat: New file.
70253         * modules/unistr/u16-strcat: New file.
70254         * modules/unistr/u32-strcat: New file.
70255         * lib/unistr/u8-strcat.c: New file.
70256         * lib/unistr/u16-strcat.c: New file.
70257         * lib/unistr/u32-strcat.c: New file.
70258         * lib/unistr/u-strcat.h: New file.
70259
70260         * modules/unistr/u8-strchr: New file.
70261         * modules/unistr/u16-strchr: New file.
70262         * modules/unistr/u32-strchr: New file.
70263         * lib/unistr/u8-strchr.c: New file.
70264         * lib/unistr/u16-strchr.c: New file.
70265         * lib/unistr/u32-strchr.c: New file.
70266
70267         * modules/unistr/u8-strcmp: New file.
70268         * modules/unistr/u16-strcmp: New file.
70269         * modules/unistr/u32-strcmp: New file.
70270         * lib/unistr/u8-strcmp.c: New file.
70271         * lib/unistr/u16-strcmp.c: New file.
70272         * lib/unistr/u32-strcmp.c: New file.
70273
70274         * modules/unistr/u8-strcpy: New file.
70275         * modules/unistr/u16-strcpy: New file.
70276         * modules/unistr/u32-strcpy: New file.
70277         * lib/unistr/u8-strcpy.c: New file.
70278         * lib/unistr/u16-strcpy.c: New file.
70279         * lib/unistr/u32-strcpy.c: New file.
70280         * lib/unistr/u-strcpy.h: New file.
70281
70282         * modules/unistr/u8-strcspn: New file.
70283         * modules/unistr/u16-strcspn: New file.
70284         * modules/unistr/u32-strcspn: New file.
70285         * lib/unistr/u8-strcspn.c: New file.
70286         * lib/unistr/u16-strcspn.c: New file.
70287         * lib/unistr/u32-strcspn.c: New file.
70288         * lib/unistr/u-strcspn.h: New file.
70289
70290         * modules/unistr/u8-strdup: New file.
70291         * modules/unistr/u16-strdup: New file.
70292         * modules/unistr/u32-strdup: New file.
70293         * lib/unistr/u8-strdup.c: New file.
70294         * lib/unistr/u16-strdup.c: New file.
70295         * lib/unistr/u32-strdup.c: New file.
70296         * lib/unistr/u-strdup.h: New file.
70297
70298         * modules/unistr/u8-strlen: New file.
70299         * modules/unistr/u16-strlen: New file.
70300         * modules/unistr/u32-strlen: New file.
70301         * lib/unistr/u8-strlen.c: New file.
70302         * lib/unistr/u16-strlen.c: New file.
70303         * lib/unistr/u32-strlen.c: New file.
70304         * lib/unistr/u-strlen.h: New file.
70305
70306         * modules/unistr/u8-strmblen: New file.
70307         * modules/unistr/u16-strmblen: New file.
70308         * modules/unistr/u32-strmblen: New file.
70309         * lib/unistr/u8-strmblen.c: New file.
70310         * lib/unistr/u16-strmblen.c: New file.
70311         * lib/unistr/u32-strmblen.c: New file.
70312
70313         * modules/unistr/u8-strmbtouc: New file.
70314         * modules/unistr/u16-strmbtouc: New file.
70315         * modules/unistr/u32-strmbtouc: New file.
70316         * lib/unistr/u8-strmbtouc.c: New file.
70317         * lib/unistr/u16-strmbtouc.c: New file.
70318         * lib/unistr/u32-strmbtouc.c: New file.
70319
70320         * modules/unistr/u8-strncat: New file.
70321         * modules/unistr/u16-strncat: New file.
70322         * modules/unistr/u32-strncat: New file.
70323         * lib/unistr/u8-strncat.c: New file.
70324         * lib/unistr/u16-strncat.c: New file.
70325         * lib/unistr/u32-strncat.c: New file.
70326         * lib/unistr/u-strncat.h: New file.
70327
70328         * modules/unistr/u8-strncmp: New file.
70329         * modules/unistr/u16-strncmp: New file.
70330         * modules/unistr/u32-strncmp: New file.
70331         * lib/unistr/u8-strncmp.c: New file.
70332         * lib/unistr/u16-strncmp.c: New file.
70333         * lib/unistr/u32-strncmp.c: New file.
70334
70335         * modules/unistr/u8-strncpy: New file.
70336         * modules/unistr/u16-strncpy: New file.
70337         * modules/unistr/u32-strncpy: New file.
70338         * lib/unistr/u8-strncpy.c: New file.
70339         * lib/unistr/u16-strncpy.c: New file.
70340         * lib/unistr/u32-strncpy.c: New file.
70341         * lib/unistr/u-strncpy.h: New file.
70342
70343         * modules/unistr/u8-strnlen: New file.
70344         * modules/unistr/u16-strnlen: New file.
70345         * modules/unistr/u32-strnlen: New file.
70346         * lib/unistr/u8-strnlen.c: New file.
70347         * lib/unistr/u16-strnlen.c: New file.
70348         * lib/unistr/u32-strnlen.c: New file.
70349         * lib/unistr/u-strnlen.h: New file.
70350
70351         * modules/unistr/u8-strpbrk: New file.
70352         * modules/unistr/u16-strpbrk: New file.
70353         * modules/unistr/u32-strpbrk: New file.
70354         * lib/unistr/u8-strpbrk.c: New file.
70355         * lib/unistr/u16-strpbrk.c: New file.
70356         * lib/unistr/u32-strpbrk.c: New file.
70357         * lib/unistr/u-strpbrk.h: New file.
70358
70359         * modules/unistr/u8-strrchr: New file.
70360         * modules/unistr/u16-strrchr: New file.
70361         * modules/unistr/u32-strrchr: New file.
70362         * lib/unistr/u8-strrchr.c: New file.
70363         * lib/unistr/u16-strrchr.c: New file.
70364         * lib/unistr/u32-strrchr.c: New file.
70365
70366         * modules/unistr/u8-strspn: New file.
70367         * modules/unistr/u16-strspn: New file.
70368         * modules/unistr/u32-strspn: New file.
70369         * lib/unistr/u8-strspn.c: New file.
70370         * lib/unistr/u16-strspn.c: New file.
70371         * lib/unistr/u32-strspn.c: New file.
70372         * lib/unistr/u-strspn.h: New file.
70373
70374         * modules/unistr/u8-strstr: New file.
70375         * modules/unistr/u16-strstr: New file.
70376         * modules/unistr/u32-strstr: New file.
70377         * lib/unistr/u8-strstr.c: New file.
70378         * lib/unistr/u16-strstr.c: New file.
70379         * lib/unistr/u32-strstr.c: New file.
70380         * lib/unistr/u-strstr.h: New file.
70381
70382         * modules/unistr/u8-strtok: New file.
70383         * modules/unistr/u16-strtok: New file.
70384         * modules/unistr/u32-strtok: New file.
70385         * lib/unistr/u8-strtok.c: New file.
70386         * lib/unistr/u16-strtok.c: New file.
70387         * lib/unistr/u32-strtok.c: New file.
70388         * lib/unistr/u-strtok.h: New file.
70389
70390         * modules/unistr/u8-uctomb: New file.
70391         * modules/unistr/u16-uctomb: New file.
70392         * modules/unistr/u32-uctomb: New file.
70393         * lib/unistr/u8-uctomb.c: New file.
70394         * lib/unistr/u16-uctomb.c: New file.
70395         * lib/unistr/u32-uctomb.c: New file.
70396
70397         * MODULES.html.sh (Unicode string functions): Add the new modules.
70398
70399 2007-01-08  Bruno Haible  <bruno@clisp.org>
70400
70401         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70402         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70403         subdirectories.
70404
70405 2007-01-08  Karl Berry  <karl@gnu.org>
70406
70407         * doc/error.texi: mention that main() fns must set program_name
70408         when progname is used.
70409
70410 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70413         WCTYPE_H is empty, for the benefit of builds from non-distclean
70414         directories.  Problem reported by Eric Blake in
70415         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70416
70417 2007-01-08  Bruno Haible  <bruno@clisp.org>
70418
70419         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70420         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70421         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70422         PROVIDE_CANONICALIZE_FILENAME_MODE.
70423         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70424
70425 2007-01-08  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70428         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70429         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70430         * lib/fts.c: Likewise.
70431         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70432
70433 2006-12-25  Bruno Haible  <bruno@clisp.org>
70434
70435         * modules/utf8-ucs4-safe: New file.
70436         * lib/utf8-ucs4-safe.h: New file.
70437         * lib/unistr/utf8-ucs4-safe.c: New file.
70438
70439         * modules/utf16-ucs4-safe: New file.
70440         * lib/utf16-ucs4-safe.h: New file.
70441         * lib/unistr/utf16-ucs4-safe.c: New file.
70442
70443         * MODULES.html.sh (Unicode string functions): Add the new modules.
70444
70445 2007-01-08  Bruno Haible  <bruno@clisp.org>
70446
70447         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70448         (Depends-on): Add unitypes.
70449         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70450         (u8_mbtouc_aux): Move out to separate file.
70451         (u8_mbtouc): Use ucs4_t, uint8_t types.
70452         * lib/unistr/utf8-ucs4.c: New file.
70453
70454         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70455         (Depends-on): Add unitypes.
70456         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70457         (u16_mbtouc_aux): Move out to separate file.
70458         (u16_mbtouc): Use ucs4_t, uint16_t types.
70459         * lib/unistr/utf16-ucs4.c: New file.
70460
70461         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70462         (Depends-on): Add unitypes.
70463         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70464         (u8_uctomb_aux): Move out to separate file.
70465         (u8_uctomb): Use ucs4_t, uint8_t types.
70466         * lib/unistr/ucs4-utf8.c: New file.
70467
70468         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70469         (Depends-on): Add unitypes.
70470         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70471         (u16_uctomb_aux): Move out to separate file.
70472         (u16_uctomb): Use ucs4_t, uint16_t types.
70473         * lib/unistr/ucs4-utf16.c: New file.
70474
70475 2006-12-25  Bruno Haible  <bruno@clisp.org>
70476
70477         * modules/unitypes: New file.
70478         * lib/unitypes.h: New file.
70479         * MODULES.html.sh (func_all_modules): New section "Unicode string
70480         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70481         this section. Add unitypes.
70482
70483 2007-01-08  Bruno Haible  <bruno@clisp.org>
70484
70485         Avoid variable names that conflict with those from libtool.
70486         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70487         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70488         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70489         library_names_spec to acl_library_names_spec, hardcode_* to
70490         acl_hardcode_*.
70491         Reported by Ralf Wildenhues.
70492
70493 2007-01-08  Bruno Haible  <bruno@clisp.org>
70494
70495         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70496         definition.
70497         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70498         definition.
70499         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70500         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70501         definition.
70502         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70503         definition.
70504         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70505         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70506         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70507         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70508         definition.
70509         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70510         definition.
70511         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70512         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70513         GC_USE_<algorithm>.
70514         * lib/gc-libgcrypt.c: Likewise.
70515         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70516         * modules/gc-arctwo (configure.ac): Likewise.
70517         * modules/gc-des (configure.ac): Likewise.
70518         * modules/gc-hmac-md5 (configure.ac): Likewise.
70519         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70520         * modules/gc-md2 (configure.ac): Likewise.
70521         * modules/gc-md4 (configure.ac): Likewise.
70522         * modules/gc-md5 (configure.ac): Likewise.
70523         * modules/gc-random (configure.ac): Likewise.
70524         * modules/gc-rijndael (configure.ac): Likewise.
70525         * modules/gc-sha1 (configure.ac): Likewise.
70526
70527 2007-01-08  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70530         macro definition.
70531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70532         definition.
70533         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70534         definition.
70535         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70536         * modules/fcntl-safer (configure.ac): Likewise.
70537         * modules/fopen-safer (configure.ac): Likewise.
70538         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70539         GNULIB_FWRITEERROR macro definition.
70540
70541 2007-01-08  Bruno Haible  <bruno@clisp.org>
70542
70543         * m4/gnulib-common.m4: New file.
70544         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70545         (func_get_filelist): Add m4/gnulib-common.m4.
70546
70547 2007-01-08  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70550         command.
70551
70552 2007-01-08  Jim Meyering  <jim@meyering.net>
70553
70554         Use a more robust test for a "can't happen" condition.
70555         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70556         narrowed the st_size value.  Presuming the "can't happen" condition
70557         is true, that narrowing could conceivably convert an invalid st_size
70558         value into a valid one.  Instead, use a change based on Matthew
70559         Woehlke's original patch.
70560
70561         Slight readability improvement: use an assert-like macro
70562         in place of literal "abort ()" uses.
70563         * lib/fts.c (fts_assert): Define.
70564         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70565         Use this macro instead of a bare 'abort'.
70566
70567 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70570         simply work around them.
70571         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70572         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70573         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70574         declaring.
70575         Don't bother to define as macros, since the standard doesn't require it.
70576         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70577         longer worry about IRIX 5.3.
70578         (HAVE_WCTYPE_CTMP_BUG): Remove.
70579
70580 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70583         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70584         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70585         Problems reported by Georg Schwarz for IRIX 5.3.
70586
70587         * gnulib-tool (autoconf_minversion): Take the maximum version number
70588         found, not the minimum.  Problem reported by James Youngman.
70589
70590 2007-01-03  Karl Berry  <karl@gnu.org>
70591
70592         * doc/error.texi: new file, explaining interaction with progname.
70593         * doc/gnulib.texi: include it.  Update copyright.
70594
70595 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70596
70597         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70598         AC_CANONICAL_HOST, to improve autobuild outputs.
70599
70600 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70601             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70602
70603         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70604         sockets, server sockets, and other file descriptors.  Count errors
70605         to compute the return value.  Reorder the code a bit to be easier
70606         to follow.  Don't set event bits that were not requested (except
70607         POLLERR and POLLHUP).
70608
70609 2007-01-01  Bruno Haible  <bruno@clisp.org>
70610
70611         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70612
70613 2007-01-03  Jim Meyering  <jim@meyering.net>
70614
70615         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70616
70617 2007-01-02  Bruno Haible  <bruno@clisp.org>
70618
70619         * modules/settime (Include): Require timespec.h.
70620         * modules/nanosleep (Include): Likewise.
70621
70622 2007-01-01  Bruno Haible  <bruno@clisp.org>
70623
70624         * gnulib-tool (func_emit_copyright_notice): Bump year.
70625         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70626
70627 2007-01-01  Bruno Haible  <bruno@clisp.org>
70628
70629         Improve support for OpenBSD.
70630         * build-aux/config.rpath (libname_spec): Export.
70631         (library_names_spec): New variable. Export.
70632         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70633         library_names_spec from the config.rpath output. Locate shared library
70634         through the name pattern in library_names_spec.
70635
70636 2007-01-01  Eric Blake  <ebb9@byu.net>
70637
70638         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70639
70640 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70643         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70644         assume the C locale, and avoid an "eval" that could cause trouble.
70645         Problem with SORT reported by Bob Proulx.
70646
70647         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70648         Define.  Trivial patch from Henning Nielsen Lund, originally
70649         sent to bug-grep@gnu.org today.
70650
70651 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70654         struct stat.  Problem reported by Henning Nielsen Lund.
70655         * lib/acl.c: Include acl.h first, to check interface.  Don't
70656         bother to include sys/types.h and sys/stat.h again.
70657
70658 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         Import the following change from libc; problem reported by
70661         Sven Verdoolaege.
70662
70663         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70664
70665         [BZ #1373]
70666         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70667
70668 2006-12-28  Jim Meyering  <jim@meyering.net>
70669
70670         * build-aux/announce-gen: Do not assume that the package
70671         builds any of tar.gz, tar.bz2, and .xdelta files.
70672         Suggestion from Simon Josefsson.
70673
70674 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70675
70676         * modules/announce-gen: New file.
70677
70678 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70681         handles its gotchas now.
70682         * lib/mbswidth.c: Likewise.
70683         * lib/wcwidth.h: Likewise.
70684         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70685         and iswcntrl; the wctype module does this stuff now.
70686         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70688         * modules/mbchar (Depends-on): Add wctype.
70689         * modules/mbswidth (Depends-on): Likewise.
70690         * modules/wcwidth (Depends-on): Likewise.
70691
70692 2006-12-27  Eric Blake  <ebb9@byu.net>
70693
70694         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70695         module uses more than what <wctype.h> is required to provide.
70696
70697 2006-12-26  Eric Blake  <ebb9@byu.net>
70698
70699         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70700
70701 2006-12-26  Eric Blake  <ebb9@byu.net>
70702
70703         * modules/absolute-header: New module.
70704         * modules/fcntl (Depends-on): Depend on it.
70705         * modules/inttypes (Depends-on): Likewise.
70706         * modules/stdint (Depends-on): Likewise.
70707         * modules/sys_stat (Depends-on): Likewise.
70708         * modules/wctype (Depends-on): Likewise.
70709         * MODULES.html.sh (Support for building libraries and
70710         executables): Document it.
70711
70712 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * gnulib-tool (SED): Remove, undoing previous change.
70715         The problem was that it broke coreutils on Solaris, because
70716         "sed --posix" leaked into a makefile.
70717         (sed): New alias, if 'alias' and GNU sed.
70718
70719 2006-12-24  Jim Meyering  <jim@meyering.net>
70720
70721         Work around an fchownat bug in glibc-2.4:
70722         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70723         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70724         in spite of the -P option.
70725         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70726         New macros.
70727         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70728         * modules/openat (Files): Add lib/fchownat.c.
70729         * lib/openat.c (fchownat): Don't define here.  Move to...
70730         * lib/fchownat.c: ...this new file.
70731
70732 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         Fix bug reported by Bruno Haible in
70735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70736         where quotearg.c didn't compile on Mac OS X 10.2 because it
70737         lacks <wchar.h> and wint_t.
70738         * lib/wctype_.h (__wctype_wint_t): New type.
70739         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70740         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70741         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70742         Arg is now of type __wctype_wint_t, not wint_t.
70743         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70744         substitute HAVE_WINT_T.
70745         * modules/wctype (Files): Add m4/wint_t.m4.
70746         (wctype.h): Substitute HAVE_WINT_T.
70747
70748 2006-12-23  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70751
70752 2006-12-23  Bruno Haible  <bruno@clisp.org>
70753
70754         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70755         S_ISLNK.
70756         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70757         mingw.
70758
70759 2006-12-22  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/copy-file.c: Include acl.h.
70762         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70763         Close the file descriptors only after being done with copy_acl.
70764         * modules/copy-file (Depends-on): Add acl.
70765
70766 2006-12-22  Bruno Haible  <bruno@clisp.org>
70767
70768         * gnulib-tool (SED): New variable.
70769         Use $SED instead of sed everywhere.
70770
70771 2006-12-22  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/no-c++: New file.
70774         * m4/no-c++.m4: New file.
70775         * MODULES.html.sh (Support for building libraries and executables):
70776         Add no-c++.
70777
70778 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70781         Include <limits.h>, and use its INT_MAX to rewrite the
70782         j loop so that it does not overflow 'int'.  Problem reported by
70783         Ralf Wildenhues in
70784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70785         Play it safe by shifting left by 1 rather than multiplying by 2,
70786         as GCC is less likely to optimize this away when the value
70787         is signed (when it assumes overflow leads to undefined behavior).
70788         Also, don't assume time_t uses two's complement.
70789
70790 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * MODULES.html.sh: New module wctype.
70793         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70794         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70795         <wctype.h>, since the new wctype module should fix this.
70796         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70797         the wctype module should arrange for it.
70798         * lib/regex_internal.h: Likewise.
70799         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70800         since the wctype module should handle this now.
70801         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70802         * modules/fnmatch (Depends-on): Add wctype.
70803         * modules/quotearg (Depends-on): Likewise.
70804         * modules/regex (Depends-on): Likewise.
70805
70806 2006-12-19  Bruno Haible  <bruno@clisp.org>
70807
70808         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70809         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70810
70811 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70812
70813         * modules/savewd (Depends-on): Fix dependency on fcntl.
70814
70815 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70818         conforms to C99, rather than relying on the user's environment
70819         setting of STDINT_H.
70820
70821 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70822         and Eric Blake  <ebb9@byu.net>
70823
70824         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70825         This is more consistent with the other defines here.
70826         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70827         Port to z/OS.  Problem reported by Paul Gilmartin.
70828         Change local vars to use gl_ prefix rather than ac_.
70829         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70830         with other defines.
70831         * modules/double-slash-root: New module.
70832         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70833         (Depends-on): Add double-slash-root.
70834         * MODULES.html.sh (File system functions): Mention new module.
70835
70836 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70839         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70840         This is for the benefit of gzip, which doesn't do i18n.
70841
70842 2006-12-12  Jim Meyering  <jim@meyering.net>
70843
70844         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70845         Reported by Andreas Schwab <schwab@suse.de>.
70846
70847 2006-12-12  Bruno Haible  <bruno@clisp.org>
70848
70849         Merge these changes.
70850         2006-09-05  Bruno Haible  <bruno@clisp.org>
70851         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70852         iconv_alloc succeeded.
70853         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70854         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70855         test for " && dest " at the end - dest is always != NULL there. Call
70856         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70857         with 2xNULL arguments, also to flush the state storage. Handle the
70858         IRIX iconv behaviour. Realloc the final result, to throw away unused
70859         memory.
70860
70861 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70864         and fchmodat unconditionally, since glibc 2.4 has them.
70865         Problem reported by Arkadiusz Miskiewicz.
70866
70867 2006-12-10  Bruno Haible  <bruno@clisp.org>
70868
70869         * gnulib-tool (func_import): Show the include files only for those
70870         modules that are copied and specified.
70871         Reported by Karl Berry.
70872
70873 2006-12-08  Jim Meyering  <jim@meyering.net>
70874
70875         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70876         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70877
70878         * build-aux/announce-gen: Add two new options, both optional:
70879         --bootstrap-tools=TOOL_LIST
70880               a comma-separated list of tools, e.g.,
70881               autoconf,automake,bison,gnulib
70882         --gnulib-snapshot-date=DATE
70883               if gnulib is in the bootstrap tool list,
70884               then report this as the snapshot date.
70885               If not specified, use the current date/time.
70886               If you specify a date here, be sure it's UTC.
70887
70888 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70889
70890         * tests/test-argp-2.sh: Fix test to match actual output.
70891         (func_compare): Fix sed script to be portable.
70892
70893 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70896         workaround for this case.  It is not autoconfigured now; offhand
70897         it's hard to see how to autoconfigure it.
70898
70899 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70902         a directory that is about to be chowned.  Such a directory's
70903         initial file permissions should permit the owner only and this
70904         should not be changed until after the chown, since the group and
70905         other bits would be incorrect if they granted permission before
70906         the chown.
70907
70908         Fix porting problem for iswctype reported by Georg Schwarz in:
70909         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70910         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70911         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70912         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70914
70915 2006-12-03  Jim Meyering  <jim@meyering.net>
70916
70917         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70918         p->fts_statp may not yet be defined.
70919         (fts_read): Instead, set it in the caller, once p->fts_statp is
70920         sure to be defined, and corresponds to a top-level directory.
70921         This bug made du -x fail.  Here's the coreutils test case:
70922         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70923         Reported by Mike Frysinger.
70924
70925 2006-12-01  Jim Meyering  <jim@meyering.net>
70926
70927         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70928         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70929         Reported by Simon Josefsson.
70930
70931 2006-11-30  Jim Meyering  <jim@meyering.net>
70932
70933         * m4/warning.m4: Use the all-permissive copyright notice
70934         recommended by RMS (rather than LGPL).
70935         * m4/vararrays.m4: Likewise.
70936         * m4/flexmember.m4: Likewise.
70937
70938 2006-11-29  Bruno Haible  <bruno@clisp.org>
70939
70940         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70941         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70942         using +=.
70943         Reported by Simon Josefsson <simon@josefsson.org>.
70944
70945 2006-11-28  James Youngman <jay@gnu.org>
70946
70947         * README: Advise users that they might find the bug-gnulib@gnu.org
70948         and autotools-announce@gnu.org mailing lists useful.
70949
70950 2006-11-28  Bruno Haible  <bruno@clisp.org>
70951
70952         * m4/ptrdiff_max.m4: Remove file.
70953
70954 2006-11-21  Bruno Haible  <bruno@clisp.org>
70955
70956         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70957         _AC_COMPUTE_INT.
70958         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70959         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70960         _AC_COMPUTE_INT.
70961         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70962         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70963         _AC_COMPUTE_INT.
70964         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70965
70966 2006-11-28  Jim Meyering  <jim@meyering.net>
70967
70968         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70969         warning from "gcc -Wshadow" about shadowing the builtin.
70970
70971 2006-11-27  Bruno Haible  <bruno@clisp.org>
70972
70973         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70974         _AC_COMPUTE_INT.
70975         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70976
70977 2006-11-27  Bruno Haible  <bruno@clisp.org>
70978             Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70981
70982 2006-11-26  Bruno Haible  <bruno@clisp.org>
70983
70984         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70985         noinst_LTLIBRARIES.
70986
70987 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70988             Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70991         if compiling with "gcc -ansi".
70992
70993 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         Fix some incompatibilities with gcc -ansi -pedantic.
70996         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70997         if compiling pedantically with GCC, unless it's C99 or later.
70998         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70999         it mishandles gcc -ansi -pedantic as well.
71000         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71001         if gcc -pedantic.
71002         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71003         initializers for struct if -pedantic, unless it's C99 or later.
71004
71005 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71006
71007         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71008         Don't close an fd more than once. Identical atimes indicate
71009         success, not failure.
71010
71011 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71012
71013         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71014
71015 2006-11-23  Jim Meyering  <jim@meyering.net>
71016
71017         * build-aux/announce-gen: New file.  From coreutils.
71018
71019 2006-11-22  Jim Meyering  <jim@meyering.net>
71020
71021         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71022         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71023         (fts_read): Use a temporary to narrow the overused st_size member
71024         before using it in a switch statement.  Reported by Matthew Woehlke.
71025
71026         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71027         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71028
71029 2006-11-20  Bruno Haible  <bruno@clisp.org>
71030
71031         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71032         changequote instead of pairs of brackets.
71033         Reported by Andreas Schwab <schwab@suse.de>.
71034
71035 2006-11-21  Jim Meyering  <jim@meyering.net>
71036
71037         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71038         so as to remain compatible with older compilers.
71039         Patch from Michael Deutschmann.
71040
71041 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71042
71043         * MODULES.html.sh (File system functions): Add openat.
71044
71045         * lib/openat.h (rpl_fstatat): New macro, if
71046         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71047         (fstatat): Define to rpl_fstatat under the same conditions,
71048         unless COMPILING_FSTATAT.
71049         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71050         seems to have the bug.
71051         * lib/fstatat.c: New file.
71052         * modules/openat (Files): Add it.
71053
71054 2006-11-20  Bruno Haible  <bruno@clisp.org>
71055
71056         * Makefile: New file.
71057
71058 2006-11-20  Jim Meyering  <jim@meyering.net>
71059
71060         The beginnings of syntax-related checks for gnulib.
71061         * lib/Makefile: New file.
71062         * lib/t-idcache: New script.  Ensure that the two halves of
71063         idcache.c stay in sync.
71064
71065         * lib/idcache.c: Adjust comments in user- and group- portions to
71066         be more accurate, and to be consistent with one another.
71067
71068 2006-11-20  Jim Meyering  <jim@meyering.net>
71069
71070         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71071         continue using the flexible array member (thus, this module performs
71072         half as many malloc calls), with the addition that...
71073         (getgroup, getuser): Consistently record a non-match via an empty
71074         "name" string, and map an empty string match to a NULL return value.
71075         * modules/idcache (Depends-on): Re-add flexmember.
71076
71077         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71078         (getuidbyname, getgroup, getgidbyname): Likewise.
71079
71080         Use cleaner syntax: NULL rather than 0.
71081         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71082
71083 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71086         It mishandled the case where the group was missing.
71087         Problem reported by Greg Schafer.
71088         * modules/idcache: Likewise.
71089
71090 2006-11-18  Jim Meyering  <jim@meyering.net>
71091
71092         * check-module (%exempt_header): Add exception for some
71093         conditionally-included headers.
71094
71095         * modules/i-ring (Depends-on): Add verify.
71096         (License): Change to LGPL.
71097
71098 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71101         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71102         and inttostr.h.  Use snprintf rather than uinttostr, so that
71103         LGPLed code doesn't depend on GPLed.
71104
71105 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * modules/inline (License): Change from GPL to LGPL.
71108
71109 2006-11-17  Jim Meyering  <jim@meyering.net>
71110
71111         * modules/d-type (License): Switch to LGPL.
71112
71113 2006-11-15  Bruno Haible  <bruno@clisp.org>
71114
71115         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71116
71117 2006-11-15  Eric Blake  <ebb9@byu.net>
71118
71119         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71120         the module dependency.
71121
71122 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71123             Bruno Haible  <bruno@clisp.org>
71124
71125         * gnulib-tool (func_create_testdir): Add license consistency check.
71126
71127 2006-11-15  Eric Blake  <ebb9@byu.net>
71128
71129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71130         random "(cached)" in configure output.
71131
71132 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71133
71134         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71135         test for conforming inttypes.h is both announced and cached.
71136
71137         * MODULES.html.sh (seen_modules, seen_files): New variables.
71138         (func_module): Rewrite to use a few less gnulib-tool and sed
71139         invocations.  Avoid a couple of quadratic algorithms for ...
71140         (missed_modules, missed_files): ... these, with ...
71141         (func_append, func_tmpdir): ... these new functions, from
71142         gnulib-tool.  Analogously, install traps for cleanup.
71143
71144         * tests/test-gc.c (main): Remove unused variables.
71145         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71146
71147 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * modules/inttostr (License): Change to LGPL.
71150
71151 2006-11-14  Eric Blake  <ebb9@byu.net>
71152
71153         * modules/tempname (License): Change to LGPL.
71154
71155 2006-11-14  Eric Blake  <ebb9@byu.net>
71156
71157         * doc/functions.texi (Function Portability): *printf functions on
71158         Cygwin now understand all POSIX size specifiers.
71159
71160 2006-11-14  Bruno Haible  <bruno@clisp.org>
71161
71162         * modules/c-ctype (License): Change to LGPL.
71163
71164 2006-11-12  Bruno Haible  <bruno@clisp.org>
71165
71166         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71167         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71168         for GNOME libraries, for which the include files are installed in
71169         subdirectories of $prefix/include.
71170
71171 2006-11-12  Bruno Haible  <bruno@clisp.org>
71172
71173         * m4/lib-link.m4: Require at least autoconf-2.54.
71174         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71175         name to underscores for the --with option.
71176
71177 2006-11-13  Bruno Haible  <bruno@clisp.org>
71178
71179         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71180         the tests directory.
71181         Reported by Ralf Wildenhues.
71182
71183 2006-11-13  Bruno Haible  <bruno@clisp.org>
71184
71185         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71186         (func_emit_initmacro_end): Undo the override here.
71187         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71188         Works around the famous automake error in coreutils.
71189
71190 2006-11-13  Eric Blake  <ebb9@byu.net>
71191
71192         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71193         element, not its node.
71194
71195 2006-11-12  Bruno Haible  <bruno@clisp.org>
71196
71197         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71198         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71199
71200 2006-11-12  Bruno Haible  <bruno@clisp.org>
71201
71202         * gnulib-tool: New option --local-symlink.
71203         (func_usage): Document it.
71204         (lsymbolic): New variable.
71205         (func_import, func_create_testdir): If --symlink was not specified,
71206         test whether --local-symlink was specified and the file comes from
71207         the local_gnulib_dir.
71208
71209 2006-11-12  Bruno Haible  <bruno@clisp.org>
71210
71211         * gnulib-tool (func_ln): New function.
71212         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71213
71214 2006-11-12  Bruno Haible  <bruno@clisp.org>
71215
71216         Finish support for source files in subdirectories.
71217         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71218         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71219         AUTOMAKE_OPTIONS.
71220         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71221
71222 2006-11-12  Bruno Haible  <bruno@clisp.org>
71223
71224         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71225         EXTRA_lib_SOURCES augmentation.
71226         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71227
71228 2006-11-12  Jim Meyering  <jim@meyering.net>
71229
71230         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71231         file descriptors.  This also averts a failure on systems with
71232         native openat support when a traversed directory lacks "x" access.
71233         * lib/fts_.h: Include "i-ring.h"
71234         (struct FTS) [fts_fd_ring]: New member.
71235         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71236         (FCHDIR): Add parentheses.
71237         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71238         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71239         When descending, rather than simply closing the previous
71240         fts_cwd_fd value, push that file descriptor onto the ring.
71241         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71242         (fts_open): Initialize the new fd_ring member.
71243         (fts_close): Clear the ring.
71244         (fts_safe_changedir): When possible, use our new fd_ring to skip
71245         the diropen and fstat and dev/ino comparison that would normally
71246         accompany a virtual `chdir ("..")'.
71247
71248         * modules/fts (Depends-on): Add i-ring.
71249         * modules/i-ring: New module.
71250         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71251         * m4/i-ring.m4: New file.
71252
71253 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71254
71255         * gnulib-tool (func_create_testdir): Fix replacement of
71256         `build-aux' in configure.ac.  Run autotools in gltests
71257         subdirectory.
71258         (func_create_testdir, func_create_megatestdir, test): There is
71259         no need for '--force' in most autotool invocations in a new
71260         tree.  Actually fail the whole test if any of the tools, or the
71261         configure or make stages fail.
71262
71263         Sync from Automake.
71264         * build-aux/gnupload: Revert last change.  Add pointer to upload
71265         instructions of the GNU Maintenance Instructions.
71266         Suggestion by Karl Berry.
71267
71268 2006-11-10  Jim Meyering  <jim@meyering.net>
71269
71270         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71271
71272 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71275         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71276         (bind_textdomain_codeset) [! ENABLE_NLS]:
71277         Evaluate all the arguments.  That way, callers get compatible behavior
71278         if the arguments have side effects.  Also, it avoids some GCC
71279         diagnostics in some cases; Joel E. Denny reported problems when Bison
71280         was configured with --enable-gcc-warnigs.
71281
71282 2006-11-10  Jim Meyering  <jim@meyering.net>
71283
71284         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71285         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71286         account.
71287
71288 2006-11-10  Jim Meyering  <jim@meyering.net>
71289
71290         * modules/inline: New file/module.
71291         * modules/xalloc (Files): Remove m4/inline.m4.
71292         (Depends-on): Add inline, instead.
71293         * modules/oset: Likewise.
71294         * modules/list: Likewise.
71295
71296 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71299         Problem reported by Matthew Woehlke.
71300
71301 2006-11-09  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/tempname.c (gen_tempname): Remove variant that invokes
71304         __gen_tempname.
71305         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71306         __gen_tempname.
71307
71308 2006-11-08  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71311         to 'yes' instead of 'cross-compiling'.
71312
71313 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * lib/quotearg.h (quotearg_free): New decl.
71316         * lib/quotearg.c (quotearg_free): New function.
71317         (slot0, nslots, slotvec0, slotvec):
71318         Now file-scope so that quotearg_free can get at them.
71319
71320 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71321
71322         Sync from Automake.
71323         * build-aux/gnupload: Add missing 'gnu' to example URL.
71324         Report by Karl Berry.
71325
71326 2006-11-08  Bruno Haible  <bruno@clisp.org>
71327
71328         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71329         Suggested by Paul Eggert.
71330
71331 2006-11-08  Jim Meyering  <jim@meyering.net>
71332
71333         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71334         It's already included if !_LIBC.
71335         (fts_safe_changedir): Add a comment.
71336
71337 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71340         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71341         Matthew Woehlke.
71342
71343         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71344         definitions up, to avoid colliding with change below.
71345         (static_inline) [HAVE_INLINE]: New macro.
71346         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71347         Provide extern decls when !HAVE_INLINE.  Do not define unless
71348         static_inline is defined, either by us or by xmalloc.c.  Use
71349         static_inline rather than static inline.
71350         (XCALLOC): Optimize sizeof(T) = 1 case.
71351         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71352
71353 2006-11-07  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71356         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71357         AC_C_INLINE.
71358         * modules/xalloc (Files): Add m4/inline.m4.
71359
71360 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71361
71362         * README: Fix typo.
71363         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71364         (Miscellanous Notes): ...from this.
71365
71366 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71367
71368         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71369         Mention that offsetof should be used instead of sizeof.
71370         From Bruno Haible.
71371
71372 2006-11-07  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71375
71376 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71377
71378         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71379         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71380         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71381         (gl_tree_add_before, gl_tree_add_after):
71382         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71383         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71384         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71385         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71386         (gl_linked_add_after, gl_linked_add_at): Likewise.
71387         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71388         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71389         (gl_tree_add_before, gl_tree_add_after): Likewise.
71390         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71391         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71392         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71393
71394 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71395
71396         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71397
71398 2006-11-06  Bruno Haible  <bruno@clisp.org>
71399
71400         * m4/inline.m4: New file.
71401         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71402         * modules/list (Files): Add m4/inline.m4.
71403         * modules/oset (Files): Likewise.
71404
71405 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * lib/idcache.c: Include <stddef.h>, for offsetof.
71408         (struct userid.name): Change from char * to a flexible array member.
71409         All uses changed.
71410         * modules/idcache (Depends-on): Add flexmember.
71411
71412         * MODULES.html.sh (Core language properties): New module flexmember.
71413         * modules/flexmember, m4/flexmember.m4: New files.
71414
71415         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71416         inline functions that are identical with the old xnmalloc_inline,
71417         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71418         that we can avoid some unnecessary integer multiplications and
71419         divisions in the common case where the element size is known at
71420         compile time.
71421         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71422         needed.
71423         (xnboundedmalloc): Remove.
71424         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71425         arguments, for consistency with rest of this header.
71426         (xcharalloc): Rewrite using XNMALLOC.
71427         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71428         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71429         versions have been moved to lib/xalloc.h and renamed to be the
71430         non-*_inline versions.
71431         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71432         and xnrealloc functions, since those functions are now inline and
71433         now call us.
71434         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71435         renaming described above.
71436         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71437         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71438         captures the dependency in AC_C_INLINE.
71439
71440         New module canonicalize-lgpl, proposed by Charles Wilson in
71441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71442         with a few small changes afterwards.
71443         * MODULES.html.sh (File system functions): New module
71444         canonicalize-lgpl.
71445         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71446         and canonicalize_file_name.
71447         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71448         * modules/canonicalize-lgpl: New files.
71449
71450 2006-11-05  Bruno Haible  <bruno@clisp.org>
71451
71452         * gnulib-tool (func_import, func_create_testdir): Create directories
71453         also for files in subdirectories of lib/.
71454
71455 2006-11-05  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71458         ANSI C compliant.
71459
71460 2006-11-03  Bruno Haible  <bruno@clisp.org>
71461
71462         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71463         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71464         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71465         (xnboundedmalloc): New inline function.
71466         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71467         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71468         xmalloc.
71469         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71470         xmalloc.
71471         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71472         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71473         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71474         xmalloc.
71475         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71476         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71477         xmalloc.
71478         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71479         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71480         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71481         xmalloc.
71482         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71483         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71484         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71485         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71486         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71487         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71488         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71489
71490 2006-11-03  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/c-ctype.h [C++]: Define functions without name mangling.
71493         * lib/fwriteerror.h [C++]: Likewise.
71494         * lib/gcd.h [C++]: Likewise.
71495         * lib/linebreak.h [C++]: Likewise.
71496
71497 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71500         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71501         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71502         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71503         Check for functions and headers just once.
71504         Check for declaration of canonicalize_file_name.
71505         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71506
71507 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71508
71509         * gnulib-tool (func_import): Fix typo in actioncmd.
71510
71511 2006-11-02  Bruno Haible  <bruno@clisp.org>
71512
71513         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71514         newline sequence in the Makefile.am snippet as a space, like "make"
71515         does.
71516         Reported by Roger Persson <perrog@gmail.com>.
71517
71518 2006-11-01  Bruno Haible  <bruno@clisp.org>
71519
71520         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71521         already declared in <string.h>.
71522         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71523
71524 2006-11-01  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71527         * lib/strcase.h: Include <string.h>.
71528         (strcasecmp): Define to rpl_strcasecmp here.
71529
71530 2006-11-01  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71533
71534 2006-11-01  Eric Blake  <ebb9@byu.net>
71535
71536         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71537
71538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71539
71540 2006-10-29  Bruno Haible  <bruno@clisp.org>
71541
71542         Make it compile in C++ mode.
71543         * lib/full-write.c (full_rw): Add a cast.
71544
71545 2006-11-01  Bruno Haible  <bruno@clisp.org>
71546
71547         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71548         be POSIX compliant.
71549         Reported by Roger Persson <perrog@gmail.com>.
71550
71551 2006-11-01  Eric Blake  <ebb9@byu.net>
71552
71553         * lib/getopt_.h: Fix comments.
71554
71555 2006-10-31  Eric Blake  <ebb9@byu.net>
71556
71557         * modules/tmpdir (Depends-on): Add sys_stat.
71558         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71559         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71560         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71561         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71562         tempname.
71563
71564 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         Avoid some C++ diagnostics reported by Bruno Haible.
71567         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71568         xmalloc.
71569         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71570         (struct slotvec): Move to top level.
71571         (quotearg_n_options): Rewrite to avoid xmalloc.
71572         * lib/xalloc.h (xcharalloc): New function.
71573         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71574         [defined __cplusplus]: Add function template that provides result
71575         type propagation.  This part of the change is from Bruno Haible.
71576
71577 2006-10-29  Bruno Haible  <bruno@clisp.org>
71578
71579         Make it compile in C++ mode.
71580         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71581         * lib/strnlen1.c (strnlen1): Cast memchr result.
71582         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71583         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71584         (create_temp_dir): Rename local variable 'template'.
71585         (compile_csharp_using_sscli): Add cast.
71586         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71587         * lib/findprog.c (find_in_path): Likewise.
71588         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71589         * lib/wait-process.c (register_slave_subprocess): Likewise.
71590
71591 2006-10-22  Bruno Haible  <bruno@clisp.org>
71592
71593         * modules/tsearch: New file.
71594         * lib/tsearch.h: New file.
71595         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71596         * m4/tsearch.m4: New file.
71597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71598
71599 2006-10-29  Eric Blake  <ebb9@byu.net>
71600
71601         * lib/arcfour.c: Assume config.h.
71602         * lib/arctwo.c: Likewise.
71603         * lib/base64.c: Likewise.
71604         * lib/check-version.c: Likewise.
71605         * lib/crc.c: Likewise.
71606         * lib/des.c: Likewise.
71607         * lib/gc-gnulib.c: Likewise.
71608         * lib/gc-libgcrypt.c: Likewise.
71609         * lib/gc-pbkdf2-sha1.c: Likewise.
71610         * lib/getaddrinfo.c: Likewise.
71611         * lib/getdelim.c: Likewise.
71612         * lib/getline.c: Likewise.
71613         * lib/hmac-md5.c: Likewise.
71614         * lib/hmac-sha1.c: Likewise.
71615         * lib/iconvme.c: Likewise.
71616         * lib/md2.c: Likewise.
71617         * lib/md4.c: Likewise.
71618         * lib/memxor.c: Likewise.
71619         * lib/read-file.c: Likewise.
71620         * lib/readline.c: Likewise.
71621         * lib/rijndael-alg-fst.c: Likewise.
71622         * lib/rijndael-api-fst.c: Likewise.
71623         * lib/xgetdomainname.c: Likewise.
71624
71625 2006-10-28  Eric Blake  <ebb9@byu.net>
71626
71627         * lib/xstrndup.c: Assume config.h.
71628
71629 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71632         stat-macros.h is now for our own macros, whereas stat_h is for
71633         macros in the <sys/stat.h> name space.
71634         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71635         (STAT_MACROS_H): Remove.
71636         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71637         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71638         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71639         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71640         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71641         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71642         Move these macros to ...
71643         * lib/stat_.h: here.  Don't include stat-macros.h.
71644         * lib/canonicalize.c: Don't include stat-macros.h.
71645         * lib/chown.c: Likewise.
71646         * lib/euidaccess.c: Likewise.
71647         * lib/file-type.c: Likewise.
71648         * lib/filemode.c: Likewise.
71649         * lib/glob.c: Likewise.
71650         * lib/isapipe.c: Likewise.
71651         * lib/lchown.c: Likewise.
71652         * lib/lstat.c: Likewise.
71653         * lib/mkdir-p.c: Likewise.
71654         * lib/rmdir.c: Likewise.
71655         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71657         unless mkdir isn't declared, to speed up 'configure'.
71658         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71659         would define all the S_* symbols.
71660         * modules/canonicalize (Depends-on):
71661         Depend on sys_stat, not stat-macros.
71662         * modules/chown: Likewise.
71663         * modules/euidaccess: Likewise.
71664         * modules/filemode: Likewise.
71665         * modules/file-type: Likewise.
71666         * modules/glob: Likewise.
71667         * modules/isapipe: Likewise.
71668         * modules/lchown: Likewise.
71669         * modules/lstat: Likewise.
71670         * modules/mkancesdirs: Likewise.
71671         * modules/rmdir: Likewise.
71672         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71673         * modules/modechange: Likewise.
71674         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71675         (configure.ac): Remove gl_STAT_MACROS.
71676         * modules/sys_stat (Depends-on): Remove stat-macros.
71677
71678 2006-10-27  Bruno Haible  <bruno@clisp.org>
71679
71680         * m4/signed.m4: Remove file.
71681         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71682         invocation.
71683         * modules/vasnprintf (Files): Remove m4/signed.m4.
71684
71685 2006-10-27  Bruno Haible  <bruno@clisp.org>
71686
71687         Update to GNU gettext 0.16.
71688         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71689         m4/inttypes-h.m4, m4/signed.m4.
71690         * m4/gettext.m4: Update to GNU gettext 0.16.
71691         * m4/intl.m4: New file, from GNU gettext.
71692         * m4/intldir.m4: New file, from GNU gettext.
71693         * config/srclist.txt: Update
71694
71695 2006-10-27  Eric Blake  <ebb9@byu.net>
71696
71697         * MODULES.html.sh: Document tempname.
71698         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71699         dependencies.
71700         (Files): Move lib/tempname.c...
71701         * modules/tempname: ...to this new module.
71702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71703         (gl_PREREQ_TEMPNAME): Move...
71704         * m4/tempname.m4: ...to this new file.
71705         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71706         * modules/sys_stat (Depends-on): Add stat-macros.
71707         * lib/stat_.h (includes): Pick up stat macros.
71708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71709         if stat macros are broken.
71710         * lib/tempname.c (includes): No need to include "stat-macros.h".
71711         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71712         (direxists, __path_search) [!_LIBC]: Don't compile these in
71713         gnulib; the tmpdir module covers that.
71714         * lib/tempname.h: New file.
71715
71716 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * COPYING: Explain how gnulib-tool converts licence headers.
71719         Almost all wording by Eric Blake.
71720
71721 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * lib/mbchar.h (is_basic_table): Make read-only.
71724         * lib/mbchar.c (is_basic_table): Likewise.
71725         Reported by John Darrington.
71726
71727 2006-10-25  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/progname.h (set_program_name): Undefine before defining.
71730
71731 2006-10-25  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71734         false for non-gcc C++ compilers.
71735         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71736
71737 2006-10-24  Bruno Haible  <bruno@clisp.org>
71738
71739         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71740         iconv implementations like Irix iconv.
71741
71742 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * modules/vararrays: New file.
71745         * m4/vararrays.m4: New file, taken from diffutils.
71746         * MODULES.html.sh: New module vararrays.
71747
71748 2006-10-24  Karl Berry  <karl@gnu.org>
71749
71750         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71751         Don't call GNU Unix.
71752
71753 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71754
71755         * users.txt: Add Libtool.
71756
71757         Sync from Libtool:
71758
71759         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71762         to gnulib's policy of including config.h unconditionally.
71763
71764 2006-10-24  Bruno Haible  <bruno@clisp.org>
71765
71766         * modules/wcwidth (Files): Add m4/wint_t.m4.
71767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71768         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71769
71770 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71773         to pacify GCC with some -W flags enabled.  Problem reported by
71774         Bruno Haible.
71775
71776 2006-10-24  Jim Meyering  <jim@meyering.net>
71777
71778         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71779         Reported by Karl Berry.
71780
71781 2006-10-23  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71784
71785 2006-10-24  Bruno Haible  <bruno@clisp.org>
71786
71787         * lib/gl_list.h: Use C comment style, not C++ comment style.
71788
71789 2006-10-23  Eric Blake  <ebb9@byu.net>
71790
71791         * lib/getaddrinfo.c (includes): Add missing include.
71792
71793 2006-10-23  Bruno Haible  <bruno@clisp.org>
71794             Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         Ability to rename obstack_free.
71797         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71798         obstack_free.
71799         (obstack_free): Invoke the __obstack_free macro.
71800         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71801
71802 2006-10-23  Bruno Haible  <bruno@clisp.org>
71803             Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71806         __argc, __argv from the declaration. (They are defined as macros on
71807         mingw.)
71808
71809 2006-10-22  Bruno Haible  <bruno@clisp.org>
71810
71811         * doc/gnulib-intro.texi: New file.
71812         * doc/gnulib.texi: Include it.
71813
71814 2006-10-21  Bruno Haible  <bruno@clisp.org>
71815
71816         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71817         "Introduction", "Miscellanous Notes", "Particular Modules".
71818
71819 2006-10-21  Bruno Haible  <bruno@clisp.org>
71820
71821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71822         Change mostlyclean-local rule to avoid sh syntax error from bash
71823         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71824
71825 2006-10-23  Jim Meyering  <jim@meyering.net>
71826
71827         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71828         in place of snprintf.
71829
71830         * modules/inttostr (Files): Add lib/uinttostr.c.
71831         * lib/uinttostr.c (inttostr): New file/function.
71832         * lib/inttostr.h (uinttostr): Declare.
71833         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71834         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71835         Add uinttostr.
71836         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71837
71838 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * lib/canonicalize.c (ELOOP): Define if not already defined.
71841         Problem reported by Bruno Haible in
71842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71843
71844 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71847         Problem reported by Perry Smith and Ville Laurikari.
71848
71849         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71850         uses.
71851
71852 2006-10-19  Bruno Haible  <bruno@clisp.org>
71853
71854         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71855         for mingw.
71856
71857 2006-10-19  Bruno Haible  <bruno@clisp.org>
71858
71859         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71860         Needed for mingw.
71861
71862 2006-10-19  Bruno Haible  <bruno@clisp.org>
71863
71864         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71865
71866 2006-10-19  Bruno Haible  <bruno@clisp.org>
71867
71868         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71869         it.
71870
71871 2006-10-19  Bruno Haible  <bruno@clisp.org>
71872
71873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71874         invocation.
71875
71876 2006-10-19  Bruno Haible  <bruno@clisp.org>
71877
71878         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71879         mountlist by default.
71880
71881 2006-10-16  Bruno Haible  <bruno@clisp.org>
71882
71883         * lib/c-strstr.c: Include c-strstr.h.
71884
71885 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71886
71887         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71888         in a slash.
71889
71890 2006-10-18  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/lock.h [C++]: Wrap definitions in extern "C".
71893
71894 2006-10-18  Bruno Haible  <bruno@clisp.org>
71895
71896         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71897         gl_LIBOBJS list.
71898
71899 2006-10-18  Bruno Haible  <bruno@clisp.org>
71900
71901         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71902
71903 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * lib/xstrtol.h: Include gettext.h.
71906         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71907         Problem reported by Eric Blake.
71908         * modules/xstrtol (Depends-on): Add gettext-h.
71909
71910 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71911
71912         * lib/strftime.c (advance): New macro.
71913         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71914         incomplete type, so you can't add 0 to it.  Problem and patch
71915         reported by Eelco Dolstra for dietlibc.
71916
71917 2006-10-18  Jim Meyering  <jim@meyering.net>
71918
71919         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71920         type for a local, and rename it: s/up/user_proc/.
71921
71922 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71923
71924         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71925         READ_UTMP_USER_PROCESS.
71926         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71927
71928 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71931         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71932
71933 2006-10-17  Eric Blake  <ebb9@byu.net>
71934
71935         * lib/sigprocmask.c (sigprocmask): Fix typo.
71936
71937         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71938
71939         * modules/clean-temp (Makefile.am): Don't add to make output...
71940         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71941         config.h.
71942
71943 2006-10-17  Bruno Haible  <bruno@clisp.org>
71944
71945         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71946         differently if DEFAULT_TEXT_DOMAIN is set.
71947
71948 2006-10-16  Bruno Haible  <bruno@clisp.org>
71949
71950         * lib/clean-temp.c: Include fwriteerror.h.
71951
71952 2006-10-16  Bruno Haible  <bruno@clisp.org>
71953
71954         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71955
71956 2006-10-16  Bruno Haible  <bruno@clisp.org>
71957
71958         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71959         * lib/sigprocmask.h: Include <sys/types.h>.
71960         (sigset_t): Use the system's definition if present.
71961
71962 2006-10-17  Eric Blake  <ebb9@byu.net>
71963
71964         * lib/xvasprintf.c (includes): Assume config.h.
71965         * lib/xasprintf.c (includes): Likewise.
71966
71967 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71970         at least as wide as intmax_t.
71971
71972 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71973
71974         (Imported from Automake.)
71975         * build-aux/gnupload: Update to version 1.1 of directive file.
71976
71977 2006-10-16  Eric Blake  <ebb9@byu.net>
71978
71979         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71980         match Automake 1.10a.
71981
71982 2006-10-14  Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/sigprocmask: New file.
71985         * lib/sigprocmask.h: New file.
71986         * lib/sigprocmask.c: New file.
71987         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71988         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71989         request sigprocmask.o.
71990         (gl_PREREQ_SIGPROCMASK): New macro.
71991         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71992         (Depends-on): Add sigprocmask.
71993         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71994         gt_SIGNALBLOCKING. Test for 'raise' only once.
71995         * lib/fatal-signal.c: Include sigprocmask.h.
71996         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71997         unblock_fatal_signals): Define always.
71998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71999         sigprocmask.
72000
72001 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         Sync from Automake.
72004         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72005         which incorrectly sets the mode of an existing destination
72006         directory.  In some cases the unpatched install-sh could do the
72007         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72008         system.  We hope this is rare in practice, but it's clearly worth
72009         fixing.  Problem reported by Alex Unleashed in
72010         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72011         Also, don't bother to check for -m bugs unless we're using -m;
72012         suggested by Stepan Kasal.
72013
72014 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72015
72016         Sync from Automake.
72017         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72018         `-c' flag, so they appear at the same position as in %FASTDEP%
72019         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72020         which ignores unknown options only after the first non-option.
72021         Bug report against M4 by Nelson H. F. Beebe.
72022
72023 2006-10-13  Jim Meyering  <jim@meyering.net>
72024
72025         Fix a bug in yesterday's change.
72026         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72027         p->fts_statp->st_dev would be used uninitialized.
72028         Ensures that we always call fts_stat on the very first entry.
72029         Miklos Szeredi reported that find -xdev stopped working.
72030
72031 2006-10-12  Bruno Haible  <bruno@clisp.org>
72032
72033         * gnulib-tool (func_get_automake_snippet): Append an automatically
72034         computed EXTRA_DIST augmentation.
72035         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72036         * modules/alloca-opt (Makefile.am): Likewise.
72037         * modules/allocsa (Makefile.am): Likewise.
72038         * modules/arcfour (Makefile.am): Likewise.
72039         * modules/arctwo (Makefile.am): Likewise.
72040         * modules/argmatch (Makefile.am): Likewise.
72041         * modules/argz (Makefile.am): Likewise.
72042         * modules/atexit (Makefile.am): Likewise.
72043         * modules/backupfile (Makefile.am): Likewise.
72044         * modules/byteswap (Makefile.am): Likewise.
72045         * modules/c-strtod (Makefile.am): Likewise.
72046         * modules/c-strtold (Makefile.am): Likewise.
72047         * modules/calloc (Makefile.am): Likewise.
72048         * modules/canon-host (Makefile.am): Likewise.
72049         * modules/canonicalize (Makefile.am): Likewise.
72050         * modules/chdir-long (Makefile.am): Likewise.
72051         * modules/chdir-safer (Makefile.am): Likewise.
72052         * modules/check-version (Makefile.am): Likewise.
72053         * modules/chown (Makefile.am): Likewise.
72054         * modules/cloexec (Makefile.am): Likewise.
72055         * modules/close-stream (Makefile.am): Likewise.
72056         * modules/closeout (Makefile.am): Likewise.
72057         * modules/crc (Makefile.am): Likewise.
72058         * modules/csharpexec (Makefile.am): Likewise.
72059         * modules/cycle-check (Makefile.am): Likewise.
72060         * modules/des (Makefile.am): Likewise.
72061         * modules/dev-ino (Makefile.am): Likewise.
72062         * modules/dirfd (Makefile.am): Likewise.
72063         * modules/dirname (Makefile.am): Likewise.
72064         * modules/dup2 (Makefile.am): Likewise.
72065         * modules/eealloc (Makefile.am): Likewise.
72066         * modules/error (Makefile.am): Likewise.
72067         * modules/euidaccess (Makefile.am): Likewise.
72068         * modules/exclude (Makefile.am): Likewise.
72069         * modules/exitfail (Makefile.am): Likewise.
72070         * modules/fcntl-safer (Makefile.am): Likewise.
72071         * modules/fcntl (Makefile.am): Likewise.
72072         * modules/file-type (Makefile.am): Likewise.
72073         * modules/fileblocks (Makefile.am): Likewise.
72074         * modules/filemode (Makefile.am): Likewise.
72075         * modules/filenamecat (Makefile.am): Likewise.
72076         * modules/fnmatch (Makefile.am): Likewise.
72077         * modules/fopen-safer (Makefile.am): Likewise.
72078         * modules/fpending (Makefile.am): Likewise.
72079         * modules/fprintftime (Makefile.am): Likewise.
72080         * modules/free (Makefile.am): Likewise.
72081         * modules/fsusage (Makefile.am): Likewise.
72082         * modules/ftruncate (Makefile.am): Likewise.
72083         * modules/fts (Makefile.am): Likewise.
72084         * modules/gc-arcfour (Makefile.am): Likewise.
72085         * modules/gc-des (Makefile.am): Likewise.
72086         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72087         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72088         * modules/gc-md4 (Makefile.am): Likewise.
72089         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72090         * modules/gc-sha1 (Makefile.am): Likewise.
72091         * modules/gc (Makefile.am): Likewise.
72092         * modules/getaddrinfo (Makefile.am): Likewise.
72093         * modules/getcwd (Makefile.am): Likewise.
72094         * modules/getdelim (Makefile.am): Likewise.
72095         * modules/getdomainname (Makefile.am): Likewise.
72096         * modules/getgroups (Makefile.am): Likewise.
72097         * modules/gethostname (Makefile.am): Likewise.
72098         * modules/gethrxtime (Makefile.am): Likewise.
72099         * modules/getline (Makefile.am): Likewise.
72100         * modules/getloadavg (Makefile.am): Likewise.
72101         * modules/getlogin_r (Makefile.am): Likewise.
72102         * modules/getndelim2 (Makefile.am): Likewise.
72103         * modules/getopt (Makefile.am): Likewise.
72104         * modules/getpagesize (Makefile.am): Likewise.
72105         * modules/getpass-gnu (Makefile.am): Likewise.
72106         * modules/getpass (Makefile.am): Likewise.
72107         * modules/getsubopt (Makefile.am): Likewise.
72108         * modules/gettime (Makefile.am): Likewise.
72109         * modules/gettimeofday (Makefile.am): Likewise.
72110         * modules/getugroups (Makefile.am): Likewise.
72111         * modules/getusershell (Makefile.am): Likewise.
72112         * modules/glob (Makefile.am): Likewise.
72113         * modules/group-member (Makefile.am): Likewise.
72114         * modules/hard-locale (Makefile.am): Likewise.
72115         * modules/hash (Makefile.am): Likewise.
72116         * modules/hmac-md5 (Makefile.am): Likewise.
72117         * modules/hmac-sha1 (Makefile.am): Likewise.
72118         * modules/human (Makefile.am): Likewise.
72119         * modules/idcache (Makefile.am): Likewise.
72120         * modules/imaxabs (Makefile.am): Likewise.
72121         * modules/imaxdiv (Makefile.am): Likewise.
72122         * modules/inet_ntop (Makefile.am): Likewise.
72123         * modules/inet_pton (Makefile.am): Likewise.
72124         * modules/intprops (Makefile.am): Likewise.
72125         * modules/inttostr (Makefile.am): Likewise.
72126         * modules/inttypes (Makefile.am): Likewise.
72127         * modules/isapipe (Makefile.am): Likewise.
72128         * modules/javaversion (Makefile.am): Likewise.
72129         * modules/lchmod (Makefile.am): Likewise.
72130         * modules/lchown (Makefile.am): Likewise.
72131         * modules/localcharset (Makefile.am): Likewise.
72132         * modules/long-options (Makefile.am): Likewise.
72133         * modules/lstat (Makefile.am): Likewise.
72134         * modules/malloc (Makefile.am): Likewise.
72135         * modules/mathl (Makefile.am): Likewise.
72136         * modules/mbchar (Makefile.am): Likewise.
72137         * modules/md2 (Makefile.am): Likewise.
72138         * modules/md4 (Makefile.am): Likewise.
72139         * modules/md5 (Makefile.am): Likewise.
72140         * modules/memcasecmp (Makefile.am): Likewise.
72141         * modules/memchr (Makefile.am): Likewise.
72142         * modules/memcmp (Makefile.am): Likewise.
72143         * modules/memcoll (Makefile.am): Likewise.
72144         * modules/memcpy (Makefile.am): Likewise.
72145         * modules/memmem (Makefile.am): Likewise.
72146         * modules/memmove (Makefile.am): Likewise.
72147         * modules/mempcpy (Makefile.am): Likewise.
72148         * modules/memrchr (Makefile.am): Likewise.
72149         * modules/memset (Makefile.am): Likewise.
72150         * modules/memxor (Makefile.am): Likewise.
72151         * modules/mkancesdirs (Makefile.am): Likewise.
72152         * modules/mkdir-p (Makefile.am): Likewise.
72153         * modules/mkdir (Makefile.am): Likewise.
72154         * modules/mkdtemp (Makefile.am): Likewise.
72155         * modules/mkstemp (Makefile.am): Likewise.
72156         * modules/mktime (Makefile.am): Likewise.
72157         * modules/modechange (Makefile.am): Likewise.
72158         * modules/mountlist (Makefile.am): Likewise.
72159         * modules/nanosleep (Makefile.am): Likewise.
72160         * modules/obstack (Makefile.am): Likewise.
72161         * modules/openat (Makefile.am): Likewise.
72162         * modules/pagealign_alloc (Makefile.am): Likewise.
72163         * modules/pathmax (Makefile.am): Likewise.
72164         * modules/physmem (Makefile.am): Likewise.
72165         * modules/poll (Makefile.am): Likewise.
72166         * modules/posixtm (Makefile.am): Likewise.
72167         * modules/posixver (Makefile.am): Likewise.
72168         * modules/putenv (Makefile.am): Likewise.
72169         * modules/quote (Makefile.am): Likewise.
72170         * modules/quotearg (Makefile.am): Likewise.
72171         * modules/raise (Makefile.am): Likewise.
72172         * modules/read-file (Makefile.am): Likewise.
72173         * modules/readline (Makefile.am): Likewise.
72174         * modules/readlink (Makefile.am): Likewise.
72175         * modules/readtokens (Makefile.am): Likewise.
72176         * modules/readutmp (Makefile.am): Likewise.
72177         * modules/realloc (Makefile.am): Likewise.
72178         * modules/regex (Makefile.am): Likewise.
72179         * modules/rename-dest-slash (Makefile.am): Likewise.
72180         * modules/rename (Makefile.am): Likewise.
72181         * modules/rijndael (Makefile.am): Likewise.
72182         * modules/rmdir (Makefile.am): Likewise.
72183         * modules/rpmatch (Makefile.am): Likewise.
72184         * modules/safe-read (Makefile.am): Likewise.
72185         * modules/safe-write (Makefile.am): Likewise.
72186         * modules/same-inode (Makefile.am): Likewise.
72187         * modules/same (Makefile.am): Likewise.
72188         * modules/save-cwd (Makefile.am): Likewise.
72189         * modules/savedir (Makefile.am): Likewise.
72190         * modules/setenv (Makefile.am): Likewise.
72191         * modules/settime (Makefile.am): Likewise.
72192         * modules/sha1 (Makefile.am): Likewise.
72193         * modules/sig2str (Makefile.am): Likewise.
72194         * modules/snprintf (Makefile.am): Likewise.
72195         * modules/stat-macros (Makefile.am): Likewise.
72196         * modules/stat-time (Makefile.am): Likewise.
72197         * modules/stdbool (Makefile.am): Likewise.
72198         * modules/stdint (Makefile.am): Likewise.
72199         * modules/stdlib-safer (Makefile.am): Likewise.
72200         * modules/stpcpy (Makefile.am): Likewise.
72201         * modules/stpncpy (Makefile.am): Likewise.
72202         * modules/strcase (Makefile.am): Likewise.
72203         * modules/strcasestr (Makefile.am): Likewise.
72204         * modules/strchrnul (Makefile.am): Likewise.
72205         * modules/strcspn (Makefile.am): Likewise.
72206         * modules/strdup (Makefile.am): Likewise.
72207         * modules/strerror (Makefile.am): Likewise.
72208         * modules/strftime (Makefile.am): Likewise.
72209         * modules/strndup (Makefile.am): Likewise.
72210         * modules/strnlen (Makefile.am): Likewise.
72211         * modules/strpbrk (Makefile.am): Likewise.
72212         * modules/strsep (Makefile.am): Likewise.
72213         * modules/strstr (Makefile.am): Likewise.
72214         * modules/strtod (Makefile.am): Likewise.
72215         * modules/strtoimax (Makefile.am): Likewise.
72216         * modules/strtok_r (Makefile.am): Likewise.
72217         * modules/strtol (Makefile.am): Likewise.
72218         * modules/strtoll (Makefile.am): Likewise.
72219         * modules/strtoul (Makefile.am): Likewise.
72220         * modules/strtoull (Makefile.am): Likewise.
72221         * modules/strtoumax (Makefile.am): Likewise.
72222         * modules/strverscmp (Makefile.am): Likewise.
72223         * modules/sys_socket (Makefile.am): Likewise.
72224         * modules/sys_stat (Makefile.am): Likewise.
72225         * modules/sysexits (Makefile.am): Likewise.
72226         * modules/time_r (Makefile.am): Likewise.
72227         * modules/timegm (Makefile.am): Likewise.
72228         * modules/timespec (Makefile.am): Likewise.
72229         * modules/tmpfile-safer (Makefile.am): Likewise.
72230         * modules/trim (Makefile.am): Likewise.
72231         * modules/unistd-safer (Makefile.am): Likewise.
72232         * modules/unlinkdir (Makefile.am): Likewise.
72233         * modules/unlocked-io (Makefile.am): Likewise.
72234         * modules/userspec (Makefile.am): Likewise.
72235         * modules/utime (Makefile.am): Likewise.
72236         * modules/utimecmp (Makefile.am): Likewise.
72237         * modules/utimens (Makefile.am): Likewise.
72238         * modules/vasnprintf (Makefile.am): Likewise.
72239         * modules/vasprintf (Makefile.am): Likewise.
72240         * modules/vsnprintf (Makefile.am): Likewise.
72241         * modules/xalloc (Makefile.am): Likewise.
72242         * modules/xgetcwd (Makefile.am): Likewise.
72243         * modules/xnanosleep (Makefile.am): Likewise.
72244         * modules/xreadlink (Makefile.am): Likewise.
72245         * modules/xstrtod (Makefile.am): Likewise.
72246         * modules/xstrtol (Makefile.am): Likewise.
72247         * modules/xstrtold (Makefile.am): Likewise.
72248         * modules/yesno (Makefile.am): Likewise.
72249         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72250
72251 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * modules/error (Makefile.am): Distribute files through
72254         EXTRA_DIST, not lib_SOURCES.
72255
72256 2006-10-12  Eric Blake  <ebb9@byu.net>
72257
72258         * modules/error (Makefile.am): Distribute files in /lib.
72259         * modules/obstack (Makefile.am): Likewise.
72260
72261 2006-10-12  Bruno Haible  <bruno@clisp.org>
72262
72263         * modules/acl (Makefile.am): Distribute all files in lib/ through
72264         EXTRA_DIST.
72265         * modules/arcfour (Makefile.am): Likewise.
72266         * modules/arctwo (Makefile.am): Likewise.
72267         * modules/argmatch (Makefile.am): Likewise.
72268         * modules/argz (Makefile.am): Likewise.
72269         * modules/atexit (Makefile.am): Likewise.
72270         * modules/backupfile (Makefile.am): Likewise.
72271         * modules/c-strtod (Makefile.am): Likewise.
72272         * modules/c-strtold (Makefile.am): Likewise.
72273         * modules/calloc (Makefile.am): Likewise.
72274         * modules/canon-host (Makefile.am): Likewise.
72275         * modules/canonicalize (Makefile.am): Likewise.
72276         * modules/chdir-long (Makefile.am): Likewise.
72277         * modules/chdir-safer (Makefile.am): Likewise.
72278         * modules/check-version (Makefile.am): Likewise.
72279         * modules/chown (Makefile.am): Likewise.
72280         * modules/cloexec (Makefile.am): Likewise.
72281         * modules/close-stream (Makefile.am): Likewise.
72282         * modules/closeout (Makefile.am): Likewise.
72283         * modules/crc (Makefile.am): Likewise.
72284         * modules/cycle-check (Makefile.am): Likewise.
72285         * modules/des (Makefile.am): Likewise.
72286         * modules/dirfd (Makefile.am): Likewise.
72287         * modules/dirname (Makefile.am): Likewise.
72288         * modules/dup2 (Makefile.am): Likewise.
72289         * modules/euidaccess (Makefile.am): Likewise.
72290         * modules/exclude (Makefile.am): Likewise.
72291         * modules/exitfail (Makefile.am): Likewise.
72292         * modules/fcntl-safer (Makefile.am): Likewise.
72293         * modules/file-type (Makefile.am): Likewise.
72294         * modules/fileblocks (Makefile.am): Likewise.
72295         * modules/filemode (Makefile.am): Likewise.
72296         * modules/filenamecat (Makefile.am): Likewise.
72297         * modules/fnmatch (Makefile.am): Likewise.
72298         * modules/fopen-safer (Makefile.am): Likewise.
72299         * modules/fpending (Makefile.am): Likewise.
72300         * modules/fprintftime (Makefile.am): Likewise.
72301         * modules/free (Makefile.am): Likewise.
72302         * modules/fsusage (Makefile.am): Likewise.
72303         * modules/ftruncate (Makefile.am): Likewise.
72304         * modules/fts (Makefile.am): Likewise.
72305         * modules/gc (Makefile.am): Likewise.
72306         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72307         * modules/getaddrinfo (Makefile.am): Likewise.
72308         * modules/getcwd (Makefile.am): Likewise.
72309         * modules/getdelim (Makefile.am): Likewise.
72310         * modules/getdomainname (Makefile.am): Likewise.
72311         * modules/getgroups (Makefile.am): Likewise.
72312         * modules/gethostname (Makefile.am): Likewise.
72313         * modules/gethrxtime (Makefile.am): Likewise.
72314         * modules/getline (Makefile.am): Likewise.
72315         * modules/getloadavg (Makefile.am): Likewise.
72316         * modules/getlogin_r (Makefile.am): Likewise.
72317         * modules/getopt (Makefile.am): Likewise.
72318         * modules/getpass (Makefile.am): Likewise.
72319         * modules/getpass-gnu (Makefile.am): Likewise.
72320         * modules/getsubopt (Makefile.am): Likewise.
72321         * modules/gettime (Makefile.am): Likewise.
72322         * modules/gettimeofday (Makefile.am): Likewise.
72323         * modules/getugroups (Makefile.am): Likewise.
72324         * modules/getusershell (Makefile.am): Likewise.
72325         * modules/glob (Makefile.am): Likewise.
72326         * modules/group-member (Makefile.am): Likewise.
72327         * modules/hard-locale (Makefile.am): Likewise.
72328         * modules/hash (Makefile.am): Likewise.
72329         * modules/hmac-md5 (Makefile.am): Likewise.
72330         * modules/hmac-sha1 (Makefile.am): Likewise.
72331         * modules/human (Makefile.am): Likewise.
72332         * modules/idcache (Makefile.am): Likewise.
72333         * modules/imaxabs (Makefile.am): Likewise.
72334         * modules/imaxdiv (Makefile.am): Likewise.
72335         * modules/inet_ntop (Makefile.am): Likewise.
72336         * modules/inet_pton (Makefile.am): Likewise.
72337         * modules/inttostr (Makefile.am): Likewise.
72338         * modules/isapipe (Makefile.am): Likewise.
72339         * modules/lchown (Makefile.am): Likewise.
72340         * modules/long-options (Makefile.am): Likewise.
72341         * modules/lstat (Makefile.am): Likewise.
72342         * modules/malloc (Makefile.am): Likewise.
72343         * modules/mathl (Makefile.am): Likewise.
72344         * modules/mbchar (Makefile.am): Likewise.
72345         * modules/md2 (Makefile.am): Likewise.
72346         * modules/md4 (Makefile.am): Likewise.
72347         * modules/md5 (Makefile.am): Likewise.
72348         * modules/memcasecmp (Makefile.am): Likewise.
72349         * modules/memchr (Makefile.am): Likewise.
72350         * modules/memcmp (Makefile.am): Likewise.
72351         * modules/memcoll (Makefile.am): Likewise.
72352         * modules/memcpy (Makefile.am): Likewise.
72353         * modules/memmem (Makefile.am): Likewise.
72354         * modules/memmove (Makefile.am): Likewise.
72355         * modules/mempcpy (Makefile.am): Likewise.
72356         * modules/memrchr (Makefile.am): Likewise.
72357         * modules/memset (Makefile.am): Likewise.
72358         * modules/memxor (Makefile.am): Likewise.
72359         * modules/mkancesdirs (Makefile.am): Likewise.
72360         * modules/mkdir (Makefile.am): Likewise.
72361         * modules/mkdir-p (Makefile.am): Likewise.
72362         * modules/mkdtemp (Makefile.am): Likewise.
72363         * modules/mkstemp (Makefile.am): Likewise.
72364         * modules/mktime (Makefile.am): Likewise.
72365         * modules/modechange (Makefile.am): Likewise.
72366         * modules/mountlist (Makefile.am): Likewise.
72367         * modules/nanosleep (Makefile.am): Likewise.
72368         * modules/openat (Makefile.am): Likewise.
72369         * modules/pagealign_alloc (Makefile.am): Likewise.
72370         * modules/physmem (Makefile.am): Likewise.
72371         * modules/poll (Makefile.am): Likewise.
72372         * modules/posixtm (Makefile.am): Likewise.
72373         * modules/posixver (Makefile.am): Likewise.
72374         * modules/putenv (Makefile.am): Likewise.
72375         * modules/quote (Makefile.am): Likewise.
72376         * modules/quotearg (Makefile.am): Likewise.
72377         * modules/raise (Makefile.am): Likewise.
72378         * modules/read-file (Makefile.am): Likewise.
72379         * modules/readline (Makefile.am): Likewise.
72380         * modules/readlink (Makefile.am): Likewise.
72381         * modules/readtokens (Makefile.am): Likewise.
72382         * modules/readutmp (Makefile.am): Likewise.
72383         * modules/realloc (Makefile.am): Likewise.
72384         * modules/regex (Makefile.am): Likewise.
72385         * modules/rename (Makefile.am): Likewise.
72386         * modules/rename-dest-slash (Makefile.am): Likewise.
72387         * modules/rijndael (Makefile.am): Likewise.
72388         * modules/rmdir (Makefile.am): Likewise.
72389         * modules/rpmatch (Makefile.am): Likewise.
72390         * modules/safe-read (Makefile.am): Likewise.
72391         * modules/safe-write (Makefile.am): Likewise.
72392         * modules/same (Makefile.am): Likewise.
72393         * modules/save-cwd (Makefile.am): Likewise.
72394         * modules/savedir (Makefile.am): Likewise.
72395         * modules/setenv (Makefile.am): Likewise.
72396         * modules/settime (Makefile.am): Likewise.
72397         * modules/sha1 (Makefile.am): Likewise.
72398         * modules/sig2str (Makefile.am): Likewise.
72399         * modules/snprintf (Makefile.am): Likewise.
72400         * modules/stdlib-safer (Makefile.am): Likewise.
72401         * modules/stpcpy (Makefile.am): Likewise.
72402         * modules/stpncpy (Makefile.am): Likewise.
72403         * modules/strcase (Makefile.am): Likewise.
72404         * modules/strcasestr (Makefile.am): Likewise.
72405         * modules/strchrnul (Makefile.am): Likewise.
72406         * modules/strcspn (Makefile.am): Likewise.
72407         * modules/strdup (Makefile.am): Likewise.
72408         * modules/strerror (Makefile.am): Likewise.
72409         * modules/strftime (Makefile.am): Likewise.
72410         * modules/strndup (Makefile.am): Likewise.
72411         * modules/strnlen (Makefile.am): Likewise.
72412         * modules/strpbrk (Makefile.am): Likewise.
72413         * modules/strsep (Makefile.am): Likewise.
72414         * modules/strstr (Makefile.am): Likewise.
72415         * modules/strtod (Makefile.am): Likewise.
72416         * modules/strtoimax (Makefile.am): Likewise.
72417         * modules/strtok_r (Makefile.am): Likewise.
72418         * modules/strtol (Makefile.am): Likewise.
72419         * modules/strtoll (Makefile.am): Likewise.
72420         * modules/strtoul (Makefile.am): Likewise.
72421         * modules/strtoull (Makefile.am): Likewise.
72422         * modules/strtoumax (Makefile.am): Likewise.
72423         * modules/strverscmp (Makefile.am): Likewise.
72424         * modules/time_r (Makefile.am): Likewise.
72425         * modules/timegm (Makefile.am): Likewise.
72426         * modules/tmpfile-safer (Makefile.am): Likewise.
72427         * modules/unistd-safer (Makefile.am): Likewise.
72428         * modules/unlinkdir (Makefile.am): Likewise.
72429         * modules/userspec (Makefile.am): Likewise.
72430         * modules/utime (Makefile.am): Likewise.
72431         * modules/utimecmp (Makefile.am): Likewise.
72432         * modules/utimens (Makefile.am): Likewise.
72433         * modules/vasnprintf (Makefile.am): Likewise.
72434         * modules/vasprintf (Makefile.am): Likewise.
72435         * modules/vsnprintf (Makefile.am): Likewise.
72436         * modules/xalloc (Makefile.am): Likewise.
72437         * modules/xgetcwd (Makefile.am): Likewise.
72438         * modules/xnanosleep (Makefile.am): Likewise.
72439         * modules/xreadlink (Makefile.am): Likewise.
72440         * modules/xstrtod (Makefile.am): Likewise.
72441         * modules/xstrtol (Makefile.am): Likewise.
72442         * modules/xstrtold (Makefile.am): Likewise.
72443         * modules/yesno (Makefile.am): Likewise.
72444
72445 2006-10-12  Jim Meyering  <jim@meyering.net>
72446
72447         * m4/getloadavg.m4: Revert the change below.
72448
72449         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72450         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72451         fail with a symlink, which is what coreutils' ./bootstrap now
72452         creates by default.
72453
72454 2006-10-12  Bruno Haible  <bruno@clisp.org>
72455
72456         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72457         mingw.
72458         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72459         MSVC and mingw explicitly.
72460
72461 2006-10-11  Simon Josefsson  <jas@extundo.com>
72462             Bruno Haible  <bruno@clisp.org>
72463
72464         Add support for multiple gnulib-tool invocations in the scope of a
72465         single configure.ac file.
72466         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72467         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72468         with the same contents as the _LIBADD variable.
72469         (func_emit_initmacro_start, func_emit_initmacro_end,
72470         func_emit_initmacro_done): New functions.
72471         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72472         gl_LIBOBJS and gl_LTLIBOBJS.
72473
72474 2006-10-11  Bruno Haible  <bruno@clisp.org>
72475
72476         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72477         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72478         autoreconf. Instead, invoke autopoint explicitly but move back the
72479         *.m4 files from gnulib.
72480
72481 2006-10-11  Bruno Haible  <bruno@clisp.org>
72482
72483         * gnulib-tool (func_usage): Make module names after --create-testdir
72484         optional.
72485         (func_create_testdir): If no module was specified, use nearly all
72486         modules.
72487
72488 2006-10-12  Jim Meyering  <jim@meyering.net>
72489
72490         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72491         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72492         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72493         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72494         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72495         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72496         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72497         (fts_set_stat_required): New function.
72498         (fts_open): Defer the calls to fts_stat, if possible or requested.
72499         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72500         into fts_stat itself.
72501         (fts_read): Perform any required (deferred) fts_stat call.
72502         (fts_build): Likewise, for the directory we're about to open and read.
72503         In the readdir loop, carefully decide whether each entry will require
72504         an eventual call to fts_stat, using dirent.d_type info if available.
72505         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72506         a command line argument into this function.  Update all callers.
72507         Map a return value of FTS_DOT to FTS_D for a command line argument.
72508         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72509         Thanks to Miklos Szeredi for his tenacity and for the initial
72510         bug report about "find" failing on a FUSE-based file system.
72511
72512         * lib/fts.c (fts_open): Use consistent indentation.
72513
72514 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72517         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72518         reported by Jim Meyering.  All uses of cache variables renamed
72519         to match Autoconf's.
72520         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72521         the other one.
72522
72523         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72524         Fix misspelling in diagnostic.
72525
72526 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72529         defined.  Problem reported by Matthew Woehlke.
72530
72531         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72532         Add support for Tandem NonStop R series.
72533         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72534         Use new macro.
72535
72536         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72537         (has_trailing_slash): Omit size arg; all callers changed.
72538         Omit 'inline', since it doesn't help performance and we'd
72539         need to configure it.
72540         Don't count //, ///, etc. as having a trailing slash.
72541         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72542         (rpl_rename_dest_slash): On failure, use rename's errno rather
72543         than (in some cases) an incorrect or junk errno.
72544         Simplify code by removing need to compute length; this does
72545         cause it to make two passes instead of one over the file name,
72546         but it's worth it.
72547
72548         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72549         change, since Autoconf's version may no longer be appropriate now
72550         that we are using CVS Autoconf's version.  Add support for Tandem.
72551
72552 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72553             Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72556         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72557         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72558         gl_AC_TYPE_LONG_LONG.
72559
72560         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72561         instead of HAVE_LONG_LONG.
72562         * lib/printf-args.c (printf_fetchargs): Likewise.
72563         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72564         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72565         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72566         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72567         gl_AC_TYPE_LONG_LONG.
72568
72569 2006-10-11  Bruno Haible  <bruno@clisp.org>
72570
72571         * m4/longlong.m4: Add comments.
72572         * m4/ulonglong.m4: Likewise.
72573
72574 2006-10-10  Bruno Haible  <bruno@clisp.org>
72575
72576         Make it possible to #define stpcpy, strdup to aliases.
72577         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72578         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72579
72580 2006-10-10  Bruno Haible  <bruno@clisp.org>
72581
72582         Make it possible to #define gcd to an alias.
72583         * lib/gcd.c: Include config.h.
72584
72585 2006-10-10  Bruno Haible  <bruno@clisp.org>
72586
72587         Make it possible to #define c_isascii to an alias.
72588         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72589         defined. Undefine the macros before defining them, to avoid gcc
72590         warnings.
72591         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72592         define NO_C_CTYPE_MACROS early.
72593
72594 2006-10-10  Bruno Haible  <bruno@clisp.org>
72595
72596         Make it possible to #define set_program_name to an alias.
72597         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72598         ENABLE_RELOCATABLE early.
72599
72600 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72601
72602         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72603         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72604         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72605         More generally, don't assume that 64-bit signed int is available
72606         if unsigned int is, and vice versa.
72607         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72608         unsigned symbols, not on their signed counterparts.
72609         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72610         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72611         (UINT64_C, UINTMAX_C):
72612         Likewise.
72613         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72614         unsigned counterparts.
72615         (Have_long_long, Unsigned): New macros.
72616         (Int): Renamed from INT.
72617         (strtoimax): Use the new macros.
72618         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72619         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72620         * modules/inttypes (inttypes.h): Substitute
72621         HAVE_UNSIGNED_LONG_LONG_INT.
72622         * modules/stdint (stdint.h): Likewise.
72623         (Files): Add m4/ulonglong.m4.
72624
72625 2006-10-10  Bruno Haible  <bruno@clisp.org>
72626
72627         Fix a gcc -Wshadow warning.
72628         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72629         to 'bucket'.
72630         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72631         gl_linked_indexof_from_to): Likewise.
72632         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72633         Likewise.
72634         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72635         Likewise.
72636         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72637         Reported by Eric Blake.
72638
72639 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72642         for NetBSD.  Problem reported by Bruno Haible.
72643
72644 2006-10-09  Jim Meyering  <jim@meyering.net>
72645
72646         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72647         Patch from Bruno Haible.
72648
72649 2006-10-09  Jim Meyering  <jim@meyering.net>
72650
72651         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72652         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72653         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72654
72655 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         Don't include <config.h> twice; this doesn't work in some cases,
72658         e.g., when config.h has "#define intmax_t long long int" and
72659         we include <config.h>, <inttypes.h>, <config.h> in that order.
72660         Problem reported by Matthew Woehlke in:
72661         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72662         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72663         * lib/fts-cycle.c: Don't include config.h.
72664         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72665         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72666         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72667         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72668         inttypes.h.
72669         * lib/xstrtoumax.c: Likewise.
72670         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72671         __strtol and the like, so that this module is more like its siblings.
72672         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72673         Remove; no longer needed now that we assume gnulib inttypes.h.
72674
72675 2006-10-08  Bruno Haible  <bruno@clisp.org>
72676
72677         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72678         option.
72679
72680 2006-10-07  Jim Meyering  <jim@meyering.net>
72681
72682         * modules/inttypes (inttypes.h): Revert what seems to have been
72683         an inadvertent part of today's change: use "|", not "/" in the
72684         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72685
72686 2006-10-07  Bruno Haible  <bruno@clisp.org>
72687
72688         * modules/sublist: New file.
72689
72690 2006-10-07  Bruno Haible  <bruno@clisp.org>
72691
72692         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72693         * modules/argz (argz.h): Likewise.
72694         * modules/arpa_inet (arpa/inet.h): Likewise.
72695         * modules/byteswap (byteswap.h): Likewise.
72696         * modules/configmake (configmake.h): Likewise.
72697         * modules/fcntl (fcntl.h): Likewise.
72698         * modules/fnmatch (fnmatch.h): Likewise.
72699         * modules/getopt (getopt.h): Likewise.
72700         * modules/glob (glob.h): Likewise.
72701         * modules/inttypes (inttypes.h): Likewise.
72702         * modules/netinet_in (netinet/in.h): Likewise.
72703         * modules/poll (poll.h): Likewise.
72704         * modules/stdbool (stdbool.h): Likewise.
72705         * modules/stdint (stdint.h): Likewise.
72706         * modules/sys_select (sys/select.h): Likewise.
72707         * modules/sys_socket (sys/socket.h): Likewise.
72708         * modules/sys_stat (sys/stat.h): Likewise.
72709         * modules/sysexits (sysexits.h): Likewise.
72710         * modules/unistd (unistd.h): Likewise.
72711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72712         Add a "DO NOT EDIT" comment to the generated file.
72713         (func_import): Likewise for gnulib-comp.m4.
72714
72715 2006-10-07  Bruno Haible  <bruno@clisp.org>
72716
72717         * lib/gl_sublist.h: New file.
72718         * lib/gl_sublist.c: New file.
72719
72720 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72723         name (relative to the original working directory) and the file
72724         name component (relative to the temporary working directory).  All
72725         callers changed.
72726         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72727         * lib/mkdir-p.c (make_dir_parents): Likewise.
72728         * lib/mkdir-p.h (make_dir_parents): Likewise.
72729
72730 2006-10-06  Eric Blake  <ebb9@byu.net>
72731
72732         Define several macros for use by the clean-temp module.
72733         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72734         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72735         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72736
72737         * lib/clean-temp.h (close_stream_temp): New declaration.
72738         * lib/clean-temp.c (includes): Pull in headers according to what
72739         other modules are in use.
72740         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72741
72742 2006-10-06  Bruno Haible  <bruno@clisp.org>
72743
72744         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72745         instead of fopen, fwriteerror.
72746
72747 2006-10-06  Bruno Haible  <bruno@clisp.org>
72748
72749         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72750         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72751         int.
72752         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72753         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72754         Return an error indicator.
72755         Suggested by Eric Blake.
72756
72757 2006-10-06  Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72760         Reported by Eric Blake.
72761
72762 2006-10-06  Bruno Haible  <bruno@clisp.org>
72763
72764         * modules/closeout (Description): Mention stderr too.
72765
72766 2006-10-06  Bruno Haible  <bruno@clisp.org>
72767         and Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * lib/closeout.c (close_stdout): Also close stderr.
72770         * lib/closeout.h: Update comment.
72771
72772 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72773
72774         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72775         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72776         * lib/dirchownmod.c: Include lchown.h.
72777         * lib/lchown.c: Don't include files that lchown.h now includes.
72778         Don't declare chown, since lchown.h now does that.
72779         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72780         (lchown): Define to rpl_chown if lchown is declared but
72781         does not exist.  Declare using a prototype if lchown is not
72782         declared.  Add a copyright notice.
72783         * lib/mkstemp.h: Include <unistd.h>.
72784         * lib/openat.c: Include lchown.h.
72785
72786         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72787         we now test for that separately.
72788         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72789         rather than O_NOFOLLOW, when testing whether it's possible to
72790         avoid a race condition reliably.
72791         * lib/savewd.c (savewd_chdir): Likewise.
72792
72793         Remove macros that are no longer needed now that stdint.h is
72794         reliable.
72795         * lib/fsusage.c (UINTMAX_MAX): Remove.
72796         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72797         * lib/utimecmp.c (SIZE_MAX): Remove.
72798
72799         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72800
72801         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72802         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72803         O_NOATIME works.
72804
72805 2006-10-05  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/gl_list.h (gl_sortedlist_search_from_to,
72808         gl_sortedlist_indexof_from_to): New declarations.
72809         (gl_list_implementation): New fields sortedlist_search_from_to,
72810         sortedlist_indexof_from_to.
72811         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72812         inline functions.
72813         * lib/gl_list.c (gl_sortedlist_search_from_to,
72814         gl_sortedlist_indexof_from_to): New functions.
72815         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72816         function.
72817         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72818         (gl_array_sortedlist_search_from_to): New function.
72819         (gl_array_list_implementation): Update.
72820         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72821         function.
72822         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72823         (gl_carray_sortedlist_search_from_to): New function.
72824         (gl_carray_list_implementation): Update.
72825         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72826         gl_linked_sortedlist_indexof_from_to): New functions.
72827         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72828         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72829         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72830         gl_tree_sortedlist_indexof_from_to): New functions.
72831         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72832         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72833         Update.
72834         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72835         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72836         Update.
72837
72838 2006-10-05  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72841         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72842         (struct gl_list_implementation): Add fields search_from_to,
72843         indexof_from_to. Remove fields search, indexof.
72844         (gl_list_search): Use the search_from_to method.
72845         (gl_list_search_from, gl_list_search_from_to): New functions.
72846         (gl_list_indexof): Use the indexof_from_to method.
72847         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72848         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72849         (gl_list_search_from, gl_list_search_from_to): New functions.
72850         (gl_list_indexof): Use the indexof_from_to method.
72851         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72852         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72853         gl_array_indexof. Add start_index, end_index arguments.
72854         (gl_array_search_from_to): Renamed from gl_array_search. Add
72855         start_index, end_index arguments.
72856         (gl_array_remove, gl_array_list_implementation): Update.
72857         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72858         gl_carray_indexof. Add start_index, end_index arguments.
72859         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72860         start_index, end_index arguments.
72861         (gl_carray_remove, gl_carray_list_implementation): Update.
72862         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72863         gl_linked_search. Add start_index, end_index arguments.
72864         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72865         start_index, end_index arguments.
72866         (gl_linked_remove): Update.
72867         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72868         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72869         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72870         field to 'size_t'.
72871         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72872         gl_tree_search. Add start_index, end_index arguments.
72873         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72874         start_index, end_index arguments.
72875         (gl_tree_remove): Update.
72876         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72877         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72878         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72879         function.
72880         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72881         gl_tree_search. Add start_index, end_index arguments.
72882         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72883         start_index, end_index arguments.
72884         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72885         Update.
72886         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72887
72888 2006-10-05  Bruno Haible  <bruno@clisp.org>
72889
72890         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72891
72892         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72893         fwriteerror_temp): New declarations.
72894         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72895         (descriptors): New variable.
72896         (cleanup): First, close the descriptors.
72897         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72898         fclose_temp, fwriteerror_temp): New functions.
72899
72900 2006-10-04  Jim Meyering  <jim@meyering.net>
72901
72902         * lib/fts.c (fts_open): Tiny comment change.
72903
72904 2006-10-04  Bruno Haible  <bruno@clisp.org>
72905
72906         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72907         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72908         gl_LOCK_BODY.
72909         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72910         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72911         gl_LOCK_EARLY_BODY.
72912         (gl_LOCK): Require gl_LOCK_BODY.
72913
72914 2006-10-04  Bruno Haible  <bruno@clisp.org>
72915
72916         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72917         (gl_oset_search_atleast): New declaration.
72918         (struct gl_oset_implementation): Add field 'search_atleast'.
72919         (gl_oset_search_atleast): New inline function.
72920         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72921         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72922         (gl_array_oset_implementation): Update.
72923         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72924         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72925         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72926
72927 2006-10-04  Bruno Haible  <bruno@clisp.org>
72928
72929         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72930
72931 2006-10-03  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72934         from gl_avltreehash_list_implementation.
72935
72936 2006-10-03  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/gl_oset.c (gl_oset_add): Fix return type.
72939
72940 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72941
72942         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72943
72944 2006-10-02  Eric Blake  <ebb9@byu.net>
72945
72946         * modules/strnlen (Depends-on): Add extensions.
72947
72948 2006-10-02  Eric Blake  <ebb9@byu.net>
72949
72950         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72951         definition in 2.60+.
72952
72953 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72954
72955         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72956         checks.
72957
72958 2006-10-02  Bruno Haible  <bruno@clisp.org>
72959
72960         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72961         to the AUTOMAKE_OPTIONS.
72962         Reported by Jim Meyering.
72963
72964 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         Work around bug in Solaris 10 /proc file system:
72967         /proc/self/fd/NNN/.. isn't the parent directory of
72968         the directory whose file descriptor is NNN.  This needs to
72969         be worked around at run time, not compile time, since a
72970         program might be built on Solaris 8, where things work, and
72971         run on Solaris 10.
72972         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72973         to use the following interface instead:
72974         (OPENAT_BUFFER_SIZE): New macro.
72975         (openat_proc_name): New function.
72976         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72977         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72978         Likewise.
72979         * lib/openat-proc.c: New file.
72980         * modules/openat (Files): Add lib/openat-proc.c.
72981         (Depends-on): Add same-inode, stdbool.
72982         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72983
72984 2006-09-29  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72987         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72988         argument. Set stdout_closed before testing for ferror, not after.
72989         (fwriteerror, fwriteerror_no_ebadf): New functions.
72990
72991 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72992
72993         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72994
72995 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72996
72997         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72998         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72999
73000 2006-09-28  Jim Meyering  <jim@meyering.net>
73001
73002         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73003         Include <unistd.h>.
73004
73005 2006-09-28  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73008         * modules/linkedhash-list (Depends-on): Likewise.
73009         * modules/rbtreehash-list (Depends-on): Likewise.
73010
73011 2006-09-28  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/strndup.h: Simplify the redefinition of strndup.
73014         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73015         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73016
73017 2006-09-28  Bruno Haible  <bruno@clisp.org>
73018
73019         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73020         * lib/gl_linkedhash_list.c: Likewise.
73021         * lib/gl_rbtreehash_list.c: Likewise.
73022
73023 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73026         getaddrinfo.
73027
73028         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73029         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73030         it causes <stdio_ext.h> to cause a compile-time error.
73031         Problem reported by Nelson H. F. Beebe.
73032         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73033         of HAVE_DECL___PENDING.
73034
73035         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73037         declaration.
73038
73039 2006-09-27  Jim Meyering  <jim@meyering.net>
73040
73041         This file could end up with a definition for a function
73042         named __strndup, rather than rpl_strndup on a system with
73043         incomplete weak_alias support.
73044         * lib/strndup.c (strndup): Rename from __strndup.
73045         Remove #defines that used to map __strndup to strndup.
73046         Don't use K&R prototypes.
73047         Remove LIBC-related code, since this file is not sync'd with glibc.
73048         * lib/strndup.h: Revamp, accordingly.
73049         * m4/strndup.m4: Modernize.
73050
73051 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * modules/savewd (Depends-on): Add 'raise'.
73054         * lib/savewd.c: Include <signal.h>, for 'raise'.
73055
73056 2006-09-26  Jim Meyering  <jim@meyering.net>
73057
73058         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73059         when we detect Darwin 8.7.0's acl_get_file bug.
73060         Rearrange to perform the new (below) run-test while $LIBS
73061         contains any acl-related library.  Set USE_ACL at the end.
73062         (gl_ACL_GET_FILE): New function.
73063
73064 2006-09-26  Eric Blake  <ebb9@byu.net>
73065
73066         * lib/verror.c: Include <config.h> unconditionally.
73067
73068 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * modules/clock-time (Maintainer): Add self.
73071         * modules/getlogin_r (Depends-on): Add extensions.
73072
73073 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73074
73075         * modules/clock-time: New module.
73076         * modules/nanosleep (Depends-on): Add clock-time.
73077         * modules/gethrxtime (Depends-on): Likewise.
73078         * modules/gettime (Depends-on): Likewise.
73079         * modules/settime (Depends-on): Likewise.
73080
73081         * modules/fts-lgpl: Depend on openat.
73082         * modules/mkancesdirs: Depend on savewd.
73083         * modules/mkdir-p: Likewise.
73084
73085 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73086
73087         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73088
73089         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73090         `gl_have_arbitrary_file_name_length_limit' to
73091         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73092         actually works between configure runs.
73093
73094 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73095             Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73098
73099 2006-09-25  Jim Meyering  <jim@meyering.net>
73100
73101         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73102         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73103
73104 2006-09-25  Eric Blake  <ebb9@byu.net>
73105
73106         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73107         exec's in 2006-09-18 patch when shuffling fds.
73108
73109 2006-09-25  Bruno Haible  <bruno@clisp.org>
73110
73111         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73112         Reported by Jim Meyering.
73113
73114 2006-09-24  Jim Meyering  <jim@meyering.net>
73115
73116         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73117         compare a pointer against a literal "0".  That caused failures with
73118         at least HP-UX's hpcc.
73119
73120 2006-09-22  Simon Josefsson  <jas@extundo.com>
73121
73122         * modules/gc-sha1:
73123         * modules/gc-md4:
73124         * modules/gc-hmac-sha1:
73125         * modules/gc-hmac-md5:
73126         * modules/gc-des:
73127         * modules/gc-arcfour: Distribute more files.
73128
73129 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73130
73131         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73132         (gl_linked_iterator_from_to): Initialize struct completely.
73133         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73134         (gl_tree_iterator_from_to): Likewise
73135         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73136         * lib/gl_array_list.c [lint] (gl_array_iterator)
73137         (gl_array_iterator_from_to): Likewise.
73138         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73139         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73140         (gl_carray_iterator_from_to): Likewise.
73141
73142         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73143         * lib/md4.c (md4_process_block): Remove unused variable.
73144         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73145         parentheses for clarity.
73146
73147 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73148
73149         * modules/bison-i18n (Depends-on): Add gettext.
73150
73151 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73152
73153         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73154         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73155         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73156         also add missing comma that caused broken test.
73157         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73158         stdlib.h, for `abort'.
73159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73160         variables.
73161         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73162         include unistd.h if present, for `rmdir'.
73163         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73164         variables.
73165         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73166         in the process include standard headers for prototypes.
73167         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73168         gets declared on GNU/Linux.
73169         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73170         unistd.h, for `rmdir'.
73171         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73172
73173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73174         always true.
73175         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73176
73177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73178
73179 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73180
73181         * gnulib-tool (func_version): Create output all at once.  This
73182         may help avoid triggering unnecessary SIGPIPEs, and at any
73183         rate it doesn't hurt.
73184
73185 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73186             Bruno Haible  <bruno@clisp.org>
73187
73188         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73189         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73190         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73191
73192         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73193         (gl_FUNC_VASPRINTF): Invoke it.
73194
73195 2006-09-22  Bruno Haible  <bruno@clisp.org>
73196
73197         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73198         getloadavg.c as first argument.
73199
73200 2006-09-22  Bruno Haible  <bruno@clisp.org>
73201
73202         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73203         at the beginning of the gl_INIT macro.
73204         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73205         gl_GETLOADAVG.
73206
73207 2006-09-22  Bruno Haible  <bruno@clisp.org>
73208
73209         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73210         module.
73211         Suggested by Ralf Wildenhues.
73212
73213 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         Import this patch from libc:
73216
73217         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73218
73219         * lib/regex_internal.c (re_string_reconstruct): Handle
73220         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73221         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73222         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73223         re_string_context_at.
73224
73225         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73226         now requires it.
73227         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73228         gl_REGEX now does it for us.
73229         (gl_REGEX): Add test taken from
73230         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73231
73232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73233         Check that large offsets work.  Modernize Autoconf usages.
73234         Prefer "yes" to mean a good thing rather than a bad.
73235         Don't put "#define mkstemp" in config.h, as this might interfere
73236         with standard system headers that "#define mkstemp mkstemp64".
73237
73238         * modules/mkstemp (Depends-on): Add extensions, so that
73239         mkstemp is visible on some platforms.
73240         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73241         (Include): Change to "mkstemp.h" from <stdlib.h>.
73242         (Files): Add mkstemp.h.
73243
73244         * lib/mkstemp.h: New file, since some standard headers
73245         #define mkstemp.
73246         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73247         Include "mkstemp.h".
73248         Make the _LIBC code resemble glibc original more,
73249         e.g., use K&R style.
73250         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73251         (mkstemp): Remove, since mkstemp.h does this for us.
73252         * lib/stdlib--.h: Include mkstemp.h.
73253
73254         Import this patch from libc:
73255
73256         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73257
73258         * lib/tempname.c (__gen_tempname): Change attempts_min
73259         into a macro.  Use preprocessor to decide how to initialize
73260         attempts [Coverity CID 67].
73261
73262 2006-09-20  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/mkdtemp.c: Import from libc.
73265         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73266                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73267                 attempts_min into a macro.  Use preprocessor to decide how to
73268                 initialize attempts [Coverity CID 67].
73269         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73270                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73271                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73272
73273 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73274
73275         * gnulib-tool (func_exit): New function, to allow to pass the
73276         exit status portably through the trap.  Use everywhere.
73277         (--help, --version): Signal a write error.
73278         (trap): catch SIGPIPE, for write errors.
73279         Exit at the end of the trap, with the correct exit status.
73280
73281 2006-09-19  Karl Berry  <karl@gnu.org>
73282
73283         * doc/gnulib.texi: note about the license texinfo files.
73284
73285 2006-09-19  Eric Blake  <ebb9@byu.net>
73286
73287         * gnulib-tool: Avoid space-tab.
73288
73289 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73292         that prevented coreutils 6.1 from building.  Problem reported
73293         by Petter Reinholdtsen.
73294
73295 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * gnulib-tool (avoidlist): Fix typo that broke options like
73298         --avoid=lock that are used by coreutils bootstrap.
73299
73300 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73301
73302         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73303         more systematically.
73304
73305 2006-09-18  Jim Meyering  <jim@meyering.net>
73306
73307         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73308
73309 2006-09-18  Bruno Haible  <bruno@clisp.org>
73310
73311         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73312
73313 2006-09-18  Bruno Haible  <bruno@clisp.org>
73314
73315         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73316         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73317         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73318         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73319         * m4/gettext.m4: Require autoconf >= 2.52.
73320         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73321         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73322         of gl_cv_header_inttypes_h.
73323
73324 2006-09-18  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/javaversion.c: Include configmake.h.
73327
73328 2006-09-18  Bruno Haible  <bruno@clisp.org>
73329
73330         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73331         avoid that the while loops be executed in a subshell.
73332
73333 2006-09-18  Bruno Haible  <bruno@clisp.org>
73334
73335         * MODULES.html.sh (func_module): Break long lines.
73336         Suggested by Bruce Korb <bkorb@gnu.org>.
73337
73338 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73339
73340         Speed up by a factor of 1.12.
73341         * gnulib-tool (nl): New variable.
73342         (func_import): Rewrite include directive extraction to only read each
73343         directive once.
73344
73345 2006-09-17  Bruno Haible  <bruno@clisp.org>
73346
73347         * modules/javaversion (Makefile.am): Remove DEFS setting.
73348         (Depends-on): Add configmake, for PKGDATADIR definition.
73349
73350 2006-09-17  Bruno Haible  <bruno@clisp.org>
73351
73352         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73353
73354 2006-09-17  Bruno Haible  <bruno@clisp.org>
73355
73356         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73357         (func_modules_transitive_closure, func_modules_add_dummy,
73358         func_modules_to_filelist, func_import, func_create_testdir,
73359         func_create_megatestdir, ...): Use it wherever possible.
73360         Suggested by Ralf Wildenhues.
73361
73362 2006-09-16  Karl Berry  <karl@gnu.org>
73363
73364         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73365         to avoid sectioning errors.
73366         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73367         [ifinfo]: blank line after @center-ed titles.
73368         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73369         Spell FSF address consistently with others.
73370         (These changes approved by rms.)
73371
73372 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73373
73374         Speed up by a factor of 1.61.
73375         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73376         already checked module names again.
73377
73378 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73379
73380         Speed up by a factor of 1.13.
73381         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73382         for new_files, and the input to func_add_or_update.
73383
73384 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73385
73386         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73387         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73388
73389 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73390
73391         * modules/mkancesdirs (Depends-on): Add fcntl.
73392         * modules/savewd: New file.
73393         * MODULES.html.sh (File system functions): Add savewd.
73394
73395         * modules/configmake (Makefile.am): Add support for the
73396         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73397
73398 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * m4/savewd.m4: New file.
73401
73402 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73403
73404         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73405         (dirchownmod): New arg FD.  All callers changed.
73406         Use FD rather than opening the directory ourself, as opening is
73407         now the caller's responsibility.
73408         * lib/dirchownmod.h: Likewise.
73409         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73410         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73411         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73412         (test_dir): Remove.
73413         (mkancesdirs): Return length of prefix of FILE that has already
73414         been made, or -2 if there is a child doing the work.  Redo
73415         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73416         ".", and treat ".." specially since it might stray back into
73417         already-created areas.  Use a subprocess if necessary.  New arg
73418         WD; all users changed.  MAKE_DIR function should now return 1
73419         if it creates a directory that is not readable.  Return -2 if
73420         a child process is spun off.
73421         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73422         Adjust signature to match code.
73423         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73424         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73425         all users changed.
73426         * lib/savewd.c, lib/savewd.h: New files.
73427
73428 2006-09-15  Jim Meyering  <jim@meyering.net>
73429
73430         * modules/rename-dest-slash: New module.
73431         * MODULES.html.sh (posix_compat): Add it here.
73432
73433         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73434
73435 2006-09-15  Jim Meyering  <jim@meyering.net>
73436
73437         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73438         file.
73439
73440         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73441
73442 2006-09-15  Jim Meyering  <jim@meyering.net>
73443
73444         * lib/rename-dest-slash.c (has_trailing_slash): Use
73445         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73446         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73447         test before testing whether SRC is a directory.
73448         Suggestions from Bruno Haible.
73449
73450         Avoid a warning about an unused variable.
73451         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73452         into the #ifdef block where it's used.
73453
73454         * lib/rename-dest-slash.c: New file.
73455
73456 2006-09-14  Bruno Haible  <bruno@clisp.org>
73457
73458         * lib/allocsa.c: Include <config.h> unconditionally.
73459         * lib/asnprintf.c: Likewise.
73460         * lib/asprintf.c: Likewise.
73461         * lib/c-strcasecmp.c: Likewise.
73462         * lib/c-strcasestr.c: Likewise.
73463         * lib/c-strncasecmp.c: Likewise.
73464         * lib/c-strstr.c: Likewise.
73465         * lib/classpath.c: Likewise.
73466         * lib/clean-temp.c: Likewise.
73467         * lib/concatpath.c: Likewise.
73468         * lib/copy-file.c: Likewise.
73469         * lib/csharpcomp.c: Likewise.
73470         * lib/csharpexec.c: Likewise.
73471         * lib/execute.c: Likewise.
73472         * lib/fatal-signal.c: Likewise.
73473         * lib/findprog.c: Likewise.
73474         * lib/fwriteerror.c: Likewise.
73475         * lib/gl_array_list.c: Likewise.
73476         * lib/gl_array_oset.c: Likewise.
73477         * lib/gl_avltree_list.c: Likewise.
73478         * lib/gl_avltree_oset.c: Likewise.
73479         * lib/gl_avltreehash_list.c: Likewise.
73480         * lib/gl_carray_list.c: Likewise.
73481         * lib/gl_linked_list.c: Likewise.
73482         * lib/gl_linkedhash_list.c: Likewise.
73483         * lib/gl_list.c: Likewise.
73484         * lib/gl_oset.c: Likewise.
73485         * lib/gl_rbtree_list.c: Likewise.
73486         * lib/gl_rbtree_oset.c: Likewise.
73487         * lib/gl_rbtreehash_list.c: Likewise.
73488         * lib/imaxabs.c: Likewise.
73489         * lib/imaxdiv.c: Likewise.
73490         * lib/javacomp.c: Likewise.
73491         * lib/javaexec.c: Likewise.
73492         * lib/javaversion.c: Likewise.
73493         * lib/linebreak.c: Likewise.
73494         * lib/localcharset.c: Likewise.
73495         * lib/lock.c: Likewise.
73496         * lib/mbchar.c: Likewise.
73497         * lib/mbswidth.c: Likewise.
73498         * lib/mkdtemp.c: Likewise.
73499         * lib/pipe.c: Likewise.
73500         * lib/printf-args.c: Likewise.
73501         * lib/printf-parse.c: Likewise.
73502         * lib/progname.c: Likewise.
73503         * lib/progreloc.c: Likewise.
73504         * lib/readlink.c: Likewise.
73505         * lib/sh-quote.c: Likewise.
73506         * lib/stpcpy.c: Likewise.
73507         * lib/stpncpy.c: Likewise.
73508         * lib/strcasecmp.c: Likewise.
73509         * lib/strcasestr.c: Likewise.
73510         * lib/strcspn.c: Likewise.
73511         * lib/striconv.c: Likewise.
73512         * lib/strncasecmp.c: Likewise.
73513         * lib/strnlen1.c: Likewise.
73514         * lib/strstr.c: Likewise.
73515         * lib/strtok_r.c: Likewise.
73516         * lib/tls.c: Likewise.
73517         * lib/tmpdir.c: Likewise.
73518         * lib/unicodeio.c: Likewise.
73519         * lib/unsetenv.c: Likewise.
73520         * lib/vasnprintf.c: Likewise.
73521         * lib/vasprintf.c: Likewise.
73522         * lib/wait-process.c: Likewise.
73523         * lib/xallocsa.c: Likewise.
73524         * lib/xsetenv.c: Likewise.
73525         * lib/xstriconv.c: Likewise.
73526
73527 2006-09-13  Simon Josefsson  <jas@extundo.com>
73528
73529         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73530         that internally, suggested by Ralf Wildenhues
73531         <Ralf.Wildenhues@gmx.de>.
73532
73533 2006-09-13  Simon Josefsson  <jas@extundo.com>
73534
73535         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73536         @LIBOBJS@.
73537         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73538
73539 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73542         longer worry about uses that don't define HAVE_CONFIG_H.
73543         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73544         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73545         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73546         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73547         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73548         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73549         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73550         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73551         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73552         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73553         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73554         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73555         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73556         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73557         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73558         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73559         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73560         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73561         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73562         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73563         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73564         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73565         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73566         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73567         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73568         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73569         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73570         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73571         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73572         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73573         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73574         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73575         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73576         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73577         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73578         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73579         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73580         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73581         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73582         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73583         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73584         Likewise.
73585
73586 2006-09-13  Eric Blake  <ebb9@byu.net>
73587
73588         * lib/getopt.c: Fix typo in last commit.
73589
73590 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73591
73592         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73593         dgettext.
73594
73595 2006-09-12  Jim Meyering  <jim@meyering.net>
73596
73597         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73598         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73599         Reported by Nelson H. F. Beebe.
73600
73601 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73602
73603         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73604         program_invocation_name and program_invocation_short_name are
73605         initialized.
73606         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73607         and program_invocation_short_name to argp.h, so they are visible
73608         to user programs.
73609         * lib/argp.h: Likewise
73610
73611 2006-09-10  Bruno Haible  <bruno@clisp.org>
73612
73613         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73614         m4/inttypes_h.m4, m4/uintmax_t.m4.
73615
73616 2006-09-10  Bruno Haible  <bruno@clisp.org>
73617
73618         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73619         gl_AC_TYPE_UINTMAX_T.
73620
73621 2006-09-10  Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73624
73625 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73626
73627         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73628         convention.  Text proposed by Bruno Haible.
73629         (struct argp_option): Document the use of N_() wrappers.
73630
73631         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73632         '\v', and translate the two parts separately, instead of feeding
73633         the whole string to gettext.  This allows to exclude
73634         '\v' from the strings visible to the translator by writing doc
73635         strings as N_("..") "\v" N_("..").
73636
73637 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * config/srclist.txt: Undo latest change; the bug was fixed.
73640
73641 2006-09-09  Bruno Haible  <bruno@clisp.org>
73642
73643         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73644         assignments if building a library without libtool.
73645         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73646         in func_emit_lib_Makefile_am.
73647         (func_import): When building a static library libfoo.a, arrange to
73648         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73649         (func_create_testdir): Likewise.
73650         * modules/gc (configure.ac, Makefile.am): If building statically,
73651         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73652         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73653         * modules/striconv (configure.ac, Makefile.am): Likewise.
73654         Based on a suggestion by Ralf Wildenhues.
73655
73656 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73659         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73660         Also:
73661
73662         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73663         Add year_2050_test to catch glibc bug 2821
73664         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73665
73666         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73667         Prefer #ifdef to #if.
73668
73669         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73670         Return from 'main' instead of calling 'exit'.
73671
73672 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73673
73674         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73675         returned the maximum time_t value rather than (time_t) -1.
73676         Problem originally reported by William Bardwell
73677         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73678
73679         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73680         Moved to here ...
73681         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73682         ... from here.
73683
73684 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73687         2821 is fixed.
73688
73689 2006-09-08  Jim Meyering  <jim@meyering.net>
73690
73691         Don't make generated files read-only.  That would bother too many
73692         people.  However, do retain the ability to work when targets are
73693         read-only: remove the destination and temporary files before writing
73694         them (when generated via sed or echo), or by using the -f option for
73695         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73696         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73697         * modules/byteswap, modules/configmake, modules/fcntl:
73698         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73699         * modules/localcharset, modules/netinet_in, modules/poll:
73700         * modules/stdbool, modules/stdint, modules/sys_select:
73701         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73702
73703 2006-09-08  Jim Meyering  <jim@meyering.net>
73704
73705         Avoid new build failure on FreeBSD 6.0.
73706         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73707         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73708         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73709
73710 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73711
73712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73713
73714 2006-09-07  Jim Meyering  <jim@meyering.net>
73715
73716         Fix global typo in last change: use chmod u-w, not chmod u-x.
73717         Spotted by Paul Eggert and Bruce Korb.
73718         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73719         * modules/byteswap, modules/configmake, modules/fcntl:
73720         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73721         * modules/localcharset, modules/netinet_in, modules/poll:
73722         * modules/stdbool, modules/stdint, modules/sys_select:
73723         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73724
73725 2006-09-06  Jim Meyering  <jim@meyering.net>
73726
73727         Make generated files be read-only.
73728         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73729         Ensure that each generated file is now read-only.
73730         * modules/argz: Likewise.
73731         * modules/arpa_inet: Likewise.
73732         * modules/byteswap: Likewise.
73733         * modules/configmake: Likewise.
73734         * modules/fcntl: Likewise.
73735         * modules/fnmatch: Likewise.
73736         * modules/getopt: Likewise.
73737         * modules/glob: Likewise.
73738         * modules/inttypes: Likewise.
73739         * modules/netinet_in: Likewise.
73740         * modules/poll: Likewise.
73741         * modules/stdbool: Likewise.
73742         * modules/stdint: Likewise.
73743         * modules/sys_select: Likewise.
73744         * modules/sys_socket: Likewise.
73745         * modules/sys_stat: Likewise.
73746         * modules/sysexits: Likewise.
73747         * modules/localcharset: Same as above, but continue using temporary
73748         file named "t-$@" (why different?) rather than the "$@-t" used
73749         everywhere else.
73750
73751         * modules/sysexits (Makefile.am): Replace literal occurrences
73752         of "sysexit.h" more readable, and more consistent, "$@".
73753
73754 2006-09-06  Bruno Haible  <bruno@clisp.org>
73755
73756         * modules/striconv: New file.
73757         * modules/xstriconv: New file.
73758         * MODULES.html.sh (Internationalization functions): Add striconv,
73759         xstriconv.
73760
73761 2006-09-06  Bruno Haible  <bruno@clisp.org>
73762
73763         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73764         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73765         not using libtool correctly.
73766
73767 2006-09-06  Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/striconv.h: New file.
73770         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73771         iconvstring.c.
73772         * lib/xstriconv.h: New file.
73773         * lib/xstriconv.c: New file.
73774
73775 2006-09-06  Bruno Haible  <bruno@clisp.org>
73776
73777         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73778         lib_..._LDFLAGS.
73779
73780 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73781
73782         * lib/argz_.h: Sync from Libtool.
73783
73784         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73785                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73786
73787         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73788
73789 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73790
73791         * modules/trim: New file.
73792
73793 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73794
73795         * lib/trim.h: New file.
73796         * lib/trim.c: New file.
73797
73798 2006-09-05  Bruno Haible  <bruno@clisp.org>
73799
73800         * MODULES.html.sh (String handling): Add trim.
73801
73802 2006-09-04  Karl Berry  <karl@gnu.org>
73803
73804         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73805         until next release.
73806
73807 2006-09-03  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73810         correctly.
73811
73812 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73815         not gl_GETLOADAVG.  Omit unneeded semicolons.
73816         Problems reported by Ralf Wildenhues in
73817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73818         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73819         at the end, which is the usual gnulib style.
73820
73821         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73822         of doing all the work ourselves.
73823         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73824         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73825
73826 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73829         Problem reported by Ralf Wildenhues in
73830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73831
73832         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73833         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73834
73835 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73838         yesterday's patch by changing test -n to test -z.
73839
73840 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73843         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73844         the former is now obsolescent.
73845
73846         * modules/chdir-long (Depends-on): Add fcntl.
73847
73848 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73851         obsolescent, and programs should use gnulib instead.
73852         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73853         but with prefixes changed.
73854
73855 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73858         or stdbool.h, because they might not exist while configuring.
73859
73860         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73861         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73862         does that for us.
73863         (O_DIRECTORY): Remove.
73864
73865 2006-08-31  Eric Blake  <ebb9@byu.net>
73866
73867         * gnulib-tool: Don't let emacs change spaces to TAB.
73868
73869 2006-08-31  Bruno Haible  <bruno@clisp.org>
73870
73871         * gnulib-tool: When calling func_import more than once, do it in a
73872         subshell.
73873         Reported by Eric Blake <ebb9@byu.net>.
73874
73875 2006-08-31  Bruno Haible  <bruno@clisp.org>
73876
73877         * gnulib-tool (nl): Remove variable.
73878         (sed_transform_lib_file): Use more robust test for config-h module.
73879         (func_import): Fix typo in 2006-08-25 patch.
73880
73881 2006-08-31  Bruno Haible  <bruno@clisp.org>
73882
73883         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73884         specified, augment Makefile.am variables instead of assigning them.
73885
73886 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         Work around a bug in both the Linux and SunOS 64-bit kernels:
73889         nanosleep mishandles sleeps for longer than 2**31 seconds.
73890         Problem reported by Frank v Waveren in
73891         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73893         Check for nanosleep bug.
73894         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73895
73896 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         Work around a bug in both the Linux and SunOS 64-bit kernels:
73899         nanosleep mishandles sleeps for longer than 2**31 seconds.
73900         Problem reported by Frank v Waveren in
73901         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73902         * lib/nanosleep.c (BILLION): New constant.
73903         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73904         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73905         implementation.
73906
73907 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * modules/nanosleep (Depends-on): Add gettime.
73910
73911 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73912         and Simon Josefsson  <jas@extundo.com>
73913         and Oskar Liljeblad  <oskar@osk.mine.nu>
73914
73915         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73916         * gnulib-tool (func_import): New license type 'unmodifiable license
73917         text'.
73918         * modules/fdl: Use it.  Longer description.
73919         * module/gpl, module/lgpl: New files.
73920
73921 2006-08-30  Jim Meyering  <jim@meyering.net>
73922
73923         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73924         shadowing the parameter.
73925
73926 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73927
73928         Sync from Libtool:
73929
73930         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73931
73932         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73933         sharing with gnulib.  Report by Eric Blake.
73934
73935 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73936
73937         * modules/isapipe: New file.
73938         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73939
73940 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         * modules/configmake (Makefile.am): Add a comment, and omit
73943         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73944         by Bruno Haible.
73945
73946 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * m4/isapipe.m4: New file.
73949
73950 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         * lib/isapipe.c, lib/isapipe.h: New files.
73953
73954 2006-08-29  Jim Meyering  <jim@meyering.net>
73955
73956         * modules/configmake (Makefile.am): Make configmake.h depend on
73957         Makefile.  Otherwise, a stale configmake.h could hang around.
73958
73959 2006-08-29  Eric Blake  <ebb9@byu.net>
73960
73961         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73962         resolution of upstream bug 3044.
73963
73964 2006-08-29  Bruno Haible  <bruno@clisp.org>
73965
73966         * modules/localcharset (Depends-on): Add configmake.
73967         (Makefile.am): Remove setting of LIBDIR through DEFS.
73968
73969 2006-08-29  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73972         defined.
73973
73974 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * modules/fcntl: New file.
73977         * modules/chdir-safer (Depends-on): Add fcntl.
73978         * modules/fts: Likewise.
73979         * modules/mkdir-p: Likewise.
73980
73981         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73982         This undoes the most recent change, since we're now addressing the
73983         problem in a different way.
73984
73985         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73986         into output, since the output might be called Makefile.am even
73987         if $makefile_name is something different.
73988         (func_import): Use $makefile_am rather than
73989         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73990         empty.
73991
73992         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73993
73994 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73997         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73998         recent change to stdint.m4, since we're now addressing the problem in a
73999         different way.
74000
74001 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/fcntl_h.m4: New file.
74004
74005 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * lib/fcntl_.h: New file.
74008         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74009         the fcntl module.
74010         * lib/dirchownmod.c: Likewise.
74011         * lib/fts.c: Likewise.
74012
74013         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74014         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74015         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74016         just before including <inttypes.h>, to avoid circular inclusion.
74017
74018 2006-08-28  Jim Meyering  <jim@meyering.net>
74019
74020         * doc/visibility.texi: Actually read and correct the grammar of the
74021         sentence affected by yesterday's change.
74022
74023 2006-08-28  Eric Blake  <ebb9@byu.net>
74024
74025         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74026         needs wrapper.
74027
74028 2006-08-28  Eric Blake  <ebb9@byu.net>
74029
74030         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74031
74032 2006-08-28  Eric Blake  <ebb9@byu.net>
74033
74034         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74035
74036 2006-08-28  Bruno Haible  <bruno@clisp.org>
74037
74038         * modules/c-strstr: New file, from GNU gettext.
74039         * MODULES.html.sh (String handling): Add c-strstr.
74040
74041 2006-08-28  Bruno Haible  <bruno@clisp.org>
74042
74043         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74044         macros.
74045         Reported by Eric Blake.
74046
74047 2006-08-28  Bruno Haible  <bruno@clisp.org>
74048
74049         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74050         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74051         * lib/vasprintf.c: Include errno.h, limits.h.
74052         (EOVERFLOW): New fallback definition.
74053         (vasprintf): Test here whether the string length is > INT_MAX.
74054         * lib/vsnprintf.c: Include errno.h, limits.h.
74055         (EOVERFLOW): New fallback definition.
74056         (vsnprintf): Fix bug when generated string was too long for the buffer.
74057         Test here whether the string length is > INT_MAX.
74058
74059 2006-08-28  Bruno Haible  <bruno@clisp.org>
74060
74061         * lib/inttypes_.h (SCNX*): Remove definitions.
74062         Reported by Eric Blake.
74063
74064 2006-08-28  Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/c-strstr.h: New file, from GNU gettext.
74067         * lib/c-strstr.c: New file, from GNU gettext.
74068
74069 2006-08-28  Bruno Haible  <bruno@clisp.org>
74070
74071         * gnulib-tool: Reorder some statements.
74072
74073 2006-08-28  Bruno Haible  <bruno@clisp.org>
74074
74075         * gnulib-tool: New option --makefile-name.
74076         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74077         $makefile_name.
74078         (func_import): Write $makefile_name to the cache file, and read it from
74079         there unless explicitly specified. Use $makefile_name as file name
74080         instead of Makefile.am. Adjust the recommendations accordingly.
74081
74082 2006-08-28  Bruno Haible  <bruno@clisp.org>
74083
74084         * gnulib-tool (func_verify_module): Check against misapplying patch.
74085
74086 2006-08-28  Bruno Haible  <bruno@clisp.org>
74087
74088         * gnulib-tool (func_relativize, func_relconcat): New functions.
74089         Give an error if --local-dir is given with --update.
74090         Remove trailing slashes from $local_gnulib_dir.
74091         (func_import): Store the relativized $local_gnulib_dir in
74092         gnulib-cache.m4, and read it from there if not specified explicitly.
74093
74094 2006-08-28  Bruno Haible  <bruno@clisp.org>
74095
74096         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74097         is the current directory. Respect also $local_gnulib_dir.
74098
74099 2006-08-28  Bruno Haible  <bruno@clisp.org>
74100             Simon Josefsson  <jas@extundo.com>
74101
74102         BeOS portability.
74103         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74104
74105 2006-08-27  Jim Meyering  <jim@meyering.net>
74106
74107         * doc/visibility.texi: Remove duplicate word: "pointer".
74108
74109 2006-08-26  Bruno Haible  <bruno@clisp.org>
74110
74111         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74112         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74113         (Makefile.am): Create inttypes.h from inttypes_.h.
74114         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74115
74116         * modules/imaxabs: New file.
74117
74118         * modules/imaxdiv: New file.
74119
74120 2006-08-26  Bruno Haible  <bruno@clisp.org>
74121
74122         * m4/inttypes.m4: New file.
74123         * m4/_inttypes_h.m4: Remove file.
74124         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74125         PRI_MACROS_BROKEN.
74126         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74127
74128         * m4/imaxabs.m4: New file.
74129
74130         * m4/imaxdiv.m4: New file.
74131
74132 2006-08-26  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/inttypes_.h: New file.
74135         * lib/inttypes.h: Remove file.
74136         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74137
74138         * lib/imaxabs.c: New file.
74139
74140         * lib/imaxdiv.c: New file.
74141
74142 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         New config-h module, so that "make" output needn't be cluttered
74145         by -DHAVE_CONFIG_H.
74146         * MODULES.html.sh (Support for building libraries and executables):
74147         Add config-h.
74148         * modules/config-h: New file.
74149         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74150         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74151         the config-h module is used.
74152
74153         New configmake module, so that "make" output needn't be cluttered
74154         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74155         * MODULES.html.sh (Support for building libraries and executables):
74156         Add configmake.
74157         * modules/configmake: New file.
74158
74159 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * m4/config-h.m4: New file.
74162
74163 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * config/srclist.txt: Add elisp-comp.
74166
74167 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * MODULES.html.sh (Support for building libraries and executables):
74170         Add elisp-comp.
74171         * build-aux/elisp-comp: New file.
74172         * modules/elisp-comp: New file.
74173
74174 2006-08-24  Bruno Haible  <bruno@clisp.org>
74175
74176         * gnulib-tool (func_create_testdir): Use non-default values of
74177         sourcebase and m4base.
74178
74179 2006-08-24  Bruno Haible  <bruno@clisp.org>
74180
74181         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74182         HTML structure.
74183
74184 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * modules/openat (Depends-on): Add lchown.
74187
74188 2006-08-23  Bruno Haible  <bruno@clisp.org>
74189
74190         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74191         of gl_LOCK_EARLY instead of gl_LOCK.
74192
74193 2006-08-23  Bruno Haible  <bruno@clisp.org>
74194
74195         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74196         on OSF/1 to no.
74197         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74198
74199 2006-08-23  Bruno Haible  <bruno@clisp.org>
74200
74201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74202         as unusable.
74203
74204         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74205         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74206         (gl_LOCK): New macro.
74207
74208 2006-08-22  Simon Josefsson  <jas@extundo.com>
74209
74210         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74211         to md5 module.
74212
74213 2006-08-22  Simon Josefsson  <jas@extundo.com>
74214
74215         * MODULES.html.sh: Add "Support for maintaining and release
74216         projects".
74217
74218         * build-aux/gnupload: New file, from coreutils.
74219
74220 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74221
74222         Avoid the need for AC_LIBSOURCES in m4 macros.
74223         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74224         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74225         * modules/check-version (EXTRA_DIST): Add check-version.h.
74226         * modules/crc (EXTRA_DIST): Add crc.h.
74227         * modules/des (EXTRA_DIST): Add des.h.
74228         * modules/gc (EXTRA_DIST): Add gc.h.
74229         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74230         * modules/getline (EXTRA_DIST): Add getline.h.
74231         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74232         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74233         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74234         * modules/md2 (EXTRA_DIST): Add md2.h.
74235         * modules/md4 (EXTRA_DIST): Add md4.h.
74236         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74237         * modules/read-file (EXTRA_DIST): Add read-file.h.
74238         * modules/readline (EXTRA_DIST): Add readline.h.
74239         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74240         rijndael-api-fst.h.
74241
74242 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * m4/rijndael.m4 (gl_ARCFOUR):
74245         * m4/arctwo.m4 (gl_ARCTWO):
74246         * m4/check-version.m4 (gl_CHECK_VERSION):
74247         * m4/crc.m4 (gl_CRC):
74248         * m4/des.m4 (gl_DES):
74249         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74250         * m4/gc.m4 (gl_GC):
74251         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74252         * m4/getline.m4 (gl_FUNC_GETLINE):
74253         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74254         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74255         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74256         * m4/md2.m4 (gl_MD2):
74257         * m4/md4.m4 (gl_MD4):
74258         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74259         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74260         * m4/readline.m4 (gl_FUNC_READLINE):
74261         * m4/rijndael.m4 (gl_RIJNDAEL):
74262         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74263         to get the necessary .h files and whatnot.
74264
74265 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74268         gnulib rather than the other way around.
74269         * config/srclistvars.sh (COREUTILS): Remove.
74270
74271 2006-08-22  Jim Meyering  <jim@meyering.net>
74272
74273         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74274
74275         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74276
74277 2006-08-22  Eric Blake  <ebb9@byu.net>
74278
74279         * modules/regexprops-generic: New file.
74280         * MODULES.html.sh (Support for building documentation): List it.
74281
74282 2006-08-22  Eric Blake  <ebb9@byu.net>
74283
74284         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74285         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74287         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74288
74289 2006-08-22  Bruno Haible  <bruno@clisp.org>
74290
74291         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74292         and lib_LTLIBRARIES like the other lib_* variables.
74293
74294 2006-08-22  Bruno Haible  <bruno@clisp.org>
74295
74296         * build-aux/x-to-1.in: New file, from GNU gettext.
74297
74298 2006-08-22  Bruno Haible  <bruno@clisp.org>
74299
74300         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74301         <utmpx.h> exists.
74302
74303 2006-08-22  Bruno Haible  <bruno@clisp.org>
74304
74305         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74306         <utmpx.h> exists.
74307
74308 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74309
74310         BeOS portability.
74311         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74312         exist.
74313         Problem reported by Bruno Haible.
74314
74315 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         Avoid the need for AC_LIBSOURCES in m4 macros.
74318         * modules/acl (EXTRA_DIST): Add acl.h.
74319         * modules/argmatch (Files): Add m4/argmatch.m4.
74320         (configure.ac): Add gl_ARGMATCH.
74321         (EXTRA_DIST): Renamed from lib_SOURCES, for
74322         consistency with the other modules.  Remove argmatch.c.
74323         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74324         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74325         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74326         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74327         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74328         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74329         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74330         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74331         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74332         * modules/closeout (EXTRA_DIST): Add closeout.h.
74333         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74334         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74335         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74336         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74337         dirname.h; remove basename.c and stripslash.c.
74338         * modules/exclude (EXTRA_DIST): Add exclude.h.
74339         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74340         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74341         * modules/file-type (EXTRA_DIST): Add file-type.h.
74342         * modules/filemode (EXTRA_DIST): Add filemode.h.
74343         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74344         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74345         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74346         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74347         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74348         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74349         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74350         * modules/getdate (EXTRA_DIST): Add getdate.c.
74351         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74352         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74353         * modules/getpass (EXTRA_DIST): Add getpass.h.
74354         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74355         * modules/group-member (EXTRA_DIST): Add group-member.h.
74356         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74357         * modules/hash (EXTRA_DIST): Add hash.h.
74358         * modules/human (EXTRA_DIST): Add human.h.
74359         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74360         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74361         * modules/lchown (EXTRA_DIST): Add lchown.h.
74362         * modules/long-options (EXTRA_DIST): Add long-options.h.
74363         * modules/lstat (EXTRA_DIST): Add lstat.h.
74364         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74365         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74366         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74367         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74368         * modules/memxor (EXTRA_DIST): Add memxor.h.
74369         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74370         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74371         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74372         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74373         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74374         * modules/physmem (EXTRA_DIST): Add physmem.h.
74375         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74376         * modules/posixver (EXTRA_DIST): Add posixver.h.
74377         * modules/quote (EXTRA_DIST): Add quote.h.
74378         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74379         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74380         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74381         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74382         regex_internal.h regexec.c.
74383         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74384         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74385         * modules/same (EXTRA_DIST): Add same.h.
74386         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74387         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74388         * modules/savedir (EXTRA_DIST): Add savedir.h.
74389         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74390         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74391         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74392         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74393         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74394         * modules/strdup (EXTRA_DIST): Add strdup.h.
74395         * modules/strftime (EXTRA_DIST): Add strftime.h.
74396         * modules/strndup (EXTRA_DIST): Add strndup.h.
74397         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74398         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74399         * modules/time_r (EXTRA_DIST): Add time_r.h.
74400         * modules/timespec (EXTRA_DIST): Add timespec.h.
74401         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74402         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74403         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74404         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74405         * modules/userspec (EXTRA_DIST): Add userspec.h.
74406         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74407         * modules/utimens (EXTRA_DIST): Add utimens.h.
74408         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74409         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74410         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74411         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74412         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74413         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74414         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74415         * modules/yesno (EXTRA_DIST): Add yesno.h.
74416
74417 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74420
74421         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74422         * m4/dev-ino.m4, same-inode.m4: Remove.
74423
74424         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74425         * m4/acl.m4 (AC_FUNC_ACL):
74426         * m4/backupfile.m4 (gl_BACKUPFILE):
74427         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74428         * m4/canon-host.m4 (gl_CANON_HOST):
74429         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74431         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74432         * m4/cloexec.m4 (gl_CLOEXEC):
74433         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74434         * m4/closeout.m4 (gl_CLOSEOUT):
74435         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74436         * m4/dirname.m4 (gl_DIRNAME):
74437         * m4/exclude.m4 (gl_EXCLUDE):
74438         * m4/exitfail.m4 (gl_EXITFAIL):
74439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74440         * m4/file-type.m4 (gl_FILE_TYPE):
74441         * m4/filemode.m4 (gl_FILEMODE):
74442         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74443         * m4/fpending.m4 (gl_FUNC_FPENDING):
74444         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74445         * m4/fts.m4 (gl_FUNC_FTS):
74446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74447         * m4/getdate.m4 (gl_GETDATE):
74448         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74449         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74450         * m4/getpass.m4 (gl_FUNC_GETPASS):
74451         * m4/gettime.m4 (gl_GETTIME):
74452         * m4/getugroups.m4 (gl_GETUGROUPS):
74453         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74454         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74455         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74456         * m4/hash.m4 (gl_HASH):
74457         * m4/idcache.m4 (gl_IDCACHE):
74458         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74459         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74460         * m4/long-options.m4 (gl_LONG_OPTIONS):
74461         * m4/lstat.m4 (gl_FUNC_LSTAT):
74462         * m4/md5.m4 (gl_MD5):
74463         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74464         * m4/memcoll.m4 (gl_MEMCOLL):
74465         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74466         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74467         * m4/memxor.m4 (gl_MEMXOR):
74468         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74469         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74470         * m4/modechange.m4 (gl_MODECHANGE):
74471         * m4/mountlist.m4 (gl_MOUNTLIST):
74472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74473         * m4/openat.m4 (gl_FUNC_OPENAT):
74474         * m4/pathmax.m4 (gl_PATHMAX):
74475         * m4/physmem.m4 (gl_PHYSMEM):
74476         * m4/posixtm.m4 (gl_POSIXTM):
74477         * m4/posixver.m4 (gl_POSIXVER):
74478         * m4/quote.m4 (gl_QUOTE):
74479         * m4/quotearg.m4 (gl_QUOTEARG):
74480         * m4/readtokens.m4 (gl_READTOKENS):
74481         * m4/readutmp.m4 (gl_READUTMP):
74482         * m4/regex.m4 (gl_REGEX):
74483         * m4/safe-read.m4 (gl_SAFE_READ):
74484         * m4/safe-write.m4 (gl_SAFE_WRITE):
74485         * m4/same.m4 (gl_SAME):
74486         * m4/save-cwd.m4 (gl_SAVE_CWD):
74487         * m4/savedir.m4 (gl_SAVEDIR):
74488         * m4/settime.m4 (gl_SETTIME):
74489         * m4/sha1.m4 (gl_SHA1):
74490         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74491         * m4/stat-macros.m4 (gl_STAT_MACROS):
74492         * m4/stat-time.m4 (gl_STAT_TIME):
74493         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74494         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74495         * m4/strdup.m4 (gl_FUNC_STRDUP):
74496         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74497         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74498         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74499         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74500         * m4/time_r.m4 (gl_TIME_R):
74501         * m4/timespec.m4 (gl_TIMESPEC):
74502         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74503         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74504         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74505         * m4/userspec.m4 (gl_USERSPEC):
74506         * m4/utimecmp.m4 (gl_UTIMECMP):
74507         * m4/utimens.m4 (gl_UTIMENS):
74508         * m4/xalloc.m4 (gl_XALLOC):
74509         * m4/xgetcwd.m4 (gl_XGETCWD):
74510         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74511         * m4/xreadlink.m4 (gl_XREADLINK):
74512         * m4/xstrtod.m4 (gl_XSTRTOD):
74513         * m4/yesno.m4 (gl_YESNO):
74514         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74515         to get the necessary .h files and whatnot.
74516
74517 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74518             Bruno Haible  <bruno@clisp.org>
74519
74520         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74521         /bin/sh understanding of '!' conditional negation.
74522
74523 2006-08-21  Jim Meyering  <jim@meyering.net>
74524
74525         * modules/openat (Depends-on): Really alphabetize.
74526
74527         * modules/acl (Depends-on): Add error and quote.
74528
74529         * check-module (find_included_lib_files): Add at-func.c to the
74530         ok-to-include-more-than-once white list.
74531
74532         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74533
74534 2006-08-21  Bruno Haible  <bruno@clisp.org>
74535
74536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74537         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74538         Reported by Martin Lambers <marlam@marlam.de>.
74539
74540 2006-08-21  Bruno Haible  <bruno@clisp.org>
74541
74542         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74543         specify an installation location, don't emit a noinst_LIBRARIES or
74544         noinst_LTLIBRARIES assignment.
74545
74546 2006-08-21  Bruno Haible  <bruno@clisp.org>
74547
74548         BeOS portability.
74549         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74550         BeOS has mbrtowc() but no <wctype.h>.
74551
74552 2006-08-21  Bruno Haible  <bruno@clisp.org>
74553
74554         BeOS portability.
74555         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74556         exist.
74557
74558 2006-08-21  Bruno Haible  <bruno@clisp.org>
74559
74560         BeOS portability.
74561         * lib/mbchar.h: Include <wctype.h> only if it exists.
74562
74563 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         Remove files that are no longer needed by their respective modules.
74566         * m4/obstack.m4: Remove.
74567         * m4/strerror_r.m4: Remove.
74568         * m4/uint32_t.m4: Remove.
74569         * m4/uintptr_t.m4: Remove.
74570         * m4/ullong_max.m4: Remove.
74571         * m4/xstrtoimax.m4: Remove.
74572         * m4/xstrtoumax.m4: Remove.
74573
74574         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74575         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74576         dependencies now capture this.
74577
74578         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74579         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74580         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74581         * m4/human.m4 (gl_HUMAN): Likewise.
74582         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74583         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74584
74585         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74586
74587         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74588         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74589         stdint.
74590         * m4/human.m4 (gl_HUMAN): Likewise.
74591         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74592         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74593         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74594         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74595         * m4/xstrtol (gl_XSTRTOL): Likewise.
74596
74597         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74598         AC_TYPE_LONG_LONG_INT.
74599         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74600         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74601         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74602         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74603
74604         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74605         on stdbool.
74606
74607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74608         (gl_PREREQ_XSTRTOUL): Remove.
74609
74610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74611
74612         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74613         mode.
74614
74615 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         Add and change modules to make it easier for coreutils to use
74618         gnulib-tool.
74619         * modules/backupfile (Files): Remove m4/d-ino.m4.
74620         (Depends-on): Add d-ino.
74621         * modules/cycle-check (Depends-on): Add stdint.
74622         (lib_SOURCES): Add cycle-check.h.
74623         * modules/d-ino: New module.
74624         * modules/d-type: New module.
74625         * modules/error (Files): Remove m4/strerror_r.m4.
74626         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74627         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74628         m4/inttypes_h.m4, m4/uintmax_t.m4.
74629         (Depends-on): Add stdint.
74630         (lib_SOURCES): Add fsusage.h.
74631         * modules/getcwd (Files): Remove d-ino.m4.
74632         (Depends-on): Add d-ino.
74633         * modules/getndelim2 (Depends-on): Add stdint.
74634         * modules/glob (Files): Remove m4/d-type.m4.
74635         (Depends-on): Add d-type.
74636         * modules/host-os: New module.
74637         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74638         m4/inttypes_h.m4, m4/uintmax_t.m4.
74639         * Depends-on: Add stdint.
74640         (lib_SOURCES): Add human.h.
74641         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74642         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74643         m4/uintmax_t.m4, m4/ulonglong.m4.
74644         (Depends-on): Add stdint.
74645         (EXTRA_DIST): Add inttostr.h.
74646         * modules/lchmod: New module.
74647         * modules/link-follow: New module.
74648         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74649         (Depends-on): Add lchmod.
74650         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74651         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74652         (Depends-on): Add stdint.
74653         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74654         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74655         (Depends-on): Add stdint.
74656         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74657         * modules/perl: New module.
74658         * modules/regex (Depends-on): Add stdint.
74659         * modules/rmdir-errno: New module.
74660         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74661         m4/intmax_t.m4.
74662         (Depends-on): Add stdint.
74663         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74664         m4/uintmax_t.m4.
74665         (Depends-on): Add stdint.
74666         * modules/unlink-busy: New module.
74667         * modules/utimecmp (Depends-on): Add stdint.
74668         * modules/uptime: New module.
74669         * modules/winsz-ioctl: New module.
74670         * modules/winsz-termios: New module.
74671         * modules/xnanosleep (Depends-on): Add nanosleep.
74672         * modules/ullong_max: Remove.
74673         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74674         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74675         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74676         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74677         (Depends-on): Add inttypes.
74678         (lib_SOURCES): Add xstrtol.h.
74679         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74680         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74681         * MODULES.html.sh: Move 'assert' into the assert section.
74682         Move 'dummy' into the linking section.
74683         Remove ullong_max.
74684         Add section for compatibility checks for POSIX:2001 functions,
74685         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74686         winsz-ioctl, and winsz-termios into it.
74687         Add lchmod.
74688         Add top-level Misc section and put host-os, perl, and uptime
74689         into it.
74690
74691 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74694         now assume the stdint module.  Do not include inttypes.h.
74695         * lib/fsusage.h: Likewise.
74696         * lib/getndelim2.c: Likewise.
74697         * lib/human.h: Likewise.
74698         * lib/inttostr.h: Likewise.
74699         * lib/obstack.c: Likewise.
74700         * lib/regex_internal.h: Likewise.
74701         * lib/tempname.c: Likewise.
74702         * lib/utimecmp.c: Likewise.
74703         * lib/xstrtol.h: Likewise.
74704
74705         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74706
74707         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74708         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74709         * lib/xtime.h: Likewise.
74710
74711 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * modules/openat (Files): Add lib/fchmodat.c.
74714         Fixes problem reported by Jay Youngman.
74715
74716 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74719         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74720
74721 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74722             Bruno Haible  <bruno@clisp.org>
74723
74724         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74725         and is a script that invokes bison. Tighten the code. Add comments.
74726
74727 2006-08-18  Jim Meyering  <jim@meyering.net>
74728
74729         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74730         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74731         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74732         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74733
74734 2006-08-18  Bruno Haible  <bruno@clisp.org>
74735
74736         * modules/bison-i18n: New file.
74737         * MODULES.html.sh (Internationalization functions): Add it.
74738
74739 2006-08-18  Bruno Haible  <bruno@clisp.org>
74740
74741         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74742         sys/statvfs.h. When getmntinfo was found, check its declaration and
74743         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74744
74745 2006-08-18  Bruno Haible  <bruno@clisp.org>
74746
74747         * m4/bison-i18n.m4: New file, from bison.
74748
74749 2006-08-18  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74752         (ME_DUMMY): Treat "kernfs" as a dummy.
74753         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74754
74755 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         Update from coreutils.
74758
74759         2006-08-15  Jim Meyering  <jim@meyering.net>
74760
74761         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74762
74763         2006-01-17  Jim Meyering  <jim@meyering.net>
74764
74765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74766
74767         2006-01-11  Jim Meyering  <jim@meyering.net>
74768
74769         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74770         Check for the lchmod function.
74771
74772 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         Update from coreutils.
74775
74776         * lib/__fpending.h: Add copyright notice.
74777         * lib/fprintftime.h: Likewise.
74778         * lib/savedir.c: Use (C) in copyright notice.
74779         * lib/savedir.h: Likewise.
74780
74781         2006-08-15  Jim Meyering  <jim@meyering.net>
74782
74783         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74784         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74785         in support of the EXPECTED_ERRNO macro.
74786         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74787         definitions.  Instead, define the appropriate symbols and include
74788         "at-func.c".
74789         * lib/mkdirat.c (mkdirat): Likewise.
74790         * lib/fchmodat.c (fchmodat): Likewise.
74791         (ENOSYS): Remove definition.
74792         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74793         it.  Don't include "unistd--.h" -- it wasn't ever used.
74794
74795         2006-01-17  Jim Meyering  <jim@meyering.net>
74796
74797         Rewrite fts.c not to change the current working directory,
74798         by using openat, fstatat, fdopendir, etc..
74799
74800         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74801         (HAVE_OPENAT_SUPPORT): Define.
74802         [_LIBC] (fchdir): Don't undef or define; no longer used.
74803         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74804         Now, this `function' always succeeds, and consumes its file descriptor
74805         parameter -- so callers must not close such FDs.  Update callers.
74806         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74807         (diropen): Add parameter, SP.  Adjust all callers.
74808         Implement using diropen_fd, rather than open.
74809         (fts_open): Initialize new member, fts_cwd_fd.
74810         Remove fts_rft-setting code.
74811         (fts_close): Close fts_cwd_fd, if necessary.
74812         (__opendir2): Define in terms of opendir or opendirat,
74813         depending on whether the FST_NOCHDIR flag is set.
74814         (fts_build): Since fts_safe_changedir consumes its FD, and since
74815         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74816         and close the dup'd file descriptor upon failure.
74817         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74818         (fts_safe_changedir): Tweak semantics to reflect that this function
74819         now calls cwd_advance_fd and hence consumes its FD argument.
74820         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74821         [struct FTS] (fts_rft): Remove now-unused member.
74822         [struct FTS] (fts_cycle.state): Improve comment.
74823
74824         * lib/openat.c (openat_needs_fchdir): New function.
74825         * lib/openat.h (openat_needs_fchdir): Declare it.
74826
74827 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74830         Problem and fix reported by Pádraig Brady in
74831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74832
74833 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74836
74837 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * lib/memcoll.c (memcoll): Optimize for the common case where the
74840         arguments are bytewise equal.
74841
74842 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * doc/regexprops-generic.texi: Add a copyright notice.
74845
74846 2006-08-15  Bruno Haible  <bruno@clisp.org>
74847
74848         * modules/tmpdir (License): Change to LGPL.
74849
74850 2006-08-15  Bruno Haible  <bruno@clisp.org>
74851
74852         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74853         module.
74854
74855 2006-08-14  Simon Josefsson  <jas@extundo.com>
74856
74857         * config/srclist.txt: Add gnupload.
74858
74859 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         Change copyright notice from LGPL 2 to GPL 2, since that's the
74862         standard form used in the gnulib repository.
74863         * tests/test-lock.c: Likewise.
74864         * tests/test-stdint.c: Likewise.
74865         * tests/test-tls.c: Likewise.
74866
74867         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74868         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74869         Add copyright notice.
74870
74871         * check-module: Add copyright notice.  Output a copyright
74872         notice if "--version" is specified.
74873         * modules/COPYING: New file.
74874         * tests/test-getaddrinfo.c: Add copyright notice.
74875         * tests/test-verify.c: Likewise.
74876
74877 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         Change copyright notice from LGPL 2 to GPL 2, since that's the
74880         standard form used in the gnulib repository.
74881         * lib/lock.c: LGPL -> GPL.
74882         * lib/lock.h: Likewise.
74883         * lib/strnlen1.c: Likewise.
74884         * lib/strnlen1.h: Likewise.
74885         * lib/tls.c: Likewise.
74886         * lib/tls.h: Likewise.
74887         * lib/tmpdir.c: Likewise.
74888
74889         * lib/TODO: Remove; this belongs only in coreutils.
74890
74891 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         Add copyright notices to long-enough files that lack them, since
74894         otherwise the files aren't clearly free.  Use the same notice that
74895         getdate.texi already uses.
74896         * doc/alloca-opt.texi: Add copyright notice.
74897         * doc/alloca.texi: Likewise.
74898         * doc/ctime.texi: Likewise.
74899         * doc/functions.texi: Likewise.
74900         * doc/gcd.texi: Likewise.
74901         * doc/gnulib-tool.texi: Likewise.
74902         * doc/inet_ntoa.texi: Likewise.
74903         * doc/visibility.texi: Likewise.
74904
74905         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74906         * doc/quote.texi: Add copyright notice.
74907
74908         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74909         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74910         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74911         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74912         is now obsolete, and give a pointer to the Sun list.
74913         Add copyright notice.
74914
74915 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * config/srclistvars.sh: Add copyright notice.
74918
74919 2006-08-14  Eric Blake  <ebb9@byu.net>
74920
74921         Import the following change from libc:
74922
74923         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74924
74925         Upstream bug 2997.
74926         * lib/misc/error.c: Add space between program name and message if file
74927         name is missing.
74928
74929 2006-08-12  Karl Berry  <karl@gnu.org>
74930
74931         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74932         remove, these originate in gnulib now.
74933
74934 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74935
74936         * doc/Makefile (standards.info standards.html standards.dvi):
74937         Also depend on make-stds.texi.
74938
74939 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74942         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74943
74944         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74945         in wchar_t.  Problem reported by Eric Blake.
74946
74947         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74948         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74949         Also, help the compiler to keep LEN in a register.
74950
74951 2006-08-11  Eric Blake  <ebb9@byu.net>
74952
74953         * users.txt: Sort.  Add tar.
74954
74955 2006-08-11  Bruno Haible  <bruno@clisp.org>
74956
74957         * users.txt: New file.
74958
74959 2006-08-11  Bruno Haible  <bruno@clisp.org>
74960
74961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74962         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74963
74964 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * modules/snprintf (Depends-on): Remove minmax.
74967         (Maintainer): Add self and Bruno.
74968
74969 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74972         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74973         (EOVERFLOW): Define if the system does not.
74974         Do not include "minmax.h"; it wasn't used.
74975         (snprintf): Don't assume size_t promotes to an unsigned type.
74976         Fix bug when generated string was too long for the buffer: the
74977         buffer's contents are supposed to be the initial prefix of the
74978         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74979         exceeds INT_MAX; do the check ourselves.
74980
74981         Import the following changes from libc:
74982
74983         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74984
74985         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74986         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74987         set wc to the byte which couldn't be converted.
74988         (re_string_reconstruct): Don't clear valid_raw_len before calling
74989         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74990         tip_context using re_string_context_at.
74991
74992         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74993
74994         * lib/posix/regex.h: g++ still cannot handled [restrict].
74995
74996         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74997
74998         * lib/posix/regex.h: Remove special handling for VMS.
74999
75000 2006-08-10  Jim Meyering  <jim@meyering.net>
75001
75002         * modules/same-inode: New module.
75003         * modules/dev-ino: New module.
75004         * modules/cycle-check: Depend on these modules, rather than simply
75005         including their .h files.
75006         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75007         required via m4/cycle-check.m4.
75008         * modules/same: Depend on new same-inode module, rather than
75009         including same-inode.h.
75010         * modules/chdir-safer: New file.
75011
75012         * modules/chown (Depends-on): Add stat-macros.
75013
75014 2006-08-10  Jim Meyering  <jim@meyering.net>
75015
75016         * m4/cycle-check.m4: New file.
75017         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75018         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75019
75020 2006-08-10  Eric Blake  <ebb9@byu.net>
75021
75022         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75023         in from original proposal.
75024
75025 2006-08-10  Eric Blake  <ebb9@byu.net>
75026         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75027
75028         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75029         namespace.
75030
75031 2006-08-10  Bruno Haible  <bruno@clisp.org>
75032
75033         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75034         as well.
75035
75036 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         Sync from coreutils.
75039
75040         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75041
75042         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75043         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75044
75045 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * modules/restrict: Remove; no longer needed now that we assume
75048         Autoconf 2.59 or later.
75049         * MODULES.html.sh: Remove 'restrict'.
75050         * modules/argp (Depends-on): Remove 'restrict'.
75051         * modules/base64 (Depends-on): Likewise.
75052         * modules/gc (Depends-on): Likewise.
75053         * modules/getaddrinfo (Depends-on): Likewise.
75054         * modules/glob (Depends-on): Likewise.
75055         * modules/inet_ntop (Depends-on): Likewise.
75056         * modules/inet_pton (Depends-on): Likewise.
75057         * modules/memxor (Depends-on): Likewise.
75058         * modules/regex (Depends-on): Likewise.
75059         * modules/strtok_r (Depends-on): Likewise.
75060         * modules/time_r (Depends-on): Likewise.
75061
75062 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75065         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75066         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75067         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75068         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75069         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75070         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75071         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75072
75073         Merge from coreutils.
75074         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75075         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75076         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75077         * m4/time_r.m4 (gl_TIME_R): Likewise.
75078
75079 2006-08-09  Karl Berry  <karl@gnu.org>
75080
75081         * config/srclist.txt: no more gettext-tools, per Bruno.
75082
75083 2006-08-08  Eric Blake  <ebb9@byu.net>
75084
75085         * modules/verror: New module.
75086         * MODULES.html.sh: Document it.
75087
75088 2006-08-08  Eric Blake  <ebb9@byu.net>
75089
75090         * lib/verror.h, lib/verror.c: New files.
75091
75092 2006-08-08  Eric Blake  <ebb9@byu.net>
75093
75094         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75095         verror_at_line output complies with GNU Coding Standards even when
75096         file is NULL.
75097
75098 2006-08-07  Bruno Haible  <bruno@clisp.org>
75099
75100         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75101         versions of AIX.
75102         Reported by Ralf Wildenhues.
75103
75104 2006-08-07  Bruno Haible  <bruno@clisp.org>
75105
75106         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75107         in an AC_DEFUN. Needed so that the autoconf snippets can use
75108         AC_REQUIRE.
75109
75110 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75111
75112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75113         Initialize pkgdata_DATA.
75114         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75115         overriding it.
75116
75117 2006-08-06  Eric Blake  <ebb9@byu.net>
75118
75119         * lib/error.h: Fold in some upstream changes from glibc.
75120         * lib/error.c: Likewise.
75121
75122 2006-08-04  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75125         Make the mostlyclean-local rule depend on mostlyclean-generic.
75126         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75127
75128 2006-07-31  Bruno Haible  <bruno@clisp.org>
75129
75130         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75131         <stdlib.h>, <string.h>.
75132
75133 2006-07-30  Bruno Haible  <bruno@clisp.org>
75134
75135         * modules/readlink (License): Change to LGPL.
75136
75137 2006-07-30  Bruno Haible  <bruno@clisp.org>
75138
75139         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75140         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75141         set PKGDATADIR to point to it.
75142
75143 2006-07-30  Bruno Haible  <bruno@clisp.org>
75144
75145         * modules/csharpexec (configure.ac): Comment out macro invocation.
75146         * modules/javaexec (configure.ac): Likewise.
75147         * modules/javacomp-script (configure.ac): Likewise.
75148
75149         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75150
75151 2006-07-30  Bruno Haible  <bruno@clisp.org>
75152
75153         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75154         linked-list.
75155
75156 2006-07-30  Bruno Haible  <bruno@clisp.org>
75157
75158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75159
75160 2006-07-30  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75163         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75164         get removed.
75165
75166 2006-07-29  Bruno Haible  <bruno@clisp.org>
75167
75168         Make it possible for gnulib-tool to work with locally modified or
75169         augmented gnulib repositories.
75170         * gnulib-tool (func_usage): Document --local-dir option.
75171         (local_gnulib_dir): New variable.
75172         Handle --local-dir option.
75173         (func_lookup_file): New function.
75174         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75175         (func_get_description, func_get_filelist, func_get_description,
75176         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75177         func_get_automake_snippet, func_get_include_directive,
75178         func_get_license, func_get_maintainer): Use func_lookup_file.
75179         (func_import, func_create_testdir): Use func_lookup_file.
75180
75181 2006-07-29  Bruno Haible  <bruno@clisp.org>
75182
75183         * modules/setenv (Depends-on): Add unistd.
75184
75185 2006-07-29  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75188
75189 2006-07-29  Bruno Haible  <bruno@clisp.org>
75190
75191         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75192
75193 2006-07-29  Bruno Haible  <bruno@clisp.org>
75194
75195         * gnulib-tool (import, update): If there is no Makefile.am, look at
75196         aclocal.m4, instead of bailing out.
75197
75198 2006-07-29  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75201         Categorize the options by when they are useful.
75202
75203 2006-07-29  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool (func_usage): Document option --no-libtool.
75206         Handle option --no-libtool.
75207         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75208         for changed semantics of $libtool variable.
75209         (func_import): Likewise. If libtool is not used, show this through
75210         an option --no-libtool.
75211         (func_create_testdir): Update.
75212
75213 2006-07-29  Bruno Haible  <bruno@clisp.org>
75214
75215         * gnulib-tool (func_import): Extend error message about missing
75216         --doc-base.
75217
75218 2006-07-29  Bruno Haible  <bruno@clisp.org>
75219
75220         * gnulib-tool (func_import): Don't create the $docbase directory if
75221         there is no file to store there.
75222
75223 2006-07-29  Bruno Haible  <bruno@clisp.org>
75224
75225         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75226         relevant, look for configure.ac there, not in the current directory.
75227         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75228
75229 2006-07-29  Bruno Haible  <bruno@clisp.org>
75230
75231         * gnulib-tool (SORT): New variable.
75232         (func_usage): Undocument --assume-autoconf option.
75233         Remove --assume-autoconf option handling.
75234         (autoconf_minversion): Determine from the contents of configure.ac.
75235         (func_import): Remove autoconf_minversion handling.
75236         Suggested by Eric Blake.
75237
75238 2006-07-29  Bruno Haible  <bruno@clisp.org>
75239
75240         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75241
75242 2006-07-29  Bruno Haible  <bruno@clisp.org>
75243
75244         * config/srclist.txt (*setenv.[ch]): Remove rules.
75245
75246 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75247
75248         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75249
75250 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75251
75252         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75253         arpa/inet.h.
75254
75255 2006-07-28  Simon Josefsson  <jas@extundo.com>
75256
75257         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75258         * modules/inet_pton (Depends-on): Likewise.
75259
75260 2006-07-28  Simon Josefsson  <jas@extundo.com>
75261
75262         * m4/netinet_in_h.m4: New file.
75263
75264 2006-07-28  Simon Josefsson  <jas@extundo.com>
75265
75266         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75267         #include's.
75268
75269 2006-07-28  Simon Josefsson  <jas@extundo.com>
75270
75271         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75272         #include's.
75273
75274 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75277         setgid on directories only if they set these bits.
75278         * lib/modechange.h: Remove obsolete comment about masks.
75279
75280 2006-07-28  Eric Blake  <ebb9@byu.net>
75281
75282         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75283         macro expansion.
75284
75285 2006-07-28  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75288
75289 2006-07-28  Bruno Haible  <bruno@clisp.org>
75290
75291         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75292
75293 2006-07-28  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75296         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75297         Define fallbacks.
75298         Avoids link error on FreeBSD 4.x.
75299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75300
75301         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75302         encoding.
75303         * lib/mbswidth.c (iswcntrl): Likewise.
75304
75305 2006-07-27  Bruno Haible  <bruno@clisp.org>
75306
75307         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75308         test.
75309
75310 2006-07-27  Bruno Haible  <bruno@clisp.org>
75311
75312         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75313         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75314         defined.
75315
75316 2006-07-26  Eric Blake  <ebb9@byu.net>
75317
75318         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75319
75320 2006-07-26  Eric Blake  <ebb9@byu.net>
75321
75322         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75323         like mingw that lack mkstemp.
75324         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75325         avoid compilation warning on mingw.
75326
75327 2006-07-26  Bruno Haible  <bruno@clisp.org>
75328
75329         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75330         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75331         INT_FAST*_MIN, INTPTR_MIN.
75332
75333 2006-07-25  Bruno Haible  <bruno@clisp.org>
75334
75335         * modules/version-etc (Depends-on): Add stdarg.
75336
75337 2006-07-25  Bruno Haible  <bruno@clisp.org>
75338
75339         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75340         complex commands.
75341
75342 2006-07-25  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75345         defined in <stdarg.h> or config.h.
75346
75347 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75350         (gl_STDIO_SAFER): Remove.
75351
75352 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * MODULES.html.sh (File stream based Input/Output):
75355         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75356         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75357         * modules/fopen-safer, modules/tmpfile-safer: New files.
75358         * modules/stdio-safer: Remove.
75359
75360 2006-07-24  Bruno Haible  <bruno@clisp.org>
75361
75362         * modules/tmpdir: New file.
75363         * MODULES.html.sh (File system functions): Add it.
75364
75365 2006-07-24  Bruno Haible  <bruno@clisp.org>
75366
75367         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75368         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75369
75370 2006-07-24  Bruno Haible  <bruno@clisp.org>
75371
75372         * modules/clean-temp: New file.
75373
75374 2006-07-24  Bruno Haible  <bruno@clisp.org>
75375
75376         * m4/tmpdir.m4: New file, from GNU gettext.
75377
75378 2006-07-24  Bruno Haible  <bruno@clisp.org>
75379
75380         * lib/tmpdir.h: New file, from GNU gettext.
75381         * lib/tmpdir.c: New file, from GNU gettext.
75382
75383 2006-07-24  Bruno Haible  <bruno@clisp.org>
75384
75385         * lib/clean-temp.h: New file, from GNU gettext.
75386         * lib/clean-temp.c: New file, from GNU gettext.
75387
75388 2006-07-23  Eric Blake  <ebb9@byu.net>
75389
75390         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75391         (Depends-on): Add binary-io.
75392
75393 2006-07-23  Eric Blake  <ebb9@byu.net>
75394
75395         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75396
75397 2006-07-23  Eric Blake  <ebb9@byu.net>
75398
75399         * lib/tmpfile-safer.c: New file.
75400         * lib/stdio-safer.h (fopen_safer): Add prototype.
75401         * lib/stdio--.h (tmpfile): Make safer.
75402
75403 2006-07-23  Bruno Haible  <bruno@clisp.org>
75404
75405         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75406         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75407         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75408         gl_linked_remove_at): Use it.
75409
75410 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75411         and Simon Josefsson <jas@extundo.com>
75412
75413         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75414
75415         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75416
75417 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * modules/close-stream: New file.
75420         * modules/closeout (Description): Make it clear that it exits
75421         with a diagnostic on error.
75422         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75423         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75424
75425 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75426
75427         * m4/close-stream.m4: New file.
75428
75429 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * lib/close-stream.c, lib/close-stream.h: New files.
75432
75433 2006-07-22  Bruno Haible  <bruno@clisp.org>
75434
75435         Merge from GNU gettext 0.15.
75436
75437         2006-05-01  Bruno Haible  <bruno@clisp.org>
75438
75439                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75440
75441         2006-07-22  Bruno Haible  <bruno@clisp.org>
75442
75443                 * modules/javaversion: New file.
75444                 * MODULES.html.sh (Java): Add javaversion.
75445
75446         2006-03-12  Bruno Haible  <bruno@clisp.org>
75447
75448                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75449
75450         2005-12-04  Bruno Haible  <bruno@clisp.org>
75451
75452                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75453                 (untested).
75454
75455         2006-06-21  Bruno Haible  <bruno@clisp.org>
75456
75457                 Avoid warnings from recent versions of mcs.
75458                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75459                 -o, -L, -r any more. Use options documented since mcs-1.0
75460                 instead. Similarly for -g.
75461
75462         2005-12-04  Bruno Haible  <bruno@clisp.org>
75463
75464                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75465                 .resources, not .resource.
75466
75467         2005-07-09  Bruno Haible  <bruno@clisp.org>
75468
75469                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75470                 add a .dll suffix.
75471                 Reported by Mark Junker <mjscod@gmx.de>.
75472
75473         2006-07-22  Bruno Haible  <bruno@clisp.org>
75474
75475                 * modules/gettext: Upgrade to gettext-0.15.
75476                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75477                 m4/visibility.m4.
75478                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75479
75480 2006-07-22  Bruno Haible  <bruno@clisp.org>
75481
75482         Merge from GNU gettext 0.15.
75483
75484         2006-03-25  Bruno Haible  <bruno@clisp.org>
75485
75486                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75487
75488         2006-07-21  Bruno Haible  <bruno@clisp.org>
75489
75490                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75491                 "1.1".
75492
75493         2006-05-09  Bruno Haible  <bruno@clisp.org>
75494
75495                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75496                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75497                 for the conftestver execution.
75498
75499         2006-05-01  Bruno Haible  <bruno@clisp.org>
75500
75501                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75502                 optional target-version argument. Verify that the compiler
75503                 groks source of the specified source-version, or add -source
75504                 option as necessary. Verify that the compiler produces
75505                 bytecode in the specified target-version, or add -target and
75506                 -source options as necessary. Make the result of the test
75507                 available as variable CONF_JAVAC. Also log error output in
75508                 config.log.
75509
75510         2006-03-11  Bruno Haible  <bruno@clisp.org>
75511
75512                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75513
75514         2006-05-09  Bruno Haible  <bruno@clisp.org>
75515
75516                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75517                 CLASSPATH_SEPARATOR to a semicolon.
75518
75519         2006-03-12  Bruno Haible  <bruno@clisp.org>
75520
75521                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75522                 available as variable CONF_JAVA, for subsequent autoconf
75523                 tests. Also log error output in config.log.
75524
75525         2006-07-19  Bruno Haible  <bruno@clisp.org>
75526
75527                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75528                 that getline works on glibc2 systems. Needed to avoid trouble
75529                 in relocatable.c.
75530                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75531
75532         2005-12-04  Bruno Haible  <bruno@clisp.org>
75533
75534                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75535                 launcher (untested).
75536
75537         2005-12-04  Bruno Haible  <bruno@clisp.org>
75538
75539                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75540
75541         2006-07-22  Bruno Haible  <bruno@clisp.org>
75542
75543                 * gettext.m4: Update from GNU gettext-0.15.
75544                 * nls.m4: Likewise.
75545                 * po.m4: Likewise.
75546                 * inttypes-pri.m4: Likewise.
75547                 * inttypes-h.m4: Renamed from inttypes.m4.
75548                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75549
75550 2006-07-22  Bruno Haible  <bruno@clisp.org>
75551
75552         Merge from GNU gettext 0.15.
75553
75554         2005-07-05  Bruno Haible  <bruno@clisp.org>
75555
75556                 * printf-args.c (printf_fetchargs): Work around broken
75557                 definition of wint_t on mingw.
75558
75559         2005-02-12  Bruno Haible  <bruno@clisp.org>
75560
75561                 * xallocsa.h: Add extern "C" for C++.
75562
75563         2006-05-17  Bruno Haible  <bruno@clisp.org>
75564
75565                 Cygwin portability.
75566                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75567
75568         2006-04-30  Bruno Haible  <bruno@clisp.org>
75569
75570                 * progreloc.c: Include <mach-o/dyld.h> if available.
75571                 (find_executable): Use _NSGetExecutablePath when possible.
75572
75573         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75574
75575                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75576                 function.
75577
75578         2005-12-29  Bruno Haible  <bruno@clisp.org>
75579
75580                 * progreloc.c (set_program_name_and_installdir): Fix
75581                 compilation error.
75582
75583         2005-12-04  Bruno Haible  <bruno@clisp.org>
75584
75585                 Cygwin portability.
75586                 * progreloc.c: Include <windows.h> also on Cygwin.
75587                 (find_executable): Add support for Cygwin.
75588                 (set_program_name_and_installdir): Handle also platforms with
75589                 nonempty EXEEXT.
75590
75591         2006-07-11  Bruno Haible  <bruno@clisp.org>
75592
75593                 * javacomp.c: Fix a comment.
75594                 Reported by Jim Meyering.
75595
75596         2006-04-30  Bruno Haible  <bruno@clisp.org>
75597
75598                 * javacomp.h (compile_java_class): Add source_version,
75599                 target_version arguments.
75600                 * javacomp.c: Rewritten to choose only a compiler that
75601                 respects the specified source_version and target_version.
75602
75603         2006-06-27  Bruno Haible  <bruno@clisp.org>
75604
75605                 Assume correct S_ISDIR macro.
75606                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75607
75608         2006-07-22  Bruno Haible  <bruno@clisp.org>
75609
75610                 * javaversion.h: New file, from GNU gettext.
75611                 * javaversion.c: New file, from GNU gettext.
75612                 * javaversion.java: New file, from GNU gettext.
75613                 * javaversion.class: New file, from GNU gettext.
75614
75615         2006-05-17  Bruno Haible  <bruno@clisp.org>
75616
75617                 Cygwin portability.
75618                 * javaexec.c (execute_java_class): Test for jview program
75619                 also on Cygwin.
75620
75621         2006-04-09  Bruno Haible  <bruno@clisp.org>
75622
75623                 * fatal-signal.c: Don't include string.h.
75624                 (at_fatal_signal): Use a copying loop instead of memcpy.
75625
75626         2005-12-04  Bruno Haible  <bruno@clisp.org>
75627
75628                 * csharpexec.c: Add support for 'clix' launcher (untested).
75629                 (execute_csharp_using_sscli): New function.
75630                 (execute_csharp_program): Call it.
75631
75632         2006-06-21  Bruno Haible  <bruno@clisp.org>
75633
75634                 Avoid warnings from recent versions of mcs.
75635                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75636                 -o, -L, -r any more. Use options documented since mcs-1.0
75637                 instead. Similarly for -g.
75638
75639         2005-07-09  Bruno Haible  <bruno@clisp.org>
75640
75641                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75642                 add a .dll suffix.
75643                 Reported by Mark Junker <mjscod@gmx.de>.
75644
75645         2006-06-17  Bruno Haible  <bruno@clisp.org>
75646
75647                 * config.charset: Update for NetBSD 3.0.
75648
75649         2006-05-17  Bruno Haible  <bruno@clisp.org>
75650
75651                 Cygwin portability.
75652                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75653
75654         2006-05-16  Bruno Haible  <bruno@clisp.org>
75655
75656                 * localcharset.c [CYGWIN]: Include <windows.h>.
75657                 (get_charset_aliases): For Cygwin, return the same CPxxx
75658                 aliases list as under WIN32.
75659                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75660                 the environment variables. Fall back to GetACP().
75661
75662         2006-04-05  Bruno Haible  <bruno@clisp.org>
75663
75664                 * config.charset: Update Juan Manuel Guerrero's address.
75665
75666         2005-02-12  Bruno Haible  <bruno@clisp.org>
75667
75668                 * allocsa.h: Add extern "C" for C++.
75669
75670         2005-02-10  Bruno Haible  <bruno@clisp.org>
75671
75672                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75673                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75674
75675         2006-07-22  Bruno Haible  <bruno@clisp.org>
75676
75677                 * gettext.h: Update to GNU gettext-0.15.
75678
75679 2006-07-22  Bruno Haible  <bruno@clisp.org>
75680
75681         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75682         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75683         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75684
75685 2006-07-21  Eric Blake  <ebb9@byu.net>
75686
75687         * modules/stdlib-safer: New file.
75688         * MODULES.html.sh (File stream based Input/Output): Add
75689         stdlib-safer.
75690
75691 2006-07-21  Eric Blake  <ebb9@byu.net>
75692
75693         * lib/stdlib-safer.h: New file from coreutils, required by
75694         stdlib--.h.
75695
75696 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75699
75700 2006-07-20  Bruno Haible  <bruno@clisp.org>
75701
75702         * gnulib-tool: Recognize new option --assume-autoconf.
75703         (autoconf_minversion): New variable.
75704         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75705
75706 2006-07-20  Bruno Haible  <bruno@clisp.org>
75707
75708         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75709
75710 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75711
75712         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75713         Reindent and repaginate.
75714
75715 2006-07-19  Derek Price  <derek@ximbiot.com>
75716
75717         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75718         Correct grammar.
75719
75720 2006-07-17  Bruno Haible  <bruno@clisp.org>
75721
75722         * modules/list: New file.
75723         * modules/array-list: New file.
75724         * modules/carray-list, modules/carray-list-tests: New files.
75725         * modules/linked-list, modules/linked-list-tests: New files.
75726         * modules/avltree-list, modules/avltree-list-tests: New files.
75727         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75728         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75729         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75730         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75731         * modules/oset: New file.
75732         * modules/array-oset: New file.
75733         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75734         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75735         * tests/test-carray_list.c: New file.
75736         * tests/test-linked_list.c: New file.
75737         * tests/test-avltree_list.c: New file.
75738         * tests/test-rbtree_list.c: New file.
75739         * tests/test-linkedhash_list.c: New file.
75740         * tests/test-avltreehash_list.c: New file.
75741         * tests/test-rbtreehash_list.c: New file.
75742         * tests/test-avltree_oset.c: New file.
75743         * tests/test-rbtree_oset.c: New file.
75744         * MODULES.html.sh (Container data structures): New section.
75745
75746 2006-07-17  Bruno Haible  <bruno@clisp.org>
75747
75748         * m4/gl_list.m4: New file.
75749
75750 2006-07-17  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/gl_list.h: New file.
75753         * lib/gl_list.c: New file.
75754         * lib/gl_array_list.h: New file.
75755         * lib/gl_array_list.c: New file.
75756         * lib/gl_carray_list.h: New file.
75757         * lib/gl_carray_list.c: New file.
75758         * lib/gl_linked_list.h: New file.
75759         * lib/gl_linked_list.c: New file.
75760         * lib/gl_anylinked_list1.h: New file.
75761         * lib/gl_anylinked_list2.h: New file.
75762         * lib/gl_avltree_list.h: New file.
75763         * lib/gl_avltree_list.c: New file.
75764         * lib/gl_anyavltree_list1.h: New file.
75765         * lib/gl_anyavltree_list2.h: New file.
75766         * lib/gl_rbtree_list.h: New file.
75767         * lib/gl_rbtree_list.c: New file.
75768         * lib/gl_anyrbtree_list1.h: New file.
75769         * lib/gl_anyrbtree_list2.h: New file.
75770         * lib/gl_anytree_list1.h: New file.
75771         * lib/gl_anytree_list2.h: New file.
75772         * lib/gl_linkedhash_list.h: New file.
75773         * lib/gl_linkedhash_list.c: New file.
75774         * lib/gl_anyhash_list1.h: New file.
75775         * lib/gl_anyhash_list2.h: New file.
75776         * lib/gl_avltreehash_list.h: New file.
75777         * lib/gl_avltreehash_list.c: New file.
75778         * lib/gl_rbtreehash_list.h: New file.
75779         * lib/gl_rbtreehash_list.c: New file.
75780         * lib/gl_anytreehash_list1.h: New file.
75781         * lib/gl_anytreehash_list2.h: New file.
75782
75783         * lib/gl_oset.h: New file.
75784         * lib/gl_oset.c: New file.
75785         * lib/gl_array_oset.h: New file.
75786         * lib/gl_array_oset.c: New file.
75787         * lib/gl_avltree_oset.h: New file.
75788         * lib/gl_avltree_oset.c: New file.
75789         * lib/gl_rbtree_oset.h: New file.
75790         * lib/gl_rbtree_oset.c: New file.
75791         * lib/gl_anytree_oset.h: New file.
75792
75793 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * m4/mkancesdirs.m4: New file.
75796         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75797         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75798         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75799         it.
75800
75801 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75804         * lib/mkancesdirs.h: New files.
75805         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75806         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75807         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75808         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75809         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75810         callers changed.  Revamp internals significantly, by not
75811         attempting to create directories that are temporarily more
75812         permissive than the final results.  Do not attempt to use
75813         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75814         This removes some race conditions, fixes some bugs, and simplifies
75815         things.  Use new dirchownmod function to do owner and mode changes.
75816         * lib/mkdir-p.h: Likewise.
75817         * lib/modechange.c (octal_to_mode): New function.
75818         (struct mode_change): New member mentioned.
75819         (make_node_op_equals): New arg mentioned.  All callers changed.
75820         (mode_compile): Keep track of which mode bits the user has explicitly
75821         mentioned.
75822         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75823         New arg PMODE_BITS, to keep track of which mode bits the user
75824         mentioned; it treats S_ISUID and S_ISGID speciall.
75825         All callers changed.
75826         * lib/modechange.h: Likewise.
75827
75828 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * MODULES.html.sh: Add mkancestors.
75831         * modules/mkancesdirs: New module.
75832         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75833         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75834         The chdir-safer and afs files are now orphans; I'll remove them
75835         unless someone speaks up.
75836         Add lib/dirchownmod.c, lib/dirchownmod.h.
75837         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75838         Add lchown, mkancesdirs.
75839         (Maintainer): Add self.
75840
75841 2006-07-15  Karl Berry  <karl@gnu.org>
75842
75843         * gnulib-tool: help message wording/arrangement.
75844
75845 2006-07-14  Simon Josefsson  <jas@extundo.com>
75846
75847         * doc/gnulib.texi (Libtool and Windows): New section.
75848
75849 2006-07-12  Simon Josefsson  <jas@extundo.com>
75850
75851         * modules/gendocs (License): Fix license, approved by Karl.
75852
75853 2006-07-12  Eric Blake  <ebb9@byu.net>
75854
75855         * MODULES.html.sh: Add gendocs.
75856
75857 2006-07-11  Eric Blake  <ebb9@byu.net>
75858
75859         * modules/fdl: New module, to install doc/fdl.texi.
75860         * MODULES.html.sh: Add new section for documentation modules.
75861         * gnulib-tool: Avoid space-tab.
75862         (--doc-base): New option, to manage files from doc.
75863
75864 2006-07-11  Eric Blake  <ebb9@byu.net>
75865
75866         * m4/absolute-header.m4: Fix comments to match recent change.
75867
75868 2006-07-11  Eric Blake  <ebb9@byu.net>
75869
75870         * gnulib-tool: List --doc-base before --tests-base.
75871
75872 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75873
75874         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75875
75876 2006-07-11  Bruno Haible  <bruno@clisp.org>
75877
75878         * README: Mention where to put documentation.
75879
75880 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75881
75882         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75883
75884 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75887         to stdint.m4.
75888
75889 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75892         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75893         "no/such/file/stdint.h" when there is no such file, so that
75894         the resulting C code can be parsed by dodgy compilers.
75895         Problems reported by Bob Proulx.
75896
75897 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75898
75899         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75900         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75901         macros into the GNU _D_EXACT_NAMLEN.
75902         * lib/savedir.c:  Likewise.
75903         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75904
75905 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75906         and Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75909         * m4/savedir.m4:
75910         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75911         macros into the GNU _D_EXACT_NAMLEN.
75912
75913 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75916         around the absolute name, to work around a problem with the HP-UX
75917         11.23 native C compiler, reported by Bob Proulx.
75918
75919 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * doc/maintain.texi, make-stds.texi: Sync from
75922         <http://savannah.gnu.org/projects/gnustandards>.
75923
75924 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75927
75928 2006-07-09  Jim Meyering  <jim@meyering.net>
75929
75930         * m4/glob.m4: Remove a doubled word in a comment.
75931
75932 2006-07-09  Jim Meyering  <jim@meyering.net>
75933
75934         * lib/argp-pv.c: Remove a doubled word in a comment.
75935         * lib/check-version.c (check_version): Likewise.
75936         * lib/javacomp.c (compile_java_class): Likewise.
75937
75938 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75941         for the benefit of people using Autoconf 2.60.  If you want to
75942         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75943         (or m4/onceonly.m4, if pre-2.57) manually.
75944
75945 2006-07-08  Jim Meyering  <jim@meyering.net>
75946
75947         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75948         comment.
75949         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75950         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75951         comment.
75952
75953 2006-07-08  Jim Meyering  <jim@meyering.net>
75954
75955         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75956
75957 2006-07-07  Simon Josefsson  <jas@extundo.com>
75958
75959         * tests/test-crc.c: Change expected crc value, the test vector
75960         were probably computed using the old broken crc.c?
75961
75962 2006-07-06  Simon Josefsson  <jas@extundo.com>
75963
75964         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75965         now the canonical place for the M4 file).
75966
75967         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75968         from the sys_socket dependency now.
75969
75970         * modules/inet_pton (Files): Ditto.
75971
75972         * modules/inet_ntop (Files): Ditto.
75973
75974 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75975
75976         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75977         not gl_PREREQ_GETUSERSHELL.
75978
75979 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75980
75981         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75982         with only one argument, for Autoconf 2.60.
75983         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75984         expand to nothing, so add a shell command to avoid syntax error.
75985         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75986
75987 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75988
75989         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75990
75991 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75994         no longer needed.  Check for isblank decl.
75995         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75996         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75997         of existence.
75998
75999 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/getloadavg.c: Use __VMS, not VMS.
76002         * lib/getopt.c: Likewise.
76003         * lib/getpagesize.h: Likewise.
76004         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76005         and probably does not work.
76006
76007 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * lib/.cppi-disable: Add wcwidth.
76010         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76011         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76012         (ISGRAPH): Remove.  All uses changed to isgraph.
76013         (FOLD) [!defined _LIBC]: Remove special case.
76014         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76015         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76016         HAVE_ISBLANK.
76017         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76018         case.
76019
76020 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76021
76022         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76023         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76024         brackets.  Other minor changes to suppress some compiler
76025         warnings.
76026
76027 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76028         and Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76031         of invoking obsolescent AC_HEADER_DIRENT macro.
76032         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76033         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76034         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76035         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76036         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76037         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76038         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76039         * m4/readdir.m4: Remove; no longer needed.
76040
76041 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76042         and Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76045         Don't worry about this obsolete case any more.
76046         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76047         directories.
76048         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76049         worry about this obsolete case any more.
76050         * lib/fts.c: Likewise.
76051         * lib/getcwd.c: Likewise.
76052         * lib/glob.h: Likewise.
76053         * lib/savedir.c: Likewise.
76054
76055 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76058         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76059         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76060         needed.
76061         All uses removed.
76062         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76063         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76064         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76065         needed.
76066         * m4/getdate.m4 (gl_GETDATE): Likewise.
76067         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76068         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76069         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76070         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76071         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76073         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76074         needed.
76075
76076 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * lib/memcasecmp.c: Include <limits.h>.
76079         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76080         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76081         Don't assume isdigit succeeds only on '0' through '9'.
76082
76083 2006-07-05  Eric Blake  <ebb9@byu.net>
76084
76085         * modules/getaddrinfo (Depends-on): Add snprintf.
76086
76087 2006-07-05  Eric Blake  <ebb9@byu.net>
76088
76089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76090         to avoid 'header present but could not be compiled' on cygwin.
76091
76092 2006-07-05  Eric Blake  <ebb9@byu.net>
76093
76094         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76095         missing from netdb.h.
76096         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76097
76098 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76099
76100         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76101         no longer needed.
76102         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76103         * m4/getdate.m4 (gl_GETDATE): Likewise.
76104         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76105         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76106         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76107         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76108         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76109
76110 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76111
76112         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76113         All uses of is_space replaced by isspace.
76114         * lib/exit.h: Don't talk about STDC_HEADERS.
76115         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76116         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76117         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76118         replaced by isprint etc.
76119         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76120         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76121         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76122         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76123         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76124         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76125
76126 2006-07-05  Bruno Haible  <bruno@clisp.org>
76127
76128         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76129         the function exists, before testing against AIX.
76130         Reported by Martin Lambers <marlam@marlam.de>.
76131
76132 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76135         From Mark D. Baushke.
76136
76137 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76140         to the absolute name, not just one, to bypass Sun C 5.8's
76141         "warning: #include of /usr/include/... may be non-portable".
76142
76143 2006-07-04  Eric Blake  <ebb9@byu.net>
76144
76145         * modules/dirname-tests: New test module.
76146         * tests/test-dirname.c: New file, replacing dirname.c
76147         TEST_DIRNAME section that was recently deleted.
76148
76149 2006-07-04  Bruno Haible  <bruno@clisp.org>
76150
76151         Assume ANSI C header files and <ctype.h> functions.
76152         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76153         (mbsnwidth): Use isprint, iscntrl instead.
76154
76155 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76156
76157         Merge from coreutils.
76158         * MODULES.html.sh: Add xstrtold.
76159         * modules/xstrtold: New file.
76160         * modules/cycle-check (Files): Add lib/same-inode.h.
76161         * modules/dirname (Files): Add m4/double-slash-root.m4.
76162         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76163         * modules/mkdir-p (Files): Add lib/same-inode.h.
76164         * modules/same (Files): Add lib/same-inode.h.
76165
76166 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76169         This is to keep the terminology clean; POSIX talks about
76170         "absolute pathnames", not "full pathnames", but the GNU
76171         Coding Standards say to use "path" for something else;
76172         so use "absolute" to keep both sides happy.
76173         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76174         Set gl_absolute_header, not gl_full_header_path.
76175         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76176         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76177         All uses changed.
76178
76179         Merge from coreutils.
76180
76181         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76184         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76185         want to require the building of c-strtod.o.
76186         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76187         needs -lm directly.
76188         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76189
76190         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76193         --as-needed option if available.  Problem reported by Albert Chin in
76194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76195         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76196         cc merely issues a bunch of annoying warnings for --as-needed
76197         (this problem was reported by Bob Proulx).  Also, try linking with
76198         -lm to detect a bug in binutils 2.16 (this problem was reported
76199         by Ralf Wildenhues).
76200
76201         2006-06-18  Jim Meyering  <jim@meyering.net>
76202
76203         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76204         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76205         macro.
76206         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76207         also check for glibc-2.4's abort-inducing bug.
76208
76209         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76210         Low-probability clean-up should be to use rmdir to get rid of
76211         the just-created directory, not unlink.
76212
76213         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76214         configure fail, and request a bug report to inform us about it.
76215         Add a comment that, barring reports to the contrary, in 2007 we'll
76216         assume ftruncate is universally available.
76217
76218         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76221
76222         2006-03-12  Jim Meyering  <jim@meyering.net>
76223
76224         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76225         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76226         * m4/same.m4 (gl_SAME): Likewise.
76227         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76228
76229         2006-03-11  Eric Blake  <ebb9@byu.net>
76230
76231         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76232         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76233         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76234         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76235
76236 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76239         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76240         reported by Mark D. Baushke, one in
76241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76242
76243         Merge from coreutils.
76244
76245         * lib/.cppi-disable: Add stdint_.h.
76246         * lib/.cvsignore: Add stdint.h.
76247
76248         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76249
76250         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76251         both double and long double versions.
76252         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76253         * lib/xstrtold.c: New file.
76254         * lib/xstrtod.h (xstrtold): New decl.
76255
76256         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * lib/filemode.c (setst): Remove.
76259         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76260         (arguably) clearer, and the generated code is a bit smaller on my
76261         Debian GNU/Linux stable x86 host.
76262
76263         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76266         Assume that filemode.h includes sys/types.h and sys/stat.h.
76267         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76268         (ftypelet): Reorder to put common cases first, for efficiency.
76269         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76270         to do 'M'.
76271         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76272         of 10, for compatibility with FreeBSD.  All callers changed.
76273         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76274         types that can't be deduced solely from st_mode.  First arg is now a
76275         const pointer.
76276         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76277         (strmode): Renamed from mode_string.
76278         (filemodestring): New decl.
76279         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76280         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76281         needed.
76282         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76283
76284         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76287         fsusage.h now does that.  Include fsusage.h first, to test interface.
76288         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76289         at most one method (the old code could have generated decls that
76290         didn't conform to C89, not that this was ever exercised).
76291         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76292
76293         2006-03-19  Jim Meyering  <jim@meyering.net>
76294
76295         Work even in a chroot where d_ino values for entries in "/"
76296         don't match the stat.st_ino values for the same names.
76297         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76298         number, iterate through all entries again, using lstat instead.
76299         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76300         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76301
76302         * lib/getcwd.c (__getcwd): Clarify a comment.
76303         Use memcpy in place of a call to strcpy.
76304
76305         2006-03-12  Jim Meyering  <jim@meyering.net>
76306
76307         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76308         matches that of the current directory (which we're about to chdir ".."
76309         out of), then save the dev-ino of the parent, instead.
76310
76311         * lib/same-inode.h (SAME_INODE): New file/macro.
76312         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76313         Include "same-inode.h", instead.
76314         * lib/same.c: Likewise.
76315         * lib/cycle-check.h: Include "same-inode.h".
76316         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76317         * lib/cycle-check.c (SAME_INODE): Remove definition.
76318         * lib/root-dev-ino.h: Include "same-inode.h".
76319
76320         2006-03-11  Eric Blake  <ebb9@byu.net>
76321
76322         * lib/same.c (same_name): s/base_name/last_component/
76323         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76324         * lib/filenamecat.c (file_name_concat): Likewise.
76325
76326         2006-03-11  Eric Blake  <ebb9@byu.net>,
76327                     Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76330         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76331         drive prefix.
76332         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76333         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76334         (last_component): New method.
76335         * lib/dirname.c (dir_len): Determine when drive letters need a
76336         subsequent slash.  Preserve // when it is special.
76337         (dir_name): Don't append dot when drive letter is absolute.
76338         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76339         * lib/basename.c (base_name): New semantics - malloc the result.
76340         Preserve // when it is special.  Preserve relative files that look
76341         like drive letters.
76342         (base_len): Preserve // when it is special.
76343         (last_component): New method, similar to old base_name semantics.
76344         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76345         base_name.  Strip redundant slashes from ///.
76346
76347 2006-07-03  Jim Meyering  <jim@meyering.net>
76348
76349         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76350         macro is used before the first cycle_check call.
76351
76352 2006-07-03  Eric Blake  <ebb9@byu.net>
76353
76354         * modules/dirname (Depends-on): Add xstrndup.
76355
76356 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76359         test cases, so that config.log is a bit easier to follow.
76360
76361 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76364         both are 64 bits, since this seems to be the tradition, and this
76365         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76366         we ever run into a host that prefers long long to long in this
76367         case, we'll need another configure-time test.  Problem reported by
76368         Jim Meyering.
76369
76370 2006-07-02  Eric Blake  <ebb9@byu.net>
76371
76372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76373
76374 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * modules/inttypes (Depends-on): No longer depends on stdint.
76377         * modules/stdint (Description): Say more about assumptions.
76378         Say that the fast types might differ.  Say macros are used.
76379         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76380         (Makefile.am): Revise list of substituted symbols to match
76381         new stdint.m4.
76382         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76383         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76384         * tests/test-stdint.c (verify_same_types)
76385         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76386         the code conforms to C99/C89.
76387         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76388         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76389
76390 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76393         but fix a bug, by requiring at least 64 bits.
76394         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76395         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76396         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76397         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76398
76399         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76400         changes.  Make 2.59 a prerequisite.  Check and substitute for
76401         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76402         inttypes.h.  Do not use special include files; just use the
76403         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76404         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76405         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76406         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76407         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76408         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76409         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76410         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76411         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76412         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76413         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76414         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76415         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76416         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76417         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76418         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76419         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76420         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76421         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76422         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76423         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76424         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76425         not check for things that C99 does not require, e.g., int8_t.  If
76426         a test isn't needed unless <stdint.h> isn't working, and is
76427         unlikely to be needed for any other reason, then don't do it
76428         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76429         size_t, since we assume C89 freestanding at least.  Do not check
76430         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76431         the right thing even if the types are not defined.  Instead use:
76432         (gl_STDINT_TYPE_PROPERTIES): New macro.
76433         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76434         testing whether <sys/types.h> clashes, as Autoconf does this for
76435         us now.  All uses removed.
76436         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76437         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76438         (gl_CHECK_TYPE_SAME):
76439         Remove; no longer needed.
76440         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76441         exists, since we'll return 0 anyway in that case.
76442         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76443
76444 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76447         possible collision with system files.
76448         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76449         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76450         WCHAR_MIN and WCHAR_MAX in this case.
76451         (<stddef.h>): Do not include; no longer needed.
76452         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76453         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76454         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76455         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76456         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76457         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76458         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76459         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76460         !defined(__c99))]: Include in this case too, since it's harmless
76461         now.
76462         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76463         dangerous to do so.
76464         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76465         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76466         (_STDINT_MIN, _STDINT_MAX): New macros.
76467         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76468         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76469         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76470         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76471         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76472         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76473         macros, not typedefs; this simplifies things quite a bit.
76474         Use long int for all types narrower than int64_t.
76475         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76476         Define in terms of long long int or int64_t or long int,
76477         not int64_t or int32_t.  This saves some compile-time testing.
76478         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76479         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76480         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76481         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76482         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76483         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76484         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76485         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76486         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76487         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76488         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76489         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76490         undef any previous version and define our own version, for
76491         simplicity and consistency with the new macros for types.
76492         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76493         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76494         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76495         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76496         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76497         @WINT_T_SUFFIX@ to keep things simple here.
76498         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76499         Simplify by assuming typical 8/16/32/64 host, since we're
76500         already doing that elsewhere anyway.
76501         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76502         and assume long long int is 64 bits if available.  This
76503         speeds up 'configure'.
76504
76505 2006-07-01  Eric Blake  <ebb9@byu.net>
76506
76507         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76508         Reported by Andreas Buening.
76509
76510 2006-07-01  Eric Blake  <ebb9@byu.net>
76511
76512         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76513
76514 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76515
76516         * lib/getaddrinfo.c: fixed typo
76517
76518 2006-06-29  Jim Meyering  <jim@meyering.net>
76519
76520         * modules/strftime (Maintainer): Add my name, since with the
76521         FPRINTFTIME changes strftime.c has forked from glibc.
76522
76523 2006-06-29  Eric Blake  <ebb9@byu.net>
76524
76525         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76526
76527 2006-06-29  Eric Blake  <ebb9@byu.net>
76528
76529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76530
76531 2006-06-29  Eric Blake  <ebb9@byu.net>
76532
76533         * lib/stat_.h: New file.
76534
76535 2006-06-29  Eric Blake  <ebb9@byu.net>
76536
76537         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76538         unused static function.
76539
76540 2006-06-29  Eric Blake  <ebb9@byu.net>
76541
76542         * doc/functions.texi (Function Portability): Document missing lstat
76543         on mingw.
76544
76545 2006-06-29  Eric Blake  <ebb9@byu.net>
76546
76547         * MODULES.html.sh: Add sys_stat.
76548         * modules/sys_stat: New module.
76549         * modules/mkstemp (Depends-on): Add sys_stat.
76550
76551 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76552
76553         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76554
76555 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76556
76557         * m4/c-bs-a.m4: Removed.
76558
76559 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76560
76561         * lib/strftime.c: Assume strftime() exists.
76562
76563 2006-06-29  Derek Price  <derek@ximbiot.com>
76564
76565         * modules/c-bs-a: Removed - \a is C89.
76566         * MODULES.html.sh: Remove c-bs-a.
76567
76568 2006-06-29  Bruno Haible  <bruno@clisp.org>
76569
76570         * modules/wcwidth (License): Change to LGPL.
76571
76572 2006-06-28  Simon Josefsson  <jas@extundo.com>
76573
76574         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76575         on _WIN32.
76576
76577         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76578         getnameinfo.
76579
76580 2006-06-28  Simon Josefsson  <jas@extundo.com>
76581
76582         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76583
76584 2006-06-28  Simon Josefsson  <jas@extundo.com>
76585
76586         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76587         functions there.  It will succeed on Windows XP, but on Windows
76588         2000 and (presumably) earlier, it will fail, and use the internal
76589         re-implementation.
76590         (use_win32_p): New function.
76591         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76592         Support AI_NUMERICSERV to disable getservbyname.
76593         (getnameinfo): New function, only supports
76594         NI_NUMERICHOST|NI_NUMERICSERV for now.
76595
76596         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76597         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76598         getnameinfo.
76599
76600 2006-06-28  Eric Blake  <ebb9@byu.net>
76601
76602         * modules/wcwidth: New file.
76603         * modules/mbchar (Depends-on): Add wcwidth.
76604         * modules/mbswidth (Depends-on): Add wcwidth.
76605         * MODULES.html.sh: Add wcwidth.
76606
76607 2006-06-28  Eric Blake  <ebb9@byu.net>
76608
76609         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76611
76612 2006-06-28  Eric Blake  <ebb9@byu.net>
76613
76614         * lib/xvasprintf.h: Fix comments.
76615
76616 2006-06-28  Eric Blake  <ebb9@byu.net>
76617
76618         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76619         * lib/mbswidth.c (wcwidth): Move from here...
76620         * lib/wcwidth.h: ...to this new file.
76621
76622 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76623
76624         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76625
76626         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76627         it's obsolete.
76628         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76629
76630 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76631
76632         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76633         Autoconf 2.60 says this stuff was obsolete.
76634
76635 2006-06-28  Bruno Haible  <bruno@clisp.org>
76636
76637         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76638
76639 2006-06-28  Bruno Haible  <bruno@clisp.org>
76640
76641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76642         gt_TYPE_WCHAR_T.
76643
76644 2006-06-28  Bruno Haible  <bruno@clisp.org>
76645
76646         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76647         declaration for wcwidth.
76648         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76649
76650 2006-06-28  Bruno Haible  <bruno@clisp.org>
76651
76652         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76653         (mkdir): Define using _mkdir.
76654
76655 2006-06-28  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/getaddrinfo.h: Fix POSIX URL.
76658         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76659         _WIN32.
76660         (use_win32_p): Make static.
76661         (getaddrinfo): Reject service name if it is empty or does not consist
76662         solely of decimal digits, or if its value is > 65535.
76663         (getnameinfo): Remove useless casts.
76664
76665 2006-06-27  Simon Josefsson  <jas@extundo.com>
76666
76667         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76668         Eggert and Martin Lambers.
76669
76670 2006-06-27  Simon Josefsson  <jas@extundo.com>
76671
76672         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76673         Eggert and Martin Lambers.
76674
76675 2006-06-27  Bruno Haible  <bruno@clisp.org>
76676
76677         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76678         result to 0, not to empty.
76679         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76680
76681 2006-06-27  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76684
76685 2006-06-26  Simon Josefsson  <jas@extundo.com>
76686
76687         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76688         present.
76689
76690 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76693         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76694         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76695
76696 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76697
76698         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76699
76700 2006-06-26  Bruno Haible  <bruno@clisp.org>
76701
76702         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76703
76704 2006-06-26  Bruno Haible  <bruno@clisp.org>
76705
76706         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76707
76708 2006-06-26  Bruno Haible  <bruno@clisp.org>
76709
76710         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76711         SGI C compiler in pre-C99 mode.
76712         Suggested by Mark D. Baushke and Larry Jones.
76713
76714 2006-06-26  Bruno Haible  <bruno@clisp.org>
76715
76716         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76717         WCHAR_MAX.
76718         Reported by Mark D. Baushke and Larry Jones.
76719
76720 2006-06-26  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76723         in pre-C99 mode.
76724         Suggested by Mark D. Baushke and Larry Jones.
76725
76726 2006-06-23  Simon Josefsson  <jas@extundo.com>
76727             Bruno Haible  <bruno@clisp.org>
76728
76729         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76730         Emit mostlyclean-local rule.
76731         (func_emit_tests_Makefile_am): Likewise.
76732         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76733
76734 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76735
76736         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76737
76738 2006-06-23  Bruno Haible  <bruno@clisp.org>
76739
76740         * tests/test-stdint.c: Update to match ISO C 99 Technical
76741         Corrigendum 1.
76742
76743 2006-06-23  Bruno Haible  <bruno@clisp.org>
76744
76745         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76746
76747 2006-06-23  Bruno Haible  <bruno@clisp.org>
76748
76749         * lib/stdint_.h: Treat IRIX like OpenBSD.
76750
76751 2006-06-23  Bruno Haible  <bruno@clisp.org>
76752
76753         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76754         ISO C 99 Technical Corrigendum 1.
76755
76756 2006-06-22  Simon Josefsson  <jas@extundo.com>
76757
76758         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76759         MinGW.
76760
76761 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76764         needed.  Some compiler complained about some of them.  Problem reported
76765         by Larry Jones in
76766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76767
76768 2006-06-21  Simon Josefsson  <jas@extundo.com>
76769
76770         * tests/test-getaddrinfo.c: New file.
76771
76772         * modules/getaddrinfo-tests: New file.
76773
76774         * MODULES.html.sh: Add inet_pton.
76775
76776         * modules/inet_pton: New file.
76777
76778 2006-06-21  Simon Josefsson  <jas@extundo.com>
76779
76780         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76781         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76782         of using the (limited) gnulib implementation on Windows XP.
76783
76784         * m4/inet_pton.m4: New file.
76785
76786 2006-06-21  Simon Josefsson  <jas@extundo.com>
76787
76788         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76789         variable.
76790
76791         * lib/socket_.h: Don't define WINVER.
76792
76793         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76794         slightly modified to work in gnulib.
76795
76796 2006-06-21  Simon Josefsson  <jas@extundo.com>
76797
76798         * doc/gnulib.texi (Windows sockets): Add.
76799
76800 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * lib/read-file.c (fread_file): Start with buffer allocation of
76803         0 bytes rather than 1 byte; this simplifies the code.
76804         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76805         code to free buffer and save/restore errno.
76806         (internal_read_file): Remove unused local.
76807
76808 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76811         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76812         Problem reported by Denis Excoffier in
76813         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76814
76815 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76816
76817         * modules/sys_socket, modules/socklen: Include sys/types since
76818         FreeBSD 4.x's sys/socket.h needs it.
76819
76820 2006-06-19  Simon Josefsson  <jas@extundo.com>
76821
76822         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76823
76824 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76827
76828 2006-06-19  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76831         and FULL_PATH_INTTYPES_H in angle brackets.
76832         Reported by Mark D. Baushke <mdb@gnu.org>.
76833
76834 2006-06-17  Eric Blake  <ebb9@byu.net>
76835
76836         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76837         errno.
76838
76839 2006-06-17  Bruno Haible  <bruno@clisp.org>
76840
76841         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76842         <sys/inttypes.h>.
76843
76844 2006-06-17  Bruno Haible  <bruno@clisp.org>
76845
76846         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76847         whether errno is declared. Assume <errno.h> declares errno.
76848
76849 2006-06-17  Bruno Haible  <bruno@clisp.org>
76850
76851         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76852
76853 2006-06-17  Bruno Haible  <bruno@clisp.org>
76854
76855         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76856         problem on Solaris 2.5.1.
76857
76858 2006-06-16  Eric Blake  <ebb9@byu.net>
76859
76860         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76861         * lib/unicodeio.c [!defined errno]: Likewise.
76862         * lib/strtol.c [!defined errno]: Likewise.
76863         * lib/strtod.c [!defined errno]: Likewise.
76864
76865 2006-06-15  Eric Blake  <ebb9@byu.net>
76866
76867         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76868
76869 2006-06-15  Eric Blake  <ebb9@byu.net>
76870
76871         * config/srclist.txt (ssize_t.m4): Lose sync.
76872
76873 2006-06-15  Bruno Haible  <bruno@clisp.org>
76874
76875         * modules/stdint (Files): Include m4/full-header-path.m4,
76876         m4/size_max.m4, m4/wchar_t.m4.
76877         (Makefile.am): Many more substitutions.
76878         * modules/stdint-tests: New file.
76879         * tests/test-stdint.c: New file.
76880
76881 2006-06-15  Bruno Haible  <bruno@clisp.org>
76882
76883         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76884         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76885         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76886         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76887         gl_CHECK_TYPE_SAME): New macros.
76888
76889 2006-06-15  Bruno Haible  <bruno@clisp.org>
76890
76891         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76892
76893 2006-06-15  Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/stdint_.h: Rewritten to be fully auto-configured.
76896         Fixes bug on HP-UX/IA64.
76897
76898 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * lib/getdate.y (__attribute__): Don't define if already defined.
76901         Problem reported by Larry Jones.
76902         * lib/utimens.c (__attribute__): Likewise.
76903
76904 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76907         reported by Andreas Schwab.
76908
76909 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76910             Bruno Haible  <bruno@clisp.org>
76911
76912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76913         check for the declaration of strnlen and a run test that exposes the
76914         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76915         rpl_strndup.
76916
76917 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76918             Bruno Haible  <bruno@clisp.org>
76919
76920         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76921
76922 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76923
76924         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76925         compile test, for Tru64 4.0D.
76926
76927 2006-05-28  Karl Berry  <karl@gnu.org>
76928
76929         * config/srclist.txt (printf-args.c): lose sync.
76930
76931 2006-05-26  Martin Lambers  <marlam@marlam.de>
76932
76933         * lib/getpass.c: Updates the test for the native W32 API, and adds
76934         missing includes, thus fixing compilation warnings.
76935
76936 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76937
76938         * lib/exclude.c (exclude_fnmatch): New function.
76939         (excluded_file_name): Call exclude_fnmatch.
76940         * lib/exclude.h (excluded_file_name): New prototype
76941
76942 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * lib/tempname.c (small_open, large_open): New macros.
76945         (__open, __open64) [!_LIBC]: Remove.
76946         (__gen_tempname): Use small_open and large_open instead of __open
76947         and __open64.  This fixes a portability bug on HP-UX 11.11i
76948         reported by Simon Wing-Tang in
76949         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76950
76951 2006-05-24  Bruno Haible  <bruno@clisp.org>
76952
76953         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76954         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76955         Reported by Thorsten Maerz <torte@netztorte.de> via
76956         Aaron Stone <aaron@serendipity.cx>.
76957
76958 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76961         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76962         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76963         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76964         not really conditional on the cache.
76965         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76966
76967 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76970         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76971         (my_usleep): Don't mishandle maximum value.
76972
76973 2006-05-19  Jim Meyering  <jim@meyering.net>
76974
76975         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76976
76977 2006-05-17  Bruno Haible  <bruno@clisp.org>
76978
76979         Cygwin portability.
76980         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76981
76982 2006-05-17  Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/stdint_.h: Fix recognition of Cygwin.
76985
76986 2006-05-15  Bruno Haible  <bruno@clisp.org>
76987
76988         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76989         on libtool patch by Ralf Wildenhues.
76990
76991 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76992
76993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76994         test for C99 conformance; (bool) 0.5 is an integer constant
76995         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76996         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76997
76998 2006-05-11  Simon Josefsson  <jas@extundo.com>
76999
77000         * m4/xvasprintf.m4: Fix obvious typo.
77001
77002 2006-05-11  Jim Meyering  <jim@meyering.net>
77003
77004         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77005         James Lemley.
77006
77007 2006-05-10  Simon Josefsson  <jas@extundo.com>
77008
77009         * lib/md4.c: Typo fix, update copyright years.
77010         (K1, K2): Don't use L because it turn computations into 64-bit on
77011         64-bit platforms.
77012
77013 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77016         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77017         unwanted sign propagation, e.g., on hosts with 64-bit int.
77018         There still are some problems with reeelly weird theoretical hosts
77019         (e.g., 33-bit int) but it's not worth worrying about now.
77020         * lib/sha1.c (rol): Likewise.
77021         (K1, K2, K3, K4): Remove unnecessary L suffix.
77022
77023 2006-05-10  Bruno Haible  <bruno@clisp.org>
77024
77025         * lib/des.c: Cast to avoid warnings.
77026
77027 2006-05-09  Bruno Haible  <bruno@clisp.org>
77028
77029         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77030         (Depends-on): Depend also on xsize, stdarg.
77031         (configure.ac): Add gl_XVASPRINTF.
77032
77033 2006-05-09  Bruno Haible  <bruno@clisp.org>
77034
77035         * m4/xvasprintf.m4: New file.
77036
77037 2006-05-09  Bruno Haible  <bruno@clisp.org>
77038
77039         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77040         (EOVERFLOW): Define fallback value.
77041         (xstrcat): New function.
77042         (xvasprintf): Recognize the special case of a string concatenation.
77043
77044 2006-05-08  Eric Blake  <ebb9@byu.net>
77045
77046         * gnulib-tool (func_version): Base copyright year on CVS date.
77047         (func_emit_copyright_notice): New function.
77048         (func_emit_lib_Makefile_am): Use it.
77049         (func_emit_tests_Makefile_am): Likewise.
77050         (func_import): Likewise.
77051
77052 2006-05-08  Bruno Haible  <bruno@clisp.org>
77053
77054         * modules/stdarg: New file.
77055         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77056
77057 2006-05-08  Bruno Haible  <bruno@clisp.org>
77058
77059         * m4/stdarg.m4: New file, from GNU gettext.
77060
77061 2006-05-08  Bruno Haible  <bruno@clisp.org>
77062
77063         * config/srclist.txt (build-aux/config.rpath): different from latest
77064         release.
77065
77066 2006-05-08  Bruno Haible  <bruno@clisp.org>
77067
77068         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77069
77070 2006-05-05  Jim Meyering  <jim@meyering.net>
77071
77072         * m4/warning.m4: New file, derived from bison's file by the same name.
77073
77074 2006-05-03  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/stdint_.h: Shorter URL.
77077         * lib/inttypes.h: Likewise.
77078
77079 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77082
77083 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/verify.h: Document the internals better.  Most of this change
77086         was written by Bruno Haible.
77087
77088 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * doc/verify.texi: New file, partly based on a proposal by
77091         Bruno Haible.
77092
77093 2006-05-02  Bruno Haible  <bruno@clisp.org>
77094
77095         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77096         test from here...
77097         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77098
77099 2006-04-29  Bruno Haible  <bruno@clisp.org>
77100
77101         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77102         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77103
77104 2006-04-29  Bruno Haible  <bruno@clisp.org>
77105
77106         * gnulib-tool: Make --update option actually work.
77107
77108 2006-04-29  Bruno Haible  <bruno@clisp.org>
77109
77110         * doc/gcd.texi: New file.
77111         * doc/gnulib.texi: Include it.
77112
77113 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * lib/getdate.y (get_date): When adding relative date, start with the
77116         initial time, not with the result of the first mktime call.
77117
77118 2006-04-25  Bruno Haible  <bruno@clisp.org>
77119
77120         * gnulib-tool (func_import): Output the include directives in three
77121         blocks, sorted separately.
77122         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77123
77124 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77127         to define main with arguments, for C++.  Reported by Eric Blake.
77128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77129         Prefer 'int main ()' to 'int main (void)', for C++.
77130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77132         for 'main', for C99 and C++.
77133
77134 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77137         Don't assume that exit status -1 is valid.
77138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77139         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77140         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77141         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77142         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77143         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77144         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77145         functions can be used without declaring them, or that you can
77146         exit with status -1.
77147         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77148
77149 2006-04-24  Karl Berry  <karl@gnu.org>
77150
77151         * config/srclist.txt (longdouble.m4): sync lost.
77152
77153 2006-04-24  Eric Blake  <ebb9@byu.net>
77154
77155         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77156
77157 2006-04-24  Bruno Haible  <bruno@clisp.org>
77158
77159         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77160         poll() implementation in AIX.
77161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77162
77163 2006-04-24  Bruno Haible  <bruno@clisp.org>
77164
77165         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77166         assigned exactly once.
77167
77168 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77169             Bruno Haible  <bruno@clisp.org>
77170
77171         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77172         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77173         for AM_CPPFLAGS.
77174
77175 2006-04-23  Bruno Haible  <bruno@clisp.org>
77176
77177         * modules/copy-file: Depend on unistd.
77178         * modules/execute: Likewise.
77179         * modules/fatal-signal: Likewise.
77180         * modules/findprog: Likewise.
77181         * modules/mkdtemp : Likewise.
77182         * modules/pipe: Likewise.
77183         * modules/wait-process: Likewise.
77184
77185 2006-04-23  Bruno Haible  <bruno@clisp.org>
77186
77187         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77188         condition was already detected.
77189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77190
77191 2006-04-23  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/copy-file.c: Include <unistd.h> unconditionally.
77194         * lib/execute.c: Likewise.
77195         * lib/fatal-signal.c: Likewise.
77196         * lib/findprog.c: Likewise.
77197         * lib/mkdtemp.c: Likewise.
77198         * lib/pipe.h: Likewise.
77199         * lib/pipe.c: Likewise.
77200         * lib/wait-process.h: Likewise.
77201
77202 2006-04-23  Bruno Haible  <bruno@clisp.org>
77203
77204         * gnulib-tool (func_usage): Fix --import description. Document
77205         --update.
77206         (func_import): Create temporary file in a temporary directory, if
77207         --dry-run is specified. Silence errors from 'grep' when there are no
77208         m4 files in $m4dir.
77209         (func_create_testdir): Silence errors from 'grep' when there are no
77210         m4 files in $m4dir.
77211         Reported by Karl Berry <karl@freefriends.org>.
77212
77213 2006-04-20  Bruno Haible  <bruno@clisp.org>
77214
77215         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77216         one argument, so that the code will be portable to Autoconf 2.60.
77217         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77218         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77219         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77220
77221 2006-04-19  Derek Price  <derek@ximbiot.com>
77222             Eric Blake  <ebb9@byu.net>
77223
77224         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77225         rather than "/full/path.h".  Update comment to match.  Shorten &
77226         generalize m4_translit call via AS_TR_CPP.
77227
77228 2006-04-19  Derek Price  <derek@ximbiot.com>
77229             Eric Blake  <ebb9@byu.net>
77230
77231         * lib/inttypes.h: Correct grammar in comment.
77232
77233 2006-04-18  Derek Price  <derek@ximbiot.com>
77234             Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * modules/inttypes: New file.
77237         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77238
77239 2006-04-18  Derek Price  <derek@ximbiot.com>
77240             Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77243         New files.
77244
77245 2006-04-18  Derek Price  <derek@ximbiot.com>
77246             Paul Eggert  <eggert@cs.ucla.edu>
77247
77248         * lib/inttypes.h: New file.
77249         * lib/strtoimax.c: Assume <inttypes.h>.
77250
77251 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77254         isn't mounted.  Problem reported by Kir Kolyshkin.
77255
77256 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77259         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77260         Derek R. Price.
77261         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77262         implementation.
77263
77264 2006-04-12  Eric Blake  <ebb9@byu.net>
77265
77266         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77267         is now done automatically by the corresponding Autoconf macro.
77268
77269 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77272         time_r.h.
77273
77274 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         Merge regex changes from libc, removing some of our
77277         POSIX-conformance changes that were rejected and redoing them in a
77278         less-intrusive way.
77279
77280         * lib/regcomp.c (re_compile_internal, init_dfa):
77281         Length arg is now size_t, not Idx.  All uses changed.
77282         (peek_token): Forward decl now says internal_function.
77283         (__re_error_msgid, __re_error_msgid_idx):
77284         Now static rather than extern with attribute_hidden.
77285         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77286         For some reason libc prefers K&R style defns for external functions.
77287         (regerror) [!defined _LIBC]: Likewise.
77288         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77289         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77290         (build_range_exp, build_collating_symbol):
77291         Use K&R-style defn.
77292         (re_compile_fastmap): Use '\0' to memset, not 0.
77293         (utf8_sb_map): Make the calculations more obvious.
77294         (init_dfa, parse_bracket_exp, build_charclass_op):
77295         Call calloc and cast result, as glibc does.
77296         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77297         (build_range_exp, build_collating_symbol):
77298         Now internal functions.
77299
77300         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77301
77302         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77303         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77304         Don't depend on VMS; depend on __VMS instead, for POSIX
77305         namespace cleanness.
77306         (regoff_t): Define to ssize_t, not long int.
77307
77308         Remove the REG_ macros named below.  Instead, make the old names
77309         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77310         __USE_GNU_REGEX.
77311         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77312         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77313         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77314         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77315         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77316         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77317         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77318         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77319         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77320         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77321         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77322         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77323         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77324         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77325         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77326         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77327         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77328         (REG_NREGS):
77329         Remove.  All uses replaced by the old RE_* names.
77330         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77331         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77332         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77333         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77334         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77335         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77336         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77337         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77338         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77339         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77340         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77341         Don't bother having these macros be independent of each others'
77342         values, since they no longer exist in the POSIX name space.
77343
77344         Rename the following member names back to their old names,
77345         unless !__USE_GNU_REGEX.  All uses changed back.
77346         (buffer): Renamed from re_buffer.
77347         (allocated): Renamed from re_allocated.
77348         (used): Renamed from re_used.
77349         (syntax): Renamed from re_syntax.
77350         (fastmap): Renamed from re_fastmap.
77351         (translate): Renamed from re_translate.
77352         (can_be_null): Renamed from re_can_be_null.
77353         (regs_allocated): Renamed from re_regs_allocated.
77354         (fastmap_accurate): Renamed from re_fastmap_accurate.
77355         (no_sub): Renamed from re_no_sub.
77356         (not_bol): Renamed from re_not_bol.
77357         (not_eol): Renamed from re_not_eol.
77358         (newline_anchor): Renamed from re_newline_anchor.
77359         (num_regs): Renamed from rm_num_regs.
77360         (start): Renamed from rm_start.
77361         (end): Renamed from rm_end.
77362
77363         (free_state): Move up a bit.
77364
77365         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77366         #define to be empty.
77367         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77368         when that is what is intended.
77369         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77370         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77371         (MAX): New macro.
77372         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77373         All uses changed back to re_malloc, etc.  It's now the caller's
77374         responsibility to check for overflow; all callers changed.
77375         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77376         (re_x2nrealloc): Remove.
77377         (free_state): Remove decl.
77378
77379         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77380         (re_set_registers, re_exec):
77381         Use K&R-style defn.
77382
77383         2006-01-31  Roland McGrath  <roland@redhat.com>
77384
77385         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77386         Reported by Mike Frysinger <vapier@gentoo.org>.
77387
77388         2006-01-15  Andreas Jaeger  <aj@suse.de>
77389
77390         [BZ #1950]
77391         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77392         build_wcs_upper_buffer change.
77393         (build_wcs_upper_buffer): Change return type.
77394
77395         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77396
77397         * lib/regex_internal.h: Include <stdint.h> if available.
77398
77399         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77400
77401         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77402
77403         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77404
77405         * lib/regcomp.c: Adjust for changed secondary hash function.
77406
77407         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77408
77409         * lib/regex.h: Pretty printing.
77410         Clean up namespace a bit.
77411
77412         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77413
77414         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77415         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77416
77417         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77418                     Ulrich Drepper  <drepper@redhat.com>
77419
77420         [BZ #1302]
77421         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77422         changed.
77423         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77424
77425         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77426
77427         [BZ #281]
77428         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77429         * lib/regcomp.c: Remove unnecessary uses of
77430         unsigned RE_TRANSLATE_TYPE.
77431         * lib/regex_internal.h: Likewise.
77432         * lib/regex_internal.c: Likewise.
77433         * lib/regexec.c: Likewise.
77434         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77435
77436         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77437
77438         * lib/regexec.c (find_recover_state): Remove unnecessary
77439         initialization.
77440         (transit_state_bkref): Make DFA a const pointer.
77441         (get_subexp): Likewise.
77442         (check_arrival): Likewise.
77443         (update_cur_sifted_state): Likewise.
77444         (re_search_internal): Likewise.
77445         (prune_impossible_nodes): Likewise.
77446         (acquire_init_state_context): Likewise.
77447         (proceed_next_node): Likewise.
77448         (set_regs): Likewise.
77449         (free_fail_stack_return): Likewise.
77450         (check_arrival_expand_ecl): Mark DFA parameter as const.
77451         (check_arrival_expand_ecl_sub): Likewise.
77452         (check_subexp_limits): Likewise.
77453         (sub_epsilon_src_nodes):  Likewise.
77454         (add_epsilon_src_nodes):  Likewise.
77455         (merge_state_array): Likewise.
77456         (update_regs): Likewise.
77457         (build_trtable): Likewise.
77458         (sift_states_backward): Mark MCTX parameter as const.
77459         (build_sifted_states): Likewise.
77460         (update_cur_sifted_state): Likewise.
77461         (sift_states_mkref): Likewise.
77462         (check_arrival_expand_ecl): Mark eclosure as const.
77463         (check_dst_limits_calc_pos_1): Likewise.
77464         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77465         pointer.
77466
77467         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77468
77469         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77470         (transit_state_sb): Likewise.
77471         (transit_state_mb): Likewise.
77472         (sift_states_iter_mb): Likewise.
77473         (check_arrival_add_next_nodes): Likewise.
77474         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77475         [_LIBC] (re_search_2_stub): Use mempcpy.
77476
77477         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77478         mbrtowc for very simple UTF-8 case.
77479
77480         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77481         a pointer-to-const.
77482         (re_acquire_state_context): Likewise.
77483         * lib/regex_internal.h: Adjust prototypes.
77484
77485         * lib/regex.c: Prevent using C++ compilers.
77486
77487         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77488         (re_acquire_state_context): Likewise.
77489
77490 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         * modules/regex (Depends-on): Add ssize_t.
77493
77494 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77495
77496         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77497         translation table.
77498
77499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77502
77503 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77504             Bruno Haible  <bruno@clisp.org>
77505
77506         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77507         <sys/types.h> and <inttypes.h>.
77508
77509 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77510
77511         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77512         `__error_t_defined', so argp.h will not typedef the former.
77513
77514 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77517         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77518         glibc names.  Even if glibc is changed to conform to POSIX, the
77519         traditional names will be available anyway, since regex depends on
77520         the extensions module.  Also, fix a longstanding typo in the
77521         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77522         reported by Emanuele Giaquinta.  Also, change sense of cached
77523         variable, so that the message makes sense.
77524
77525 2006-03-24  Simon Josefsson  <jas@extundo.com>
77526
77527         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77528         including some doc fixes.
77529         (base64_encode_alloc): Fix +1 bug on allocation failures.
77530
77531 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77532
77533         * lib/base64.c (base64_encode): Do not read past end of array with
77534         unsanitized input on systems with CHAR_BIT > 8.
77535
77536 2006-03-24  Eric Blake  <ebb9@byu.net>
77537
77538         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77539
77540 2006-03-22  Karl Berry  <karl@gnu.org>
77541
77542         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77543         * config/srclistvars.sh (COREUTILS): new var.
77544
77545 2006-03-17  Jim Meyering  <jim@meyering.net>
77546
77547         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77548         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77549
77550 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77553         no longer needs it.  Instead, check that regoff_t is as least
77554         as wide as ptrdiff_t.
77555
77556         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77557         so that our regex.h stays compatible with the installed regex.
77558         This is helpful for installers who configure --without-included-regex.
77559         Problem reported by Emanuele Giaquinta.
77560
77561 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77564         Typedef to long int, not to off_, as POSIX will likely change
77565         in that direction.
77566
77567 2006-03-15  Eric Blake  <ebb9@byu.net>
77568
77569         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77570
77571 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77572
77573         * lib/argp-help.c (validate_uparams): Fix typo
77574         * lib/argp-parse.c (argp_default_options): Consistently begin help
77575         messages with a lowercase letter.
77576
77577 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77580         overrun buffers and shouldn't be used (much as gets shouldn't be
77581         used).
77582         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77583
77584 2006-03-08  Simon Josefsson  <jas@extundo.com>
77585
77586         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77587         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77588
77589 2006-03-08  Simon Josefsson  <jas@extundo.com>
77590
77591         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77592         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77593
77594 2006-03-08  Simon Josefsson  <jas@extundo.com>
77595
77596         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77597         signal that configure disabled the device.
77598
77599 2006-03-08  Simon Josefsson  <jas@extundo.com>
77600
77601         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77602         languages.
77603
77604 2006-03-07  Simon Josefsson  <jas@extundo.com>
77605
77606         * modules/getopt (Depends-on): Add unistd.
77607
77608         * modules/unistd: New file.
77609
77610 2006-03-07  Simon Josefsson  <jas@extundo.com>
77611
77612         * modules/gc-random: New file.
77613
77614 2006-03-07  Simon Josefsson  <jas@extundo.com>
77615
77616         * m4/unistd_h.m4: New file.
77617
77618 2006-03-07  Simon Josefsson  <jas@extundo.com>
77619
77620         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77621         test to be side-effect free by storing the result in the cache
77622         variable gl_cv_lib_readline, and moving the assignment of
77623         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77624         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77625
77626 2006-03-07  Simon Josefsson  <jas@extundo.com>
77627
77628         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77629         error on missing devices (the functions will return an error).
77630
77631         * m4/gc.m4: Move random stuff to gc-random.m4
77632
77633 2006-03-07  Simon Josefsson  <jas@extundo.com>
77634
77635         * lib/unistd_.h: New file.
77636
77637 2006-03-07  Simon Josefsson  <jas@extundo.com>
77638
77639         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77640
77641 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77644         Problem reported by Juan Manuel Guerrero.
77645
77646 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77647
77648         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77649         the unistd module.
77650         * lib/getlogin_r.c: Likewise.
77651         * lib/getlogin_r.h: Likewise.
77652         * lib/glob.c: Likewise.
77653         * lib/pagealign_alloc.c: Likewise.
77654         * lib/unistd_.h: Remove; no longer needed.
77655
77656 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77659         Add unistd.
77660         * modules/c-stack (Depends-on): Add unistd.
77661         * modules/getlogin_r: Likewise.
77662         * modules/glob: Likewise.
77663         * modules/pagealign_alloc: Likewise.
77664         * modules/unistd (Files): Remove lib/unistd_.h.
77665         (EXTRA_DIST): Remove.
77666         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77667         need unistd_.h.
77668         (MOSTLYCLEANFILES): Remove unistd.h-t.
77669
77670 2006-03-03  Simon Josefsson  <jas@extundo.com>
77671
77672         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77673
77674 2006-03-03  Simon Josefsson  <jas@extundo.com>
77675
77676         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77677         libidn and bison.
77678
77679 2006-03-03  Simon Josefsson  <jas@extundo.com>
77680
77681         * build-aux/maint.mk: Add indent target.
77682
77683 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77684
77685         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77686         our replacement poll.h in any case, to avoid a differing
77687         declaration from a system header.  Seen on AIX.
77688
77689 2006-03-01  Simon Josefsson  <jas@extundo.com>
77690
77691         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77692         <kasal@ucw.cz>.
77693
77694 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * modules/gettime (Depends-on): Add extensions module.
77697         * modules/nanosleep (Depends-on): Likewise.
77698         * modules/settime (Depends-on): Likewise.
77699
77700 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77703         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77704         pedantically.
77705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77706         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77707
77708         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77709         not "==".  Reported by Ralf Wildenhues.
77710
77711 2006-03-01  Karl Berry  <karl@gnu.org>
77712
77713         * doc/Copyright/request-*: new files, synced from gnuorg.
77714
77715 2006-03-01  Karl Berry  <karl@gnu.org>
77716
77717         * config/srclist.txt (Copyright/*): new entries.
77718
77719 2006-02-28  Simon Josefsson  <jas@extundo.com>
77720
77721         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77722
77723 2006-02-27  Simon Josefsson  <jas@extundo.com>
77724
77725         * lib/base64.h: Indent #define's.  From Jim Meyering
77726         <jim@meyering.net>.
77727
77728 2006-02-27  Jim Meyering  <jim@meyering.net>
77729
77730         Revert the change of 2006-02-24, so these files can continue
77731         to be sync'd from gettext.
77732         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77733         of `config.h'.
77734
77735 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77736
77737         * modules/intprops: New file.
77738         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77739         Add intprops.
77740         * modules/getloadavg (Files): Remove lib/intprops.h.
77741         (Depends-on): Add intprops.
77742         * modules/human: Likewise.
77743         * modules/inttostr: Likewise.
77744         * modules/openat: Likewise.
77745         * modules/sig2str: Likewise.
77746         * modules/userspec: Likewise.
77747         * modules/utimecmp: Likewise.
77748         * modules/xnanosleep: Likewise.
77749         * modules/xstrtol: Likewise.
77750
77751 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77752
77753         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77754         * modules/lock-tests (TESTS): Use $(EXEEXT).
77755         * modules/tls-tests: Likewise.
77756         * modules/argp-tests: Likewise.
77757         (check_PROGRAMS): New var, replacing...
77758         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77759
77760 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77761
77762         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77763         `config.h'.
77764
77765 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77768
77769 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77770
77771         Sync from coreutils.
77772         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77773         gl_CHDIR_SAFER.
77774
77775 2006-02-22  Jim Meyering  <jim@meyering.net>
77776
77777         Sync from coreutils.
77778         * m4/chdir-safer.m4: New file.
77779
77780 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77783         AT_FDCWD exceeds INT_MAX.
77784         * lib/openat.h (AT_FDCWD): Likewise.
77785
77786 2006-02-17  Eric Blake  <address@hidden>
77787
77788         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77789
77790 2006-02-16  Simon Josefsson  <jas@extundo.com>
77791
77792         * modules/getaddrinfo (Depends-on): Add sys_socket.
77793
77794 2006-02-15  Simon Josefsson  <jas@extundo.com>
77795
77796         * build-aux/maint.mk: Add dsyntax-check rule.
77797
77798 2006-02-15  Eric Blake  <ebb9@byu.net>
77799
77800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77801         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77802         'present but cannot compile' warnings on cygwin.
77803         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77804         use ws2tcpip.h if sys/socket.h works.
77805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77806         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77807
77808 2006-02-14  Simon Josefsson  <jas@extundo.com>
77809
77810         * modules/maintainer-makefile (Files): Rename.
77811
77812         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77813         and (the local) Makefile.cfg to maint-cfg.mk.
77814
77815         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77816         to the latter.
77817
77818         * modules/maintainer-makefile: New module.
77819
77820         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77821         severaly stripped to make it possible to build it up from scratch
77822         with reliable tests.
77823
77824         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77825         fixes to permit overriding the default actions when configure and
77826         makefile are not available.
77827
77828 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         Sync from coreutils.
77831         * modules/lstat (Depends-on): Don't depend on xalloc.
77832         (License): Change from GPL to LGPL, since this is now simply a
77833         replacement for a libc function.
77834
77835 2006-02-14  Jim Meyering  <jim@meyering.net>
77836
77837         Sync from coreutils.
77838
77839         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77840         failure on deficient systems, and simplify gnulib lgpl dependencies.
77841         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77842         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77843
77844         * lib/xalloc-die.c: Remove unused definition of N_.
77845
77846 2006-02-14  Jim Meyering  <jim@meyering.net>
77847
77848         Sync from coreutils.
77849         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77850         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77851         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77852         double-quote uses of that variable, to accommodate the rare case in
77853         which getmntent is available in none of the libraries checked.  This
77854         happens at least on FreeBSD 5.0.
77855
77856 2006-02-13  Simon Josefsson  <jas@extundo.com>
77857
77858         * gnulib-tool (Usage): Fix --import, from
77859         karl@freefriends.org (Karl Berry).
77860
77861 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77862
77863         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77864
77865 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77866
77867         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77868         "autoupdate" on 2005-12-12.
77869
77870 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         * modules/closeout (Depends-on): Remove atexit.
77873
77874 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77877         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77878
77879 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77882         __EXTENSIONS__ if this causes compilation to fail.  Problem
77883         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77884         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77885
77886 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77889         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77890         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77891         All uses changed.
77892
77893 2006-01-26  Simon Josefsson  <jas@extundo.com>
77894
77895         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77896         prototype is visible on mingw32.
77897
77898         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77899         for mingw32.
77900
77901         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77902         mingw32).
77903
77904 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77907         attempt to open for write; this always fails, at least on POSIX
77908         hosts.  This reinstates the 2006-01-09 change, which was
77909         inadvertently removed.
77910
77911 2006-01-26  Bruno Haible  <bruno@clisp.org>
77912
77913         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77914         Reported by Paul Eggert.
77915
77916 2006-01-26  Bruno Haible  <bruno@clisp.org>
77917             Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * lib/stdbool_.h (_Bool)
77920         [(! (defined __cplusplus || defined __BEOS__)
77921           && !defined __GNUC__
77922           && !(defined __HP_cc || defined __xlc__
77923                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77924                || defined __sgi))]:
77925         #define to signed char in these cases too; this simplifies
77926         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77927         etc., separately) and makes it more conservative.
77928
77929 2006-01-25  Simon Josefsson  <jas@extundo.com>
77930
77931         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77932         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77933         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77934
77935 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77936
77937         * lib/argp-namefrob.h: Bugfix. Remove stray #
77938
77939 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77942         so that we test the test.
77943         Check for yet another HP-UX cc bug involving *bool |= bool.
77944
77945 2006-01-25  Karl Berry  <karl@gnu.org>
77946
77947         * config/srclist.txt (vasnprintf.c): sync lost.
77948
77949 2006-01-25  Jim Meyering  <jim@meyering.net>
77950
77951         Sync from the stable (b5) branch of coreutils:
77952
77953         * lib/fts.c (fts_children): Don't let close() clobber errno from
77954         failed fchdir().
77955
77956         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77957         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77958         a dangling symlink.  That can also happen at least for ELOOP.
77959         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77960         FYI, this bug predates the inclusion of fts.c in coreutils.
77961
77962         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77963         in their own block, so pre-c99 compilers don't object.
77964
77965         Avoid the double-free (first in fts_read, second in fts_close) that
77966         would occur when an `active' directory is made inaccessible (e.g.,
77967         via chmod a-x) during a traversal.
77968         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77969         before returning.  Reproduce this failure by
77970         mkdir -p a/b; cd a; chmod a-x . b
77971         Reported by Stavros Passas.
77972
77973 2006-01-25  Jim Meyering  <jim@meyering.net>
77974
77975         * lib/fileblocks.c: Remove more useless parentheses.
77976         * lib/readutmp.h: Likewise.
77977
77978 2006-01-25  Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77981         warnings.
77982         Reported by Paul Eggert.
77983
77984 2006-01-25  Bruno Haible  <bruno@clisp.org>
77985
77986         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77987         rid of a trap command. For Solaris sh.
77988         Reported by Mark D. Baushke <mdb@gnu.org>.
77989
77990 2006-01-24  Simon Josefsson  <jas@extundo.com>
77991
77992         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77993         Bruno.
77994
77995 2006-01-24  Karl Berry  <karl@gnu.org>
77996
77997         * config/srclist.txt (argp-namefrob.h): sync lost.
77998
77999 2006-01-24  Jim Meyering  <jim@meyering.net>
78000
78001         * modules/openat (Files): Add lib/intprops.h.
78002         From Mark D. Baushke.
78003
78004 2006-01-24  Jim Meyering  <jim@meyering.net>
78005
78006         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78007         Reported by Mark D. Baushke.
78008
78009 2006-01-24  Jim Meyering  <jim@meyering.net>
78010
78011         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78012
78013 2006-01-24  Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/strnlen (Maintainer): Change from glibc to all.
78016
78017 2006-01-24  Bruno Haible  <bruno@clisp.org>
78018
78019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78020         Patch by Paul Eggert.
78021
78022 2006-01-24  Bruno Haible  <bruno@clisp.org>
78023
78024         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78025         already has it.
78026         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78027         2005-11-26.
78028
78029         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78030         'signed char' to avoid problems with the built-in _Bool type.
78031         Reported by Paul Eggert on 2005-11-26.
78032
78033 2006-01-24  Bruno Haible  <bruno@clisp.org>
78034
78035         * gnulib-tool (func_import): Avoid constructing complicated sed
78036         expressions inside backquote.
78037         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78038
78039 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78040
78041         These changes imported from libc.
78042         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78043         test and two separate function calls.
78044         * lib/strndup.c (__strndup): Add libc_hidden_def.
78045
78046 2006-01-23  Simon Josefsson  <jas@extundo.com>
78047
78048         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78049         Remove the test_*_SOURCES variable: automake infers it by default.
78050         * modules/tls-tests: Likewise.
78051
78052 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         Work around porting bugs reported by Dieter in
78055         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78056         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78057         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78058         Include "getopt.h" first, to check interface.
78059         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78060         !HAVE_DECL_GETENV.
78061         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78062         (__strndup): Revert to K&R-style function dfns, the glibc style.
78063         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78064         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78065         Include strnlen.h first, to get prototype properly.
78066         (strnlen): Renamed from __strnlen.
78067         Remove weak alias.
78068
78069 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78072
78073 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * config/srclist.txt: Adjust to reflect glibc reorganization.
78076         This affects only comments.
78077
78078 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78079
78080          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78081          Reported by Bruce Korb <bkorb@gnu.org>.
78082
78083 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78086         to pacify gcc -Wswitch-default.
78087
78088 2006-01-22  Bruno Haible  <bruno@clisp.org>
78089
78090         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78091         temporary buffer for sprintf, take into account the precision also
78092         for 'd', 'i', 'u', 'o', 'x', 'X'.
78093
78094 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78095
78096         * modules/argp-tests: New module
78097         * tests/test-argp.c: New file
78098         * tests/test-argp-2.sh: New file
78099
78100 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78101
78102         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78103         (__argp_base_name): Removed
78104         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78105         typo.
78106         (__argp_base_name): Provide macro definition or extern declaration
78107         depending on the configuration
78108
78109 2006-01-20  Simon Josefsson  <jas@extundo.com>
78110
78111         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78112
78113 2006-01-20  Simon Josefsson  <jas@extundo.com>
78114
78115         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78116
78117 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78120         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78121         Suggested by Bruno Haible.
78122
78123 2006-01-20  Karl Berry  <karl@gnu.org>
78124
78125         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78126         until changes propagate, I guess.
78127
78128 2006-01-19  Simon Josefsson  <jas@extundo.com>
78129
78130         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78131
78132 2006-01-19  Simon Josefsson  <jas@extundo.com>
78133
78134         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78135
78136 2006-01-19  Simon Josefsson  <jas@extundo.com>
78137
78138         * gnulib-tool: Set check_PROGRAMS.
78139
78140         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78141         modules/des-tests, modules/gc-arcfour-tests,
78142         modules/gc-arctwo-tests, modules/gc-des-tests,
78143         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78144         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78145         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78146         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78147         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78148         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78149         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78150         test_*_SOURCES.
78151
78152 2006-01-18  Simon Josefsson  <jas@extundo.com>
78153
78154         * modules/socklen (Depends-on): Depend on sys_socket.
78155
78156 2006-01-18  Simon Josefsson  <jas@extundo.com>
78157
78158         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78159         modules/des-tests, modules/gc-arcfour-tests,
78160         modules/gc-arctwo-tests, modules/gc-des-tests,
78161         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78162         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78163         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78164         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78165         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78166         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78167         $(EXEEXT) to automake TESTS variable, for mingw32.
78168
78169 2006-01-17  Simon Josefsson  <jas@extundo.com>
78170
78171         * modules/socklen (Include): Need sys/socket.h.
78172
78173 2006-01-17  Bruno Haible  <bruno@clisp.org>
78174
78175         * modules/ssize_t (Include): Add <sys/types.h>.
78176
78177 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78180         it's not portable and it doesn't work with cross-compiles.
78181         Problem reported by Bruno Haible.  Fix missing-$ typo in
78182         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78183         -zignore from being used with Sun's C compiler.
78184
78185 2006-01-12  Simon Josefsson  <jas@extundo.com>
78186
78187         * lib/base64.c: Fix warning, reported by Bruno Haible
78188         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78189
78190 2006-01-12  Bruno Haible  <bruno@clisp.org>
78191
78192         * modules/ldd: New file.
78193         * build-aux/ldd.sh.in: New file.
78194         * MODULES.html.sh (Support for building libraries and executables): Add
78195         ldd.
78196
78197 2006-01-12  Bruno Haible  <bruno@clisp.org>
78198
78199         * m4/ldd.m4: New file.
78200
78201 2006-01-12  Bruno Haible  <bruno@clisp.org>
78202
78203         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78204         endless loop while replacing $auxdir with build-aux.
78205
78206 2006-01-11  Simon Josefsson  <jas@extundo.com>
78207
78208         * lib/stdint_.h (SIZE_MAX): Add missing (.
78209
78210 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         Sync from coreutils.
78213         * lib/md5.c: Fix commentary typos.
78214         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78215         * lib/md5.h (__attribute__): Remove; unused.
78216         * lib/sha1.c: Fix commentary to match md5 better.
78217         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78218         so that we don't need to worry about alignment.  All uses changed.
78219         This merges the 2005-10-28 md5 change into sha1.
78220
78221 2006-01-11  Jim Meyering  <jim@meyering.net>
78222
78223         Sync from coreutils.
78224         * lib/md5.c (OP): Fix spacing.
78225
78226 2006-01-11  Bruno Haible  <bruno@clisp.org>
78227
78228         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78229         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78230         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78231
78232 2006-01-11  Bruno Haible  <bruno@clisp.org>
78233
78234         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78235         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78236         the "early" section as well.
78237
78238 2006-01-11  Bruno Haible  <bruno@clisp.org>
78239
78240         Avoid "ar: no archive members specified" error on MacOS X.
78241         * gnulib-tool (func_modules_add_dummy): New function.
78242         (func_import, func_create_testdir): Invoke it.
78243
78244 2006-01-11  Bruno Haible  <bruno@clisp.org>
78245
78246         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78247         with $auxdir in AC_CONFIG_FILES statements.
78248
78249 2006-01-11  Bruno Haible  <bruno@clisp.org>
78250
78251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78252         Initialize also noinst_HEADERS to empty.
78253
78254 2006-01-11  Bruno Haible  <bruno@clisp.org>
78255
78256         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78257         variables.
78258         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78259         autoreconf.
78260
78261 2006-01-11  Bruno Haible  <bruno@clisp.org>
78262
78263         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78264         overridable by the user.
78265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78266
78267 2006-01-10  Simon Josefsson  <jas@extundo.com>
78268
78269         * modules/sys_socket: New file.
78270
78271 2006-01-10  Simon Josefsson  <jas@extundo.com>
78272
78273         * m4/sys_socket_h.m4: New file.
78274
78275 2006-01-10  Simon Josefsson  <jas@extundo.com>
78276
78277         * lib/socket_.h: New file.
78278
78279 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         * modules/readutmp (Maintainer): Add myself.
78282
78283 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78286         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78287         People who are still concerned with buggy memcmp implementations
78288         can invoke gl_FUNC_MEMCMP themselves.
78289
78290 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * lib/regex_internal.h (BITSET_WORD_BITS):
78293         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78294         preprocessor mishandles large unsigned values as if they were signed.
78295         Problem reported by Claudio Fontana in
78296         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78297
78298 2006-01-10  Jim Meyering  <jim@meyering.net>
78299
78300         Avoid the double-free (first in fts_read, second in fts_close) that
78301         would occur when an `active' directory is made inaccessible (e.g.,
78302         via chmod a-x) during a traversal.
78303         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78304         before returning.  Reproduce this failure by
78305         mkdir -p a/b; cd a; chmod a-x . b
78306         Reported by Stavros Passas.
78307
78308         Sync from coreutils.
78309         * lib/sha1.c: Tweak grammar in a comment.
78310
78311 2006-01-10  Jim Meyering  <jim@meyering.net>
78312
78313         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78314         Patch by Joerg Sonnenberger.
78315
78316 2006-01-10  Bruno Haible  <bruno@clisp.org>
78317
78318         * modules/readutmp: Depend on module free.
78319         * modules/strtok_r: Depend on module restrict.
78320
78321 2006-01-10  Bruno Haible  <bruno@clisp.org>
78322
78323         * modules/gettext (configure.ac): Add an invocation of
78324         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78325
78326 2006-01-10  Bruno Haible  <bruno@clisp.org>
78327
78328         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78329         Reported by Werner Lemberg <wl@gnu.org>.
78330
78331 2006-01-10  Bruno Haible  <bruno@clisp.org>
78332
78333         * lib/localcharset.c: Update from GNU gettext.
78334
78335 2006-01-10  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/argp.h (__const): Remove macro. Use const instead.
78338         * lib/argp-fmtstream.h (__const): Likewise.
78339         * lib/glob_.h (__const): Remove macro.
78340         * lib/glob-libc.h: Use const instead of __const.
78341
78342 2006-01-10  Bruno Haible  <bruno@clisp.org>
78343
78344         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78345         variable.
78346         Needed to avoid an automake error regarding the 'gettext' module.
78347
78348 2006-01-09  Simon Josefsson  <jas@extundo.com>
78349
78350         * modules/inet_ntop (Depends-on): Add restrict.
78351
78352 2006-01-09  Simon Josefsson  <jas@extundo.com>
78353
78354         * modules/gc-rijndael-tests (License): Put under LGPL.
78355
78356         * modules/gc-des-tests (License): Likewise.
78357
78358         * modules/gc-arcfour-tests (License): Likewise.
78359
78360         * modules/gc-arctwo-tests (License): Likewise.
78361
78362         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78363
78364         * modules/gc-hmac-sha1-tests (Files): Likewise.
78365
78366         * modules/gc-hmac-md5-tests (License): Likewise.
78367
78368         * modules/gc-sha1-tests (License): Likewise.
78369
78370         * modules/gc-md5-tests (License): Likewise.
78371
78372         * modules/gc-md4-tests (License): Likewise.
78373
78374         * modules/gc-md2-tests (License): Likewise.
78375
78376         * modules/gc-tests (License): Likewise.
78377
78378         * modules/des-tests (License): Likewise.
78379
78380         * modules/md4-tests (License): Likewise.
78381
78382         * modules/md2-tests (License): Likewise.
78383
78384 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         Sync from coreutils:
78387
78388         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78389         * modules/lib-ignore: New file.
78390         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78391         chdir-safer.m4, lchmod.m4.
78392         * modules/openat: Add mkdirat.c, openat-priv.h.
78393
78394 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         Sync from coreutils.
78397         * m4/lib-ignore.m4: New file.
78398         * m4/lchmod.m4: New file.
78399
78400 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         Sync from coreutils.
78403         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78404         for write access: POSIX says that must fail.
78405         * lib/fts.c (diropen): Likewise.
78406         * lib/save-cwd.c (save_cwd): Likewise.
78407         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78408         well, for minor improvements on hosts that lack O_DIRECTORY.
78409         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78410         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78411         Fall back on chown if open failed with EACCES.
78412
78413         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78414         Report an error at compile-time if only a 1-second nominal clock
78415         resolution is found.
78416
78417         * lib/lchmod.h: New file.
78418         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78419         (make_dir_parents): Use lchown rather than chown, and
78420         lchmod rather than chmod.
78421
78422         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78423         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78424         "proc" reported by n0dalus.
78425
78426         * lib/mountlist.c: Include <limits.h>.
78427         (dev_from_mount_options)
78428         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78429         New function.  It no longer assumes "dev=" has the System V meaning
78430         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78431         (read_file_system_list)
78432         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78433         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78434         dev= in that case.
78435
78436         * lib/posixtm.h (PDS_PRE_2000): New macro.
78437         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78438         allow_century.  All usages changed.  Reject dates outside the range
78439         1969-1999 if PDS_PRE_2000 is used.
78440
78441 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         Sync from coreutils.
78444         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78445         (Time of day items): Mention the possibility of leap seconds.
78446         Problem reported by Dr. David Alan Gilbert.
78447
78448 2006-01-09  Jim Meyering  <jim@meyering.net>
78449
78450         Sync from coreutils.
78451
78452         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78453
78454         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78455
78456         * lib/modechange.c (mode_compile): Reject an invalid mode string
78457         that starts with an octal digit.  From Andreas Gruenbacher.
78458
78459         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78460         and dup to open_safer and dup_safer, respectively.
78461         (openat_permissive): Fix typo in comment.
78462
78463         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78464         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78465         (_): Remove; no longer needed.
78466         (openat): Renamed from rpl_openat; no need for rpl_openat
78467         since openat.h renames openat for us.
78468         Replace most of the body with a call to openat_permissive,
78469         to avoid duplicate code.
78470         Port to (probably hypothetical) environments were mode_t is
78471         wider than int.
78472         (openat_permissive): Require mode arg, so that we can check
78473         types better.  Put it just after flags.  Change cwd failure
78474         indicator from pointer-to-bool to pointer-to-errno-value.
78475         All callers changed.
78476         Invoke openat_save_fail and/or openat_restore_fail if
78477         cwd_errno is null, so that openat can call us.
78478         (openat_permissive, fdopendir, fstatat, unlinkat):
78479         Simplify errno handling to avoid some duplicate code,
78480         as it's OK to set errno on success.
78481         * lib/openat.h: Revamp code so that function macros depend on
78482         __OPENAT_PREFIX only, not also on AT_FDCWD.
78483         (openat_ro): Remove.  Caller changed to use openat_permissive.
78484         (openat_permissive): Now a macro, if not a function.
78485         (openat_restore_fail, openat_save_fail): Now always functions,
78486         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78487
78488         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78489         and openat.c.
78490         * lib/mkdirat.c: Include openat-priv.h.
78491         Remove definitions of macros defined therein.
78492         * lib/openat.c: Likewise.
78493
78494         * lib/mkdirat.c (mkdirat): New file and function.
78495         * lib/openat.h (mkdirat): Declare.
78496
78497         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78498
78499         * lib/openat.h (openat_permissive): Declare.
78500         (openat_ro): Define.
78501
78502         * lib/openat.c (EXPECTED_ERRNO): New macro.
78503         (openat_permissive): New function -- used in remove.c rewrite.
78504         (all functions): Set errno just before returning, only if there
78505         was an actual failure.
78506         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78507
78508         Emulate openat-family functions using Linux's procfs, if possible.
78509         Idea and some code based on Ulrich Drepper's glibc changes.
78510
78511         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78512         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78513         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78514         before falling back on save_cwd and restore_cwd.
78515         (fdopendir, fstatat, unlinkat): Likewise.
78516
78517         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78518         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78519
78520         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78521         as second argument to va_arg.  Otherwise, some versions of gcc
78522         warn that `if this code is reached, the program will abort'.
78523
78524 2006-01-09  Jim Meyering  <jim@meyering.net>
78525
78526         Sync from coreutils.
78527         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78528         Require openat-priv.h.
78529
78530 2006-01-09  Bruno Haible  <bruno@clisp.org>
78531
78532         * modules/strnlen (Include): Use strnlen.h.
78533
78534 2006-01-09  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78537
78538 2006-01-09  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/sysexit_.h (EX_OK): New macro.
78541         Suggested by Martin Lambers <marlam@marlam.de>.
78542
78543 2006-01-09  Bruno Haible  <bruno@clisp.org>
78544
78545         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78546         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78547
78548 2006-01-09  Bruno Haible  <bruno@clisp.org>
78549
78550         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78551         numbers.
78552
78553 2006-01-09  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78556         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78557         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78558         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78559
78560 2006-01-09  Bruno Haible  <bruno@clisp.org>
78561
78562         * build-aux/javacomp.sh.in: New file, moved from lib/.
78563         * modules/javacomp-script (Files): Update.
78564         (configure.ac): Add AC_CONFIG_FILES invocation.
78565         (EXTRA_DIST): Remove variable.
78566
78567         * build-aux/javaexec.sh.in: New file, moved from lib/.
78568         * modules/javaexec (Files): Update.
78569         (configure.ac): Add AC_CONFIG_FILES invocation.
78570         (EXTRA_DIST): Remove javaexec.sh.in.
78571
78572         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78573         * modules/csharpcomp-script (Files): Update.
78574         (configure.ac): Add AC_CONFIG_FILES invocation.
78575         (EXTRA_DIST): Remove variable.
78576
78577         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78578         * modules/csharpexec (Files): Update.
78579         (configure.ac): Add AC_CONFIG_FILES invocation.
78580         (EXTRA_DIST): Remove csharpexec.sh.in.
78581
78582 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78583
78584         Sync from coreutils.
78585
78586         Add POSIX ACL support
78587         * lib/acl.h (copy_acl, set_acl): Add declarations.
78588         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78589         systems other than Linux.
78590         (chmod_or_fchmod): New function: use fchmod when possible,
78591         and chmod otherwise.
78592         (file_has_acl): Add a POSIX ACL implementation, with a
78593         Linux-specific subcase.
78594         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78595         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78596         acls are unsupported.
78597         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78598         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78599         are unsupported.
78600
78601 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78602
78603         Sync from coreutils.
78604         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78605
78606 2006-01-07  Bruno Haible  <bruno@clisp.org>
78607
78608         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78609         gl_EARLY.
78610
78611 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78614         Problem reported for Mingw by Mark Junker.
78615
78616 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * README: Gnulib normally doesn't generate a tarball.
78619
78620 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78623         long int, not int, for nanosecond counts, so that people who are
78624         used to POSIX struct timespec won't be surprised.  Reported by Jim
78625         Meyering.
78626
78627 2005-12-28  Bruno Haible  <bruno@clisp.org>
78628
78629         * build-aux/config.rpath: Update from GNU gettext.
78630
78631 2005-12-16  Jim Meyering  <jim@meyering.net>
78632
78633         * modules/fprintftime: New module.
78634         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78635
78636 2005-12-16  Jim Meyering  <jim@meyering.net>
78637
78638         * m4/fprintftime.m4: New file.
78639
78640 2005-12-16  Jim Meyering  <jim@meyering.net>
78641
78642         * lib/fprintftime.c, lib/fprintftime.h: New files.
78643
78644 2005-12-15  Simon Josefsson  <jas@extundo.com>
78645
78646         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78647         new m4/socklen.m4.
78648
78649 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78650
78651         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78652         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78653
78654 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78655
78656         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78657         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78658         struct uparams is valid. Fall back to the default values if it is
78659         not.
78660
78661 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78662
78663         * modules/argp (Files): Add argp-pin.c
78664         (Depends-on): dirname
78665         (lib_SOURCES): Add argp-pin.c
78666
78667 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78668
78669         * m4/argp.m4:  Check if program_invocation_name and
78670         program_invocation_short_name are declared and define appropriate
78671         macros if they are not.
78672
78673 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78674
78675         * lib/argp-help.c (__argp_base_name): New function
78676         (__argp_short_program_name): Rewrite using __argp_base_name
78677         * lib/argp-namefrob.h: Define program_invocation_name and
78678         program_invocation_short_name if requested
78679         (__argp_base_name): Add prototype
78680         * lib/argp-parse.c (argp_def): Use gettext wrappers
78681         (argp_default_parser): Use __argp_base_name
78682         * lib/argp-pin.c: New file. Defines program_invocation_name and
78683         program_invocation_short_name on systems that lack them.
78684
78685 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78688         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78689         porting problem reported by Georg Schwarz in
78690         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78691
78692 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78695         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78696         porting problem reported by Georg Schwarz in
78697         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78698
78699 2005-12-05  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78702         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78703         Reported by Mark Junker <mjscod@gmx.de>.
78704
78705 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78708         Use implementation from Albert Chin, with some
78709         comments/corrections by Stepan Kasal and myself.
78710
78711 2005-12-02  Bruno Haible  <bruno@clisp.org>
78712
78713         * gnulib-tool (func_import): Accept GPLed build tool modules when
78714         --lgpl is given.
78715         * modules/csharpcomp-script: New file.
78716         * modules/csharpcomp: Depend on it.
78717         * modules/javacomp-script: New file.
78718         * modules/javacomp: Depend on it.
78719         Suggested by Simon Josefsson.
78720
78721 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78724         statement, to work around an HP-UX 10.20 compiler bug reported by
78725         Peter O'Gorman.
78726
78727 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * modules/savedir (Depends-on): Add openat.
78730
78731 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78734         (uintmax_t) [defined uintmax_t]: Do not declare.
78735         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78736         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78737         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78738         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78739         sake of portability to weird hosts that C allows (though we don't
78740         know of any practical examples).
78741
78742         * lib/savedir.h (fdsavedir): New decl.
78743         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78744         contains most of the former guts of savedir.
78745         (savedir): Use savedirstream.
78746         Include "openat.h".
78747
78748 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * modules/obstack (Files): Add m4/ulonglong.m4.
78751         Problem reported by Davide Angelocola.
78752
78753 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78756         coreutils no longer futzes with rounding modes.
78757
78758 2005-11-14  Jim Meyering  <jim@meyering.net>
78759
78760         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78761         replacement of mkstemp.
78762
78763 2005-11-10  Simon Josefsson  <jas@extundo.com>
78764
78765         * lib/readline.c: Remove EOL.
78766
78767 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * modules/gethrxtime (Depends-on): Add gettime.
78770
78771 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78774         or gettimeofday; no longer needed.
78775
78776 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78779         time business.
78780         (gethrxtime) [! (HAVE_NANOUPTIME
78781         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78782         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78783         our own approximation.
78784
78785 2005-11-08  Eric Blake  <ebb9@byu.net>
78786
78787         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78788
78789 2005-11-08  Eric Blake  <ebb9@byu.net>
78790
78791         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78792
78793 2005-11-04  Bruno Haible  <bruno@clisp.org>
78794
78795         * gnulib-tool: Implement --update mode.
78796
78797 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         Fix porting problem reported by Theodoros V. Kalamatianos.
78800         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78801         Don't assume that futimes failing means we must fail.
78802
78803 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78806         variables to suggest the intended function of the PATH_MAX check.
78807
78808 2005-10-30  Kean Johnston  <jkj@sco.com>
78809
78810         Trivial changes to support SCO systems.
78811         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78812         as PATH_MAX.
78813         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78814         where __ptr is null when no I/O is pending.
78815
78816 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78817
78818         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78819         leave errno alone.  Problem reported by Dmitry V. Levin.
78820
78821 2005-10-28  Simon Josefsson  <jas@extundo.com>
78822
78823         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78824         Test more.
78825
78826         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78827
78828         * modules/md2, modules/md2-tests: New files.
78829
78830 2005-10-28  Simon Josefsson  <jas@extundo.com>
78831
78832         * m4/inet_ntop.m4: More tests.
78833
78834         * m4/gc-md2.m4, md2.m4: New file.
78835
78836 2005-10-28  Simon Josefsson  <jas@extundo.com>
78837
78838         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78839         "restrict" keywords, as per POSIX.  Protect the function
78840         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78841         Don't use K&R prototypes.  Check the sprintf return values.
78842         Re-define EAFNOSUPPORT if not present.  Indent.
78843
78844         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78845         suggested by Bruno Haible <bruno@clisp.org>.
78846
78847         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78848
78849         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78850
78851         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78852         libgcrypt).
78853
78854         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78855
78856         * lib/md2.h, lib/md2.c: New files.
78857
78858 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78861         errno alone.  Problem reported by Frederic Jolliton.
78862
78863 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * modules/verify (License): Change from GPL to LGPL.  This is a
78866         tiny module and there are apparently near-equivalents that are
78867         under the BSD license.
78868
78869 2005-10-24  Simon Josefsson  <jas@extundo.com>
78870
78871         * modules/sha1: Relicense to LGPL.
78872
78873 2005-10-24  Simon Josefsson  <jas@extundo.com>
78874
78875         * lib/md4.h: Shrink buffer size, now that we changed the type.
78876
78877 2005-10-23  Simon Josefsson  <jas@extundo.com>
78878
78879         * gnulib-tool (func_import): Fix --tests-base.
78880
78881 2005-10-22  Simon Josefsson  <jas@extundo.com>
78882
78883         * modules/arcfour (Depends-on): Need stdint.
78884
78885 2005-10-22  Simon Josefsson  <jas@extundo.com>
78886
78887         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78888         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78889
78890 2005-10-22  Simon Josefsson  <jas@extundo.com>
78891
78892         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78893         suggested by Bruno Haible <bruno@clisp.org>.
78894
78895 2005-10-22  Simon Josefsson  <jas@extundo.com>
78896
78897         * lib/crc.h: Include stddef.h, for size_t.
78898
78899 2005-10-22  Simon Josefsson  <jas@extundo.com>
78900
78901         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78902         arcfour_context struct (simplify test vector testing in GNU
78903         Shishi).
78904
78905 2005-10-21  Simon Josefsson  <jas@extundo.com>
78906
78907         * modules/des, modules/des-tests: New files.
78908
78909         * modules/gc-des, modules/gc-des-tests: New files.
78910
78911         * tests/test-des.c, tests/test-gc-des.c: New file.
78912
78913 2005-10-21  Simon Josefsson  <jas@extundo.com>
78914
78915         * modules/arctwo, modules/arctwo-tests: New files.
78916
78917         * tests/test-arctwo.c: New file.
78918
78919         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78920
78921         * tests/test-gc-arctwo.c: New file.
78922
78923 2005-10-21  Simon Josefsson  <jas@extundo.com>
78924
78925         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78926         Bruno Haible <bruno@clisp.org>.
78927
78928         * m4/gc-des.m4: New file.
78929
78930 2005-10-21  Simon Josefsson  <jas@extundo.com>
78931
78932         * m4/arctwo.m4: New file.
78933
78934         * m4/gc-arctwo.m4: New file.
78935
78936 2005-10-21  Simon Josefsson  <jas@extundo.com>
78937
78938         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78939         block.
78940
78941 2005-10-21  Simon Josefsson  <jas@extundo.com>
78942
78943         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78944         <bruno@clisp.org>.
78945
78946         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78947
78948         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78949         Bruno Haible <bruno@clisp.org>.
78950
78951         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78952         <bruno@clisp.org>.
78953
78954 2005-10-21  Simon Josefsson  <jas@extundo.com>
78955
78956         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78957
78958 2005-10-21  Simon Josefsson  <jas@extundo.com>
78959
78960         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78961
78962 2005-10-21  Simon Josefsson  <jas@extundo.com>
78963
78964         * lib/des.h, lib/des.c: New files.
78965
78966         * lib/gc-gnulib.c: Support DES.c
78967
78968 2005-10-21  Simon Josefsson  <jas@extundo.com>
78969
78970         * lib/arctwo.h, lib/arctwo.c: New files.
78971
78972         * lib/gc-gnulib.c: Support ARCTWO.
78973
78974 2005-10-21  Simon Josefsson  <jas@extundo.com>
78975
78976         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78977         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78978
78979 2005-10-21  Simon Josefsson  <jas@extundo.com>
78980
78981         * gnulib-tool (func_import, func_create_testdir): Define automake
78982         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78983         Makefile.am snippet),
78984         suggested by Bruno Haible <bruno@clisp.org>.
78985
78986         * modules/gc (Makefile.am): Use it.
78987
78988 2005-10-21  Bruno Haible  <bruno@clisp.org>
78989
78990         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78991         patch.
78992
78993 2005-10-19  Simon Josefsson  <jas@extundo.com>
78994
78995         * tests/test-gc-rijndael.c: New file.
78996
78997         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78998
78999 2005-10-19  Simon Josefsson  <jas@extundo.com>
79000
79001         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79002         interface too.
79003
79004 2005-10-19  Simon Josefsson  <jas@extundo.com>
79005
79006         * tests/test-gc-arcfour.c: New file.
79007
79008         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79009
79010 2005-10-19  Simon Josefsson  <jas@extundo.com>
79011
79012         * modules/gc-md4, modules/gc-md4-tests: New file.
79013
79014         * tests/test-gc-md4.c: New file.
79015
79016 2005-10-19  Simon Josefsson  <jas@extundo.com>
79017
79018         * m4/gc-md4.m4: New file.
79019
79020 2005-10-19  Simon Josefsson  <jas@extundo.com>
79021
79022         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79023         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79024         <kasal@ucw.cz>.
79025
79026 2005-10-19  Simon Josefsson  <jas@extundo.com>
79027
79028         * m4/gc-arcfour.m4: New file.
79029
79030         * m4/gc-rijndael.m4: New file.
79031
79032 2005-10-19  Simon Josefsson  <jas@extundo.com>
79033
79034         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79035
79036 2005-10-19  Simon Josefsson  <jas@extundo.com>
79037
79038         * lib/gc-gnulib.c: Support ARCFOUR.
79039
79040 2005-10-19  Simon Josefsson  <jas@extundo.com>
79041
79042         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79043         support.
79044
79045         * lib/gc.h: Add ECB enum type.
79046
79047         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79048
79049 2005-10-18  Simon Josefsson  <jas@extundo.com>
79050
79051         * tests/test-md5.c: New file.
79052
79053         * modules/md5-tests: New file.
79054
79055 2005-10-18  Simon Josefsson  <jas@extundo.com>
79056
79057         * tests/test-md4.c: New file.
79058
79059         * modules/md4, modules/md4-tests: New files.
79060
79061 2005-10-18  Simon Josefsson  <jas@extundo.com>
79062
79063         * m4/md4.m4: New file.
79064
79065 2005-10-18  Simon Josefsson  <jas@extundo.com>
79066
79067         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79068
79069 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79070
79071         * gnulib-tool (func_create_testdir): Omit the second check whether
79072         BUILT_SOURCES in nonempty.
79073
79074 2005-10-17  Simon Josefsson  <jas@extundo.com>
79075
79076         * tests/test-rijndael.c: New file.
79077
79078 2005-10-17  Simon Josefsson  <jas@extundo.com>
79079
79080         * modules/sha1: Depend on stdint instead of md5.
79081
79082         * modules/md5: Depend on stdint, remove uint32_t.
79083
79084 2005-10-17  Simon Josefsson  <jas@extundo.com>
79085
79086         * modules/gc-sha1-tests: New file.
79087
79088         * tests/test-gc-sha1.c: New file.
79089
79090 2005-10-17  Simon Josefsson  <jas@extundo.com>
79091
79092         * m4/md5.m4: Remove call to uint32_t.m4.
79093
79094 2005-10-17  Simon Josefsson  <jas@extundo.com>
79095
79096         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79097
79098         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79099         md5.h.
79100
79101         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79102
79103         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79104
79105 2005-10-17  Simon Josefsson  <jas@extundo.com>
79106
79107         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79108
79109 2005-10-17  Simon Josefsson  <jas@extundo.com>
79110
79111         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79112
79113 2005-10-17  Simon Josefsson  <jas@extundo.com>
79114
79115         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79116
79117         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79118
79119 2005-10-17  Bruno Haible  <bruno@clisp.org>
79120
79121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79122         that it can also be used in a test.
79123
79124 2005-10-16  Bruno Haible  <bruno@clisp.org>
79125
79126         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79127         TESTS_ENVIRONMENT, so that individual tests can augment it.
79128
79129         * gnulib-tool (func_create_testdir): Use an intermediate target for
79130         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79131         macros, like $(ALLOCA_H), which cannot be passed through the command
79132         line.
79133
79134 2005-10-15  Simon Josefsson  <jas@extundo.com>
79135
79136         * modules/rijndael-tests: New file.
79137
79138         * modules/rijndael: New file.
79139
79140 2005-10-15  Simon Josefsson  <jas@extundo.com>
79141
79142         * m4/rijndael.m4: New file.
79143
79144 2005-10-15  Simon Josefsson  <jas@extundo.com>
79145
79146         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79147
79148         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79149
79150 2005-10-14  Simon Josefsson  <jas@extundo.com>
79151
79152         * tests/test-arcfour.c: New file.
79153
79154         * modules/arcfour, modules/arcfour-tests: New files.
79155
79156 2005-10-14  Simon Josefsson  <jas@extundo.com>
79157
79158         * m4/arcfour.m4: New file.
79159
79160 2005-10-14  Simon Josefsson  <jas@extundo.com>
79161
79162         * lib/arcfour.h, lib/arcfour.c: New files.
79163
79164 2005-10-14  Roland McGrath  <roland@redhat.com>
79165
79166         Import from libc.  [BZ #1331]
79167         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79168         macro argument.
79169         Reported by Matej Vela <vela@debian.org>.
79170
79171 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79174         include <wchar.h>; no longer needed.
79175
79176 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79179
79180 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79181         and  Ulrich Drepper  <drepper@redhat.com>
79182
79183         Import from libc.
79184         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79185         instead of inline stream orientation test and two separate
79186         function calls.  Pay no attention to USE_IN_LIBIO.
79187
79188 2005-10-13  Simon Josefsson  <jas@extundo.com>
79189
79190         * modules/gc-hmac-md5-tests: New file.
79191
79192         * tests/test-gc-hmac-sha1.c: New file.
79193
79194         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79195
79196         * modules/gc-hmac-md5-tests: New file.
79197
79198         * tests/test-gc-md5.c: New file.
79199
79200         * modules/gc-md5-tests: New file.
79201
79202 2005-10-13  Simon Josefsson  <jas@extundo.com>
79203
79204         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79205         Move memory allocation outside of loop.
79206
79207 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79210         intermediate directory is in a read-only file system.  Problem
79211         reported by Eric Blake.
79212
79213 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79214
79215         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79216
79217 2005-10-12  Simon Josefsson  <jas@extundo.com>
79218
79219         * tests/test-hmac-sha1.c: New file.
79220
79221         * modules/hmac-sha1-tests: New file.
79222
79223         * modules/hmac-sha1: New file.
79224
79225 2005-10-12  Simon Josefsson  <jas@extundo.com>
79226
79227         * modules/gc-sha1: New file.
79228
79229 2005-10-12  Simon Josefsson  <jas@extundo.com>
79230
79231         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79232
79233         * tests/test-gc-pbkdf2-sha1.c: New file.
79234
79235 2005-10-12  Simon Josefsson  <jas@extundo.com>
79236
79237         * modules/gc-md5, modules/gc-hmac-md5: New files.
79238
79239         * modules/gc (Files): Remove md5, memxor and hmac files.
79240
79241 2005-10-12  Simon Josefsson  <jas@extundo.com>
79242
79243         * m4/gc-pbkdf2-sha1.m4: New file.
79244
79245         * m4/gc-hmac-sha1.m4: New file.
79246
79247         * m4/gc-sha1: New file.
79248
79249         * m4/hmac-sha1.m4: New file.
79250
79251 2005-10-12  Simon Josefsson  <jas@extundo.com>
79252
79253         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79254
79255         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79256
79257 2005-10-12  Simon Josefsson  <jas@extundo.com>
79258
79259         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79260         suggested by Bruno Haible <bruno@clisp.org>.
79261
79262 2005-10-12  Simon Josefsson  <jas@extundo.com>
79263
79264         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79265
79266 2005-10-12  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/gc-pbkdf2-sha1.c: New file.
79269
79270         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79271
79272 2005-10-12  Simon Josefsson  <jas@extundo.com>
79273
79274         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79275
79276         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79277
79278 2005-10-12  Simon Josefsson  <jas@extundo.com>
79279
79280         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79281         GC_USE_HMAC_MD5, respectively.
79282
79283         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79284         (gc_md5): Fix typo.
79285
79286         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79287
79288         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79289
79290         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79291
79292 2005-10-12  Bruno Haible  <bruno@clisp.org>
79293
79294         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79295         Reported by Stepan Kasal <kasal@ucw.cz>.
79296
79297 2005-10-11  Simon Josefsson  <jas@extundo.com>
79298
79299         * tests/test-crc.c: New file.
79300
79301         * modules/crc, modules/crc-tests: New files.
79302
79303 2005-10-11  Simon Josefsson  <jas@extundo.com>
79304
79305         * m4/crc.m4: New file.
79306
79307 2005-10-11  Simon Josefsson  <jas@extundo.com>
79308
79309         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79310
79311         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79312
79313         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79314
79315 2005-10-11  Simon Josefsson  <jas@extundo.com>
79316
79317         * lib/crc.h, lib/crc.c: New files.
79318
79319         * lib/gc.h (gc_hash_buffer): Add doc.
79320
79321 2005-10-11  Bruno Haible  <bruno@clisp.org>
79322
79323         * modules/c-strcasestr: New file.
79324         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79325
79326 2005-10-11  Bruno Haible  <bruno@clisp.org>
79327
79328         * modules/c-strcase: New file.
79329         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79330
79331 2005-10-11  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/strcasecmp.c: Include limits.h.
79334         (strcasecmp): Avoid integer overflow on exotic platforms.
79335         * lib/strncasecmp.c: Include limits.h.
79336         (strncasecmp): Avoid integer overflow on exotic platforms.
79337         Reported by Paul Eggert.
79338
79339 2005-10-11  Bruno Haible  <bruno@clisp.org>
79340
79341         * lib/c-strcasestr.h: New file, from GNU gettext.
79342         * lib/c-strcasestr.c: New file, from GNU gettext.
79343
79344 2005-10-11  Bruno Haible  <bruno@clisp.org>
79345
79346         * lib/c-strcase.h: New file, from GNU gettext.
79347         * lib/c-strcasecmp.c: New file, from GNU gettext.
79348         * lib/c-strncasecmp.c: New file, from GNU gettext.
79349
79350 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         * modules/mempcpy (License): GPL -> LGPL.
79353         * modules/strchrnul (License): Likewise.
79354         * modules/sysexits (License): Likewise.
79355
79356 2005-10-08  Simon Josefsson  <jas@extundo.com>
79357
79358         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79359
79360 2005-10-07  Simon Josefsson  <jas@extundo.com>
79361
79362         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79363
79364 2005-10-06  Simon Josefsson  <jas@extundo.com>
79365
79366         * tests/test-hmac-md5.c: New file.
79367
79368         * modules/hmac-md5-tests: New file.
79369
79370         * modules/hmac-md5: New file.
79371
79372 2005-10-06  Simon Josefsson  <jas@extundo.com>
79373
79374         * m4/hmac-md5.m4: New file.
79375
79376         * m4/memxor.m4: Require gl_C_RESTRICT.
79377
79378 2005-10-06  Simon Josefsson  <jas@extundo.com>
79379
79380         * lib/memxor.c (memxor): Avoid casts and warnings.
79381
79382 2005-10-06  Simon Josefsson  <jas@extundo.com>
79383
79384         * lib/hmac-md5.c: New file.
79385
79386         * lib/hmac.h: New file.
79387
79388 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79389
79390         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79391         promotes to int, not unsigned int, to catch the AIX 5.3
79392         compiler bug.
79393
79394 2005-10-05  Simon Josefsson  <jas@extundo.com>
79395
79396         * modules/memxor: New file.
79397
79398         * modules/iconv (Files): Move config.rpath to havelib, it is used
79399         there.
79400
79401         * modules/havelib (Files): Add config.rpath.
79402
79403 2005-10-05  Simon Josefsson  <jas@extundo.com>
79404
79405         * m4/memxor.m4: New file.
79406
79407 2005-10-05  Simon Josefsson  <jas@extundo.com>
79408
79409         * lib/memxor.c (memxor): Fix compiler error.
79410
79411         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79412         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79413
79414         * lib/memxor.h, lib/memxor.c: New files.
79415
79416         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79417         we assume all systems have it, suggested by Jim Meyering
79418         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79419         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79420         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79421         same reasons.
79422
79423 2005-10-05  Simon Josefsson  <jas@extundo.com>
79424
79425         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79426
79427 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79430         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79431         needed, since the source code now assumes these .h files.
79432
79433 2005-10-05  Derek Price  <derek@ximbiot.com>
79434
79435         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79436
79437 2005-10-05  Bruno Haible  <bruno@clisp.org>
79438
79439         * modules/stdint (License): Change to LGPL.
79440
79441 2005-10-04  Simon Josefsson  <jas@extundo.com>
79442
79443         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79444         D. Baushke" <mdb@gnu.org>.
79445
79446 2005-10-04  Bruno Haible  <bruno@clisp.org>
79447
79448         * lib/verify.h (verify_true): Provide alternative definition for C++.
79449
79450 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79453         (SSIZE_MAX): New macro, if not already defined.
79454         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79455         than 2 GiB.
79456
79457 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         Sync from coreutils.
79460         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79461         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79462         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79463         ULLONG_MAX doesn't work with 2.7.2.1.
79464
79465 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79468         From Ben Pfaff.
79469
79470         * modules/exclude (Depends-on): Depend on verify.
79471         * modules/strtoimax (Depends-on): Likewise.
79472         * modules/utimecmp (Depends-on): Likewise.
79473
79474 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * lib/exclude.c: Include verify.h.
79477         (verify): Remove.  All callers changed to use verify.h's version.
79478         * lib/strtoimax.c: Likewise.
79479         * lib/utimecmp.c: Likewis.e
79480
79481         Sync from coreutils.
79482         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79483         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79484         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79485         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79486         bother returning ENOSYS if settimeofday or stime fails; just let
79487         them return whatever errno they want to return.
79488         * lib/utimens.c: Include unistd.h, for dup2.
79489         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79490         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79491
79492 2005-10-02  Jim Meyering  <jim@meyering.net>
79493
79494         Sync from coreutils.
79495         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79496         from glibc-2.2.5 that fails for read-only files.
79497
79498 2005-10-02  Jim Meyering  <jim@meyering.net>
79499
79500         Sync from coreutils.
79501         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79502         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79503         `#if HAVE_CONFIG_H'.
79504         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79505         Remove AT_FDCWD test.
79506         Do not consume the fd unless successful.
79507         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79508         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79509         block, so that we don't even try to compile it if settimeofday is
79510         available.  This works around a compilation failure on OSF1 V5.1,
79511         due to stime requiring a `long int*' while tv_sec is `int'.
79512
79513 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79514
79515         Sync from coreutils.
79516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79517         against `yes', rather than just testing for nonempty.
79518
79519 2005-10-01  Simon Josefsson  <jas@extundo.com>
79520
79521         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79522         and Darwin.
79523
79524         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79525         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79526         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79527         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79528         Check if struct addrinfo is declared.
79529
79530 2005-10-01  Simon Josefsson  <jas@extundo.com>
79531
79532         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79533         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79534         AI_* and EAI_* definitions.  Protect function declarations.
79535
79536 2005-10-01  Jim Meyering  <jim@meyering.net>
79537
79538         Sync from coreutils.
79539
79540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79541         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79542         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79543         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79544         in the inet and nsl libraries.  Required on Solaris 5.7.
79545
79546 2005-10-01  Jim Meyering  <jim@meyering.net>
79547
79548         Sync from coreutils.
79549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79550         in the inet and nsl libraries.  Required on Solaris 5.7.
79551
79552 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79553
79554         * lib/getdelim.c (getdelim): Remove unused variables.
79555
79556 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79559         so that the code works even with ancient cpp.  Portability problem
79560         with GCC 2.7.2.1 reported by Thomas M.Ott.
79561
79562 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * modules/regex (Depends-on): Add strcase.
79565
79566         * modules/gethostname (Licence): Change from GPL to LGPL, since
79567         gethostname.c is a trivial implementation of a standard library
79568         function.
79569         * modules/poll (License): Change from GPL to LGPL, since it's
79570         derived from LGPL code.
79571
79572 2005-09-27  Jim Meyering  <jim@meyering.net>
79573
79574         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79575         HAVE_CONFIG_H.
79576
79577         * lib/intprops.h (signed_type_or_expr__): Define.
79578         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79579         for unsigned types.
79580
79581 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * lib/verify.h (verify_expr): Remove, replacing with:
79584         (verify_true): New macro that returns true instead of void.
79585         (verify_type__): Remove.
79586         (verify): Use verify_true rather than verify_type__.
79587
79588 2005-09-26  Bruno Haible  <bruno@clisp.org>
79589
79590         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79591         is necessary.
79592         (lib_SOURCES): Remove mbchar.c.
79593         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79594         (Files): Add m4/mbrtowc.m4.
79595         * modules/mbiter: Likewise.
79596         * modules/mbuiter: Likewise.
79597
79598 2005-09-26  Bruno Haible  <bruno@clisp.org>
79599
79600         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79601         compile mbchar.c if they are not both present.
79602         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79603         * m4/mbiter.m4 (gl_MBITER): Likewise.
79604         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79605         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79606         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79607
79608 2005-09-25  Jim Meyering  <jim@meyering.net>
79609
79610         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79611         also uses socklen_t.
79612
79613 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * lib/utimens.c (ENOSYS): Define if not already defined.
79616         (futimens): Support having a null PATH if the file descriptor
79617         is nonnegative.
79618
79619         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79620         Remove.
79621         (__attribute): Define to empty unless GCC 3.1 or later.
79622         This works around a core dump on OpenBSD 3.4, which has GCC
79623         2.95.3, which dumps core when given __attribute__(()).  It also
79624         simplifies other tests, since we really don't want to bother with
79625         worrying about which ancient version of GCC supported what.
79626         Original problem reported by Yoann Vandoorselaere, with part of
79627         the fix suggested by Derek Price.
79628
79629 2005-09-24  Jim Meyering  <jim@meyering.net>
79630
79631         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79632         so we can once again use a positive bitfield width of 1 -- now we
79633         don't have to explain why we were using a bitfield width of 2.
79634
79635 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79638         and similarly for the other external symbols.  Problem reported
79639         by James Gallager.
79640
79641         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79642         bug reported by Jim Meyering.
79643
79644         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79646         not needed, since socklen is a prerequisite module.
79647
79648 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79651         Problem reported by Eric Blake.
79652         (getaddrinfo): Initialize se so that it's not garbage.
79653         Redo internal storage allocation so that it doesn't make unportable
79654         assumptions about alignment.
79655         Fix a memory leak.
79656
79657         * lib/utimens.c (futimens): Use futimesat if available.
79658         Prefer it to futimes since it doesn't have the futimes bug.
79659
79660         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79661         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79662         Instead, declare a function that returns a pointer to an array,
79663         and use verify_type__ to declare the size of the array.
79664         Problem and germ of a solution reported by Bruno Haible.
79665         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79666         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79667
79668 2005-09-23  Jim Meyering  <jim@meyering.net>
79669
79670         Sync from coreutils.
79671         Correct build failure (socklen_t not defined) on at least
79672         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79674
79675 2005-09-23  Jim Meyering  <jim@meyering.net>
79676
79677         * modules/getaddrinfo (Depends-on): Add socklen.
79678
79679 2005-09-23  Bruno Haible  <bruno@clisp.org>
79680
79681         * tests/test-verify.c: New file.
79682
79683 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         Sync from coreutils.
79686
79687         * modules/argmatch (Depends-on): Add verify.
79688         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79689         unistd-safer.
79690         * modules/save-cwd (Depends-on): Likewise.
79691
79692         * modules/openat (Files): Add lib/openat-die.c.
79693         (Depends-on): Remove error, exitfail.
79694         Add dirname.
79695
79696         * modules/verify: New file.
79697         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79698         with "verify" module.
79699
79700 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         Sync from coreutils.
79703
79704         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79705         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79706         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79707         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79708         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79709         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79710         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79711         Don't bother checking for string.h, stdlib.h, unistd.h.
79712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79713         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79714         module's job.
79715         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79716         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79717
79718         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79719         (gl_GETDATE): Use it.
79720
79721         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79722
79723 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79724
79725         Sync from coreutils.
79726
79727         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79728         stat-time.h.
79729         * lib/argmatch.h: Include verify.h
79730         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79731         (ARGMATCH_ASSERT): Remove; unused.
79732         * lib/canonicalize.c: Assume STDC_HEADERS.
79733         * lib/exclude.c: Include "strcase.h".
79734         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79735         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79736         and stdio-safer.h.
79737         (getusershell): Call fopen, not fopen_safer.
79738         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79739         Do not include unistd-safer.h.
79740         (save_cwd): Don't call fd_safer; no longer needed
79741         now that we include fcntl--.h.
79742
79743         * lib/getdate.y (relative_time): New type.
79744         (RELATIVE_TIME_0): New constant.
79745         (parser_control): Use relative_time instead of doing it ourselves.
79746         (%union): Add new relative_time rel member.
79747         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79748         Now typeless.
79749         (relunit, relunit_snumber): Now of type rel.
79750         (zone, rel, relunit, get_date): Adjust to above changes.
79751
79752         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79753         Do not include unistd-safer.h.
79754         (getloadavg): Don't call fd_safer; no longer needed
79755         now that we include fcntl--.h.
79756
79757         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79758         (make_dir_parents): Treat ENOSYS like EEXIST.
79759
79760         Improve quality of diagnostics on restore_cwd failure.
79761         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79762         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79763         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79764         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79765         each time through the loop.  Do not diagnose restore_cwd failure;
79766         that is the caller's job (and perhaps the caller does not care).
79767
79768         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79769         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79770         If the file already exists but is not a directory, don't bother
79771         to try to make its parents.
79772         Close potential file descriptor leak if we can't chdir("/") (!).
79773         Don't always return true if chdir($PWD) fails; return true only
79774         if the requested action was done successfully (except for the
79775         chdir($PWD)).
79776         Don't log final directory unless we actually made it.
79777         Refactor to avoid duplicate code to fix up permissions.
79778         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79779
79780         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79781         to make it a bit faster and (I hope) clearer.
79782         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79783         Fix bug in formats like %2N.
79784
79785         * lib/verify.h: New file.
79786
79787 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         Sync from coreutils.
79790         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79791
79792 2005-09-22  Jim Meyering  <jim@meyering.net>
79793
79794         Sync from coreutils.
79795
79796         * m4/lstat.m4 (gl_FUNC_LSTAT):
79797         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79798         Remove obsolete comment.
79799         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79800         * m4/xstrtod.m4: Likewise.
79801
79802         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79803
79804 2005-09-22  Jim Meyering  <jim@meyering.net>
79805
79806         Sync from coreutils.
79807
79808         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79809
79810         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79811         the .tm_year member, since otherwise gcc-4.0 would now warn about
79812         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79813
79814         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79815         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79816
79817         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79818         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79819         when run in a time zone for which daylight savings time is in effect
79820         for the starting date.
79821
79822         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79823         stop us from restricting permissions of just-created absolute-named
79824         directories.
79825         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79826         to restore initial working directory.
79827         * lib/mkdir-p.c (make_dir_parents): New parameter:
79828         different_working_dir, to tell caller if/when we change the working
79829         directory and are unable to return to the initial one.
79830         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79831         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79832         `return false'.  This fixes a bug introduced on 2004-07-30.
79833
79834         * lib/openat.c (fdopendir): Be sure to close the supplied
79835         file descriptor before returning.  This makes our replacement
79836         implementation a little closer to Solaris's, where fdopendir
79837         ties the file descriptor to the returned DIR* pointer.
79838         * lib/openat.c (unlinkat): New function.
79839         * lib/openat.h (unlinkat): Add prototype.
79840         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79841         (openat_restore_fail): Rename from openat_restore_die.
79842         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79843
79844         Provide an alternative to exiting immediately upon save_cwd or
79845         restore_cwd failure.  Now, an application can arrange e.g.,
79846         to perform a longjump in that case.
79847         * lib/openat.c: Include dirname.h.
79848         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79849         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79850         and openat_restore_die rather than calling error directly.
79851         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79852
79853         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79854         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79855         define.
79856
79857         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79858         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79859                             int utc, int nanoseconds);
79860         Background:
79861         date should not have to allocate a megabyte of virtual memory to
79862         handle a format argument like +%1048575T.  When implemented with
79863         strftime, it must allocate such a buffer, use strftime to fill it
79864         in, print it, then free it.
79865         With fprintftime, it simply prints everything and exits.
79866         With no need for memory allocation, that's one fewer way to fail.
79867         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79868         optional field width, not before, so we accept %9:z, not %:9z.
79869         (my_strftime): Be sure to use L_('x') for literals.
79870
79871         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79872         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79873         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79874         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79875         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79876         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79877         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79878         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79879         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79880         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79881         * lib/xgethostname.c, lib/xreadlink.c:
79882         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79883
79884         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79885         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79886         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79887         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79888         and don't include <sys/file.h>).
79889
79890 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79891
79892         Sync from coreutils.
79893
79894         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79895         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79896         [!LDAV_DONE]: Avoid unused variable warning.
79897
79898 2005-09-21  Bruno Haible  <bruno@clisp.org>
79899
79900         * lib/unicodeio.h (unicode_to_mb): New declaration.
79901
79902 2005-09-20  Derek Price  <derek@ximbiot.com>
79903
79904         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79905         getaddrinfo.h.
79906
79907 2005-09-20  Bruno Haible  <bruno@clisp.org>
79908
79909         * gnulib-tool: Remove trailing slashes from the values specified for
79910         --source-base, --m4-base, --tests-base, --aux-dir.
79911         Suggested by Simon Josefsson <jas@extundo.com>.
79912
79913 2005-09-20  Bruno Haible  <bruno@clisp.org>
79914
79915         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79916         func_modules_to_filelist, func_import, func_create_testdir): Make all
79917         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79918         change when gnulib-tool is invoked in a different locale.
79919
79920 2005-09-19  Simon Josefsson  <jas@extundo.com>
79921
79922         * m4/socklen.m4: Fix typo.
79923
79924 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79925
79926         Use a consistent style for including <config.h>.
79927         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79928         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79929         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79930         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79931         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79932         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79933         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79934         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79935         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79936         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79937         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79938         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79939         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79940         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79941         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79942         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79943         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79944         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79945         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79946         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79947         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79948         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79949         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79950         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79951         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79952         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79953         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79954         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79955         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79956         lib/xstrtoumax.c, lib/yesno.c:
79957         Standardize inclusion of config.h.
79958         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79959         lib/inttostr.h:  Removed inclusion of config.h from header files.
79960         * lib/inttostr.c:  Adjusted in-tree users.
79961         * lib/timespec.h: Remove superfluous warning to include config.h.
79962         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79963         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79964         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79965         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79966         config.h with HAVE_CONFIG_H.
79967
79968 2005-09-19  Jim Meyering  <jim@meyering.net>
79969
79970         * modules/pathmax (License): Change to LGPL.
79971
79972 2005-09-19  Derek Price  <derek@ximbiot.com>
79973
79974         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79975
79976 2005-09-19  Bruno Haible  <bruno@clisp.org>
79977
79978         * gnulib-tool (import): Provide default for --tests-base.
79979
79980 2005-09-19  Bruno Haible  <bruno@clisp.org>
79981
79982         * doc/quote.texi: New file, extracted from gnulib.texi.
79983         * doc/ctime.texi: New file, extracted from gnulib.texi.
79984         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79985         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79986         * doc/gnulib.texi: Include them.
79987
79988 2005-09-18  Bruno Haible  <bruno@clisp.org>
79989
79990         Portability fix.
79991         * gnulib-tool (func_readlink): New function.
79992         (func_ln_if_changed): Use it.
79993
79994 2005-09-18  Bruno Haible  <bruno@clisp.org>
79995
79996         * gnulib-tool: Support --with-tests also with --import.
79997         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79998         (func_import): Use variables $testsbase and $inctests. Emit a
79999         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80000         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80001         SUBDIRS += $testsdir.
80002         (func_create_testdir): Update.
80003
80004 2005-09-18  Bruno Haible  <bruno@clisp.org>
80005
80006         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80007         instead of $dry_run.
80008         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80009         (func_ln_if_changed): Don't handle dry-run here.
80010         (func_import): In dry-run mode, detect more precisely which actions
80011         would be performed, and don't use "...ing" verbs.
80012
80013 2005-09-18  Bruno Haible  <bruno@clisp.org>
80014
80015         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80016         (func_import): Use join on two temporary files instead of three nested
80017         loops, in order to determine which files are new or old.
80018
80019 2005-09-18  Bruno Haible  <bruno@clisp.org>
80020
80021         * gnulib-tool (func_import): Comment out code that spits out the
80022         new files with --dry-run.
80023
80024 2005-09-18  Bruno Haible  <bruno@clisp.org>
80025
80026         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80027
80028 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         * lib/stat-time.h: New file.
80031         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80032         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80033         in a different way.
80034         (timespec_cmp): New function.
80035         * lib/utimecmp.c: Include stat-time.h.
80036         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80037         members exist, not on the obsolescent ST_MTIM_NSEC.
80038         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80039
80040 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80043
80044 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * MODULES.html.sh (File system functions): Add stat-time.
80047         * modules/stat-time: New file.
80048         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80049         is now done in a different way, by the stat-time module.
80050         * modules/utimecmp (Depends-on): Add stat-time.
80051
80052 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * m4/st_mtim.m4: Remove.  Superseded by...
80055         * m4/stat-time.m4: New file.
80056         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80057         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80058
80059 2005-09-15  Derek Price  <derek@ximbiot.com>
80060
80061         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80062
80063 2005-09-15  Derek Price  <derek@ximbiot.com>
80064
80065         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80066         * lib/regex_internal.c: Ditto, using this...
80067         (__GNUC_PREREQ): ...new macro.
80068         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80069         using...
80070         (__GNUC_PREREQ): ...this new macro.
80071
80072         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80073
80074 2005-09-15  Derek Price  <derek@ximbiot.com>
80075             Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80078         changes, consolidating in...
80079         * lib/regex_internal.h: ...this file.
80080
80081 2005-09-13  Jim Meyering  <jim@meyering.net>
80082
80083         * lib/canon-host.c: Filter through gnu indent and reword comments
80084         slightly.
80085         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80086
80087 2005-09-13  Derek Price  <derek@ximbiot.com>
80088
80089         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80090         failure.
80091         Reported by Jim Meyering  <jim@meyering.net>.
80092
80093 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80094
80095         * lib/base64.c: Typo.
80096         (base64_encode): Put b64str in initialized data section.
80097
80098 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         Merge glibc and coreutils changes into gnulib, plus a few
80101         extra fixes.
80102         * lib/md5.c: Use #error rather than a string.
80103         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80104         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80105         (__attribute__): Define to empty for non recent-GCC.
80106         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80107         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80108         Renamed from their non-__ counterparts, with new macros replacing
80109         them if not _LIBC.  Add __THROW attribute.
80110         (rol): Remove.
80111         (struct md5_ctx): Align buffer if using GCC.
80112         * lib/sha1.h (struct sha1_ctx): Likewise.
80113         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80114         The old name was backwards.
80115         (NOTSWAP): Remove; not used.
80116         (rol): New macro, moved here from md5.h.
80117         (sha1_process_block): Remove a FIXME that doesn't make sense.
80118
80119 2005-09-12  Derek Price  <derek@ximbiot.com>
80120
80121         Return usable errors from canon-host.
80122         * lib/canon-host.h: New file.
80123         * lib/canon-host.c (canon_host): Wrap...
80124         (canon_host_r): ...this new function, which now relies exclusively on
80125         getaddrinfo.
80126         (ch_strerror): New function.
80127         (last_cherror): New global.
80128         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80129         interface.
80130         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80131         void *.
80132         (freeaddrinfo): Free ai->ai_canonname when set.
80133
80134 2005-09-12  Derek Price  <derek@ximbiot.com>
80135
80136         Make canon-host require getaddrinfo.
80137         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80138         AC_LIBSOURCE canon-host.h.  Call...
80139         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80140         gl_GETADDRINFO.
80141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80142
80143 2005-09-12  Derek Price  <derek@ximbiot.com>
80144
80145         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80146         LGPL.
80147         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80148
80149 2005-09-12  Derek Price  <derek@ximbiot.com>
80150
80151         * lib/gai_strerror.c: Include config.h when available.  Include
80152         getaddrinfo.h before other headers to test interface.
80153         Reported by Larry Jones <lawrence.jones@ugs.com>.
80154
80155 2005-09-12  Derek Price  <derek@ximbiot.com>
80156             Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * modules/glob (Files): Add glob-libc.h.
80159
80160 2005-09-12  Derek Price  <derek@ximbiot.com>
80161             Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80164         glob_.h, glob-libc.h.
80165         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80166
80167 2005-09-12  Derek Price  <derek@ximbiot.com>
80168             Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80171         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80172         protecting things that should be done only in gnulib contexts.
80173         * lib/glob_.h: New file, containing only the glob things needed for
80174         gnulib.
80175         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80176         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80177         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80178         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80179         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80180         and to respect the namespace rules better.
80181
80182 2005-09-08  Simon Josefsson  <jas@extundo.com>
80183
80184         * modules/socklen: New file.
80185
80186 2005-09-08  Simon Josefsson  <jas@extundo.com>
80187
80188         * m4/socklen.m4: New file.
80189
80190 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * modules/utimens (Files): Add m4/utimbuf.m4, since
80193         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80194         Reported by Sergey Poznyakoff.
80195
80196 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80199         definitions, since that's the preferred style in glibc.
80200         Fix a minor spacing issue, and update copyright notice to match
80201         glibc's.
80202
80203 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80206
80207 2005-09-06  Simon Josefsson  <jas@extundo.com>
80208
80209         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80210         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80211
80212 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80215         warning.
80216
80217 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         * config/srclist.txt: Add glibc bug 1302.
80220
80221 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         Change bitset word type from unsigned int to unsigned long int,
80224         as this has better performance on typical 64-bit hosts.
80225         Port bitset code to hosts with unusual word sizes.
80226         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80227         (build_collating_symbol):
80228         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80229         argument is a bitset.  This is merely a style issue, but it makes
80230         it clearer that an entire array is expected.
80231         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80232         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80233         Port to the case where bitset_word is not the same as unsigned int.
80234         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80235         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80236         Likewise.
80237         * lib/regexec.c (check_dst_limits_calc_pos_1,
80238         check_subexp_matching_top):
80239         (build_trtable, group_nodes_into_DFAstates):
80240         Likewise.
80241         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80242         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80243         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80244         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80245         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80246         * lib/regcomp.c (optimize_subexps, lower_subexp):
80247         Work even if bitset_word has holes in its bitwise representation.
80248         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80249         * lib/regexec.c (check_dst_limits_calc_pos_1,
80250         check_subexp_matching_top):
80251         Likewise.
80252         * lib/regex_internal.c (re_string_reconstruct):
80253         Don't assume UCHAR_MAX == 255.
80254         * lib/regex_internal.h (bitset_set_all): Likewise.
80255         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80256         All uses changed.
80257         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80258         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80259         All uses changed.
80260         (BITSET_WORD_MAX): New macro.
80261         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80262         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80263         (bitset_empty, bitset_copy):
80264         Prefer sizeof (bitset) to multiplying it out ourselves.
80265         (bitset_not_merge): Remove; unused.
80266         (bitset_contain): Return bool, not unsigned int with one bit on.
80267         All callers changed.
80268         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80269         alignment than re_node_set; do this by defining a new internal
80270         type struct dests_alloc and using it to allocate memory.
80271
80272 2005-09-05  Bruno Haible  <bruno@clisp.org>
80273
80274         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80275         links.
80276
80277 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80278
80279         * modules/size_max (Makefile.am): Add size_max.h
80280
80281 2005-09-04  Derek Price  <derek@ximbiot.com>
80282
80283         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80284
80285 2005-09-03  Simon Josefsson  <jas@extundo.com>
80286
80287         * gnulib-tool: Fix typo.
80288
80289 2005-09-03  Simon Josefsson  <jas@extundo.com>
80290
80291         * config/srclist.txt: Add glibc bug 1293.
80292
80293 2005-09-03  Derek Price  <derek@ximbiot.com>
80294
80295         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80296         From Larry Jones <lawrence.jones@ugs.com>.
80297
80298 2005-09-02  Simon Josefsson  <jas@extundo.com>
80299
80300         * modules/socklen: New file.
80301
80302 2005-09-02  Simon Josefsson  <jas@extundo.com>
80303
80304         * modules/havelib: New module.
80305
80306         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80307         Use havelib.
80308
80309 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         Check for arithmetic overflow when calculating sizes, to prevent
80312         some buffer-overflow issues.  These patches are conservative, in the
80313         sense that when I couldn't determine whether an overflow was possible,
80314         I inserted a run-time check.
80315         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80316         macros.
80317         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80318         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80319         (re_xnrealloc, re_x2nrealloc): New inline functions.
80320         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80321         parse_bracket_exp):
80322         (build_equiv_class, build_charclass): Check for arithmetic overflow
80323         in size expression calculations.
80324         * lib/regex_internal.c (re_string_realloc_buffers):
80325         (build_wcs_upper_buffer, re_node_set_add_intersect):
80326         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80327         (re_dfa_add_node, register_state): Likewise.
80328         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80329         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80330         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80331         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80332
80333 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80334
80335         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80336         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80337
80338 2005-09-02  Bruno Haible  <bruno@clisp.org>
80339
80340         Support for lib vs. lib64 distinction on biarch platforms.
80341         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80342         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80344
80345 2005-09-02  Bruno Haible  <bruno@clisp.org>
80346
80347         * gnulib-tool (import): In the other first-use case, provide defaults
80348         as well.
80349
80350 2005-09-02  Bruno Haible  <bruno@clisp.org>
80351
80352         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80353         patches not yet found in the latest gettext release.
80354
80355 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80356
80357         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80358         to avoid a collision with bits/local_lim.h in glibc.
80359         All uses changed.  Problem reported by Dmitry V. Levin in
80360         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80361
80362         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80363         bugs in int versus size_t comparisons.
80364         (re_string_context_at): Fix bug where the code assumed that
80365         Idx is signed.
80366
80367         Use bool where appropriate.
80368         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80369         All callers changed.
80370         (calc_eclosure_iter): Likewise, for ROOT arg.
80371         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80372         (build_charclass_op): Likewise, for NON_MATCH arg.
80373         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80374         (re_string_construct_common): Likewise, for ICASE arg.
80375         * lib/regexec.c (re_search_2_stub, re_search_stub):
80376         Likewise, for RET_LEN arg.
80377         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80378         (set_regs): Likewise, for FL_BACKTRACK arg.
80379         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80380         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80381         (calc_eclosure_iter, parse_bracket_exp):
80382         Use bool for internal variables that are booleans.
80383         * lib/regexec.c (re_search_internal, check_matching,
80384         proceed_next_node):
80385         (set_regs, build_sifted_states, sift_states_bkref):
80386         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80387         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80388         (find_collation_sequence_value):
80389         Likewise.
80390         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80391         (re_node_set_compare):
80392         Return bool, not int. All callers changed.
80393         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80394         (build_trtable, check_node_accept): Likewise.
80395         * lib/regex_internal.h: Include stdbool.h.
80396
80397         Fix bugs uncovered when converting to bool.
80398         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80399         failure instead of charging ahead blindly.
80400         * lib/regex_internal.c (register_state): Likewise.
80401         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80402         for freeing internal storage.
80403         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80404         bitset pieces used as boolean, to avoid undefined behavior
80405         on hosts that do int overflow checking.
80406
80407 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80408
80409         * config/srclist.txt: Add glibc bugs 1285-1287.
80410
80411 2005-09-01  Jim Meyering  <jim@meyering.net>
80412
80413         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80414         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80415         Require gl_STAT_MACROS, too.
80416
80417 2005-09-01  Bruno Haible  <bruno@clisp.org>
80418
80419         * gnulib-tool (import): In the first-use case, provide defaults.
80420
80421 2005-09-01  Bruno Haible  <bruno@clisp.org>
80422
80423         * gnulib-tool (func_import): Remove the .tmp files.
80424
80425 2005-09-01  Bruno Haible  <bruno@clisp.org>
80426
80427         * gnulib-tool (func_import): Fix handling of symbolic links.
80428
80429 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80432         old glibc regex code mishandles strings longer than 2**31 bytes.
80433         This patch fixes this when the regex code is used in gnulib
80434         (i.e., outside glibc).
80435
80436         This patch should not affect the use of the regex code inside
80437         glibc.  No doubt this problem also needs to be handled for glibc
80438         as well, but the result will be an incompatible change to the
80439         glibc ABI, and the old ABI will have to be supported too.  That
80440         can be the the subject for another patch.
80441
80442         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80443         governing whether the rest of this patch is active.  By default,
80444         the macro is disabled and the patch has no effect.
80445         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80446         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80447         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80448         (re_match_2, re_set_registers): Use the new types.
80449         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80450         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80451         New macros.
80452         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80453         (re_string_context_at, bin_tree_t, re_dfastate_t):
80454         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80455         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80456         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80457         (re_string_char_size_at, re_string_wchar_at):
80458         (re_string_elem_size_at):
80459         Use the new types and macros to port to 64-bit hosts.
80460         Use unsigned types for internal values, so that the code
80461         mostly works even for arrays larger than SSIZE_MAX.
80462         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80463         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80464         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80465         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80466         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80467         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80468         (calc_inveclosure, parse_dup_op, build_range_exp):
80469         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80470         (fetch_number, create_token_tree, mark_opt_subexp):
80471         Likewise.
80472         * lib/regex_internal.c (re_string_construct_common,
80473         create_ci_newstate):
80474         (create_cd_newstate, re_string_allocate, re_string_construct):
80475         (re_string_realloc_buffers, build_wcs_upper_buffer):
80476         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80477         (re_string_reconstruct, re_string_peek_byte_case):
80478         (re_string_fetch_byte_case, re_string_context_at):
80479         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80480         (re_node_set_init_copy, re_node_set_add_intersect):
80481         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80482         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80483         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80484         (re_acquire_state, re_acquire_state_context, register_state):
80485         Likewise.
80486         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80487         search_cur_bkref_entry):
80488         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80489         (re_search_internal, re_search_2_stub, re_search_stub)
80490         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80491         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80492         (update_cur_sifted_state, check_dst_limits):
80493         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80494         (check_subexp_limits, sift_states_bkref, merge_state_array):
80495         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80496         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80497         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80498         (expand_bkref_cache, check_node_accept_bytes):
80499         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80500         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80501         (acquire_init_state_context, check_halt_node_context):
80502         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80503         (sift_states_backward, clean_state_log_if_needed):
80504         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80505         (find_recover_state, transit_state_sb, transit_state_mb):
80506         (transit_state_bkref, build_trtable, match_ctx_clean):
80507         Likewise.
80508         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80509         to work around an assumption that REG_MISSING is negative.
80510
80511         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80512         (seek_collating_symbol_entry) [defined _LIBC]:
80513         (lookup_collation_sequence_value) [defined _LIBC]:
80514         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80515         Use prototypes rather than old-style function definitions.
80516         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80517         (transit_state_sb) [0]:
80518         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80519
80520         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80521         rm_eo.
80522
80523         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80524         (optimize_subexps, lower_subexp):
80525         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80526         since the signed shift might overflow.  Use 1u<<31 instead.
80527         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80528         Likewise.
80529         * lib/regexec.c (check_dst_limits_calc_pos_1,
80530         check_subexp_matching_top): Likewise.
80531
80532         * lib/regcomp.c (optimize_subexps, lower_subexp):
80533         Use CHAR_BIT rather than 8, for clarity.
80534         * lib/regexec.c (check_dst_limits_calc_pos_1):
80535         (check_subexp_matching_top): Likewise.
80536         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80537         have to worry about portability issues when shifting it left.
80538         Remove no-longer-needed test for table_size > 0.
80539         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80540         in a word, as the resulting behavior is undefined.
80541         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80542         in one case, a <= should have been an <, and in another case the
80543         whole test was missing.
80544         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80545         the standard name CHAR_BIT.
80546         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80547         this is not true on one's complement and signed-magnitude hosts.
80548
80549         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80550         next_last_offset.
80551         (struct re_dfa_t): Remove unused member states_alloc.
80552         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80553
80554 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80557         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80558         and large-file glibc and in 32-bit large-file Solaris.
80559
80560 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80563         lengths fit in regoff_t; this isn't true if regoff_t is the same
80564         width as size_t.
80565         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80566         (= START + RANGE) instead of RANGE.  This avoids overflow
80567         problems when regoff_t is the same width as size_t.
80568         All callers changed.
80569         (re_search_2_stub): Check for overflow when adding the
80570         sizes of the two strings.
80571         (re_search_stub): Check for overflow when adding START
80572         to RANGE; if it occurs, substitute the extreme value.
80573
80574 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80577
80578 2005-08-31  Jim Meyering  <jim@meyering.net>
80579
80580         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80581         a pointer-to-const.
80582         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80583         (register_state): Likewise.
80584         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80585         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80586         (group_nodes_into_DFAstates): Likewise.
80587
80588 2005-08-31  Jim Meyering  <jim@meyering.net>
80589
80590         * check-module: Add a FIXME comment.
80591
80592 2005-08-31  Eric Blake  <ebb9@byu.net>
80593
80594         * modules/unistd-safer (Files): Add unistd--.h.
80595         * modules/stdio-safer (Files): Add stdio--.h.
80596
80597 2005-08-31  Derek Price  <derek@ximbiot.com>
80598
80599         * lib/getdelim.c (getdelim): Return EOF on EOF.
80600         Reported by Larry Jones <lawrence.jones@ugs.com>.
80601
80602 2005-08-31  Bruno Haible  <bruno@clisp.org>
80603
80604         Avoid unnecessary diffs in the generated lib/Makefile.am.
80605         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80606         the generated files.
80607         (func_import): Don't set cmd.
80608
80609 2005-08-31  Bruno Haible  <bruno@clisp.org>
80610
80611         * lib/strstr.c: Include <stddef.h>, for NULL.
80612         * lib/strcasestr.c: Likewise.
80613         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80614
80615 2005-08-31  Bruno Haible  <bruno@clisp.org>
80616
80617         * gnulib-tool: New option --macro-prefix.
80618         (func_import): Use macro_prefix.
80619         (import): Handle option --macro-prefix.
80620
80621 2005-08-31  Bruno Haible  <bruno@clisp.org>
80622
80623         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80624         Also use new variables cached_lgpl, cached_libtool.
80625
80626 2005-08-31  Bruno Haible  <bruno@clisp.org>
80627
80628         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80629         always instantiating them.
80630
80631 2005-08-31  Bruno Haible  <bruno@clisp.org>
80632
80633         * gnulib-tool (func_import): Read the previous cached settings
80634         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80635         earlier added by gnulib but are now dropped. Warn when a gnulib file
80636         overwrites a non-gnulib file.
80637
80638 2005-08-31  Bruno Haible  <bruno@clisp.org>
80639
80640         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80641         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80642         projects that don't keep autogenerated files in CVS. Put into
80643         actioncmd only the specified modules, not the transitive closure.
80644
80645 2005-08-31  Bruno Haible  <bruno@clisp.org>
80646
80647         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80648         Create directories that shall be filled.
80649         (import): Don't look for gl_* macros in configure.ac. Recurse across
80650         all directories containing a gnulib-cache.m4 files, if meaningful.
80651
80652 2005-08-31  Bruno Haible  <bruno@clisp.org>
80653
80654         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80655         (import): Set seen_libtool when we see gl_LIBTOOL.
80656
80657 2005-08-31  Bruno Haible  <bruno@clisp.org>
80658
80659         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80660         declaration macro definitions from generated gnulib.m4.
80661
80662 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80663
80664         * lib/iconvme.h: Add prototype for iconv_alloc.
80665
80666 2005-08-29  Simon Josefsson  <jas@extundo.com>
80667
80668         * lib/iconvme.c: Fix errno.
80669
80670 2005-08-29  Bruno Haible  <bruno@clisp.org>
80671
80672         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80673         that it works when the directory contains spaces.
80674
80675 2005-08-29  Bruno Haible  <bruno@clisp.org>
80676
80677         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80678
80679 2005-08-29  Bruno Haible  <bruno@clisp.org>
80680
80681         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80682         Emit more advice.
80683
80684 2005-08-29  Bruno Haible  <bruno@clisp.org>
80685         and Stepan Kasal  <kasal@ucw.cz>
80686
80687         * check-module: If more parameters are given, check each of them
80688         separately; add more exceptions, as noted by Jim Meyering.
80689         (check_module): New procedure.
80690         (%exempt_header): Now contains all exceptions.
80691
80692 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80693
80694         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80695
80696 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80697
80698         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80699
80700 2005-08-28  Bruno Haible  <bruno@clisp.org>
80701
80702         * m4/gnulib-tool.m4: New file.
80703
80704 2005-08-27  Jim Meyering  <jim@meyering.net>
80705
80706         * modules/unistd-safer (Files): Add pipe-safer.c.
80707         * modules/fcntl-safer (Files): Add creat-safer.c.
80708
80709 2005-08-27  Jim Meyering  <jim@meyering.net>
80710
80711         * m4/stdlib-safer.m4: New file.  From coreutils.
80712         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80713         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80714         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80715         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80716         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80717
80718 2005-08-27  Jim Meyering  <jim@meyering.net>
80719
80720         * lib/fopen-safer.c: Merge minor changes from coreutils.
80721         * lib/dup-safer.c: Likewise.
80722         * lib/fd-safer.c: Likewise.
80723
80724         Merge from coreutils.
80725         * lib/stdio--.h: New file.
80726         * lib/stdlib--.h: New file.
80727         * lib/mkstemp-safer.c: New file.
80728
80729         GNU tar needs these.
80730         * lib/pipe-safer.c: New file.
80731         * lib/creat-safer.c: New file.
80732         * lib/fcntl--.h (creat): Define to creat_safer.
80733         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80734         * lib/unistd--.h (pipe): Define to pipe_safer.
80735         * lib/unistd-safer.h: Declare pipe_safer.
80736
80737 2005-08-26  Simon Josefsson  <jas@extundo.com>
80738
80739         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80740         Haible <bruno@clisp.org>.
80741
80742 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/regex_internal.h: Remove all references to
80745         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80746         or better.
80747         (bitset_not, bitset_merge, bitset_not_merge):
80748         (bitset_mask, re_string_allocate, re_string_construct):
80749         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80750         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80751         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80752         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80753         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80754         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80755         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80756         (re_acquire_state_context):
80757         Remove unnecessary forward decls.
80758         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80759         Put __attribute at function definition,
80760         now that the function decl has been removed.
80761         * lib/regex_internal.c (re_string_peek_byte_case):
80762         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80763         Likewise.
80764
80765 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80766
80767         * m4/regex.m4: Add AC_PREREQ(2.50).
80768         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80769
80770 2005-08-25  Simon Josefsson  <jas@extundo.com>
80771
80772         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80773         __fsetlocking.
80774
80775 2005-08-25  Simon Josefsson  <jas@extundo.com>
80776
80777         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80778         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80779         GLIBC specific code.
80780
80781 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80782
80783         Make regex safe for g++.  This fixes one real bug (an "err"
80784         that should have been "*err").  g++ problem reported by
80785         Sam Steingold.
80786         * lib/regex_internal.h (re_calloc): New macro, consistent with
80787         re_malloc etc.  All callers of calloc changed to use re_calloc.
80788         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80789         not int.  All callers changed.
80790         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80791         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80792         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80793         (find_recover_state): Change "err" to "*err"; this fixes what
80794         appears to be a real bug.
80795         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80796         versus int.
80797
80798 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         * modules/regex (Depends-on): Add malloc, since the code
80801         assumes that !malloc(0) means failure.
80802
80803 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80804
80805         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80806
80807         alloca modernization/simplification for regex.
80808         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80809         needs to be at the start of the file, and can be moved into
80810         regex_internal.h and simplified.
80811         * lib/regex_internal.h: Include <alloca.h>.
80812         (__libc_use_alloca) [!defined _LIBC]: New macro.
80813         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80814         now works outside glibc.
80815
80816 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         * config/srclist.txt: Add glibc bugs 1241, 1245.
80819
80820 2005-08-25  Jim Meyering  <jim@meyering.net>
80821
80822         * lib/open-safer.c: Include <config.h>.
80823         Otherwise, we'd lose LARGEFILE support in any file using
80824         e.g. "fcntl--.h"
80825
80826 2005-08-25  Bruno Haible  <bruno@clisp.org>
80827
80828         * m4/minmax.m4: Require autoconf 2.52.
80829         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80830         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80831         alternatives of translit over the alphabet.
80832         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80833
80834 2005-08-24  Simon Josefsson  <jas@extundo.com>
80835
80836         * tests/test-getpass.c: New file.
80837
80838 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80839
80840         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80841         for GNU regex features.
80842
80843 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80844
80845         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80846         * lib/regex.h (regerror): Likewise.
80847
80848         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80849         requires this.  (The code never needed it.)
80850
80851         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80852         All uses of recently-renamed identifiers changed to use the new,
80853         POSIX-compliant names.  The code will build and run just fine
80854         without these changes, but it's better to eat our own dog food
80855         and use the standard-conforming names.
80856
80857         * lib/regex.h: Fix a multitude of POSIX name space violations.
80858         These changes have an effect only for programs that define
80859         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80860         do not change anything for programs compiled in the normal way.
80861         Also, there is no effect on the ABI.
80862
80863         (_REGEX_SOURCE): New macro.
80864         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80865         defined and _GNU_SOURCE is not; this fixes a name space violation.
80866
80867         Rename the following macros to obey POSIX requirements.
80868         The old names are still visible as macros if _REGEX_SOURCE is defined.
80869         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80870         RE_BACKSLASH_ESCAPE_IN_LISTS.
80871         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80872         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80873         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80874         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80875         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80876         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80877         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80878         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80879         (REG_INTERVALS): renamed from RE_INTERVALS.
80880         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80881         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80882         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80883         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80884         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80885         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80886         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80887         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80888         RE_UNMATCHED_RIGHT_PAREN_ORD.
80889         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80890         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80891         (REG_DEBUG): renamed from RE_DEBUG.
80892         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80893         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80894         unusual, since we can't clash with the POSIX REG_ICASE.
80895         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80896         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80897         (REG_NO_SUB): renamed from RE_NO_SUB.
80898         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80899         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80900         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80901         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80902         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80903         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80904         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80905         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80906         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80907         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80908         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80909         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80910         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80911         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80912         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80913         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80914         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80915         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80916         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80917         (REG_FIXED): Renamed from REGS_FIXED.
80918         (REG_NREGS): Renamed from RE_NREGS.
80919
80920         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80921         of other REG_* macros, since POSIX says the user is allowed to
80922         #undef these macros selectively.
80923
80924         (reg_errcode_t): Update comment stating what other tables need
80925         to be consistent.
80926
80927         Rename the following enum values to obey POSIX requirements.
80928         The old names are still visible as macros.
80929         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80930         is not defined, since GNU is supposed to be a superset of POSIX as
80931         much as possible, and since we want reg_errcode_t to be a signed
80932         type for implementation consistency.
80933         (_REG_NOERROR): Renamed from REG_NOERROR.
80934         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80935         (_REG_BADPAT): Renamed from REG_BADPAT.
80936         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80937         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80938         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80939         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80940         (_REG_EBRACK): Renamed from REG_EBRACK.
80941         (_REG_EPAREN): Renamed from REG_EPAREN.
80942         (_REG_EBRACE): Renamed from REG_EBRACE.
80943         (_REG_BADBR): Renamed from REG_BADBR.
80944         (_REG_ERANGE): Renamed from REG_ERANGE.
80945         (_REG_ESPACE): Renamed from REG_ESPACE.
80946         (_REG_BADRPT): Renamed from REG_BADRPT.
80947         (_REG_EEND): Renamed from REG_EEND.
80948         (_REG_ESIZE): Renamed from REG_ESIZE.
80949         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80950         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80951         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80952         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80953         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80954
80955         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80956         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80957         changed.  But support the old name if the new one is not defined
80958         and if _REGEX_SOURCE.
80959
80960         Change the following member names in struct re_pattern_buffer.
80961         The old names are still supported if !_REGEX_SOURCE.
80962         The new names are always supported, regardless of _REGEX_SOURCE.
80963         (re_buffer): Renamed from buffer.
80964         (re_allocated): Renamed from allocated.
80965         (re_used): Renamed from used.
80966         (re_syntax): Renamed from syntax.
80967         (re_fastmap): Renamed from fastmap.
80968         (re_translate): Renamed from translate.
80969         (re_can_be_null): Renamed from can_be_null.
80970         (re_regs_allocated): Renamed from regs_allocated.
80971         (re_fastmap_accurate): Renamed from fastmap_accurate.
80972         (re_no_sub): Renamed from no_sub.
80973         (re_not_bol): Renamed from not_bol.
80974         (re_not_eol): Renamed from not_eol.
80975         (re_newline_anchor): Renamed from newline_anchor.
80976
80977         Change the following member names in struct re_registers.
80978         The old names are still supported if !_REGEX_SOURCE.
80979         The new names are always supported, regardless of _REGEX_SOURCE.
80980         (rm_num_regs): Renamed from num_regs.
80981         (rm_start): Renamed from start.
80982         (rm_end): Renamed from end.
80983
80984         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80985         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80986         Prepend __ to parameter names.
80987
80988         Undo yesterday's changes.
80989
80990 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80991
80992         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80993         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80994         lib/regex.c.
80995
80996 2005-08-24  Jim Meyering  <jim@meyering.net>
80997
80998         Sync from coreutils.
80999         * m4/fcntl-safer.m4: New file.
81000
81001         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81002         and object files for this module.
81003
81004 2005-08-24  Jim Meyering  <jim@meyering.net>
81005
81006         Sync from coreutils.
81007         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81008
81009 2005-08-24  Jim Meyering  <jim@meyering.net>
81010
81011         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81012         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81013
81014 2005-08-24  Jim Meyering  <jim@meyering.net>
81015
81016         * modules/fcntl-safer: New module.
81017         * modules/fts (Depends-on): Add fcntl-safer.
81018         * MODULES.html.sh (File descriptor based Input/Output):
81019         Add fcntl-safer.
81020
81021 2005-08-24  Bruno Haible  <bruno@clisp.org>
81022
81023         Support for unit test modules.
81024         * modules/README: Mention tests modules.
81025         * modules/TEMPLATE-TESTS: New file.
81026         * gnulib-tool: New options --extract-tests-module, --with-tests and
81027         --tests-base (unused for the moment).
81028         (testsbase, inctests): New variables.
81029         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81030         (func_verify_module): Exclude TEMPLATE-TESTS.
81031         (func_verify_nontests_module, func_verify_tests_module): New functions.
81032         (func_get_dependencies): Add implicit dependency for tests modules.
81033         (func_get_tests_module): New function.
81034         (func_modules_transitive_closure): When --with-tests was specified,
81035         include the unit tests as well, unless explicitly avoided.
81036         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81037         (func_emit_tests_Makefile_am): New function.
81038         (func_create_testdir): When --with-tests was specified, emit a
81039         tests/ directory.
81040         * MODULES.html.sh (Future developments): Update.
81041
81042 2005-08-24  Bruno Haible  <bruno@clisp.org>
81043
81044         * modules/tls-tests: New file.
81045         * tests/test-tls.c: New file, from GNU gettext.
81046
81047 2005-08-24  Bruno Haible  <bruno@clisp.org>
81048
81049         * modules/lock-tests: New file.
81050         * tests/test-lock.c: New file, from GNU gettext.
81051
81052 2005-08-24  Bruno Haible  <bruno@clisp.org>
81053
81054         * lib/lock.h: Add multiple inclusion guard.
81055         * lib/tls.h: Add multiple inclusion guard.
81056
81057 2005-08-24  Bruno Haible  <bruno@clisp.org>
81058
81059         * gnulib-tool: Add support for the --aux-dir option to
81060         --create-testdir, --create-megatestdir, --test, --megatest.
81061         (func_create_testdir, func_create_megatestdir): Optionally emit a
81062         AC_CONFIG_AUX_DIR directive.
81063         (create-testdir, create-megatestdir, test, megatest): Provide a
81064         default value for $auxdir.
81065
81066 2005-08-24  Bruno Haible  <bruno@clisp.org>
81067
81068         * gnulib-tool (import): Use compound statement instead of subshell
81069         where possible.
81070
81071 2005-08-24  Bruno Haible  <bruno@clisp.org>
81072
81073         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81074
81075 2005-08-24  Bruno Haible  <bruno@clisp.org>
81076
81077         * gnulib-tool (func_version): Update.
81078
81079 2005-08-24  Bruno Haible  <bruno@clisp.org>
81080
81081         * gnulib-tool (func_import, func_create_testdir,
81082         func_create_megatestdir): Quote all autoconf macro arguments.
81083
81084 2005-08-24  Bruno Haible  <bruno@clisp.org>
81085
81086         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81087         option --force, because --force causes the aclocal.m4 of each
81088         subdirectory to be newer than the corresponding config.h.in.
81089
81090 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81093         All contents moved to gl_REGEX.
81094         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81095         assume that it does.
81096
81097 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         * lib/regex.h (REG_NOSYS)
81100         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81101         Define, since POSIX requires it as of 2001.
81102         (_REG_ENOSYS)
81103         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81104         New private symbol, used to keep the enum signed in all cases.
81105         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81106         Youngman in
81107         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81108
81109         * lib/regex_internal.c (re_string_skip_chars, register_state):
81110         (calc_state_hash):
81111         Remove forward decls; no longer needed now that we use prototypes.
81112         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81113         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81114         (clean_state_log_if_needed): Likewise.
81115
81116 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * config/srclist.txt: Add glibc bugs 1231-1233.
81119
81120 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         Fix problems reported by Sam Steingold in
81123         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81124         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81125         assumed that reg_errcode_t is a signed type, which is not
81126         necessarily true if _XOPEN_SOURCE is not defined.
81127         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81128         since some compilers warn about it otherwise.
81129
81130 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81133         (init_word_char, create_initial_state, duplicate_node_closure):
81134         (fetch_token, peek_token_bracket, build_range_exp):
81135         (build_collating_symbol): Remove forward decls; no longer needed
81136         now that we use prototypes.
81137
81138         * lib/regcomp.c:
81139         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81140         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81141         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81142         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81143         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81144         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81145         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81146         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81147         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81148         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81149         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81150         (build_charclass, build_charclass_op, fetch_number, create_tree):
81151         (create_token_tree, mark_opt_subexp, duplicate_tree):
81152         Use prototypes rather than old-style definitions.
81153
81154         * lib/regex_internal.c:
81155         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81156         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81157         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81158         (re_string_reconstruct, re_string_peek_byte_case):
81159         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81160         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81161         (re_node_set_init_copy, re_node_set_add_intersect):
81162         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81163         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81164         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81165         (re_acquire_state, re_acquire_state_context, register_state):
81166         (create_ci_newstate, create_cd_newstate, free_state):
81167         Likewise.
81168         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81169         re_search_2):
81170         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81171         (re_search_internal, prune_impossible_nodes):
81172         (acquire_init_state_context, check_matching, static):
81173         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81174         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81175         (update_regs, sift_states_backward, build_sifted_states):
81176         (clean_state_log_if_needed, merge_state_array):
81177         (update_cur_sifted_state, add_epsilon_src_nodes):
81178         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81179         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81180         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81181         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81182         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81183         (check_arrival, check_arrival_add_next_nodes):
81184         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81185         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81186         (check_node_accept_bytes, check_node_accept, extend_buffers):
81187         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81188         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81189         (sift_ctx_init):
81190         Likewise.
81191
81192         * lib/regex_internal.h:
81193         (re_string_allocate, re_string_construct, re_string_reconstruct):
81194         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81195         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81196         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81197         (re_string_context_at, re_string_peek_byte_case):
81198         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81199         is defined, since we now use prototypes always.
81200
81201         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81202         C89 or better.  All uses removed.
81203
81204 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * config/srclist.txt: Add glibc bugs 1220-1227.
81207
81208 2005-08-20  Jim Meyering  <jim@meyering.net>
81209
81210         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81211         of unused local, dfa.
81212
81213 2005-08-20  Bruno Haible  <bruno@clisp.org>
81214
81215         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81216
81217 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81220         (re_node_set_insert_last, re_dfa_add_node):
81221         Rename local variables to avoid GCC shadowing warnings.
81222
81223 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81226         [defined lint]: Suppress bogus uninitialized-variable warnings.
81227
81228         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81229         and let the caller return REG_ESPACE if out of space.  This
81230         removes an uninitialied-variable warning with GCC 4.0.1, and also
81231         avoids taking the address of a local variable.  All callers
81232         changed.
81233
81234 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81235
81236         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81237         $LIBCSRC/posix/regexec.c.
81238         Add glibc bug 1217 for regcomp.c.
81239
81240 2005-08-19  Jim Meyering  <jim@meyering.net>
81241
81242         * lib/regexec.c (proceed_next_node): Redo local variables to
81243         avoid GCC shadowing warnings.
81244
81245 2005-08-18  Bruno Haible  <bruno@clisp.org>
81246
81247         * lib/strstr.c (strstr): Fix return value in multibyte case.
81248         * lib/strcasestr.c (strcasestr): Likewise.
81249
81250 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81253
81254 2005-08-17  Jim Meyering  <jim@meyering.net>
81255
81256         Make the %s format (seconds since the epoch) work for a negative
81257         number and when used with a zero-padded field width, e.g. %015s.
81258
81259         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81260         label so that it precedes the code to set `digits'.  Otherwise,
81261         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81262         print `00-22'.  Now, it prints `-0022', as it should.
81263
81264 2005-08-17  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/strstr (Files): Add m4/mbrtowc.m4.
81267         (Depends-on): Add mbuiter.
81268
81269 2005-08-17  Bruno Haible  <bruno@clisp.org>
81270
81271         * modules/strcasestr: New file.
81272         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81273         strcasestr.
81274
81275 2005-08-17  Bruno Haible  <bruno@clisp.org>
81276
81277         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81278
81279 2005-08-17  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/mbuiter: New file.
81282         * MODULES.html.sh (Extended multibyte and wide character utilities):
81283         Add mbuiter.
81284
81285 2005-08-17  Bruno Haible  <bruno@clisp.org>
81286
81287         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81288         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81289
81290 2005-08-17  Bruno Haible  <bruno@clisp.org>
81291
81292         * m4/strcasestr.m4: New file.
81293
81294 2005-08-17  Bruno Haible  <bruno@clisp.org>
81295
81296         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81297         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81298
81299 2005-08-17  Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/strcasestr.h: New file.
81302         * lib/strcasestr.c: New file.
81303
81304 2005-08-17  Bruno Haible  <bruno@clisp.org>
81305
81306         * lib/strcasecmp.c: Use mbuiter.h.
81307
81308 2005-08-17  Bruno Haible  <bruno@clisp.org>
81309
81310         * lib/mbuiter.h: New file.
81311
81312 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81313
81314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81315         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81316         and gl_GETOPT are both invoked via different paths (as happens
81317         with GNU tar CVS because it uses both argp and getopt), the former
81318         wins.
81319
81320 2005-08-16  Bruno Haible  <bruno@clisp.org>
81321
81322         * modules/tls: New file.
81323         * MODULES.html.sh (Multithreading): Add tls.
81324
81325 2005-08-16  Bruno Haible  <bruno@clisp.org>
81326
81327         * modules/strnlen1: New file.
81328         * MODULES.html.sh (String handling): Add strnlen1.
81329
81330 2005-08-16  Bruno Haible  <bruno@clisp.org>
81331
81332         * modules/strcase (Files): Add m4/mbrtowc.m4.
81333         (Depends-on): Add strnlen1, mbchar.
81334
81335 2005-08-16  Bruno Haible  <bruno@clisp.org>
81336
81337         * modules/mbiter: New file.
81338         * MODULES.html.sh (Extended multibyte and wide character utilities):
81339         Add mbiter.
81340
81341 2005-08-16  Bruno Haible  <bruno@clisp.org>
81342
81343         * modules/mbfile: New file.
81344         * MODULES.html.sh (Extended multibyte and wide character utilities):
81345         Add mbfile.
81346
81347 2005-08-16  Bruno Haible  <bruno@clisp.org>
81348
81349         * modules/mbchar: New file.
81350         * MODULES.html.sh (Extended multibyte and wide character utilities):
81351         New section.
81352
81353 2005-08-16  Bruno Haible  <bruno@clisp.org>
81354
81355         * m4/tls.m4: New file, from GNU gettext.
81356
81357 2005-08-16  Bruno Haible  <bruno@clisp.org>
81358
81359         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81360         always.
81361         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81362
81363 2005-08-16  Bruno Haible  <bruno@clisp.org>
81364
81365         * m4/mbiter.m4: New file.
81366
81367 2005-08-16  Bruno Haible  <bruno@clisp.org>
81368
81369         * m4/mbfile.m4: New file.
81370
81371 2005-08-16  Bruno Haible  <bruno@clisp.org>
81372
81373         * m4/mbchar.m4: New file.
81374
81375 2005-08-16  Bruno Haible  <bruno@clisp.org>
81376
81377         * lib/tls.h: New file, from GNU gettext.
81378         * lib/tls.c: New file, from GNU gettext.
81379
81380 2005-08-16  Bruno Haible  <bruno@clisp.org>
81381
81382         * lib/strnlen1.h: New file.
81383         * lib/strnlen1.c: New file.
81384
81385 2005-08-16  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81388         (mbi_init): Update.
81389         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81390         NUL byte, not after it.
81391
81392 2005-08-16  Bruno Haible  <bruno@clisp.org>
81393
81394         * lib/strcase.h (strcasecmp): Add note in comments.
81395         * lib/strncasecmp.c: Use code from strcasecmp.c.
81396         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81397         (strcasecmp): Work correctly in multibyte locales.
81398
81399 2005-08-16  Bruno Haible  <bruno@clisp.org>
81400
81401         * lib/mbiter.h: New file.
81402
81403 2005-08-16  Bruno Haible  <bruno@clisp.org>
81404
81405         * lib/mbfile.h: New file.
81406
81407 2005-08-16  Bruno Haible  <bruno@clisp.org>
81408
81409         * lib/mbchar.h: New file.
81410         * lib/mbchar.c: New file.
81411
81412 2005-08-16  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81415         the valid ones. Makes the comparison operations transitive:
81416         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81417         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81418
81419 2005-08-15  Simon Josefsson  <jas@extundo.com>
81420
81421         * modules/ssize_t (License): Change to 'unlimited'.
81422
81423         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81424
81425 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81428         Add comments for each pending glibc patch.
81429
81430 2005-08-15  Bruno Haible  <bruno@clisp.org>
81431
81432         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81433         __cplusplus is defined.
81434
81435 2005-08-14  Jim Meyering  <jim@meyering.net>
81436
81437         Sync from coreutils.
81438
81439         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81440         Use the hash-table-based cycle-detection code not just when
81441         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81442         Reported by James Youngman in
81443         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81444         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81445         FTS_TIGHT_CYCLE_CHECK.
81446         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81447         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81448         once again.
81449         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81450         * lib/fts.c (fd_safer): Remove decl.
81451         Include fcntl--.h rather than unistd-safer.h
81452         (fts_safe_changedir): Don't call fd_safer; no longer needed
81453         now that we include fcntl--.h.
81454
81455 2005-08-12  Simon Josefsson  <jas@extundo.com>
81456
81457         * modules/getndelim2: Use ssize_t module.
81458         * modules/getnline: Likewise.
81459         * modules/safe-read: Likewise.
81460         * modules/xreadlink: Likewise.
81461
81462         * modules/ssize_t: New file.
81463
81464 2005-08-12  Simon Josefsson  <jas@extundo.com>
81465
81466         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81467
81468 2005-08-12  Simon Josefsson  <jas@extundo.com>
81469
81470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81471         ssize_t.
81472
81473 2005-08-12  Simon Josefsson  <jas@extundo.com>
81474
81475         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81476         readline, getdelim and check_version.
81477         (Support for systems lacking ISO C 99: Sizes of integer types):
81478         Add size_max.
81479
81480 2005-08-12  Bruno Haible  <bruno@clisp.org>
81481
81482         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81483
81484 2005-08-11  Simon Josefsson  <jas@extundo.com>
81485
81486         * modules/readline: New file.
81487
81488         * modules/strnlen (Files): Add strnlen.h.
81489
81490 2005-08-11  Simon Josefsson  <jas@extundo.com>
81491
81492         * m4/readline.m4: New file.
81493
81494 2005-08-11  Simon Josefsson  <jas@extundo.com>
81495
81496         * lib/readline.h, readline.c: New file.
81497
81498 2005-08-11  Simon Josefsson  <jas@extundo.com>
81499
81500         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81501         gl_AVOID.
81502
81503 2005-08-11  Bruno Haible  <bruno@clisp.org>
81504
81505         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81506
81507 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81508
81509         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81510
81511 2005-08-10  Simon Josefsson  <jas@extundo.com>
81512
81513         * tests/test-iconvme.c: New file.
81514
81515 2005-08-10  Simon Josefsson  <jas@extundo.com>
81516
81517         * m4/strnlen.m4: New file.
81518
81519         * m4/strndup.m4: Don't check for strnlen declaration, done in
81520         strnlen.m4.
81521
81522 2005-08-10  Simon Josefsson  <jas@extundo.com>
81523
81524         * lib/strndup.c: Use strnlen.h.
81525
81526         * lib/strnlen.h: New file.
81527
81528 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81529
81530         * README: Typos.
81531
81532 2005-08-02  Simon Josefsson  <jas@extundo.com>
81533
81534         * modules/readline: New file.
81535
81536 2005-08-02  Simon Josefsson  <jas@extundo.com>
81537
81538         * modules/getdelim: New file.
81539
81540         * modules/getline: Rewrite, don't use getndelim2.
81541
81542 2005-08-02  Simon Josefsson  <jas@extundo.com>
81543
81544         * m4/getline.m4: Separate out getdelim stuff into separate module.
81545
81546         * m4/getdelim.m4: New file.
81547
81548 2005-08-02  Simon Josefsson  <jas@extundo.com>
81549
81550         * lib/getline.h, getline.c: Rewrite.
81551
81552         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81553
81554 2005-07-31  Bruno Haible  <bruno@clisp.org>
81555
81556         * lib/lock.h (gl_lock_initializer): New macro.
81557         (gl_lock_define_initialized): Use it.
81558         (gl_rwlock_initializer): New macro.
81559         (gl_rwlock_define_initialized): Use it.
81560         (gl_recursive_lock_initializer): New macro.
81561         (gl_recursive_lock_define_initialized): Use it.
81562
81563 2005-07-30  Karl Berry  <karl@gnu.org>
81564
81565         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81566         Report from Ben Pfaff, regarding getopt.
81567
81568 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81569
81570         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81571         normal way.
81572         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81573         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81574         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81575         (gl_GETOPT): Use the new macros.  Most of the implementation
81576         is moved to the new macros.  This is for programs like Emacs
81577         that don't want all the functionality of gl_GETOPT.
81578
81579 2005-07-26  Bruno Haible  <bruno@clisp.org>
81580
81581         * m4/lock.m4: Update from GNU gettext.
81582
81583 2005-07-26  Bruno Haible  <bruno@clisp.org>
81584
81585         * lib/lock.h: Update from GNU gettext.
81586         * lib/lock.c: Update from GNU gettext.
81587
81588 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81589
81590         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81591         obsolescent AC_TRY_RUN.  Include the default includes files, for
81592         'exit'.
81593
81594 2005-07-24  Bruno Haible  <bruno@clisp.org>
81595
81596         * modules/visibility: New file.
81597         * MODULES.html.sh (Misc): Add visibility.
81598
81599 2005-07-24  Bruno Haible  <bruno@clisp.org>
81600
81601         * m4/visibility.m4: New file.
81602
81603 2005-07-24  Bruno Haible  <bruno@clisp.org>
81604
81605         * doc/visibility.texi: New file.
81606
81607 2005-07-22  Bruno Haible  <bruno@clisp.org>
81608
81609         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81610         $(ALLOCA_H), redundant through BUILT_SOURCES.
81611         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81612         redundant through BUILT_SOURCES.
81613         * modules/byteswap (Makefile.am): Remove explicit dependency on
81614         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81615         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81616         $(FNMATCH_H), redundant through BUILT_SOURCES.
81617         * modules/getopt (Makefile.am): Remove explicit dependency on
81618         $(GETOPT_H), redundant through BUILT_SOURCES.
81619         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81620         redundant through BUILT_SOURCES.
81621         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81622         redundant through BUILT_SOURCES.
81623         * modules/stdbool (Makefile.am): Remove explicit dependency on
81624         $(STDBOOL_H), redundant through BUILT_SOURCES.
81625         * modules/stdint (Makefile.am): Remove explicit dependency on
81626         $(STDINT_H), redundant through BUILT_SOURCES.
81627         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81628         Remove explicit dependency on $(SYSEXITS_H).
81629         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81630
81631 2005-07-18  Simon Josefsson  <jas@extundo.com>
81632
81633         * lib/check-version.c (check_version): Accept identical versions too.
81634
81635 2005-07-18  Bruno Haible  <bruno@clisp.org>
81636
81637         * modules/lock: New file.
81638         * MODULES.html.sh (Multithreading): New section.
81639
81640 2005-07-18  Bruno Haible  <bruno@clisp.org>
81641
81642         * m4/lock.m4: New file, from GNU gettext.
81643
81644 2005-07-18  Bruno Haible  <bruno@clisp.org>
81645
81646         * lib/lock.h: New file, from GNU gettext.
81647         * lib/lock.c: New file, from GNU gettext.
81648
81649 2005-07-18  Bruno Haible  <bruno@clisp.org>
81650
81651         * lib/lock.h (gl_once_t): New type.
81652         (gl_once_define, gl_once): New macros.
81653         * lib/lock.c (fresh_once): New variable.
81654         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81655         functions.
81656
81657 2005-07-16  Simon Josefsson  <jas@extundo.com>
81658
81659         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81660         workaround, suggested by Bruno.
81661
81662 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * modules/xalloc (Depends-on): Add xalloc-die.
81665         * modules/xvasprintf (Depends-on): Add xalloc-die.
81666
81667 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81670         with a minor change.
81671
81672 2005-07-15  Bruno Haible  <bruno@clisp.org>
81673
81674         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81675         When using lib/poll.c, define poll as rpl_poll.
81676
81677 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81678
81679         * modules/argp (Depends-on): Remove unlocked-io.
81680
81681 2005-07-14  Derek Price  <derek@ximbiot.com>
81682
81683         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81684         for glob symlink bug.
81685
81686 2005-07-14  Bruno Haible  <bruno@clisp.org>
81687
81688         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81689         Instead, test for *_unlocked function declarations directly.
81690
81691 2005-07-11  Simon Josefsson  <jas@extundo.com>
81692
81693         * modules/size_max: New file.
81694
81695         * modules/xsize: Depend on size_max module for size_max.m4.
81696
81697 2005-07-11  Simon Josefsson  <jas@extundo.com>
81698
81699         * lib/size_max.h: New file.
81700
81701 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81704         copyright symbol and the year.
81705         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81706         (version_etc_va): Use parameterized copyright notice.
81707         Reword to conform to the current GNU coding standards.
81708
81709 2005-07-11  Karl Berry  <karl@gnu.org>
81710
81711         * doc/gnulib.texi (Quoting): new node.
81712         (Initial import): more info, from Patrice.
81713
81714 2005-07-11  Bruno Haible  <bruno@clisp.org>
81715
81716         * gnulib-tool (func_usage): Document option --avoid.
81717         (Command line options): Handle --avoid.
81718         (func_acceptable): New function.
81719         (func_modules_transitive_closure): Use it.
81720
81721 2005-07-11  Bruno Haible  <bruno@clisp.org>
81722
81723         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81724         Reported by Jim Meyering.
81725
81726 2005-07-10  Bruno Haible  <bruno@clisp.org>
81727
81728         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81729         Needed when size_t is smaller than 'unsigned int'.
81730         Reported by Paul Eggert.
81731
81732 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81733
81734         * modules/argp (Depends-on): Add unlocked-io
81735
81736 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81737
81738         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81739         block of defines.
81740
81741 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81742
81743         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81744         fix now.
81745
81746 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81747         and Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81750         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81751
81752 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * modules/regex (Files): Add lib/regex_internal.c,
81755         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81756         (Depends-on): Add extensions.
81757         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81758
81759 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81760
81761         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81762         pathconf.
81763         * m4/same.m4 (gl_SAME): Likewise.
81764         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81765
81766         * m4/regex.m4: Adjust to new libc regex implementation.
81767         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81768         all the .c and .h parts of (the new) regex.
81769         Quote the m4 stuff better.
81770         Check for RE_ICASE bug of old gnulib.
81771         Check for REG_STARTEND of recent libc.
81772         Rename local variables from jm_* to gl_*.
81773         Quote operand of "test -f".
81774         Say "recent enough" version of libc, not "version 2".
81775         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81776         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81777         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81778         Remove check for btowc, isascii.
81779         Require AM_LANGINFO_CODESET.
81780
81781 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * lib/regex.c, regex.h: Sync from libc.
81784         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81785         * lib/regexec.c:
81786         New files, synced from libc, except that regex_internal.h
81787         currently has a small porting fix.
81788
81789 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81792         regex_internal.c, regexec.c.
81793         Add regex_internal.h too, but as a comment, since the libc version
81794         is currently broken in gnulib mode.
81795
81796 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         Support programs like Emacs that use gnulib but not gettext.
81799         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81800         * modules/gettext-h: New file.
81801         * modules/gettext (Files): Remove lib/gettext.h.
81802         (Depends-on): Add gettext-h.
81803         (Makefile.am): Remove lib_SOURCES.
81804         * modules/argmatch, modules/c-stack, modules/closeout:
81805         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81806         * modules/execute, modules/file-type, modules/getaddrinfo:
81807         * modules/getopt, modules/human, modules/javacomp:
81808         * modules/javaexec, modules/mkdir-p, modules/obstack:
81809         * modules/openat, modules/pagealign_alloc, modules/pipe:
81810         * modules/quotearg, modules/regex, modules/rpmatch:
81811         * modules/unicodeio, modules/userspec, modules/version-etc:
81812         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81813         * modules/xsetenv:
81814         Depend on gettext-h, not gettext.
81815
81816 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * gnulib-tool (func_import): Add support for 'public domain' license.
81819         * modules/alloca, modules/atexit, modules/memmove:
81820         Now public domain, not GPL.
81821         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81822         * modules/realloc, modules/strerror, modules/strtod:
81823         Now LGPL, not GPL.
81824
81825 2005-07-05  Bruno Haible  <bruno@clisp.org>
81826
81827         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81828         autoconf CVS. Needed for mingw.
81829
81830 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         Remove the dependency of the strftime module on the tzset module.
81833         * modules/strftime (Depends-on): Remove dependency on tzset.
81834
81835 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81836
81837         Remove the dependency of the strftime module on the tzset module.
81838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81839         gl_FUNC_TZSET_CLOBBER.
81840
81841 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         Remove the dependency of the strftime module on the tzset module.
81844         * lib/strftime.c (my_strftime)
81845         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81846         Copy the input structure, to work around some of the bug with
81847         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81848         Solaris releases, you should also use the tzset module, but we won't
81849         require it as a dependency any more since we don't want LGPLed code
81850         to depend on GPLed code.
81851
81852 2005-07-02  Jim Meyering  <jim@meyering.net>
81853
81854         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81855         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81856         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81857         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81858
81859 2005-07-02  Jim Meyering  <jim@meyering.net>
81860
81861         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81862
81863 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81866         declares only 'struct timespec;' (!).
81867
81868 2005-07-01  Jim Meyering  <jim@meyering.net>
81869
81870         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81871         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81872         * lib/save-cwd.c, tempname.c:
81873         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81874         and don't include <sys/file.h>).
81875
81876 2005-06-29  Jim Meyering  <jim@meyering.net>
81877
81878         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81879         type name.  Use the variable name instead.
81880         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81881         Likewise.
81882
81883 2005-06-28  Simon Josefsson  <jas@extundo.com>
81884
81885         * modules/check-version (Files): Add check-version.m4.
81886
81887 2005-06-28  Simon Josefsson  <jas@extundo.com>
81888
81889         * m4/check-version.m4: New file, suggested by Jim Meyering
81890         <jim@meyering.net>.
81891
81892 2005-06-28  Simon Josefsson  <jas@extundo.com>
81893
81894         * lib/check-version.h, lib/check-version.c: New files.
81895
81896 2005-06-28  Simon Josefsson  <jas@extundo.com>
81897
81898         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81899         collision with global variable.  Better indentation.  Don't
81900         increment buffer pointer beyond buffer end.  Based on comments
81901         from Paul Eggert <eggert@cs.ucla.edu>.
81902
81903         * lib/base64.h: Indent.
81904
81905 2005-06-28  Simon Josefsson  <jas@extundo.com>
81906
81907         * doc/gnulib.texi (Library version handling): New section.
81908
81909 2005-06-28  Jim Meyering  <jim@meyering.net>
81910
81911         * check-module (find_included_lib_files): Hard-code another
81912         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81913         but modules/fts-lgpl (correctly) does not list those files.
81914
81915         * modules/canonicalize (Files): Add lib/pathmax.h.
81916
81917 2005-06-25  Simon Josefsson  <jas@extundo.com>
81918
81919         * modules/check-version: New file.
81920
81921 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81924         initializer of struct addrinfo, as an indication that we don't
81925         care how many members the structure has.
81926
81927 2005-06-24  Derek Price  <derek@ximbiot.com>
81928         and Bruno Haible  <bruno@clisp.org>
81929
81930         Remove stat module & update lstat.
81931         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81932         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81933         * m4/stat.m4: Remove this file.
81934
81935 2005-06-24  Derek Price  <derek@ximbiot.com>
81936         and Bruno Haible  <bruno@clisp.org>
81937
81938         Remove stat module & update lstat.
81939         * lib/stat.c: Remove this file...
81940         (slash_aware_lstat): ...moving this content and its support...
81941         * lib/lstat.c (rpl_lstat): ...into here.
81942         * lib/lstat.h: New file.
81943
81944 2005-06-24  Derek Price  <derek@ximbiot.com>
81945         and Bruno Haible  <bruno@clisp.org>
81946
81947         Remove stat module & update lstat.
81948         * config/srclist.txt (libc sources): Remove stat.
81949
81950 2005-06-24  Derek Price  <derek@ximbiot.com>
81951         and Bruno Haible  <bruno@clisp.org>
81952
81953         Remove stat module & update lstat.
81954         * MODULES.html.sh (stat): Remove.
81955         * MODULES.html: Regenerated.
81956         * modules/lstat (Description): Correct function name.
81957         (Files): Add "lstat.h".
81958         (Depends-on): Remove stat, add xalloc, stat-macros.
81959         * modules/stat: Remove this file.
81960         (Include): Add "lstat.h", remove <sys/stat.h>.
81961
81962 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81965         (ranged_convert): Don't save conversion in a temporary struct.
81966         This causes a warning with GCC 4.0.0, and anyway in the typical
81967         case it's not worth the extra 100 bytes or so of code.
81968         (ranged_convert, __mktime_internal): When calling a function via a
81969         pointer P, use P () rather than (*P) (), as we now assume C89 or
81970         better.
81971
81972 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81975         "who -r" failed to give output.  Problem reported by Tim Waugh.
81976
81977         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81978         (xcalloc): Use it to avoid needless tests.
81979         Problem reported by Jim Meyering.
81980
81981 2005-06-20  Derek Price  <derek@ximbiot.com>
81982
81983         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81984         unnecessary for Autoconfs > 2.59c.
81985
81986 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81987
81988         * lib/argp.h (__option_is_short): Check upper limit of
81989         __key. Isprint() requires its argument to have the value
81990         of an unsigned char or EOF.
81991
81992 2005-06-16  Jim Meyering  <jim@meyering.net>
81993
81994         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81995         when either N or S is zero.
81996
81997 2005-06-16  Derek Price  <derek@ximbiot.com>
81998
81999         * m4/bison.m4: Declare YACC & YFLAGS precious.
82000
82001 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82002
82003         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82004         multibyte string or pattern, fall back on unibyte matching.
82005         Problem reported by James Youngman.
82006
82007 2005-06-08  Bruno Haible  <bruno@clisp.org>
82008
82009         * modules/csharpcomp: New file.
82010         * MODULES.html.sh (C#): Add csharpcomp.
82011
82012 2005-06-08  Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/csharpcomp.m4: New file, from GNU gettext.
82015
82016 2005-06-08  Bruno Haible  <bruno@clisp.org>
82017
82018         * lib/csharpcomp.h: New file, from GNU gettext.
82019         * lib/csharpcomp.c: New file, from GNU gettext.
82020         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82021
82022 2005-06-08  Bruno Haible  <bruno@clisp.org>
82023
82024         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82025         warning on mingw.
82026
82027 2005-06-07  Derek Price  <derek@ximbiot.com>
82028
82029         Sync from CVS.
82030         * lib/glob_.h: Indent nested #ifdef.
82031
82032 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         Sync from coreutils.
82035         Use "file name" when talking about file names, instead of "filename"
82036         or "path", as per the GNU coding standards.
82037         * lib/mkdir-p.c: Renamed from makepath.c.
82038         (make_dir_parents): Renamed from make_path.  All callers changed.
82039         * lib/mkdir-p.h: Likewise.  All includers changed.
82040         * lib/filenamecat.c: Renamed from path-concat.c.
82041         (file_name_concat): Renamed from path_concat.  All callers changed.
82042         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82043         * lib/filenamecat.h: Likewise.  All includers changed.
82044         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82045         in comments or local variable names.
82046         * lib/basename.c: Likewise.
82047         * lib/canonicalize.c, canonicalize.h: Likewise.
82048         * lib/dirname.c, dirname.h: Likewise.
82049         * lib/euidaccess.c: Likewise.
82050         * lib/exclude.c: Likewise
82051         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82052         * lib/fsusage.c, fsuage.h: Likewise.
82053         * lib/fts.c, fts_.h: Likewise.
82054         * lib/getcwd.c: Likewise.
82055         * lib/getloadavg.c: Likewise.
82056         * lib/mkstemp.c: Likewise.
82057         * lib/mountlist.c, mountlist.h: Likewise.
82058         * lib/openat.c, openat.h: Likewise.
82059         * lib/readlink-stub.c: Likewise.
82060         * lib/readutmp.c, readutmp.h: Likewise.
82061         * lib/rename.c: Likewise.
82062         * lib/rmdir.c: Likewise.
82063         * lib/same.c: Likewise.
82064         * lib/savedir.c: Likewise.
82065         * lib/stripslash.c: Likewise.
82066         * lib/tempname.c: Likewise.
82067         * lib/xreadlink.c: Likewise.
82068         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82069         All uses changed.
82070         * lib/exclude.h: Likewise.
82071
82072         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82073         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82074         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82075         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82076         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82077         files have been getting away with it for years (MORE/BSD 4.3
82078         is extinct now).
82079         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82080         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82081
82082         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82083         Define to 256, not 255, as per modern POSIX.
82084
82085 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         Sync from coreutils.
82088         Use "file name" when talking about file names, instead of "filename"
82089         or "path", as per the GNU coding standards.
82090         * MODULES.html.sh: mkdir-p renamed from makepath.
82091         filenamecat renamed from path-concat.
82092         * modules/filenamecat: Renamed from modules/path-concat.
82093         (Files): filenamecat.h and filenamecat.c renamed from
82094         path-concat.h and path-concat.c.
82095         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82096         (Include): filenamecat.h, not path-concat.h.
82097         * modules/mkdir-p: Renamed from modules/makepath.
82098         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82099         makepath.c.
82100         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82101         (Include): mkdir-p.h, not makepath.h.
82102
82103 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         Sync from coreutils.
82106         * m4/mkdir-p.m4: Renamed from makepath.m4.
82107         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82108         Rename files from makepath.c to mkdir-p.c, and from
82109         makepath.h to mkdir-p.h.
82110         * m4/filenamecat.m4: Renamed from path-concat.m4.
82111         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82112         Rename files from path-concat.c to filenamecat.c,
82113         and from path-concat.h to filenamecat.h.
82114         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82115         "file name" in local variables or comments.
82116         * m4/rename.m4: Likewise.
82117
82118 2005-06-01  Bruno Haible  <bruno@clisp.org>
82119
82120         * modules/csharpexec: New file.
82121         * MODULES.html.sh (C#): New section.
82122
82123 2005-06-01  Bruno Haible  <bruno@clisp.org>
82124
82125         * m4/csharp.m4: New file, from GNU gettext.
82126         * m4/csharpexec.m4: New file, from GNU gettext.
82127
82128 2005-06-01  Bruno Haible  <bruno@clisp.org>
82129
82130         * lib/csharpexec.h: New file, from GNU gettext.
82131         * lib/csharpexec.c: New file, from GNU gettext.
82132         * lib/csharpexec.sh.in: New file, from GNU gettext.
82133
82134 2005-05-31  Derek Price  <derek@ximbiot.com>
82135             Paul Eggert  <eggert@cs.ucla.edu>
82136
82137         Sync from cvs.
82138         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82139
82140 2005-05-31  Derek Price  <derek@ximbiot.com>
82141             Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         Sync from cvs.
82144         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82145
82146 2005-05-29  Derek Price  <derek@ximbiot.com>
82147
82148         * config/srclist.txt (glob_.h, glob.c): Add these files.
82149
82150 2005-05-29  Derek Price  <derek@ximbiot.com>
82151
82152         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82153         * modules/glob: New file.
82154         * modules/getlogin_r: Add link to POSIX spec in description.
82155
82156 2005-05-29  Derek Price  <derek@ximbiot.com>
82157             Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * m4/glob.m4: New file.
82160
82161 2005-05-29  Derek Price  <derek@ximbiot.com>
82162             Paul Eggert  <eggert@cs.ucla.edu>
82163
82164         * lib/glob_.h, lib/glob.c: New files.
82165
82166 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82167
82168         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82169         * modules/fts-lgpl (Depends-on): Remove gettext.
82170
82171 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82174         and don't require gt_INTTYPES_PRI.
82175
82176 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82177
82178         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82179
82180         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82181         the configuration hassle isn't worth it.
82182         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82183         (LONGEST_MODIFIER, PRIuMAX): Remove.
82184
82185 2005-05-27  Bruno Haible  <bruno@clisp.org>
82186
82187         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82188
82189 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82192         _POSIX_PTHREAD_SEMANTICS for Solaris.
82193
82194 2005-05-25  Derek Price  <derek@ximbiot.com>
82195
82196         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82197
82198 2005-05-25  Derek Price  <derek@ximbiot.com>
82199             Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82202         * lib/getlogin_r.c, getlogin_r.h: New files.
82203
82204 2005-05-25  Bruno Haible  <bruno@clisp.org>
82205             Derek Price  <derek@ximbiot.com>
82206
82207         * lib/getlogin_r.h: Simplify API documentation.
82208
82209 2005-05-23  Derek Price  <derek@ximbiot.com>
82210
82211         * modules/minmax (Files): Add m4/minmax.m4.
82212         (configure.ac): Add gl_MINMAX.
82213
82214 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82217         so that unistd-safer.h (GPL'ed code) need not be included.
82218
82219 2005-05-22  Bruno Haible  <bruno@clisp.org>
82220
82221         * m4/minmax.m4: New file.
82222         Based on a patch by Derek Price <derek@ximbiot.com>.
82223
82224 2005-05-22  Bruno Haible  <bruno@clisp.org>
82225
82226         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82227         (INT64_MIN): Fix definition.
82228         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82229
82230         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82231         NEED_SIGNED_INT_TYPES.
82232
82233         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82234         HAVE_SYSTEM_INTTYPES.
82235
82236 2005-05-22  Bruno Haible  <bruno@clisp.org>
82237
82238         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82239         Also include <sys/param.h> if it defines MIN, MAX.
82240         Based on a patch by Derek Price <derek@ximbiot.com>.
82241
82242 2005-05-21  Jim Meyering  <jim@meyering.net>
82243
82244         * modules/fts (Files): Add m4/inttypes-pri.m4.
82245         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82246
82247 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         New fts module.
82250         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82251         (setup_dir, free_dir): New functions.
82252         (enter_dir, leave_dir): Define trivial
82253         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82254         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82255         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82256         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82257         Move to fts-cycle.c.
82258         (fts_open): Use setup_dir.
82259         (fts_close): Use free_dir.
82260         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82261         This adds a label and some gotos, but the alternatives were messier.
82262         Check for memory allocation failure when entering a dir.
82263         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82264         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82265         (FTS): New member fts_cycle, that is a union that contains the
82266         old active_dir_ht and cycle_state.  All uses changed to mention
82267         fts_cycle.ht and fts_cycle.state.
82268         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82269         fts.c, with the following changes:
82270         (setup_dir, free_dir): New functions.
82271         (enter_dir): Now returns bool.  Return true if successful, false
82272         if memory exhausted.  All callers changed.
82273         Do not bother partly cleaning up on
82274         memory allocation failure; that is free_dir's job.
82275         However, free ad if hash_insert fails, to avoid memory leak.
82276         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82277         fts->fts_options to see which union member to use.
82278
82279 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82282         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82283
82284 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82285
82286         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82287
82288 2005-05-20  Jim Meyering  <jim@meyering.net>
82289
82290         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82291         Now a macro, to pacify GCC.
82292
82293 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82294
82295         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82296         of -1.
82297
82298 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82299
82300         * lib/chown.c (rpl_chown): Return -1 on failure.
82301
82302 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82303
82304         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82305         Don't check for stddef.h.
82306         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82307         don't use its results.
82308         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82309         since we include them unconditionally.  Don't require
82310         AM_STDBOOL_H, since stdbool is a prerequisite.
82311         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82312         since we assume C89 or better.
82313         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82314         as we don't use their results.
82315         Don't check for fchdir, memmove, memset, strrchr, as we use
82316         them unconditionally.
82317         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82318         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82319
82320 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82321
82322         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82323         Include <stddef.h> unconditionally, since we assume C89 now.
82324         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82325         * lib/fts.c: Include fts_.h first, to check interface.
82326         Do not include intprops.h; no longer needed.
82327         Include cycle-check.h and hash.h, since fts_.h no longer does.
82328         Remove unnecessary casts of closedir to void.
82329         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82330         decide whether to decrement nlinks.
82331         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82332         (FTS): Use struct hash_table * instead of Hash_table, so that
82333         we no longer need to include hash.h here.
82334
82335 2005-05-18  Jim Meyering  <jim@meyering.net>
82336
82337         * modules/dirfd (License): Change to LGPL.  Most of the code
82338         is already in the public domain.
82339
82340 2005-05-18  Jim Meyering  <jim@meyering.net>
82341
82342         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82343         Reported by Yoann Vandoorselaere.
82344
82345 2005-05-17  Jim Meyering  <jim@meyering.net>
82346
82347         * m4/fts.m4: New file, from coreutils.
82348
82349 2005-05-17  Jim Meyering  <jim@meyering.net>
82350
82351         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82352
82353 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82354
82355         Sync from coreutils.
82356         * m4/unlinkdir.m4: New file.
82357
82358 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82359
82360         Sync from coreutils.
82361         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82362         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82363         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82364         White space changes only.
82365         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82366         special.
82367         * lib/yesno.c: Include getline.h, not ctype.h.
82368         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82369         Use getline to remove arbitrary restriction on response length.
82370
82371 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         * config/srclist-update: Spell out "Street" in FSF postal
82374         mail address; this is the style the FSF seems to prefer.
82375
82376         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82377         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82378         this updates FSF postal mail address.
82379
82380         Sync from coreutils.
82381         * modules/unlinkdir: New file.
82382         * modules/yesno (Depends-on): Add getline.
82383         * MODULES.html.sh (File system functions): Add unlinkdir.
82384
82385 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82388         lib/strsep.h:
82389         Change the initial comment to refer to GPL, not LGPL.
82390         gnulib-tool will change it to LGPL as needed.
82391
82392         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82393         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82394         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82395         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82396         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82397         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82398         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82399         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82400         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82401         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82402         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82403         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82404         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82405         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82406         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82407         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82408         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82409         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82410         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82411         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82412         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82413         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82414         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82415         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82416         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82417         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82418         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82419         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82420         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82421         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82422         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82423         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82424         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82425         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82426         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82427         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82428         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82429         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82430         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82431         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82432         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82433         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82434         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82435         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82436         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82437         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82438         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82439         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82440         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82441         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82442         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82443         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82444         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82445         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82446         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82447         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82448         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82449         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82450         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82451         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82452         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82453         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82454         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82455         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82456         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82457         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82458         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82459         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82460         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82461         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82462         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82463         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82464         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82465         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82466         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82467         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82468         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82469         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82470         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82471         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82472         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82473         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82474         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82475         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82476         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82477         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82478         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82479         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82480         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82481         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82482         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82483         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82484         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82485         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82486         lib/yesno.c, lib/yesno.h:
82487         Update FSF postal mail address.
82488
82489 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82492         tests/test-memmem.c, tests/test-stpncpy.c:
82493         Update FSF postal mail address.
82494
82495 2005-05-13  Bruno Haible  <bruno@clisp.org>
82496
82497         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82498         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82499         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82500         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82501         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82502         Add support for 64-bit integers in the MSVC compiler.
82503
82504 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82505
82506         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82507
82508 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82509
82510         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82511
82512 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * doc/getdate.texi (General date syntax): Don't say that date
82515         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82516         Problem reported by Nic Ferrier.
82517
82518 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82519
82520         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82521         specified in ai_socktype. Fix invalid ai_protocol
82522         check. ai_protocol is usually set to 0 or depending on
82523         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82524         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82525         ai_socktype / ai_protocol in the returned addrinfo structure.
82526
82527 2005-05-10  Simon Josefsson  <jas@extundo.com>
82528
82529         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82530         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82531
82532 2005-05-10  Karl Berry  <karl@gnu.org>
82533
82534         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82535         (from http://www.gnu.org/licenses).
82536         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82537         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82538         fdl.texi suffices.
82539
82540 2005-05-10  Karl Berry  <karl@gnu.org>
82541
82542         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82543         (COPYING.DOC): remove.
82544
82545         * config/srclist-update: new FSF address.
82546
82547 2005-05-10  Derek Price  <derek@ximbiot.com>
82548
82549         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82550         possible.
82551
82552 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82553             Bruno Haible  <bruno@clisp.org>
82554
82555         * modules/inet_ntop: New file.
82556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82557         inet_ntop.
82558
82559 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82560             Bruno Haible  <bruno@clisp.org>
82561
82562         * m4/inet_ntop.m4: New file.
82563
82564 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82565             Bruno Haible  <bruno@clisp.org>
82566
82567         * lib/inet_ntop.h: New file.
82568         * lib/inet_ntop.c: New file, from glibc with modifications.
82569
82570 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82571
82572         * modules/time_r (License): Change to LGPL.
82573         * modules/extensions (License): Change to LGPL.  Actually,
82574         the license is more permissive than that, but currently gnulib-tool
82575         doesn't know how to handle more-permissive licenses.
82576
82577         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82578         Problem reported by Dave Love.
82579
82580 2005-05-08  Jim Meyering  <jim@meyering.net>
82581
82582         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82583         blank.
82584
82585 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82586
82587         * modules/argmatch (Depends-on): Add stdbool.
82588         * modules/backupfile (Depends-on): Likewise.
82589         * modules/chdir-long (Depends-on): Likewise.
82590         * modules/closeout (Depends-on): Likewise.
82591         * modules/cycle-check (Depends-on): Likewise.
82592         * modules/dirname (Depends-on): Likewise.
82593         * modules/fnmatch (Depends-on): Likewise.
82594         * modules/fsusage (Depends-on): Likewise.
82595         * modules/fwriteerror (Depends-on): Likewise.
82596         * modules/getcwd (Depends-on): Likewise.
82597         * modules/getloadavg (Depends-on): Likewise.
82598         * modules/hard-locale (Depends-on): Likewise.
82599         * modules/makepath (Depends-on): Likewise.
82600         * modules/mountlist (Depends-on): Likewise.
82601         * modules/nanosleep (Depends-on): Likewise.
82602         * modules/posixtm (Depends-on): Likewise.
82603         * modules/quotearg (Depends-on): Likewise.
82604         * modules/readtokens (Depends-on): Likewise.
82605         * modules/readtokens0 (Depends-on): Likewise.
82606         * modules/readutmp (Depends-on): Likewise.
82607         * modules/save-cwd (Depends-on): Likewise.
82608         * modules/strftime (Depends-on): Likewise.
82609         * modules/userspec (Depends-on): Likewise.
82610         * modules/utimecmp (Depends-on): Likewise.
82611         * modules/xgetcwd (Depends-on): Likewise.
82612         * modules/xnanosleep (Depends-on): Likewise.
82613         * modules/xstrtod (Depends-on): Likewise.
82614         * modules/yesno (Depends-on): Likewise.
82615
82616 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82619         needless checks.
82620
82621 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         Merge from coreutils.  Among other things,
82624         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82625         * lib/fd-safer.c: New file.
82626         * lib/fcntl-safer.h, open-safer.c: Remove.
82627         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82628         * lib/dup-safer.c: Include unistd-safer.h first.
82629         Don't include errno.h.
82630         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82631         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82632         * lib/file-type.c: Rely on file-type.h change.
82633         * lib/getloadavg.c: Include unistd-safer.h.
82634         (getloadavg): Use safer open.
82635         * lib/getusershell.c: Include "stdio-safer.h".
82636         (getusershell): Use safer fopen.
82637         * lib/long-options.c (long_options): Use NULL rather than 0.
82638         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82639         'free'.
82640         * lib/modechange.c: Likewise.
82641         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82642         (MODE_DONE): New constant.
82643         (struct mode_change): Remove 'next' member.
82644         (make_node_op_equals): New function; like the old one of the
82645         same name, except it allocates an array.
82646         (mode_compile, mode_create_from_ref): Use it.
82647         (mode_compile): Allocate result as an array, not a linked list.
82648         Parse octal string ourself, so that we catch mistakes like "+0".
82649         (mode_adjust): Arg is an array, not a linked list.
82650         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82651         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82652         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82653         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82654         Remove.  This is now stat-macros.h's job.
82655         (talloc): Remove.  All callers replaced by xalloc, so that
82656         our invokers don't have to worry about reporting memory failures.
82657         (make_node_op_equals): Remove.
82658         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82659         New constants.
82660         (struct mode_change): Moved here from modechange.h.
82661         (mode_append_entry): Remove.
82662         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82663         apps to have incorrect behavior.  Use simpler algorithm for head
82664         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82665         Detect more invalid usages rather than having somewhat-random behavior.
82666         Don't insert an "a=" action, as that leads to incorrect behavior.
82667         (mode_compile, mode_create_from_ref): Return NULL on error instead
82668         of an enum, since now there's only one way to have an error.  All
82669         callers changed.
82670         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82671         at the correct time.  Simplify calculation of "+u" and its ilk.
82672         Don't mishandle "+X".
82673         (mode_free): Remove "register" and localize decls.
82674         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82675         (struct mode_change): Move to modechange.c; callers don't
82676         need to see this stuff.
82677         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82678         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82679         (mode_change, mode_adjust): Reflect the new signatures noted above.
82680         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82681         that might redefine system include files.
82682         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82683         (my_usleep): Use NULL rather than (void *) 0.
82684         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82685         Use siginterrupt to specify that system calls should be interrupted.
82686         (rpl_nanosleep): Move initialization of suspended closer to call of
82687         my_usleep.
82688         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82689         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82690         (desirable_utmp_entry): New function.
82691         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82692         using x2nrealloc, to simplify logic.
82693         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82694         size calculation.  Do not assume utmp file is a regular file.
82695         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82696         (READ_UTMP_CHECK_PIDS): New constant.
82697         * lib/save-cwd.c: Include unistd-safer.h.
82698         (save_cwd): Use fd_safer.
82699         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82700         [!_LIBC] Include "stat-macros.h" instead.
82701         * lib/unistd-safer.h (fd_safer): New decl.
82702
82703 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         * modules/getloadavg (Depends-on): Add unistd-safer.
82706         * modules/getusershell (Depends-on): Add stdio-safer.
82707         * modules/lstat (Depends-on): Remove xalloc.
82708         * modules/mkstemp (Depends-on): Add stat-macros.
82709         * modules/modechange (Depends-on): Remove xstrtol.
82710         Add stat-macros, xalloc.
82711         * modules/save-cwd (Depends-on): Add unistd-safer.
82712         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82713         * modules/unistd-safer (Files): Add lib/fd-safer.c
82714         (Makefile.am): Remove lib_SOURCES.
82715
82716         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82717         Remove fcntl-safer; unistd-safer supersedes it.
82718
82719 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82720
82721         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82722         AC_HEADER_STAT.
82723         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82724         (gl_PREREQ_CHOWN): Remove.
82725         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82726         it.  Don't require AC_HEADER_STAT.
82727         (gl_PREREQ_LSTAT): Remove.
82728         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82729         Don't require AC_HEADER_STAT.
82730         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82731         (gl_PREREQ_RMDIR): Remove.
82732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82733         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82734         the stat-macros module a prerequisite.
82735         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82736         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82737         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82738         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82739         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82740         variable names.
82741         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82742         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82743         variable prefixes.
82744         * m4/fcntl-safer.m4: Remove.
82745         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82746         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82747         Invoke gl_PREREQ_FD_SAFER.
82748         (gl_PREREQ_FD_SAFER): New macro.
82749         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82750         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82751         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82752         Remove duplicate call to AC_LIBOBJ(readutmp).
82753         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82754
82755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82756         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82757
82758 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * MODULES.html.sh (Misc): Add byteswap.
82761
82762 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82763
82764         * modules/getcwd (Depends-on): Add extensions.
82765         * modules/openat (Depends-on): Likewise.
82766
82767 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82768
82769         * modules/byteswap: New file.
82770
82771 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82772
82773         * m4/byteswap.m4: New file.
82774
82775 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82776
82777         * lib/byteswap_.h: New file.
82778
82779 2005-04-25  Karl Berry  <karl@gnu.org>
82780
82781         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82782
82783 2005-04-25  Albert Chin  <china@thewrittenword.com>
82784
82785         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82786         Toolkit C bug.
82787
82788 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82789
82790         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82791         (func_ln_if_changed): Remove forcibly for no error message
82792         in case file does not exist.
82793
82794 2005-04-19  Simon Josefsson  <jas@extundo.com>
82795
82796         * gnulib-tool (Options): Make --symlink mean --symbolic.
82797
82798 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82799
82800         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82801
82802 2005-04-16  Simon Josefsson  <jas@extundo.com>
82803
82804         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82805
82806 2005-04-15  Simon Josefsson  <jas@extundo.com>
82807
82808         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82809
82810 2005-04-15  Simon Josefsson  <jas@extundo.com>
82811
82812         * gnulib-tool: Rename --symlink to --symbolic.
82813
82814 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82815
82816         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82817         symbolic links to files instead of copying/moving.  Add --aux-dir,
82818         specifying directory relative --dir where auxiliary build tools
82819         are placed.
82820
82821 2005-04-14  Bruno Haible  <bruno@clisp.org>
82822
82823         * modules/allocsa (License): Change to LGPL.
82824         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82825
82826 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82827
82828         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82829         that "UTC +1 second" continues to work.  Problem reported
82830         by Dmitry V. Levin.
82831         (relunit_snumber): New rule.
82832         (relunit): Use it.
82833
82834 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * lib/getdate.y (universal_time_zone_table): New constant.
82837         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82838         universal_time_zone_table.
82839         (lookup_zone): Prefer universal_time_zone_table to
82840         local_time_zone_table, so that "GMT" time stamps are allowed in
82841         London during the summer.  Problem reported by Ian Abbott.
82842
82843 2005-04-12  Jim Meyering  <jim@meyering.net>
82844
82845         * lib/human.c (humblock): Set *options even when returning due to
82846         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82847         warning from gcc-4.
82848
82849 2005-04-09  Jim Meyering  <jim@meyering.net>
82850
82851         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82852         -Wuninitialized: initialize tm0.tm_year.
82853
82854 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82857         count, since there's no maximum.  All uses changed.
82858         Add member dsts_seen.
82859         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82860         not being INT_MAX.
82861         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82862         Use pc_rels_seen to decide whther a date is absolute.
82863
82864         * lib/getdate.y (number): Don't overwrite year.
82865         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82866         check.
82867
82868 2005-04-02  Simon Josefsson  <jas@extundo.com>
82869
82870         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82871         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82872
82873 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82874
82875         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82876         where no absolute path name can be longer than PATH_MAX.
82877
82878 2005-03-27  Jim Meyering  <jim@meyering.net>
82879
82880         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82881
82882 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82885         "one's complement" -> "ones' complement" in comment, as per Knuth.
82886         "value of type" -> "type or expression" in comment.
82887         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82888
82889 2005-03-26  Jim Meyering  <jim@meyering.net>
82890
82891         Comment nits.
82892         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82893         Correct typos: s/or/of/.
82894
82895 2005-03-26  Jim Meyering  <jim@meyering.net>
82896
82897         * modules/check-include-files: Move to ../ and rename to...
82898         * check-module: ...this.
82899
82900 2005-03-25  Jim Meyering  <jim@meyering.net>
82901
82902         * modules/xvasprintf (Files): Add xalloc.h.
82903
82904 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * modules/gettext (Files): config/config.rpath ->
82907         build-aux/config.rpath
82908         * modules/iconv (Files): Likewise.
82909         Problem reported by Oskar Liljeblad.
82910
82911 2005-03-23  Jim Meyering  <jim@meyering.net>
82912
82913         * modules/check-include-files: New script to check for
82914         missing dependencies, multiple includes, etc.
82915
82916         * modules/c-strtold (Depends-on): Add xalloc.
82917         * modules/c-strtod (Depends-on): Add xalloc.
82918         * modules/hash (Depends-on): Add xalloc.
82919         (Files): Remove lib/xalloc.h.
82920
82921         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82922         * modules/userspec (Files): Add lib/inttostr.h.
82923
82924 2005-03-23  Jim Meyering  <jim@meyering.net>
82925
82926         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82927
82928 2005-03-22  Jim Meyering  <jim@meyering.net>
82929
82930         * modules/stat-macros: New module.
82931         * modules/canonicalize, modules/euidaccess, modules/file-type,
82932         * modules/filemode, modules/lchown, modules/makepath,
82933         * modules/rmdir, modules/stat: Depend on new stat-macros module
82934         rather than listing lib/stat-macros.h manually.
82935         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82936
82937 2005-03-22  Jim Meyering  <jim@meyering.net>
82938
82939         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82940
82941 2005-03-22  Bruno Haible  <bruno@clisp.org>
82942
82943         * config/srclist.txt: Replace target directory 'config' with
82944         'build-aux'.
82945         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82946         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82947         ../build-aux/.
82948
82949 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82950
82951         * modules/chdir-long (Depends-on): Add mempcpy.
82952
82953         * modules/acl, modules/backupfile, modules/c-strtod,
82954         modules/c-strtold, modules/canon-host, modules/canonicalize,
82955         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82956         modules/exclude, modules/exitfail, modules/file-type,
82957         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82958         modules/getdate, modules/getline, modules/getpagesize,
82959         modules/getpass, modules/getugroups, modules/group-member,
82960         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82961         modules/inttostr, modules/long-options, modules/makepath,
82962         modules/md5, modules/memcasecmp, modules/memcoll,
82963         modules/modechange, modules/mountlist, modules/path-concat,
82964         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82965         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82966         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82967         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82968         modules/strftime, modules/strndup, modules/strverscmp,
82969         modules/timespec, modules/unlocked-io, modules/userspec,
82970         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82971         modules/yesno:
82972         Remove lib_SOURCES line from Makefile.am section, as this is now
82973         done automatically by the corresponding Autoconf macro.
82974
82975 2005-03-21  Jim Meyering  <jim@meyering.net>
82976
82977         Changes imported from coreutils.
82978
82979         * lib/cycle-check.c: Don't include xalloc.h.
82980
82981         * lib/path-concat.c: Don't include assert.h.
82982         (path_concat): Remove assertion that would have triggered
82983         for ABASE starting with more than one slash.
82984         Reported by Andreas Schwab.
82985
82986         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82987         properly when ABASE is an absolute file name.
82988         Correct the description of this function.
82989         Include <assert.h>.
82990         Add an assertion and a test driver.
82991         This fixes a bug introduced on 2004-07-02.
82992         Andreas Schwab reported the resulting failure of cp --parents:
82993         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82994
82995 2005-03-21  Jim Meyering  <jim@meyering.net>
82996
82997         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82999
83000 2005-03-21  Jim Meyering  <jim@meyering.net>
83001         and  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83004         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83005         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83006         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83007         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83008         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83009         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83010         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83011         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83012         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83013         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83014         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83015         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83016         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83017         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83018         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83019         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83020         for these modules.
83021
83022 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83023
83024         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83025         (which shouldn't happen), generate nothing instead of returning 0
83026         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83027
83028 2005-03-16  Bruno Haible  <bruno@clisp.org>
83029
83030         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83031         HAVE_LONGLONG_64BIT.
83032
83033 2005-03-16  Bruno Haible  <bruno@clisp.org>
83034
83035         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83036         HAVE_LONGLONG_64BIT.
83037
83038 2005-03-16  Bruno Haible  <bruno@clisp.org>
83039
83040         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83041         HAVE_LONGLONG_64BIT.
83042
83043 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83046         reliably distinguish strftime failure from empty output on POSIX
83047         hosts.
83048
83049 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83052         (iconv_string): Don't guess a size-zero buffer, as that might cause
83053         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83054         result would be 'too large', where 'too large' is (heuristically)
83055         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83056         overflow concerns.  This will prevent some unwanted malloc failures
83057         when the inputs are very large.
83058
83059 2005-03-15  Karl Berry  <karl@gnu.org>
83060
83061         * config/srclist.txt (config.rpath): from gettext.
83062         * config/config.rpath: update.
83063
83064 2005-03-15  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83067         to 'negate'.
83068
83069         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83070         variable.
83071
83072         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83073         results.
83074
83075 2005-03-14  Simon Josefsson  <jas@extundo.com>
83076
83077         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83078         <fx@gnu.org>.
83079
83080 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83081
83082         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83083         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83084         intprops.h.
83085         * lib/strtol.c: Likewise.
83086
83087 2005-03-14  Jim Meyering  <jim@meyering.net>
83088
83089         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83090         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83091         to be nonzero so that we (and caller) can detect the difference
83092         between a valid zero-length expansion and an error return, even
83093         when the underlying strftime fails before writing anything into
83094         that location.
83095
83096 2005-03-14  Bruno Haible  <bruno@clisp.org>
83097
83098         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83099         Update from GNU gettext 0.14.3.
83100
83101 2005-03-10  Jim Meyering  <jim@meyering.net>
83102
83103         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83104
83105 2005-03-10  Jim Meyering  <jim@meyering.net>
83106
83107         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83108         so that this module works on systems without fchdir.
83109
83110 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83111
83112         Factor int-properties macros into a single file, except for
83113         glibc-related files.
83114         * lib/intprops.h: New file.
83115         * lib/getloadavg.c: Include it instead of limits.h.
83116         (INT_STRLEN_BOUND): Remove.
83117         * lib/human.c: Include intprops.h.
83118         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83119         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83120         302/1000.
83121         * lib/inttostr.h: Include intprops.h instead of limits.h.
83122         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83123         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83124         for consistency with intprops.h.
83125         (time_t_is_integer, twos_complement_arithmetic): Use them.
83126         * lib/sig2str.h: Include <signal.h>, intprops.h.
83127         (INT_STRLEN_BOUND): Remove.
83128         * lib/strftime.c (TYPE_SIGNED): Remove.
83129         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83130         * lib/strtol.c: Adjust comments to match intprops.h.
83131         * lib/userspec.c: Include intprops.h.
83132         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83133         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83134         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83135         instead of rolling our own expressions.
83136         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83137
83138         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83139         instead of int.
83140         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83141         the right thing even if adding 1900 would overflow.  Similarly
83142         for tm_mon + 1 and tm_yday + 1.
83143         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83144         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83145         (DO_SIGNED_NUMBER): New macro.
83146         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83147
83148 2005-03-07  Bruno Haible  <bruno@clisp.org>
83149
83150         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83151
83152 2005-03-07  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83155
83156 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83157
83158         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83159         (func_import): Only replace files via --import when they have actually
83160         changed.
83161
83162 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83163
83164         * m4/mmap-anon.m4: New file.
83165         * m4/pagealign_alloc.m4: New file.
83166
83167 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83168             Bruno Haible  <bruno@clisp.org>
83169
83170         * modules/pagealign_alloc: New file.
83171         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83172
83173 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83174             Bruno Haible  <bruno@clisp.org>
83175
83176         * lib/pagealign_alloc.h: New file.
83177         * lib/pagealign_alloc.c: New file.
83178
83179 2005-03-03  Bruno Haible  <bruno@clisp.org>
83180
83181         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83182         Use an all-permissive copyright notice, recommended by RMS.
83183
83184 2005-03-02  Bruno Haible  <bruno@clisp.org>
83185
83186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83187         of AIX, the replacement has to be done only after <string.h> is
83188         included, therefore not in config.h. stpncpy.h does the replacement,
83189         and stpncpy.c uses it.
83190
83191 2005-03-02  Bruno Haible  <bruno@clisp.org>
83192
83193         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83194         stpncpy.c uses it.
83195
83196 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83197
83198         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83199         The workaround isn't strictly needed for POSIX conformance, and
83200         it's too much of a pain to configure and maintain.  We'll ask
83201         people to fix their kernels instead.
83202         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83203         (NANOSLEEP_BUG_WORKAROUND): Remove.
83204         (xnanosleep): Remove the workaround.
83205
83206 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83209         Reported by Derek Price.
83210         (Include): Add "timespec.h".
83211
83212         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83213
83214 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83215
83216         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83217         to detect nanosleep bug.
83218
83219 2005-03-01  Bruno Haible  <bruno@clisp.org>
83220
83221         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83222
83223 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         * modules/gethrxtime: New file.
83226         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83227         (Depends-on): Add gethrxtime.
83228         (configure.ac): Add gl_XNANOSLEEP.
83229         (Makefile.am): Remove lib_SOURCES line.
83230
83231 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83234         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83235
83236 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83239         * lib/timespec.h (gettime): Return void, since it always
83240         succeeds now.  All uses changed.
83241         * lib/gettime.c (gettime): Likewise.
83242         [HAVE_NANOTIME]: Prefer nanotime.
83243         Assume gettimeofday succeeds, as POSIX requires.
83244         Assime time () succeeds, since other code already does.
83245         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83246         (timespec_subtract): Remove.
83247         (NANOSLEEP_BUG_WORKAROUND): New constant.
83248         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83249         things considerably.  Use it only on GNU/Linux hosts, since the
83250         workaround shouldn't be needed elsewhere.
83251
83252 2005-02-24  Bruno Haible  <bruno@clisp.org>
83253
83254         * modules/gettext (Files): Add m4/glibc2.m4.
83255
83256 2005-02-24  Bruno Haible  <bruno@clisp.org>
83257
83258         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83259         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83260         * m4/progtest.m4:
83261         Update from GNU gettext 0.14.2.
83262         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83263
83264 2005-02-24  Bruno Haible  <bruno@clisp.org>
83265
83266         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83267         * lib/config.charset: Update from GNU gettext 0.14.2.
83268
83269 2005-02-24  Bruno Haible  <bruno@clisp.org>
83270
83271         * lib/gettext.h: Update from GNU gettext 0.14.2.
83272
83273 2005-02-23  Simon Josefsson  <jas@extundo.com>
83274
83275         * m4/iconvme.m4: New file.
83276
83277 2005-02-23  Jim Meyering  <jim@meyering.net>
83278
83279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83280         change.
83281         Thanks to Bruno Haible for catching it.
83282
83283 2005-02-22  Simon Josefsson  <jas@extundo.com>
83284
83285         * modules/iconvme: New file.
83286
83287         * MODULES.html.sh: Add iconvme.
83288
83289 2005-02-22  Simon Josefsson  <jas@extundo.com>
83290
83291         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83292
83293 2005-02-22  Simon Josefsson  <jas@extundo.com>
83294
83295         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83296
83297 2005-02-22  Jim Meyering  <jim@meyering.net>
83298
83299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83300         s/ifndef/ifdef/.
83301
83302 2005-02-20  Neil Conway  <neilc@samurai.com>
83303
83304         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83305         returned by OSX/Darwin if the specified buffer is not large
83306         enough for the hostname.
83307
83308 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83309
83310         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83311         pass it to _help, otherwise the latter coredumps trying to
83312         dereference state.root_argp.
83313
83314 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83315
83316         * modules/chdir-long (Depends-on): Add memrchr.
83317         * modules/memrchr (Files): Add lib/memrchr.h.
83318         (Include): "memrchr.h".
83319
83320 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83323
83324 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83325
83326         * lib/memrchr.h: New file.
83327         * lib/chdir-long.c: Include it.
83328         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83329         Don't bother including stddef.h.
83330
83331 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83332
83333         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83334         inclusion.
83335         Include <sys/types.h>, for dev_t.
83336         (ME_DUMMY, ME_REMOTE): Move from here....
83337         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83338         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83339         Dmitry V. Levin.
83340         Include mountlist.h first, to test the interface.
83341
83342 2005-01-29  Bruno Haible  <bruno@clisp.org>
83343
83344         * lib/progname.c (program_name): Initialize.
83345         Needed when linking statically on MacOS X.
83346
83347 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83348
83349         Sync from coreutils.
83350         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83351         (Depends-on): Add c-strtod.
83352         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83353
83354 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         Sync from coreutils.
83357         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83358
83359         Remove files that are specific to coreutils.
83360         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83361
83362 2005-01-28  Bruno Haible  <bruno@clisp.org>
83363
83364         * modules/javacomp: New file.
83365         * MODULES.html.sh (Java): Add javacomp.
83366
83367 2005-01-28  Bruno Haible  <bruno@clisp.org>
83368
83369         * m4/javacomp.m4: New file, from GNU gettext.
83370
83371 2005-01-28  Bruno Haible  <bruno@clisp.org>
83372
83373         * lib/javacomp.sh.in: New file, from GNU gettext.
83374         * lib/javacomp.h: New file, from GNU gettext.
83375         * lib/javacomp.c: New file, from GNU gettext.
83376
83377 2005-01-26  Simon Josefsson  <jas@extundo.com>
83378
83379         * lib/gai_strerror.c: Use GPL in header.
83380
83381 2005-01-26  Bruno Haible  <bruno@clisp.org>
83382
83383         * modules/javaexec: New file.
83384         * MODULES.html.sh (Java): Add javaexec.
83385
83386 2005-01-26  Bruno Haible  <bruno@clisp.org>
83387
83388         * m4/javaexec.m4: New file, from GNU gettext.
83389
83390 2005-01-26  Bruno Haible  <bruno@clisp.org>
83391
83392         * lib/javaexec.sh.in: New file, from GNU gettext.
83393         * lib/javaexec.h: New file, from GNU gettext.
83394         * lib/javaexec.c: New file, from GNU gettext.
83395
83396 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83397
83398         * modules/lchown (Depends-on): Remove lchown.h
83399
83400 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83401
83402         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83403         must be defined if the header file was not found, in order
83404         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83405
83406 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83407
83408         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83409         initializers for struct pentry_state.
83410         (__argp_error): Check return value of __asprintf
83411         (__argp_failure): Translate error message
83412
83413         * lib/argp-parse.c: Removed braces around the expansion of N_()
83414
83415 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83416
83417         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83418         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83419         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83420         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83421         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83422         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83423         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83424         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83425         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83426         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83427         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83428         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83429         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83430         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83431         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83432         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83433         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83434         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83435         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83436         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83437         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83438         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83439         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83440         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83441         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83442         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83443         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83444         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83445         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83446         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83447         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83448         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83449         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83450         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83451         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83452         Use an all-permissive copyright notice, recommended by RMS.
83453
83454 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * modules/chdir-long (Depends-on): Remove mempcpy.
83457
83458 2005-01-21  Jim Meyering  <jim@meyering.net>
83459
83460         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83461         same value as for Solaris 9.
83462
83463         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83464         component length.  This included changing the parameter to be
83465         of type `char *' rather than `char const *'.
83466         * lib/chdir-long.h (chdir_long): Update prototype.
83467
83468         * lib/openat.c (fdopendir, fstatat): New functions.
83469         * lib/openat.h: Include headers required for use of DIR and struct
83470         stat.
83471         [AT_SYMLINK_NOFOLLOW]: Define.
83472         (fdopendir, fstatat): Add prototypes.
83473
83474 2005-01-21  Bruno Haible  <bruno@clisp.org>
83475
83476         * modules/classpath: New file.
83477         * MODULES.html.sh (Java): Add classpath.
83478
83479 2005-01-21  Bruno Haible  <bruno@clisp.org>
83480
83481         * lib/classpath.h: New file, from GNU gettext.
83482         * lib/classpath.c: New file, from GNU gettext.
83483
83484 2005-01-20  Simon Josefsson  <jas@extundo.com>
83485
83486         * modules/version-etc-fsf: New file.
83487
83488 2005-01-20  Simon Josefsson  <jas@extundo.com>
83489
83490         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83491         * lib/version-etc.c: Remove version_etc_copyright.
83492         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83493         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83494
83495 2005-01-20  Simon Josefsson  <jas@extundo.com>
83496
83497         * lib/base64.h (isbase64): Add.
83498
83499         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83500         using a unsigned prototype, don't inline.
83501         (base64_decode): Use it.
83502
83503 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83506         it.
83507
83508 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         * lib/save-cwd.c (save_cwd): Remove code to support the case
83511         where fchdir is missing or flaky.
83512
83513 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83514
83515         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83516
83517 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83520         AC_LIBSOURCES now does this.
83521         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83522         with new ullong_max module.
83523
83524 2005-01-19  Bruno Haible  <bruno@clisp.org>
83525
83526         * modules/sh-quote: New file.
83527         * MODULES.html.sh (Executing programs): Add sh-quote.
83528
83529 2005-01-19  Bruno Haible  <bruno@clisp.org>
83530
83531         * lib/sh-quote.h: New file, from GNU gettext.
83532         * lib/sh-quote.c: New file, from GNU gettext.
83533
83534 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         Merge from coreutils.
83537         * m4/ullong_max.m4: New file.
83538         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83539         (gl_MACROS): Assume localeconv exists.
83540
83541 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         Merge changes from coreutils, as described below in several
83544         changelogs dated today.
83545
83546         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83547         (O_DIRECTORY): Remove; not needed here, since "." must be
83548         a directory.  All uses removed.
83549         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83550         universal on Suns, and we also need to test for IRIX.
83551         Revamp code to use 'if' rather than '#if'.
83552         Avoid unnecessary comparison of cwd->desc to 0.
83553
83554         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83555         for known valid error numbers rather than observed invalid ones.
83556
83557 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83558
83559         * modules/ullong_max: New file.
83560
83561         * modules/chdir-long, modules/openat: New files.
83562         * modules/save-cwd (Depends-on): Depend on chdir-long.
83563         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83564
83565 2005-01-18  Jim Meyering  <jim@meyering.net>
83566
83567         Merge from coreutils.
83568         * m4/chdir-long.m4, m4/openat.m4: New files.
83569         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83570         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83571         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83572         is sane and DOES follow symlinks.  Besides, testing 20 different
83573         systems found no broken chown implementations.
83574         Prompted by a change in rsync's copy of this macro.
83575         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83576
83577         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83578
83579         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83580         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83581         NULL-means-set-to-current-time semantics.
83582         Remove temporary file immediately, rather than waiting
83583         for configure's at-exit trap code to do it.
83584
83585 2005-01-18  Jim Meyering  <jim@meyering.net>
83586
83587         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83588
83589         * lib/utimens.c (futimens): Account for the fact that futimes
83590         can also fail with errno == ENOSYS or errno == ENOENT.
83591         Patch from Dmitry V. Levin.
83592
83593         Change the name of the robust chdir function from chdir to chdir_long.
83594         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83595         (restore_cwd): Use chdir_long, not chdir.
83596         * lib/chdir-long.c: Renamed from chdir.c.
83597         * lib/chdir-long.h: Renamed from chdir.h.
83598         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83599         Hurd.
83600
83601 2005-01-18  Bruno Haible  <bruno@clisp.org>
83602
83603         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83604         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83605         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83606         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83607         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83608         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83609         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83610         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83611         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83612         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83613         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83614         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83615         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83616         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83617         Use an all-permissive copyright notice, recommended by RMS.
83618
83619 2005-01-18  Bob Proulx  <bob@proulx.com>
83620
83621         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83622         simplify offsetof() macro construct to avoid compile failure with
83623         native HP-UX 11.0 ANSI C compiler.
83624
83625 2005-01-17  Bruno Haible  <bruno@clisp.org>
83626
83627         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83628         redundant because stpncpy.m4 takes care of it.
83629
83630 2005-01-17  Bruno Haible  <bruno@clisp.org>
83631
83632         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83633
83634 2005-01-17  Bruno Haible  <bruno@clisp.org>
83635
83636         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83637         used.
83638
83639 2005-01-17  Bruno Haible  <bruno@clisp.org>
83640
83641         * lib/fwriteerror.h (fwriteerror): Change specification to include
83642         fclose.
83643         * lib/fwriteerror.c: Include <stdbool.h>.
83644         (fwriteerror): At the end, close the file stream. Record whether
83645         stdout was already closed.
83646
83647 2005-01-17  Bruno Haible  <bruno@clisp.org>
83648
83649         * lib/execute.c (environ): Declare if needed.
83650         * lib/pipe.c (environ): Likewise.
83651         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83652
83653 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83654
83655         * modules/argp: Depend on vsnprintf
83656
83657 2005-01-10  Jim Meyering  <jim@meyering.net>
83658
83659         * modules/closeout (Depends-on): Add atexit.
83660
83661 2005-01-06  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83664
83665 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83668         definitions to be after all include files, to avoid collisions.
83669         Problem reported by Bob Proulx.
83670
83671 2005-01-04  Jim Meyering  <jim@meyering.net>
83672
83673         Changes imported from coreutils.
83674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83675         as the mkstemp template, use a temporary directory and an
83676         8.3-friendly template to avoid trouble on systems like DJGPP.
83677         Reported by Juan M. Guerrero via Stepan Kasal.
83678         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83679         close. Remove the temporary directory right away, rather than waiting
83680         for configure's at-exit trap code to do it.
83681         Suggestion from Stepan Kasal.
83682
83683 2005-01-01  Simon Josefsson  <jas@extundo.com>
83684
83685         * gnulib-tool: Print #include directives when --import'ing.
83686
83687 2004-12-28  Simon Josefsson  <jas@extundo.com>
83688
83689         * tests/test-base64.c: Include required header files.  Remove
83690         unused variables.
83691
83692 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * modules/error (Depends-on): Remove gettext.
83695
83696 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83697
83698         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83699         not needed.  This removes a dependency on the gettext module.
83700         [defined _LIBC]: Do not include <libintl.h>; not needed.
83701
83702 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83705         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83706
83707 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83708
83709         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83710         HAVE_DECL_STRTOLD.
83711
83712 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * modules/getdate (Depends-on): Remove alloca-opt.
83715
83716 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83719
83720 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83721
83722         * lib/argp-parse.c: Include <stddef.h>.
83723         (alignof, alignto): New macros.
83724         (parser_init): Don't assume that void * is aligned sufficiently
83725         for struct option.
83726
83727         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83728         need to extend the stack.
83729         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83730         large.
83731
83732 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83733
83734         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83735
83736 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83739         (2004-10-24) change.  Apparently this was a false alarm.
83740
83741         * modules/getdate: Depend on alloca-opt, not alloca.
83742
83743 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83744
83745         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83746         Remove now-obsolete comment about AIX.
83747         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83748         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83749         (YYMAXDEPTH): New macro.
83750
83751 2004-12-18  Simon Josefsson  <jas@extundo.com>
83752
83753         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83754
83755 2004-12-18  Bruno Haible  <bruno@clisp.org>
83756
83757         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83758
83759 2004-12-18  Bruno Haible  <bruno@clisp.org>
83760
83761         * lib/fatal-signal.c (fatal_signals): Make non-const.
83762         (init_fatal_signals): New function.
83763         (uninstall_handlers, install_handlers): Ignore signals that were set to
83764         SIG_IGN.
83765         (at_fatal_signal): Call init_fatal_signals.
83766         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83767         SIG_IGN.
83768         Reported by Paul Eggert.
83769
83770 2004-12-18  Bruno Haible  <bruno@clisp.org>
83771
83772         * doc/alloca.texi: New file.
83773         * doc/alloca-opt.texi: New file.
83774
83775 2004-12-17  Jim Meyering  <jim@meyering.net>
83776
83777         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83778         Otherwise, install-sh could exit with improper exit status when
83779         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83780
83781 2004-12-16  Simon Josefsson  <jas@extundo.com>
83782
83783         * tests/test-base64.c: Add license.
83784
83785 2004-12-15  Stepan Kasal  <address@hidden>
83786
83787         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83788
83789 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * modules/getcwd (Files): Add m4/d-ino.m4.
83792         Suggested by Mark D. Baushke.
83793
83794 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * lib/getdate.y (textint): New member "negative".
83797         (time_zone_hhmm): New function.
83798         Expect 14 shift-reduce conflicts, not 13.
83799         (o_colon_minutes): New rule.
83800         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83801         (yylex): Set the "negative" member of signed numbers.
83802
83803 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         * doc/getdate.texi (Time of day items, Time zone items):
83806         Describe new formats +00:00, UTC+00:00.
83807
83808 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83811         spurious "-l"s.  Problem reported by Stepan Kasal.
83812
83813 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83816         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83817
83818 2004-12-04  Simon Josefsson  <jas@extundo.com>
83819
83820         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83821         Vandoorselaere <yoann@prelude-ids.org>.
83822
83823 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         Changes imported from coreutils.
83826         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83827         exist.
83828         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83829
83830 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         Changes imported from coreutils.
83833         * lib/hard-locale.c: Assume <locale.h> exists.
83834         Include "strdup.h".
83835         (GLIBC_VERSION): New macro.
83836         (hard_locale): Assume setlocale exists.
83837         Rewrite to avoid #ifdef.
83838         Use strdup rather than malloc + strcpy.
83839         * lib/human.c: Assume <locale.h> exists.
83840         (human_readable): Assume localeconv exists.
83841
83842 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83843
83844         * modules/hard-locale (Depends-on): Add strdup.
83845
83846 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83847
83848         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83849         convert T2, not T.  (Imported from libc.)
83850
83851 2004-11-30  Simon Josefsson  <jas@extundo.com>
83852
83853         * modules/restrict (License): Change to LGPL.
83854
83855 2004-11-30  Simon Josefsson  <jas@extundo.com>
83856
83857         * m4/restrict.m4: Add copyright and copying conditions.
83858
83859 2004-11-30  Simon Josefsson  <jas@extundo.com>
83860
83861         * m4/base64.m4: New file.
83862
83863 2004-11-30  Simon Josefsson  <jas@extundo.com>
83864
83865         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83866         base64.
83867
83868         * tests/test-base64.c: New file.
83869
83870         * modules/base64: New file.
83871
83872 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83873
83874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83875         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83876
83877         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83878
83879 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83882         (__getcwd.c): Don't restore errno; glibc doesn't.
83883         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83884         first, falling back to our code only if its results look suspicious.
83885         Ensure that the resulting buffer is only as large as necessary.
83886
83887         * lib/readutmp.c: Include readutmp.h first.
83888         Include <errno.h>, since readutmp.h no longer does that.
83889         * lib/readutmp.h: Don't include <errno.h>,
83890         <sys/param.h>, <time.h>; not needed to establish interface.
83891         (errno): Remove decl.
83892         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83893         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83894         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83895
83896 2004-11-28  Simon Josefsson  <jas@extundo.com>
83897
83898         * lib/base64.h, base64.c: New file.
83899
83900 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83901
83902         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83903
83904 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83905
83906         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83907         (Depends-on): Remove pathmax, same.  Add mempcpy.
83908         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83909         (Makefile.am): Append getcwd.h to lib_SOURCES.
83910         (Include): Add getcwd.h.
83911         (Maintainer): Change from Jim Meyering to "all, glibc",
83912         since getdate now uses intended-for-glibc code.
83913         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83914         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83915
83916 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83919         HP's ANSI C compiler.
83920         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83921         Declaring int functions causes warnings on some modern systems and
83922         shouldn't be needed to compile on ancient ones.
83923         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83924         defined.
83925
83926         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83927         with the following changes.
83928         (__set_errno): Parenthesize properly.
83929         Include <stdbool.h>.
83930         (MIN, MAX, MATCHING_INO): New macros.
83931         (__getcwd): Define with prototype, not K&R form.
83932         Use heuristics to allocate default buffer on stack if possible.
83933         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83934         behavior, and to avoid the PATH_MAX limit when computing
83935         ../../../../...
83936         Use MATCHING_INO to compare inode number to file.
83937         Check for arithmetic overflow in size calculations.
83938         Fix bug in reallocation of dot array that caused getcwd to fail
83939         on directories nested deeper than 75.
83940         Be more careful about saving errno on error.
83941         Do not use realloc; use only free+malloc, as this is a bit
83942         more flexible and avoids a needless copy operation.
83943         Do not inspect st_dev and st_ino for symbolic links; POSIX
83944         doesn't specify the latter.
83945         Check for closedir errors.
83946         Avoid needless casts.
83947         Use "#ifdef weak_alias" around weak_alias, to be like other
83948         glibc code.
83949         The following changes to getcwd.c have effect only when used in
83950         gnulib; they have no effect inside glibc proper.
83951         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83952         as alloca isn't used.
83953         (alloca, __alloca): Likewise.
83954         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83955         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83956         unconditionally, as gnulib assumes C89 or better.
83957         Do not include <sys/param.h>.
83958         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83959         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83960         better.
83961         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83962         Include <dirent.h> in a way that is compatible with modern Autoconf.
83963         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83964         New macros, if not already defined.
83965         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83966         Use "_LIBC", not "defined _LIBC", for consistency.
83967         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83968         a mempcpy module.
83969         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83970         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83971         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83972         credit only to Jim Meyering and adjust the copyright dates.
83973         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83974         <stdlib.h>, <unistd.h>, "pathmax.h".
83975         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83976         (INITIAL_BUFFER_SIZE): Remove.
83977         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83978
83979 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83982         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83983         Use the _ONCE methods, for efficiency.
83984         Check for fcntl.h.  In test program, include <errno.h>
83985         and <fcntl.h> if available.  Remove old K&R cruft from
83986         test program.  Check for common errors in GNU/Linux,
83987         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83988         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83989         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83990         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83991         name accordingly.
83992         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83993         accommodate new getcwd.c.
83994         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83995         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83996         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83997         that's all we need now.
83998
83999 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84000
84001         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84002         argp-parse.c depends on getopt internals, that means we should
84003         always use our getopt, to be on the safe side.
84004         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84005         order not to spoil the result of an eventual previous invocation
84006         of gl_GETOPT_SUBSTITUTE.
84007
84008 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84009
84010         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84011         redefinition warnings. To avoid them, include the defines
84012         in `#if !defined __need_getopt ... #endif'. The only place
84013         where __getopt_argv_const is used is in definitions
84014         of getopt_long and getopt_long_only below, which are as well
84015         protected by `#ifndef __need_getopt'.
84016         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84017         __need_getopt after including <stdio.h> and <unistd.h> These
84018         headers might have defined it.
84019
84020 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84023
84024 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84027         (futimens): New function, which uses futimes if available.
84028         (futimens, utimens): Support timespec==NULL, with same semantics
84029         as utime and utimens.
84030         * lib/utimens.h (futimens): New decl.
84031
84032 2004-11-23  Jim Meyering  <jim@meyering.net>
84033
84034         * lib/getopt_.h: Remove trailing blanks.
84035
84036 2004-11-23  Jim Meyering  <jim@meyering.net>
84037
84038         * lib/__fpending.c: Add comment.
84039
84040 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * modules/canonicalize (Depends-on): Add xreadlink.
84043         Problem reported by James Youngman.
84044
84045 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84046
84047         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84048         New macros.
84049         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84050         optopt): Use them instead of invoking ## directly; otherwise, the
84051         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84052
84053 2004-11-19  Bruno Haible  <bruno@clisp.org>
84054
84055         * lib/strtok_r.c: Move comments from here...
84056         * lib/strtok_r.h: ... to here.
84057
84058 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84061         implementations that mishandle size_t overflow.
84062
84063 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84066         might fail.  Problem reported by Yoann Vandoorselaere.
84067         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84068         implementations that mishandle size_t overflow.
84069
84070 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         * modules/canon-host (Depends-on): Add strdup.
84073
84074 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84077
84078 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * lib/canon-host.c: Include "strdup.h".
84081         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84082         Use strdup instead of malloc/strcpy to duplicate strings.
84083
84084         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84085         (human_space_before_unit): New constant.
84086         * lib/human.c (human_readable): Support it.
84087
84088         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84089         (xgetcwd): Set errno correctly when failing.
84090         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84091         the failure is actually due to a PATH_MAX problem.
84092
84093         Further getopt changes to make it more likely that glibc will
84094         buy the changes back.
84095         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84096         (getopt): Use it, so to preserve glibc semantic
84097         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84098         when compiling for libc.
84099         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84100         (getopt_long, getopt_long_only): Use it.
84101
84102         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84103         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84104         (getopt): Argv is now char * const *, as per standard.
84105         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84106         not char *__getopt_argv_const *.
84107         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84108         _getopt_long_only_r): Likewise.
84109         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84110         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84111         _getopt_long_r, _getopt_long_only_r): Likewise.
84112         * lib/getopt_.h (__getopt_argv_const): Remove.
84113         (getopt): Argv is now char * const *, as per standard.
84114
84115         * lib/getdate.y (tORDINAL): New token.
84116         (day, relunit): Allow it for relative times.
84117         (relative_time_table): Use tORDINAL for ordinals.
84118
84119 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84122         Document that "second" isn't allowed as an ordinal number.
84123
84124 2004-11-16  Jim Meyering  <jim@meyering.net>
84125
84126         * modules/closeout (Depends-on): Add fpending.
84127
84128 2004-11-15  Jim Meyering  <jim@meyering.net>
84129
84130         * lib/closeout.c: Include "__fpending.h" once again.
84131         Include <stdbool.h>.
84132         (close_stdout): Don't fail just because stdout was closed initially,
84133         since some programs don't write to stdout in the normal course of
84134         operation (other than --version and --help), and we don't want this
84135         function to make e.g. `touch file >&-' fail.
84136         But do fail if it was closed and someone has tried to write to it.
84137         E.g., `printf foo >&-' must fail.
84138
84139 2004-11-13  Jim Meyering  <jim@meyering.net>
84140
84141         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84142
84143 2004-11-12  Simon Josefsson  <jas@extundo.com>
84144
84145         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84146         small doc fix is still pending.
84147
84148 2004-11-11  Simon Josefsson  <jas@extundo.com>
84149
84150         * modules/strtok_r: New file.
84151
84152         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84153         strtok_r.
84154
84155 2004-11-11  Simon Josefsson  <jas@extundo.com>
84156
84157         * m4/strtok_r.m4: New file.
84158
84159         * m4/getopt.m4: Replace opterr.
84160
84161 2004-11-11  Simon Josefsson  <jas@extundo.com>
84162
84163         * lib/strtok_r.h, strtok_r.c: New file.
84164
84165 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84168         of replacing opterr, getopt, etc.  This should handle the
84169         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84170
84171 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84174         we can stop lying to compilers about the constness of argv when we
84175         are compiled outside glibc.
84176         (getopt, getopt_long, getopt_long_only): Use it.
84177         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84178         _getopt_internal, getopt): Likewise.
84179         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84180         _getopt_long_only_r): Likewise.
84181         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84182         _getopt_long_r, _getopt_long_only_r): Likewise.
84183
84184         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84185         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84186         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84187         the other external symbols.
84188         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84189         declaration, since the above renaming now works around collisions.
84190
84191 2004-11-11  Jim Meyering  <jim@meyering.net>
84192
84193         * lib/linebreak.c: Remove trailing blanks.
84194         * lib/alloca_.h: Likewise.
84195         * lib/acosl.c: Likewise.
84196         * lib/euidaccess.c: Likewise.
84197         * lib/allocsa.h: Likewise.
84198
84199 2004-11-10  Simon Josefsson  <jas@extundo.com>
84200
84201         * m4/getaddrinfo.m4: New file.
84202
84203 2004-11-10  Simon Josefsson  <jas@extundo.com>
84204
84205         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84206
84207 2004-11-10  Simon Josefsson  <jas@extundo.com>
84208
84209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84210         getaddrinfo.
84211
84212         * modules/getaddrinfo: New file.
84213
84214 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84217
84218 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84219
84220         * lib/mktime.c (SHR): New macro, which is a portable
84221         substitute for >> that should work even on Crays.
84222         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84223         Problem reported by Mark D. Baushke in
84224         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84225         * lib/getdate.y (SHR): Likewise.
84226         (tm_diff): Use it.
84227         * lib/strftime.c (SHR): Likewise.
84228         (tm_diff): Use it.
84229         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84230         quote_these_too, so that right shifts are well defined.  All uses
84231         changed.
84232
84233 2004-11-10  Jim Meyering  <jim@meyering.net>
84234
84235         Ensure that no close failure goes unreported.
84236         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84237         return early when it seems there's nothing to flush.
84238         Don't include __fpending.h.
84239
84240 2004-11-10  Jim Meyering  <jim@meyering.net>
84241
84242         * modules/closeout (Depends-on): Remove fpending.
84243
84244 2004-11-10  Jim Meyering  <jim@meyering.net>
84245
84246         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84247
84248 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84249
84250         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84251         gl_FUNC_STRFTIME.
84252         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84253         and AC_REQUIRE when possible, to avoid duplicate checks.
84254         Check for <wchar.h>.
84255
84256 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84259
84260 2004-11-09  Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/sockpfaf.m4: New file.
84263
84264 2004-11-05  Bruno Haible  <bruno@clisp.org>
84265
84266         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84267         Reported by Mark D. Baushke <mdb@cvshome.org>.
84268
84269 2004-11-04  Bruno Haible  <bruno@clisp.org>
84270
84271         2004-09-11  Bruno Haible  <bruno@clisp.org>
84272                 * allocsa.valgrind: New file.
84273         2004-02-06  Bruno Haible  <bruno@clisp.org>
84274                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84275                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84276                 Reported by Christopher Seip <chris.seip@hp.com>.
84277
84278 2004-11-04  Bruno Haible  <bruno@clisp.org>
84279
84280         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84281         (Makefile.am): Distribute it.
84282
84283 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84284
84285         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84286         with errno == ERANGE if the buffer is too small.
84287         Problem reported by Mark D. Baushke.
84288
84289 2004-11-03  Albert Chin  <china@thewrittenword.com>
84290             Paul Eggert  <eggert@cs.ucla.edu>
84291
84292         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84293         equivalent, substitute $ac_type for equivalent type rather than
84294         blindly using uint32_t *always* which won't work if uint32_t is not
84295         available.  Define _UINT32_T to work around typedef of uint32_t if
84296         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84297         2.5.1.
84298
84299 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84300
84301         * m4/jm-macros.m4: Sync from coreutils.
84302         (gl_MACROS): Check for mbrlen, for pathchk.
84303         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84304
84305 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * lib/xreadlink.c (MAXSIZE): New macro.
84308         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84309         size does not exceed MAXSIZE.  Avoid cast.
84310         As suggested by Mark D. Baushke in
84311         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84312         if readlink fails with buffer size just under MAXSIZE, try again
84313         with MAXSIZE.
84314
84315 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84318
84319 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84320         and  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84323         (get_date): Overparenthesize to avoid GCC warning.
84324
84325 2004-11-02  Bruno Haible  <bruno@clisp.org>
84326
84327         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84328         returns void.
84329
84330 2004-11-02  Bruno Haible  <bruno@clisp.org>
84331
84332         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84333         function returns void.
84334
84335 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84338         fflush_unlocked, flockfile, funlockfile, funlockfile,
84339         fputs_unlocked, putc_unlocked.
84340
84341 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84342
84343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84344         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84345         already declared.
84346
84347 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * modules/getdate (Files): Add doc/getdate.texi.
84350         (Depends-on): Add setenv, xalloc.
84351
84352 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * lib/getdate.y: Add support for TZ="foo" within a date string.
84355         Fix some bugs near time_t boundaries.  Reject dates with
84356         out-of-range components, e.g., "Sept 31".
84357         Include <stdlib.h>, "setenv.h", "xalloc.h".
84358         (ISDIGIT_LOCALE): Remove; unused.
84359         Note that the TZ and time functions used here are not reentrant.
84360         (mktime_ok, get_tz): New functions.
84361         (TZBUFSIZE): New constant.
84362         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84363         This requires that we sometimes generate our own TZ="XXX..." setting.
84364
84365 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * doc/getdate.texi: New file, from coreutils with modifications for
84368         the new TZ parsing.
84369
84370 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84371
84372         * lib/mktime.c (not_equal_tm): Remove redundant check.
84373
84374 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84375
84376         * modules/regex (lib_SOURCES): Add regex.c.
84377         Reported by James Youngman in
84378         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84379
84380 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * lib/getdate.y: Use Bison 1.875 features, and some minor
84383         code cleanups.  This change does not affect semantics.
84384         Don't include <stdlib.h>; no longer needed.
84385         Don't include unlocked-io.h; only the "#if TEST" code uses
84386         stdio, and performance isn't crucial there.
84387         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84388         Bison 1.875 features as described below.
84389         All uses of "PC." replaced by "pc->".
84390         (YYSTYPE): Add a forward declaration.
84391         (yylex, yyerror): Use full prototypes in forward decls.
84392         Use "%pure-parser" rather than obsolescent "%pure_parser".
84393         Use %parse-param and %lex-param instead of obsolescent
84394         YYPARSE_PARAM and YYLEX_PARAM.
84395         (meridian_table, month_and_day_table, time_units_table,
84396         relative_time_table, time_zone_table, military_table,
84397         lookup_zone, lookup_word, get_date):
84398         Use NULL instead of 0 where appropriate.
84399         (to_hour): Avoid abort (), to avoid a dependency on
84400         stdlib.h.
84401         (yyerror, yylex): Now accepts parser_control * arg.
84402         (main) [TEST]: Use '\0' rather than 0 for char.
84403
84404 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84407
84408 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84409
84410         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84411         It's now the caller's responsibility to handle the case where
84412         !HAVE_GETPAGESIZE && !defined getpagesize.
84413
84414         * lib/mktime.c (leapyear): Arg is long int, not int.
84415
84416 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84419
84420 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84421
84422         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84423         missing.  Problem reported by James Youngman.
84424
84425 2004-10-16  Simon Josefsson  <jas@extundo.com>
84426
84427         * gnulib-tool: Fix comments.  Fix parse problem.
84428         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84429
84430 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84433         implementation of getopt_long.  Problem reported by Alexander Taler in:
84434         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84435
84436 2004-10-15  Bruno Haible  <bruno@clisp.org>
84437
84438         * gnulib-tool: Untabify. Initialize supplied_libname.
84439         (func_usage): More homogenous output.
84440         (func_modules_transitive_closure, func_modules_to_filelist,
84441         func_emit_lib_Makefile_am): New functions.
84442         (func_import): New function, extracted from big case statement. Use
84443         func_get_license, func_modules_transitive_closure,
84444         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84445         opt_lgpl. Don't use test -a, as it's not portable.
84446         (func_create_testdir): Use func_modules_transitive_closure,
84447         func_modules_to_filelist, func_emit_lib_Makefile_am.
84448
84449 2004-10-15  Bruno Haible  <bruno@clisp.org>
84450
84451         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84452
84453 2004-10-15  Bruno Haible  <bruno@clisp.org>
84454
84455         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84456         the portions belonging to each module.
84457         Suggested by Derek Robert Price <derek@ximbiot.com>.
84458
84459 2004-10-12  Simon Josefsson  <jas@extundo.com>
84460
84461         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84462         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84463         to real functions.
84464
84465 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84466
84467         * modules/vsnprintf: New file.
84468
84469 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84470
84471         * m4/vsnprintf.m4: New file.
84472
84473 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84474
84475         * lib/vsnprintf.h: New file.
84476         * lib/vsnprintf.c: New file.
84477
84478 2004-10-11  Bruno Haible  <bruno@clisp.org>
84479
84480         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84481         vsnprintf.
84482
84483 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84486
84487 2004-10-07  Bruno Haible  <bruno@clisp.org>
84488
84489         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84490         fits into the provided buffer.
84491
84492 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84493
84494         * lib/diacrit.c, diacrit.h: Add GPL notice.
84495
84496         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84497         notice.
84498         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84499         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84500         This avoids a potential constant-folding bug.
84501
84502 2004-10-05  Bruno Haible  <bruno@clisp.org>
84503
84504         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84505         for the declaration of strsep.
84506
84507 2004-10-05  Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84510
84511 2004-10-04  Simon Josefsson  <jas@extundo.com>
84512
84513         * modules/memmem: New file.
84514         * tests/test-memmem.c: New file.
84515         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84516
84517 2004-10-04  Simon Josefsson  <jas@extundo.com>
84518
84519         * m4/memmem.m4: New file.
84520
84521 2004-10-04  Simon Josefsson  <jas@extundo.com>
84522
84523         * lib/memmem.h: New file.
84524         * lib/memmem.c: New file, taken from glibc.
84525
84526 2004-10-04  Simon Josefsson  <jas@extundo.com>
84527
84528         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84529         '#ifdef USE_UNLOCKED_IO'.
84530
84531 2004-10-04  Simon Josefsson  <jas@extundo.com>
84532
84533         * config/srclist.txt: Add memmem from glibc.
84534
84535 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84536
84537         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84538
84539         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84540         modules/exclude, modules/getdate, modules/getline,
84541         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84542         modules/getusershell, modules/linebuffer, modules/md5,
84543         modules/mountlist, modules/posixtm, modules/readtokens,
84544         modules/readutmp, modules/regex, modules/sha1,
84545         modules/version-etc, modules/yesno:
84546         Remove dependency on unlocked-io.
84547
84548 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84549
84550         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84551
84552         * m4/unlocked-io.m4: Add copyright notice.
84553         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84554
84555 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84558         * lib/xmalloc.c (xmemdup): Likewise.
84559         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84560         XFREE): Remove these long-obsolescent macros.
84561         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84562         * lib/xstrdup.c: Remove.
84563
84564         * lib/regex.c (re_comp): Cast gettext return value to char *,
84565         Problem reported by Martin Neitzel via Mark D. Baushke.
84566
84567 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84568
84569         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84570         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84571         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84572         regex.c, sha1.c, version-etc.c, yesno.c:
84573         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84574         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84575         the includer's responsibility.
84576
84577         Sync from coreutils.
84578
84579         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84580         points to the start of a string, as the C Standard says the
84581         resulting behavior is undefined.
84582
84583         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84584         simple -> simple_backups, numbered_existing ->
84585         numbered_existing_backups, numbered -> numbered_backups
84586         to avoid shadowing problems.  All uses changed.
84587         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84588         * lib/backupfile.c (check_extension, numbered_backup):
84589         Rename locals to avoid shadowing 'basename'.
84590         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84591         once.
84592
84593         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84594         * lib/.cvsignore: Add getopt.h.
84595
84596 2004-10-04  Bruno Haible  <bruno@clisp.org>
84597
84598         * modules/README: New file.
84599         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84600         not a module.
84601
84602 2004-10-02  Jim Meyering  <jim@meyering.net>
84603
84604         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84605
84606 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84607
84608         * modules/strsep: New file.
84609
84610 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84611
84612         * m4/strsep.m4: New file.
84613
84614 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84615
84616         * lib/strsep.h: New file.
84617         * lib/strsep.c: New file.
84618
84619 2004-10-01  Simon Josefsson  <jas@extundo.com>
84620
84621         * lib/snprintf.c (snprintf): Handle size==0.
84622
84623 2004-10-01  Simon Josefsson  <jas@extundo.com>
84624             Bruno Haible  <bruno@clisp.org>
84625
84626         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84627         (snprintf): Declare 'args'.
84628
84629 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * lib/snprintf.c: Remove comments as to why each header is needed.
84632
84633 2004-10-01  Bruno Haible  <bruno@clisp.org>
84634
84635         * MODULES.html.sh: Add strsep.
84636
84637 2004-09-30  Simon Josefsson  <jas@extundo.com>
84638
84639         * modules/snprintf: New file.
84640
84641 2004-09-30  Simon Josefsson  <jas@extundo.com>
84642
84643         * m4/snprintf.m4: New file.
84644
84645 2004-09-30  Simon Josefsson  <jas@extundo.com>
84646
84647         * lib/snprintf.h, lib/snprintf.c: New files.
84648
84649 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84650
84651         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84652         (hol_entry_help): Never translate an empty string.
84653         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84654         * lib/argp.h (OPTION_NO_TRANS): New option.
84655
84656 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * modules/argp (Maintainer): Replace Simon Josefsson
84659         by Sergey Poznyakoff.
84660
84661 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84664         changes merged back into glibc.
84665
84666 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84667
84668         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84669
84670 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84671
84672         * lib/xvasprintf.c: Include xalloc.h.
84673         (xvasprintf): Use xalloc_die, not xmalloc_die.
84674
84675 2004-09-29  Bruno Haible  <bruno@clisp.org>
84676
84677         * modules/alloca-opt: New file, derived from modules/alloca.
84678         * modules/allocsa: Depend on alloca-opt instead of alloca.
84679         * modules/setenv: Likewise.
84680         * modules/vasnprintf: Likewise.
84681         * MODULES.html.sh: Add alloca-opt.
84682
84683 2004-09-28  Simon Josefsson  <jas@extundo.com>
84684
84685         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84686         LGPL, and to replace license template from GPL to LGPL.
84687
84688 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * modules/dummy: Change license to LGPL.
84691
84692 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84693
84694         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84695
84696 2004-09-24  Simon Josefsson  <jas@extundo.com>
84697
84698         * modules/minmax (License): Change from GPL to LGPL.
84699
84700 2004-09-23  Simon Josefsson  <jas@extundo.com>
84701
84702         * gnulib-tool (--import): Typo.
84703
84704 2004-09-23  Simon Josefsson  <jas@extundo.com>
84705
84706         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84707
84708 2004-09-22  Bruno Haible  <bruno@clisp.org>
84709
84710         * modules/*: Add 'License' field.
84711         * gnulib-tool: Accept --extract-license option.
84712         (func_get_license): New function.
84713
84714 2004-09-21  Bruno Haible  <bruno@clisp.org>
84715
84716         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84717         Reported by Simon Josefsson.
84718
84719 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84722         gl_AC_TYPE_LONG_LONG.
84723
84724 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84727
84728 2004-09-18  Simon Josefsson  <jas@extundo.com>
84729         and  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84732         calls with autoreconf.  Define GL_LIB.
84733
84734 2004-09-14  Karl Berry  <karl@gnu.org>
84735
84736         * config/srclist.txt: unsync setenv.c, sigh.
84737
84738 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84739
84740         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84741         Problem reported by Bruno Haible in:
84742         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84743
84744 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * config/srclist.txt: Comment out argp-pvh.c.
84747
84748 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84749
84750         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84751         in case some system header has #define'd it.  Problem reported by
84752         Soeren D. Schulze in
84753         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84754
84755 2004-09-09  Karl Berry  <karl@gnu.org>
84756
84757         * regex.[ch]: delete from the root.  These were supposed to be
84758                 synced with emacs cvs, but this has not happened for about
84759                 a year, and anyway nothing else uses emacs regex.[ch].
84760                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84761                 lib/regex[.ch] is untouched.
84762
84763 2004-09-09  Bruno Haible  <bruno@clisp.org>
84764
84765         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84766
84767 2004-09-09  Bruno Haible  <bruno@clisp.org>
84768
84769         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84770         modifications.
84771         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84772
84773 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84774
84775         * modules/xvasprintf: New file.
84776         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84777
84778 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84779
84780         * lib/xvasprintf.h: New file.
84781         * lib/xvasprintf.c: New file.
84782         * lib/xasprintf.c: New file.
84783
84784 2004-09-08  Bruno Haible  <bruno@clisp.org>
84785
84786         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84787
84788 2004-09-08  Bruno Haible  <bruno@clisp.org>
84789
84790         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84791         length is > INT_MAX.
84792         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84793         more.
84794
84795 2004-09-08  Bruno Haible  <bruno@clisp.org>
84796
84797         * lib/stdint_.h: New file, taken from GNU clisp.
84798
84799 2004-09-08  Bruno Haible  <bruno@clisp.org>
84800             Oskar Liljeblad  <oskar@osk.mine.nu>
84801
84802         * modules/stdint: New file.
84803         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84804
84805 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84806
84807         Import from coreutils.
84808         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84809         strings on unbounded length.  alloca's performance benefits aren't
84810         that important here.
84811         (V_STRDUP): Remove.
84812         (parse_with_separator): New function, with most of the internals
84813         of the old parse_user_spec.  Allow user to omit both user and group,
84814         for compatibility with FreeBSD.
84815         Clone only the user name, not the entire spec.
84816         Do not set *uid, *gid unless entirely successful.
84817         Avoid memory leak in some failing cases.
84818         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84819         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84820         (parse_user_spec): Rewrite to use parse_with_separator.
84821
84822 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         * modules/userspec: Don't depend on alloca.
84825
84826 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84827
84828         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84829
84830 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84831
84832         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84833         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84834         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84835
84836 2004-08-16  Simon Josefsson  <jas@extundo.com>
84837
84838         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84839         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84840         Add --dry-run for --import.
84841         Let user provided command line parameters override configure.ac
84842         settings.
84843
84844 2004-08-12  Simon Josefsson  <jas@extundo.com>
84845
84846         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84847         as discussed with Paul Eggert in threads rooted at
84848         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84849         and
84850         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84851         Before, the test was empty, and relied on ELIDE_CODE in source
84852         code.)
84853         (gl_PREREQ_GETOPT): New macro.
84854         (gl_GETOPT): Use them.
84855
84856 2004-08-12  Simon Josefsson  <jas@extundo.com>
84857
84858         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84859         * lib/getopt_.h: Renamed from getopt.h.
84860
84861 2004-08-12  Simon Josefsson  <jas@extundo.com>
84862
84863         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84864         Change default library name from libfoo to libgnu.
84865         Now, if you have a configure.ac that says:
84866                 gl_SOURCE_BASE(gl)
84867                 gl_M4_BASE(gl/m4)
84868                 gl_MODULES(error getopt etcetera)
84869                 gl_INIT
84870         you can import all you need by running:
84871                 ../gnulib/gnulib-tool --import
84872
84873         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84874         (Makefile.am): Rewrite, use logic from argz.
84875         (Include): Use <getopt.h> instead of "getopt.h".
84876
84877 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * modules/argp (Files): Add m4/unlocked-io.m4.
84880         (Depends-on): Add extensions.
84881
84882 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84885         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84886         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84887         Check for program_invocation_name, program_invocation_short_name,
84888         flockfile, funlockfile, features.h, _getopt_long_only_r.
84889
84890 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84891
84892         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84893         its complicated substitute.
84894         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84895         and program_invocation_name.
84896         (__argp_basename) [!_LIBC]: Remove; the only use was
84897         replaced by its body.
84898         (__argp_short_program_name): Change condition from
84899         !defined __argp_short_program_name to
84900         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84901         to match argp-namefrob.h.
84902         (__argp_failure): Don't assume strerror_r returns char *.
84903         * lib/argp-parse.c (N_): Define unconditionally.
84904         (argp_default_options): Fill out initializers with 0 to avoid
84905         gcc warnings.
84906
84907 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84910         getopt1.c.
84911
84912 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         Merge from coreutils.
84915
84916         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84917
84918         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84919         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84920
84921 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84922
84923         Merge from coreutils.
84924
84925         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84926         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84927         for Reliant Unix 5.43.
84928
84929         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84930         (union fooround): Use uintmax_t, not long int.
84931         The rest is a merge from libc:
84932         [defined _LIBC]: Include <shlib-compat.h>.
84933         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84934
84935         * lib/settime.c (settime): Recode to avoid warning with
84936         Sun Forte C 6U2.
84937
84938         * lib/strverscmp.c: Convert to UTF-8.
84939
84940 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84941
84942         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84943         m4/uintmax_t.m4.
84944
84945 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * modules/xalloc-die: New file.
84948         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84949
84950         * modules/md5 (Files): Add m4/uint32_t.m4.
84951         * modules/sha1: Renamed from modules/sha.
84952         (Files):
84953         Rename lib/sha.h to lib/sha1.h.
84954         Rename lib/sha.c to lib/sha1.c.
84955         Rename m4/sha.m4 to m4/sha1.m4.
84956         (lib_SOURCES): Likewise.
84957         (configure.ac): Rename gl_SHA to gl_SHA1.
84958         (Include): sha.h -> sha1.h.
84959
84960 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84961
84962         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84963         * m4/sha1.m4: Renamed from sha.m4.
84964         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84965
84966 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         * lib/obstack.h (obstack_empty_p):
84969         Don't assume that chunk->contents is suitably aligned.
84970         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84971         Likewise. Problem reported by Benno in
84972         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84973
84974         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84975         readable.  This could be improved further but it'd take some work.
84976
84977 2004-08-08  Simon Josefsson  <jas@extundo.com>
84978
84979         * modules/xgethostname (Depends-on): Remove exit and error (not
84980         used).
84981
84982         * modules/getpass-gnu: Add getpass.h.
84983         (Depends-on): Add stdbool.
84984         * modules/getpass: Add getpass.h.
84985
84986 2004-08-08  Simon Josefsson  <jas@extundo.com>
84987
84988         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84989         Check getpass declaration.
84990
84991 2004-08-08  Simon Josefsson  <jas@extundo.com>
84992
84993         * lib/xgethostname.c: Don't include error.h (not used).
84994
84995         * lib/getpass.h: Add.
84996         * lib/getpass.c: Include getpass.h first.
84997
84998 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84999
85000         * lib/xalloc-die.c: New file.
85001         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85002         All uses removed.
85003         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85004         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85005         xalloc-die.c.
85006         (_, N_, xalloc_die): Move to xalloc-die.c.
85007         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85008         so that we needn't mess with xalloc_msg_memory_exhausted.
85009
85010         * lib/sha1.h: Renamed from sha.h.
85011         (SHA1_H): Renamed from _SHA_H.
85012         (sha1_ctx): Renamed from sha_ctx.
85013         (sha1_init_ctx): Renamed from sha_init_ctx.
85014         (sha1_process_block): Renamed from sha_process_block.
85015         (sha1_process_bytes): Renamed from sha_process_bytes.
85016         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85017         (sha1_read_ctx): Renamed from sha_read_ctx.
85018         (sha1_stream): Renamed from sha_stream.
85019         (sha1_buffer): Renamed from sha_buffer.
85020         * lib/sha1.c: Likewise; renamed from sha.c.
85021         Do not include <sys/types.h>.
85022         Include <stddef.h> rather than <stdlib.h>.
85023
85024 2004-08-08  Bruno Haible  <bruno@clisp.org>
85025
85026         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85027         FILESYSTEM_PREFIX_LEN.
85028         * lib/progreloc.c: Likewise.
85029         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85030
85031 2004-08-06  Simon Josefsson  <jas@extundo.com>
85032
85033         * modules/progname (Depends-on): Don't depend on stdbool.
85034
85035 2004-08-06  Simon Josefsson  <jas@extundo.com>
85036
85037         * modules/getsubopt: New file.
85038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85039         getsubopt.
85040
85041 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         More merge from coreutils.
85044
85045         * m4/utimens.m4, m4/utimecmp.m4: New files.
85046         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85047         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85048         prereq.m4, sha.m4: Import changes from coreutils.
85049
85050 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85051
85052         More merge from coreutils.
85053         * modules/raise, modules/readtokens0, modules/utimens:
85054         * modules/utimecmp, module/xnanosleep: New files.
85055         * modules/strftime: Add lib/strftime.h.
85056         Change include from <time.h> to "strftime.h".
85057         * modules/yesno: Add lib/yesno.h.
85058         * modules/backupfile: Remove lib/addext.c.
85059         * modules/euidaccess: Add stat-macros.h.
85060         * modules/canonicalize, modules/euidaccess,
85061         modules/filemode, modules/lchown, modules/makepath,
85062         modules/rmdir, modules/stat: Likewise.
85063
85064 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85065
85066         Merge from tar.
85067         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85068         SIZE_MAX is a valid preprocessor constant.
85069         (__argp_basename): Change from "#ifndef _LIBC"
85070         to "#ifndef __argp_short_program_name", so that
85071         we don't compile these functions for tar.
85072
85073         More merges from coreutils.
85074         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85075         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85076         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85077         * lib/addext.c: Remove; no longer needed.
85078         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85079         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85080         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85081         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85082         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85083         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85084         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85085         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85086         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85087         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85088         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85089         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85090         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85091         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85092         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85093         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85094         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85095         Import changes from coreutils.
85096
85097 2004-08-05  Simon Josefsson  <jas@extundo.com>
85098
85099         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85100
85101 2004-08-05  Simon Josefsson  <jas@extundo.com>
85102
85103         * m4/getsubopt.m4: New file.
85104
85105 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         Merge from coreutils.
85108
85109         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85110         * m4/getcwd-path-max.m4: New files.
85111
85112         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85113         FILESYSTEM_PREFIX_LEN ->
85114         FILE_SYSTEM_PREFIX_LEN.
85115         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85116         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85117         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85118         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85119
85120         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85121         prerequisite modules now handle the DOS stuff.
85122         Don't check for unistd.h.
85123
85124 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         Merge from coreutils.
85127
85128         * lib/.gdb-history: Remove; this doesn't belong here.
85129
85130         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85131         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85132         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85133         * lib/getcwd.c: New files.
85134
85135         * lib/dirname.h: Include <stdbool.h>.
85136         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85137         for consistency with POSIX terminology.  All uses changed.
85138         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85139         (strip_trailing_slashes): Use bool for booleans.
85140         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85141
85142         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85143         sometimes returns a positive errno value even when it succeeds.
85144         (print_errno_message) [!LIBC]: Fall back on strerror if
85145         __strerror_r fails.
85146
85147         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85148         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85149         (longest_relative_suffix): New function.
85150         (path_concat): Use it.  Assume first argument is not NULL.
85151         Port to DOS.  Omit redundant separators.
85152         Report an error instead of returning NULL.
85153         Use mempcpy instead of memcpy.
85154         (xpath_concat): Remove: not declared or used.
85155
85156         * lib/same.h: Include <stdbool.h>
85157         (same_name): Return bool, not int.
85158         * lib/same.c (same_name): Likewise.
85159         (errno): Don't declare; we assume C89 or better now.
85160
85161         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85162         if not already defined.
85163
85164         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85165         * lib/dup-safer.c (errno): Likewise.
85166
85167 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85168
85169         Merge from coreutils.
85170         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85171         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85172         * modules/path-concat: Don't depend on strdup.
85173
85174 2004-08-03  Simon Josefsson  <jas@extundo.com>
85175
85176         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85177         * lib/progname.h: Don't include stdbool.h.
85178
85179 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85182         * MODULES.html.sh (func_all_modules): Remove fatal.
85183
85184 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85187
85188 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85189
85190         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85191         working.
85192
85193 2004-08-02  Simon Josefsson  <jas@extundo.com>
85194
85195         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85196         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85197         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85198
85199 2004-08-01  Simon Josefsson  <jas@extundo.com>
85200
85201         * lib/xgetdomainname.c: Include stdlib.h, for free().
85202
85203 2004-07-19  Bruno Haible  <bruno@clisp.org>
85204
85205         * MODULES.html.sh (func_all_modules): Add dummy.
85206
85207 2004-07-16  Simon Josefsson  <jas@extundo.com>
85208
85209         * modules/dummy: New file.
85210
85211 2004-07-16  Simon Josefsson  <jas@extundo.com>
85212
85213         * lib/dummy.c: New file.
85214
85215 2004-07-16  Bruno Haible  <bruno@clisp.org>
85216
85217         * lib/backupfile.h: Add extern "C" for C++.
85218         * lib/closeout.h: Likewise.
85219         * lib/copy-file.h: Likewise.
85220         * lib/findprog.h: Likewise.
85221         * lib/full-write.h: Likewise.
85222         * lib/pathname.h: Likewise.
85223         * lib/progname.h: Likewise.
85224         * lib/stpcpy.h: Likewise.
85225         * lib/stpncpy.h: Likewise.
85226         * lib/strcase.h: Likewise.
85227         * lib/strstr.h: Likewise.
85228         * lib/xalloc.h: Likewise.
85229
85230         * lib/mbswidth.h: Add extern "C" for C++.
85231         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85232
85233 2004-07-13  Robert Millan  <robertmh@gnu.org>
85234
85235         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85236
85237 2004-07-09  Simon Josefsson  <jas@extundo.com>
85238
85239         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85240         failed without this.)
85241
85242 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * modules/chown (Files): Add lib/fchown-stub.c, since
85245         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85246
85247 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * lib/fchown-stub.c: New file.
85250
85251 2004-06-24  Jim Meyering  <jim@meyering.net>
85252
85253         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85254
85255 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85256
85257         * modules/argz: Omit "#include".
85258
85259         * MODULES.html.sh (func_all_modules): Add calloc, to match
85260         2004-06-01 addition of calloc module.
85261
85262 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85263
85264         * m4/argz.m4: New file, which is autoupdated from libtool.
85265
85266 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85269         libtool.
85270
85271 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * config/srclist-update: Don't insist on "USA." before the
85274         close-comment, as libtool omits the period and puts the */ on a
85275         separate line.
85276         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85277         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85278
85279 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85280
85281         * modules/argz: New file.
85282         * MODULES.html.sh (func_all_modules): Add argz.
85283
85284 2004-06-12  Jim Meyering  <jim@meyering.net>
85285         and  Paul Eggert  <eggert@cs.ucla.edu>
85286
85287         * modules/hash (Files): Add lib/xalloc.h.
85288         * modules/pipe (Depends-on): Add wait-process.
85289         * modules/stat (Depends-on): Add xalloc.
85290         * modules/userspec (Files): Add lib/userspec.h.
85291         * modules/xstrto
85292
85293         Upgrade from gettext-0.13.
85294         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85295         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85296         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85297
85298 2004-06-10  Jim Meyering  <jim@meyering.net>
85299
85300         * lib/calloc.c: New file.
85301
85302 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85303
85304         * lib/getdate.y (yylex): Allow space between sign and number.
85305         Problem reported by Dan Jacobson.
85306
85307 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         Merge from coreutils CVS.
85310
85311         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85312         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85313         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85314         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85315         xstrtol.m4: Fix copyright date and/or serial number.
85316
85317         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85318         See if we need an fchown replacement.
85319         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85320         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85321         and use the replacement function if we detect either defect.
85322
85323         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85324         gl_UTIMECMP.
85325
85326 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85327         and  Jim Meyering  <jim@meyering.net>
85328
85329         Merge from coreutils CVS.
85330
85331         * lib/stat-macros.h: New file, with contents from file-type.h
85332         and coreutils' system.h.
85333         * lib/file-type.c: Include "stat-macros.h".
85334         * lib/file-type.h (file_type): Move all macro definitions to new file,
85335         stat-macros.h.
85336
85337         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85338         Wrap old code with this conditional.
85339         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85340         function that does not dereference symlinks.
85341         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85342
85343         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85344         dependency problems.
85345         (xreadlink): Accept new arg SIZE, for efficiency.
85346         All decls and uses changed.
85347         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85348
85349         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85350         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85351
85352         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85353         sysexits.h.
85354
85355 2004-06-01  Jim Meyering  <jim@meyering.net>
85356
85357         * m4/calloc.m4: New file.
85358
85359 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85360
85361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85362         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85363         Also, fix a typo in a diagnostic.
85364
85365 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85368         or AC_FUNC_REALLOC.
85369
85370 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85373         macros to be defined.
85374         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85375         the allocator returns NULL because the requested size is zero.
85376
85377 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85380         var.  Add comment explaining why libc still defines it.  This
85381         merges the following patch from glibc:
85382         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85383
85384 2004-05-20  Andreas Schwab  <schwab@suse.de>
85385
85386         * m4/free.m4: Replace free if it not known to work, not the other
85387         way round.
85388
85389 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85392         present in glibc since revision 1.1 of this file.
85393         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85394         obstack_alignment_mask, obstack_alloc, obstack_base,
85395         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85396         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85397         obstack_grow0, obstack_init, obstack_int_grow,
85398         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85399         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85400         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85401         nonexistent functions.
85402
85403 2004-05-18  Karl Berry  <karl@gnu.org>
85404
85405         * config/srclist.txt: break link for vasnprintf.c.
85406
85407 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         Port obstack to the AS/400, where pointers are 16 bytes wide and
85410         you cannot cast an integer to a valid pointer.  This patch is
85411         currently waiting to be integrated into glibc; see
85412         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85413
85414         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85415         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85416         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85417         (struct obstack): temp member is now a union of a pointer and
85418         an integer, instead of an integer.  All integer uses changed.
85419         This does not affect the physical layout of struct obstack,
85420         except on hosts (like the AS/400) where the size or alignment of
85421         void * is greater than that of ptrdiff_t.
85422         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85423         __STDC__)]: Store temporary in pointer member of union, not
85424         integer member.
85425         * lib/obstack.c: Include <stddef.h>, for offsetof.
85426         (struct fooalign): Remove; it doesn't need a name.
85427         (union fooround): Change double to long double, and add void *.
85428         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85429         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85430         not a macro.  Hence the values are always int; so remove all
85431         casts-to-int in uses.
85432
85433 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85434
85435         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85436         we can get this patch merged into glibc.
85437
85438 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85439             Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         * m4/argp: Depend on alloca.
85442
85443 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85444             Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85447         freecoding.
85448
85449 2004-05-17  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85452         precision that consists of a '.' followed by an empty digit string.
85453         Patch by Tor Lillqvist <tml@iki.fi>.
85454
85455 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85456
85457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85458         for backward compatibility with older code.  We need our own
85459         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85460         it under some other name, and our alloca.h will define it.
85461
85462 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85463             Derek Price  <derek@ximbiot.com>
85464
85465         * lib/alloca.c: Include <alloca.h>, to get our interface.
85466         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85467         include <alloca.h> first.  Use C89 prototype for alloca; this
85468         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85469         Use #elif for simplicity, since we can assume C89 now.
85470         Don't try to source the system alloca.h since it will not be found
85471         and to prevent recursively including its replacement.
85472         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85473         * lib/regex.c: Likewise.
85474
85475 2004-05-16  Derek Price  <derek@ximbiot.com>
85476             Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         getline cleanup.  This changes the getndelim2 API: both order of
85479         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85480         no delimiter).
85481
85482         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85483         interface does that.
85484         (getline): Always use getdelim, so that we don't have two
85485         copies of this code.
85486         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85487         if available.
85488         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85489         (GETNDELIM2_MAXIMUM): New macro.
85490         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85491         instead of the old practice of delim2==0.  All callers changed.
85492         Return -1 on overflow, instead of returning junk.
85493         Do not set *linesize unless allocation succeeds.
85494         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85495         that we include sys/types.h.
85496         * lib/getnline.h: Likewise.
85497         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85498         (getndelim2): Reorder arguments.
85499         * lib/getnline.c (getnline, getndelim):
85500         Don't discard the NMAX argument.
85501         (getnline): Invoke getndelim, to avoid code duplication.
85502         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85503         of (size_t) -1 by callers of the getnline family.
85504
85505 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85508         Check for gettimeofday.
85509         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85510         Check for settimeofday, stime.
85511
85512 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * lib/nanosleep.c (suspended): Change its type from int to
85515         sig_atomic_t volatile.
85516         (first_call): Make it private to rpl_nanosleep, and have it
85517         be zero initially as that's a bit faster.
85518         (my_usleep): Round up fractional times instead of truncating them,
85519         as this is the usual meaning for 'sleep'.
85520
85521         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85522         doesn't work.
85523         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85524         (ENOSYS): Define if not defined.
85525         (settime): Fall back on stime if it exists and settimeofday fails.
85526         But don't bother with fallbacks if a method fails with errno == EPERM.
85527
85528 2004-05-11  Jim Meyering  <jim@meyering.net>
85529
85530         Prior to this change, the save_cwd caller required read access to the
85531         current directory on most systems (ones with the fchdir function).
85532
85533         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85534         fails, try write-only, and finally, resort to using xgetcwd.
85535
85536 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85537
85538         * lib/obstack.c, obstack.h: Import changes from libc.
85539
85540 2004-04-28  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85543         also implicitly appends .exe to executables.
85544         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85545         accepts Windows pathnames.
85546         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85547         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85548         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85549         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85550         Reported by Derek Robert Price <derek@ximbiot.com>.
85551
85552 2004-04-21  Karl Berry  <karl@gnu.org>
85553
85554         * config/srclist.txt (localcharset.c): break sync.
85555
85556 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85557
85558         * m4/host-os.m4: Add a copyright notice.
85559
85560 2004-04-20  Jim Meyering  <jim@meyering.net>
85561
85562         Change UTILS_ to gl_ in AC_DEFINE'd names.
85563         Change utils_- and jm_-prefixed variables, too.
85564         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85565         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85567
85568         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85569         Don't emit trailing blanks.
85570         Also rename jm_-prefixed variables to have gl_ prefix.
85571
85572         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85573         Also rename jm_-prefixed variables to have gl_ prefix.
85574
85575         * m4/jm-macros.m4: Reflect the renamings.
85576         * m4/prereq.m4: Likewise.
85577
85578 2004-04-20  Jim Meyering  <jim@meyering.net>
85579
85580         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85581         memory.
85582
85583 2004-04-20  Jim Meyering  <jim@meyering.net>
85584             Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85587         memory when realloc fails.
85588
85589 2004-04-19  Jim Meyering  <jim@meyering.net>
85590
85591         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85592         now that readutmp.c may call `free (0)'.
85593
85594 2004-04-19  Bruno Haible  <bruno@clisp.org>
85595
85596         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85597         * m4/inttypes_h.m4: Likewise.
85598         * m4/stdint_h.m4: Likewise.
85599         * m4/intmax_t.m4: Likewise.
85600         * m4/uintmax_t.m4: Likewise.
85601
85602 2004-04-18  Jim Meyering  <jim@meyering.net>
85603
85604         * m4/prereq.m4: Don't forbid jm_ prefix.
85605
85606         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85607         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85608         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85609         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85610         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85611         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85612         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85613         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85614         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85615         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85616         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85617         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85618         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85619         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85620         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85621         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85622         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85623         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85624         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85625
85626 2004-04-18  Jim Meyering  <jim@meyering.net>
85627
85628         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85629         failure, don't leak memory and do call END_UTMP_ENT.
85630
85631 2004-04-16  Jim Meyering  <jim@meyering.net>
85632
85633         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85634         coreutils' stat program.
85635         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85636
85637 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85638
85639         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85640         C89.
85641         (CHAR_BIT): Remove, since we assume C89.
85642         Include <stdint.h> if available, as per current Autoconf CVS advice.
85643
85644 2004-03-31  Jim Meyering  <jim@meyering.net>
85645
85646         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85647         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85648         * m4/xalloc.m4: Likewise.
85649
85650 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85651
85652         Merge from coreutils.
85653
85654         * m4/inttostr.m4: New file.
85655         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85656         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85657         Require gl_CLOCK_TIME.
85658         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85659
85660 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85661
85662         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85663         not bool, to be more consistent with Unix conventions.
85664         Suggested by Bruno Haible.
85665
85666         Merge from coreutils.
85667
85668         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85669         * lib/umaxtostr.c: New files.
85670
85671         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85672         the usual <time.h> dance.
85673         (get_date): Change signature to support fractional time stamps.
85674         All callers changed.
85675         * lib/getdate.y: Include "getdate.h" first, as we can now
85676         assume C89 and don't need to worry about 'const'.
85677         Similarly, include "unlocked-io.h" near start, not in middle.
85678         Include <limits.h>.
85679         (textint.value): Use long int rather than int.
85680         (textint.digits): Use size_t rather than int.
85681         (BILLION, LOG10_BILLION): New constants.
85682         (parser_control): New member rel_ns.  Members day_ordinal,
85683         time_zone, month, day, hour, minutes, rel_year, rel_month,
85684         rel_day, rel_hour, rel_minutes, rel_seconds
85685         are now long int, not int.  Member seconds is now struct timespec,
85686         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85687         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85688         not int.
85689         (%union.intval): Now long int, not int.
85690         New member timespec.
85691         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85692         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85693         (spec): Now is a timespec or an item list.
85694         (timespec, items): New nonterminals.
85695         (time, rel, relunit, number, get_date):
85696         Add support for fractional seconds.
85697         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85698         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85699         (to_hour): First arg is now long int, not int.
85700         (to_year): Returns long int, not int.
85701         Don't treat year -70 like 70.
85702         (tm_diff): Returns long int, not int.
85703         (lookup_word): Use bool instead of int when appropriate.
85704         (yylex): Use size_t for count, not int.
85705         Detect overflow when parsing large integer constants.
85706         Add support for fractions.
85707         (get_date): Make pointers 'const' if possible.
85708         Use more-portable code to detect integer overflow.
85709         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85710         Don't use ctime; it's not reliable if the year has >4 digits.
85711
85712         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85713         This is for compatibility with BSD.
85714
85715         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85716         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85717         From coreutils' system.h.
85718
85719         * lib/userspec.c: Don't include "posixver.h".
85720         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85721         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85722         compatible extension.  Simplify code by removing a boolean int
85723         that was always nonzero if a string was nonnull.
85724
85725 2004-03-30  Jim Meyering  <jim@meyering.net>
85726
85727         Merge from coreutils.
85728
85729         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85730         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85731         on some systems one must include <grp.h> before it.
85732         Reported by Christian Krackowizer.
85733
85734 2004-03-30  Jim Meyering  <jim@meyering.net>
85735
85736         Merge from coreutils.
85737
85738         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85739
85740         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85741         an empty input stream.
85742
85743         * lib/readtokens.c: Include <stdbool.h>.
85744         (readtoken): Use `size_t' rather than int/long.
85745         All callers adjusted.
85746         Use `bool' rather than `int' where appropriate.
85747         Use memset rather than an explicit loop.
85748         Use x2nrealloc rather than xrealloc.
85749         Allow the use of `\0' as a delimiter.
85750         (readtokens): Likewise.
85751         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85752
85753 2004-03-30  Jim Meyering  <jim@meyering.net>
85754
85755         * m4/realloc.m4: Remove file, since now it does no more than
85756         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85757         the `configure.ac' section of module/realloc.
85758         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85759
85760 2004-03-30  Bruno Haible  <bruno@clisp.org>
85761
85762         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85763         nonnull.
85764
85765 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85766
85767         Merge changes to getloadavg.c from coreutils and Emacs.
85768
85769         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85770         Define to an expression, not to the empty string.
85771         Include cloexec.h and xalloc.h.
85772         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85773         Use set_cloexec_flag rather than rolling our own.
85774         * lib/cloexec.c, lib/cloexec.h: New files.
85775
85776 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85777
85778         * m4/cloexec.m4: New file.
85779
85780 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85781
85782         * lib/getopt.h: Sync with libc CVS.
85783
85784 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85785             Bruno Haible  <bruno@clisp.org>
85786
85787         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85788         mbswidth.
85789
85790 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85791             Bruno Haible  <bruno@clisp.org>
85792
85793         * lib/mbswidth.h: Include <wchar.h> only if
85794         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85795         <wchar.h>.
85796         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85797
85798 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85799
85800         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85801         Sync with libc CVS.
85802         * lib/getopt_int.h: New file, also synced from libc.
85803
85804 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85805
85806         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85807         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85808         Bring back getopt.c, getopt.h, getopt1.c.
85809
85810 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85811
85812         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85813         All uses changed.  Check for sa_sigaction member; this fixes
85814         a bug first reported by Jason Andrade in
85815         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85816
85817 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85818
85819         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85820         '#if' expressions.  Unlike the code it replaces, it does not
85821         depend on (defined _SC_PAGESIZE).  However, it does depend on
85822         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85823         first reported by Jason Andrade in
85824         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85825
85826 2004-02-25  Simon Josefsson  <jas@extundo.com>
85827
85828         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85829
85830 2004-02-25  Simon Josefsson  <jas@extundo.com>
85831
85832         * lib/strdup.h: New file.
85833         * lib/strdup.c: Include it.
85834         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85835         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85836
85837 2004-02-23  Karl Berry  <karl@gnu.org>
85838
85839         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85840         (from fencepost.gnu.org:/gd/gnuorg).
85841
85842 2004-02-23  Karl Berry  <karl@gnu.org>
85843
85844         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85845         * config/srclist.txt: add maintain/standards documents.
85846
85847 2004-02-18  Bruno Haible  <bruno@clisp.org>
85848
85849         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85850         Reported by Derek Robert Price <derek@ximbiot.com>.
85851
85852 2004-02-16  Karl Berry  <karl@gnu.org>
85853
85854         * config/mkinstalldirs, install-sh: update from automake.
85855
85856 2004-02-06  Karl Berry  <karl@gnu.org>
85857
85858         * m4/po.m4: update from gettext 0.14.1.
85859
85860 2004-02-06  Karl Berry  <karl@gnu.org>
85861
85862         * lib/config.charset: update from gettext 0.14.1.
85863
85864 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85865
85866         Add comments and code, prompted by suggestions from Bruno Haible
85867         for sh-quote.
85868         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85869         describing the enum quoting_style values.
85870         * lib/quotearg.c (quotearg_alloc): New function.
85871         (quotearg_buffer_restyled): Treat lone { and } as special.
85872         Treat = as special.  Work around bug with older shells
85873         that "see" a '\' that is really the 2nd byte of a multibyte char.
85874         Quote empty string with shell_quoting_style.
85875
85876 2004-02-03  Bruno Haible  <bruno@clisp.org>
85877
85878         * m4/pipe.m4: New file, from GNU gettext.
85879
85880 2004-02-03  Bruno Haible  <bruno@clisp.org>
85881
85882         * lib/pipe.h: New file, from GNU gettext.
85883         * lib/pipe.c: New file, from GNU gettext.
85884
85885 2004-01-27  Bruno Haible  <bruno@clisp.org>
85886
85887         * m4/execute.m4: New file, from GNU gettext.
85888
85889 2004-01-27  Bruno Haible  <bruno@clisp.org>
85890
85891         * lib/execute.h: New file, from GNU gettext.
85892         * lib/execute.c: New file, from GNU gettext.
85893         * lib/w32spawn.h: New file, from GNU gettext.
85894
85895 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85896
85897         Merge from diffutils.
85898
85899         * lib/file-type.c (file_type): Add typed memory objects.
85900         * lib/file-type.h (S_TYPEISTMO): New macro.
85901
85902         * lib/c-stack.h (c_stack_action): Remove argv argument.
85903         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85904         (die): Don't calculate message unless segv_action returns.
85905         (get_stack_location, min_address_from_argv, max_address_from_argv,
85906         volatile stack_base, volatile_stack_size): Remove.
85907         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85908         that every segmentation violation is a stack overflow.  (Ouch!)
85909         See Debian bug 136249 (still outstanding) for more info about why
85910         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85911
85912 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85913
85914         Exit-status fix from coreutils.
85915
85916         Use exit_failure consistently in place of EXIT_FAILURE,
85917         so that program exit statuses are consistent on failure.
85918
85919         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85920         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85921         * lib/argmatch.h: Comment fix to match the above.
85922         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85923         Now a macro referring to exit_failure, instead of a separate
85924         variable.  Include "exitfail.h" to get it.
85925         * lib/xstrtol.h: Include "exitfail.h".
85926         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85927
85928         * lib/long-options.c (parse_long_options): Use prototype
85929         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85930         for clarity.
85931
85932 2004-01-21  Jim Meyering  <jim@meyering.net>
85933
85934         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85935         so as not to conflict with a different-sized __mktime_internal
85936         function in GNU libc.
85937         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85938         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85939
85940 2004-01-20  Karl Berry  <karl@gnu.org>
85941
85942         * config/config.guess: update from config.
85943
85944         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85945
85946 2004-01-20  Bruno Haible  <bruno@clisp.org>
85947
85948         Safer stack allocation.
85949         * lib/setenv.c: Include allocsa.h.
85950         (alloca): Remove fallback definition.
85951         (freea): Remove macro.
85952         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85953         instead of freea.
85954
85955 2004-01-20  Bruno Haible  <bruno@clisp.org>
85956
85957         * m4/eealloc.m4: New file, from GNU gettext.
85958
85959 2004-01-20  Bruno Haible  <bruno@clisp.org>
85960
85961         * m4/allocsa.m4: New file, from GNU gettext.
85962
85963 2004-01-20  Bruno Haible  <bruno@clisp.org>
85964
85965         * lib/xallocsa.h: New file, from GNU gettext.
85966         * lib/xallocsa.c: New file, from GNU gettext.
85967
85968 2004-01-20  Bruno Haible  <bruno@clisp.org>
85969
85970         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85971
85972 2004-01-20  Bruno Haible  <bruno@clisp.org>
85973
85974         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85975         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85976         specially.
85977
85978 2004-01-20  Bruno Haible  <bruno@clisp.org>
85979
85980         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85981         patch.
85982
85983 2004-01-20  Bruno Haible  <bruno@clisp.org>
85984
85985         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85986
85987 2004-01-20  Bruno Haible  <bruno@clisp.org>
85988
85989         * lib/eealloc.h: New file.
85990
85991 2004-01-20  Bruno Haible  <bruno@clisp.org>
85992
85993         * lib/binary-io.h: Avoid warnings on Cygwin.
85994
85995 2004-01-20  Bruno Haible  <bruno@clisp.org>
85996
85997         * lib/allocsa.h: New file, from GNU gettext.
85998         * lib/allocsa.c: New file, from GNU gettext.
85999
86000 2004-01-18  Karl Berry  <karl@gnu.org>
86001
86002         * doc/gpl.texi, doc/lgpl.texi: new files.
86003
86004 2004-01-18  Karl Berry  <karl@gnu.org>
86005
86006         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86007         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86008
86009 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86010
86011         Merge from coreutils.
86012
86013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86014         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86015         (gl_DEFAULT_POSIX2_VERSION): Move
86016         the documentation from 'configure' into 'config.hin',
86017         so that 'configure --help' isn't burdened by it and
86018         we don't have to worry about its formatting there.
86019         Reword the documentation so that it's more succinct
86020         and can be run together into a single paragraph.
86021         * m4/same.m4 (gl_SAME): Check for pathconf.
86022
86023 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86024
86025         Merge from coreutils.
86026
86027         * lib/posixver.c: Include posixver.h.
86028
86029         * lib/same.c: Include <stdbool.h>, <limits.h>.
86030         (_POSIX_NAME_MAX): Define if not defined.
86031         (MIN): New macro.
86032         (same_name): If file names are silently truncated, report
86033         that the file names are the same if they are the same after
86034         the silent truncation.
86035
86036         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86037         conversion function.
86038         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86039         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86040         longer needed.
86041
86042 2004-01-15  Jim Meyering  <jim@meyering.net>
86043
86044         Merge from coreutils.
86045
86046         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86047         if no library is required.
86048         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86049         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86050         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86051         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86052         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86053         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86054         value, $ac_cv_search_crypt, if it's "none required".
86055         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86056         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86057         not gl_FUNC_GETLOADAVG.
86058         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86059         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86060
86061 2004-01-15  Jim Meyering  <jim@meyering.net>
86062
86063         Merge from coreutils.
86064
86065         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86066         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86067         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86068
86069         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86070         optional configure-time default.
86071
86072         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86073
86074         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86075
86076 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86077
86078         Merge from coreutils.
86079
86080         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86081         value, $ac_cv_search_nanosleep, if it's "none required".
86082
86083 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86084
86085         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86086         with like-named macro in fnmatch.c.
86087         (EXT): Use an internal constant instead.
86088
86089         Merge fnmatch patches from glibc.
86090         * lib/fnmatch.c (mbsinit): Remove define.
86091         Add libc_hidden_ver (__fnmatch, fnmatch).
86092         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86093         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86094
86095 2004-01-14  Karl Berry  <karl@gnu.org>
86096
86097         * config/install-sh: update from automake.
86098
86099 2004-01-13  Karl Berry  <karl@gnu.org>
86100
86101         * config/install-sh: update from automake.
86102
86103 2004-01-09  Karl Berry  <karl@gnu.org>
86104
86105         * config/install-sh: update from automake.
86106
86107 2004-01-05  Karl Berry  <karl@gnu.org>
86108
86109         * config/config.{sub,guess}: update from config.
86110
86111 2003-12-31  Karl Berry  <karl@gnu.org>
86112
86113         * config/depcomp: update from automake.
86114
86115 2003-12-14  Karl Berry  <karl@gnu.org>
86116
86117         * lib/config.charset: update from gettext-runtime.
86118
86119 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86120
86121         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86122         Bug reported by Alfred M. Szmidt.
86123
86124 2003-12-03  Bruno Haible  <bruno@clisp.org>
86125
86126         * m4/gettext.m4: Upgrade from gettext-0.13.
86127         * m4/po.m4: Upgrade from gettext-0.13.
86128         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86129         * m4/intmax.m4: New file, from gettext-0.13.
86130         * m4/printf-posix.m4: New file, from gettext-0.13.
86131
86132 2003-11-29  Karl Berry  <karl@gnu.org>
86133
86134         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86135
86136 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86137             Bruno Haible  <bruno@clisp.org>
86138
86139         * lib/printf-parse.h: Don't include sys/types.h.
86140         (ARG_NONE): New macro.
86141         (char_directive): Change type of *arg_index fields to size_t.
86142         * lib/printf-parse.c: Don't include sys/types.h.
86143         (SSIZE_MAX): Remove macro.
86144         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86145         Remove unnecessary overflow check.
86146         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86147         fields.
86148
86149 2003-11-25  Bruno Haible  <bruno@clisp.org>
86150
86151         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86152
86153 2003-11-25  Bruno Haible  <bruno@clisp.org>
86154
86155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86156         gt_TYPE_SSIZE_T.
86157
86158 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86159
86160         * modules/alloca: Remove dependency on xalloc.
86161
86162 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86163
86164         * lib/alloca.c: Remove dependency on xalloc module.
86165         (xalloc_die): Remove.
86166         (memory_full) [!defined emacs]: New macro.
86167         [!defined emacs]: Don't include xalloc.h.
86168         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86169         address arithmetic overflows.  Change datatypes a bit to avoid
86170         unnecessary casts.
86171
86172 2003-11-22  Jim Meyering  <jim@meyering.net>
86173
86174         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86175         s/size/size_t/.
86176
86177 2003-11-21  Karl Berry  <karl@gnu.org>
86178
86179         * config/config.{sub,guess}: update from config.
86180
86181 2003-11-18  Karl Berry  <karl@gnu.org>
86182
86183         * config/config.{sub,guess}: update from config.
86184
86185         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86186
86187 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86188
86189         * README: Mention that S+T cannot overflow if S is the size of
86190         an existing object and T is sufficiently small.
86191
86192 2003-11-17  Jim Meyering  <jim@meyering.net>
86193
86194         On systems without utime and without a utimes function capable of
86195         dealing with a NULL struct utimbuf* argument, this utime replacement
86196         could -- in unusual circumstances -- leak a file descriptor.
86197         * lib/utime.c: Include <unistd.h> and <errno.h>.
86198         (utime_null): Be sure to close `fd' and to preserve errno.
86199         Reported by Geoff Collyer via Arnold Robbins.
86200
86201 2003-11-17  Bruno Haible  <bruno@clisp.org>
86202
86203         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86204         (Depends-on): Add xsize.
86205
86206 2003-11-17  Bruno Haible  <bruno@clisp.org>
86207
86208         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86209
86210 2003-11-17  Bruno Haible  <bruno@clisp.org>
86211
86212         * lib/vasnprintf.c (alloca): Remove fallback definition.
86213         (freea): Remove definition.
86214         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86215         Reported by Paul Eggert.
86216
86217 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86218             Bruno Haible  <bruno@clisp.org>
86219
86220         Protect against address arithmetic overflow.
86221         * lib/printf-args.h: Include stddef.h.
86222         (arguments): Change type of field 'count' to size_t.
86223         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86224         'unsigned int' where appropriate.
86225         * lib/printf-parse.h: Include sys/types.h.
86226         (char_directive): Change type of *arg_index fields to ssize_t.
86227         (char_directives): Change type of fields 'count', max_*_length to
86228         size_t.
86229         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86230         (SSIZE_MAX): Define fallback value.
86231         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86232         instead of 'int' where appropriate. Check a_allocated, d_allocated
86233         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86234         * lib/vasnprintf.c: Include xsize.h.
86235         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86236         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86237         overflow. Avoid wraparound when converting a width or precision from
86238         decimal to binary.
86239
86240 2003-11-16  Bruno Haible  <bruno@clisp.org>
86241
86242         Update from GNU gettext.
86243         * lib/printf-parse.c: Generalize to it can be compiled for wide
86244         strings.
86245         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86246         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86247         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86248         SNPRINTF): New macros.
86249         Don't include <alloca.h> if the file is used inside libintl.
86250         (local_wcslen): New function, for Solaris 2.5.1.
86251         (VASNPRINTF): Use it instead of wcslen.
86252
86253 2003-11-16  Bruno Haible  <bruno@clisp.org>
86254
86255         * lib/xsize.h (xmax): New function.
86256         (xsum, xsum3, xsum4): Declare as "pure" functions.
86257
86258 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86259
86260         * modules/xalloc (Files): Undo latest change, since xalloc.h
86261         no longer needs SIZE_MAX or PTRDIFF_MAX.
86262
86263 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86264
86265         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86266         gl_PTRDIFF_MAX.
86267
86268 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86271         "return", to pacify some unknown compiler.  Problem reported
86272         by Joerg Schilling.
86273
86274 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86275
86276         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86277         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86278         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86279         heuristic is just as accurate as far as we know, and it removes a
86280         dependency on size_max.m4 and ptrdiff_max.m4.
86281
86282 2003-11-11  Bruno Haible  <bruno@clisp.org>
86283
86284         * modules/xsize (Files): Add m4/size_max.m4.
86285         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86286
86287 2003-11-11  Bruno Haible  <bruno@clisp.org>
86288
86289         * m4/size_max.m4: New file.
86290         * m4/ptrdiff_max.m4: New file.
86291         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86292         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86293         (gl_XALLOC): Invoke it.
86294
86295 2003-11-11  Bruno Haible  <bruno@clisp.org>
86296
86297         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86298         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86299         defined.
86300
86301 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86302
86303         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86304         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86305         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86306         From Bruno Haible.
86307         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86308         not (size_t) -1, since it's defined here.
86309
86310 2003-11-09  Karl Berry  <karl@gnu.org>
86311
86312         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86313
86314 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86315
86316         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86317         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86318         Reject sizes of exactly SIZE_MAX bytes.
86319         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86320         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86321
86322 2003-11-05  Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86325         SIZE_MAX defined in <limits.h> on Solaris.
86326
86327 2003-11-04  Jim Meyering  <jim@meyering.net>
86328
86329         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86330         variable names, rather than @VAR@.
86331         * modules/poll: Likewise.
86332
86333 2003-11-04  Bruno Haible  <bruno@clisp.org>
86334
86335         * modules/xsize: New file.
86336         * modules/linebreak: Depend on xsize.
86337         * MODULES.html.sh (func_all_modules): Add xsize.
86338
86339 2003-11-04  Bruno Haible  <bruno@clisp.org>
86340
86341         * m4/xsize.m4: New file.
86342
86343 2003-11-04  Bruno Haible  <bruno@clisp.org>
86344
86345         * lib/xsize.h: New file.
86346         * lib/linebreak.c: Include xsize.h.
86347         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86348         argument for overflow.
86349         Suggested by Paul Eggert.
86350
86351 2003-11-03  Karl Berry  <karl@gnu.org>
86352
86353         * config/config.{guess,sub}: update from config.
86354
86355 2003-11-03  Jim Meyering  <jim@meyering.net>
86356
86357         * modules/userspec (lib_SOURCES): Add userspec.h.
86358         (Include): Add "userspec.h".
86359         Improve description.
86360
86361 2003-11-03  Jim Meyering  <jim@meyering.net>
86362
86363         * lib/userspec.c: Include "userspec.h".
86364         * lib/userspec.h: New file.
86365
86366 2003-11-03  Bruno Haible  <bruno@clisp.org>
86367
86368         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86369
86370 2003-11-03  Bruno Haible  <bruno@clisp.org>
86371
86372         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86373         available, to avoid (extremely rare) race condition.
86374         Suggested by Paul Eggert.
86375
86376 2003-11-02  Karl Berry  <karl@gnu.org>
86377
86378         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86379
86380 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86381
86382         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86383         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86384         (read_filesystem_list): Set and use me_type_malloced.
86385         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86386         whatever the type happens to be), for brevity and consistency.
86387         Check for size calculation overflow on Alphas running OSF/1.
86388
86389 2003-10-31  Jim Meyering  <jim@meyering.net>
86390
86391         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86392
86393         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86394
86395 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86396             Bruno Haible  <bruno@clisp.org>
86397
86398         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86399         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86400
86401 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86402
86403         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86404         netbsd*-gnu*.  Suggested by Robert Millan.
86405
86406 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86407
86408         * modules/group-member: Depend on stdbool.
86409
86410 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86411
86412         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86413
86414 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86415
86416         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86417         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86418         after the 'gnu' in these cases.  This fixes some bugs in the
86419         previous change, and is based on suggestions by Robert Millan.
86420
86421 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86424         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86425         no longer needed.
86426         * lib/quotearg.c (quotearg_n_options): Use it.
86427         * lib/group-member.c: Include <stdbool.h>.
86428         (free_group_info): Arg is now const *; don't free arg.
86429         (get_group_info): Now returns bool and accepts struct group_info *,
86430         rather than returning a malloc'ed struct group_info *.
86431         All uses changed.  Check for overflow in internal size calculation.
86432
86433         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86434         rather than xmalloc/xrealloc.
86435         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86436         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86437         conformance bug: the old code used a pointer after freeing the
86438         storage that it addressed.
86439         * lib/hash.c (hash_initialize): Simplify the code by using
86440         xalloc_oversized rather than doing it by hand.
86441         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86442         the buffer preserved.  Use free and xmalloc instead.
86443         * lib/quotearg.c (quotearg_n_options): Likewise.
86444         Use a simpler test for size overflow.  Don't use xalloc_oversized
86445         because unsigned int might be wider than size_t (!); this suggests
86446         that we should switch from unsigned int to size_t for slot numbers.
86447
86448 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86449
86450         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86451         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86452         NetBSD kernels.  Requested by Richard Stallman.
86453
86454 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86455
86456         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86457         to allocate the returned structure.  Do not allocate a subarray,
86458         as x2nrealloc will do that.
86459         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86460         instead of xnrealloc.
86461         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86462
86463 2003-10-27  Bruno Haible  <bruno@clisp.org>
86464
86465         * lib/stdbool_.h: Better support for BeOS.
86466
86467 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86468
86469         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86470         now uses inline.
86471
86472 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86473
86474         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86475         callers that want to do their own size-overflow checking.  Include
86476         <stdbool.h>, since xalloc_oversized returns bool.
86477         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86478         to use xalloc_oversized.
86479
86480         Add two functions x2realloc, x2nrealloc, for programs that grow
86481         arrays dynamically by doubling their sizes.
86482         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86483         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86484         New functions.
86485
86486         Port to C99 semantics for 'inline' of external functions.
86487         Bug reported by Bruno Haible.
86488         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86489         with the old contents of xnmalloc.
86490         (xnmalloc, xmalloc): Use it.
86491         (xnrealloc_inline): New static inline function,
86492         with the old contents of xnrealloc.
86493         (xnrealloc, xrealloc): Use it.
86494
86495         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86496         that.
86497
86498 2003-10-26  Karl Berry  <karl@gnu.org>
86499
86500         * config/srclist.txt (COPYING.DOC): no longer available from
86501         /gd/gnuorg; don't know where the ultimate source is.
86502
86503 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86504
86505         Fix several address-calculation bugs in the hash modules,
86506         plus some minor code cleanup.
86507
86508         * lib/hash.h: Include <stdbool.h>, for bool.
86509         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86510         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86511         hash_get_n_entries, hash_get_max_bucket_length,
86512         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86513         hash_rehash): Use size_t rather than unsigned.
86514         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86515         hash_get_n_buckets_used, hash_get_n_entries,
86516         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86517         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86518         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86519         Likewise.
86520         (SIZE_MAX): Define if not defined.
86521         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86522         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86523         hash_print):
86524         Use const * when possible.
86525         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86526         (check_tuning): Fix bug: if tuning parameters were very close to
86527         0 or 1, rounding errors could have caused subscript violations.
86528         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86529         (hash_initialize): Add 'fail:' label
86530         to free table and return NULL, and use it to simplify code.
86531         Use calloc rather than clearing the storage ourself.
86532         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86533         buffer size calculations.
86534         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86535         Include <stddef.h>, for size_t.
86536         * lib/hash-pjw.c (hash_pjw): Likewise.
86537         Switch to method described by Bruno Haible.
86538         Include <limits.h>, for CHAR_BIT.
86539         (SIZE_BITS): New macro.
86540
86541 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86542
86543         * m4/getline.m4 (AM_FUNC_GETLINE):
86544         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86545         hosts.  Problem reported by Derek Robert Price in
86546         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86547         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86548         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86549
86550 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86553         ceiling the allocation at NMAX bytes rather than silently
86554         discarding input bytes before NMAX is reached.  This makes
86555         a difference only if NMAX exceeds SIZE_MAX / 2.
86556
86557         * lib/obstack.c: Merge from glibc.
86558         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86559         Add libc_hidden_def (_obstack_newchunk).
86560         (_obstack_free) [! defined _LIBC]: Remove.
86561         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86562         a clone of the function body.
86563         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86564         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86565
86566         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86567         glibc.
86568         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86569         arg to memcpy.
86570
86571         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86572         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86573         Don't use lvalue casts, as GCC plans to remove support for them
86574         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86575         was also present in the non-GCC version, indicating that this
86576         code had always been buggy and had never been widely used.
86577         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86578         Use the fast variant of each macro, rather than copying the
86579         definiens of the fast variant; that way, we'll be more likely to
86580         catch future bugs in the fast variants.
86581
86582 2003-10-20  Bruno Haible  <bruno@clisp.org>
86583
86584         * modules/wait-process: New file.
86585         * MODULES.html.sh (func_all_modules): Add wait-process.
86586
86587 2003-10-20  Bruno Haible  <bruno@clisp.org>
86588
86589         * m4/wait-process.m4: New file.
86590
86591 2003-10-20  Bruno Haible  <bruno@clisp.org>
86592
86593         * lib/wait-process.h: New file, from GNU gettext.
86594         * lib/wait-process.c: New file, from GNU gettext.
86595
86596 2003-10-19  Jim Meyering  <jim@meyering.net>
86597
86598         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86599         HPUX 10.20.
86600
86601 2003-10-18  Karl Berry  <karl@gnu.org>
86602
86603         * config/config.guess: update from config.
86604
86605 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86606
86607         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86608         (getgroups): First arg is int, not size_t.
86609         Don't let 'free' mangle errno.
86610
86611 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86612
86613         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86614
86615 2003-10-16  Karl Berry  <karl@gnu.org>
86616
86617         * config/config.{guess,sub}: update from config.
86618
86619 2003-10-16  Jim Meyering  <jim@meyering.net>
86620
86621         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86622         memcpy.
86623
86624 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86625
86626         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86627         (SIZE_MAX): Remove.
86628         (new_exclude, add_exclude_file): Initial size no longer needs to
86629         be a power of 2.
86630         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86631         our own address arithmetic overflow checking.
86632
86633         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86634         (fnmatch): Do not alloca more than 2000 wide characters;
86635         instead, use malloc for large buffers.
86636         Check for address arithmetic overflow, and return -1
86637         with errno set to ENOMEM in that case.
86638         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86639         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86640         instead, return -1.  Check for address arithmetic overflow.
86641
86642 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86643
86644         Handle invalid suffixes and overflow independently, so that
86645         callers can treat them independently as needed.  Fix some bugs in
86646         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86647         suffix for a human-readable blocksize.  The major caller-visible
86648         change is the addition of a new
86649         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86650         that both overflow and suffix chars were found.
86651
86652         * lib/human.c (humblock): Don't check separately for invalid suffix
86653         char; that is xstrtoumax's job (now that its bug is fixed).
86654         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86655         INTMAX_MAX]: New macros.
86656         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86657         TYPE_MAXIMUM): New macros.
86658         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86659         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86660         if overflow occurs, as it's what __strtol does and it's more useful
86661         in practice.
86662         (__xstrtol): If __strtol reports some error other than ERANGE,
86663         reflect it to the caller as LONGINT_INVALID.  If it reports
86664         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86665         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86666         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86667         value.
86668         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86669         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86670         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86671         [defined UINTMAX_MAX]: New macros.
86672
86673 2003-10-14  Bruno Haible  <bruno@clisp.org>
86674
86675         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86676
86677 2003-10-14  Bruno Haible  <bruno@clisp.org>
86678
86679         * m4/sig_atomic_t: New file, from GNU gettext.
86680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86681
86682 2003-10-14  Bruno Haible  <bruno@clisp.org>
86683
86684         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86685         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86686         Also use volatile where needed.
86687
86688 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86689
86690         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86691         Change maintainer from Bruno Haible to 'all'.
86692
86693 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86694
86695         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86696
86697 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86698
86699         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86700         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86701         and define in terms of the other primitives.
86702         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86703         (SIZE_MAX): Define if not already defined.
86704         (array_size_overflow): New function.
86705         (xalloc_die): Abort instead of exiting if 'error' returns.
86706         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86707         (xmalloc, xrealloc): Use them.
86708         (xcalloc): Check for address arithmetic overflow.
86709         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86710         a bit faster than strcpy.
86711
86712 2003-10-10  Simon Josefsson  <jas@extundo.com>
86713
86714         * modules/argp (Depends-on): Add restrict and strcase.
86715
86716 2003-10-10  Simon Josefsson  <jas@extundo.com>
86717
86718         * m4/argp.m4: Add AC_C_INLINE.
86719
86720 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86721
86722         Merge getpass from libc, plus a few fixes.
86723
86724         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86725         Include <stdbool.h>.
86726         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86727         __fsetlocking to empty.
86728         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86729         do include <bits/libc-lock.h>.
86730         Do not include <fcntl.h>; not needed.
86731         [_LIBC]: Include <wchar.h>.
86732         (NOTCANCEL_MODE): New macro.
86733         (flockfile, funlockfile) [_LIBC]: New macros.
86734         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86735         [!_LIBC]: New macros.
86736         (call_fclose): New function.
86737         (getpass): Use it.  Save tty stream separately; this simplifies the
86738         code and makes it more reliable if stdin happens to equal stdout.
86739         Invoke __fsetlocking on tty.
86740         Handle thread cancellation if needed.
86741         Namespace cleanup (use __tcgetattr, __getline).
86742         Use bool for Booleans.
86743         [USE_IN_LIBIO]: Handle wide streams.
86744         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86745         stream might go where.
86746
86747         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86748         doesn't have to include <stdio.h> before us.
86749         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86750         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86751         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86752         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86753         if not declared, so that we can use getpass.c code from libc without
86754         rewriting it.
86755         (flockfile, ftrylockfile, funlockfile): New macros.
86756
86757 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86758
86759         * modules/getpass: Depend on stdbool.
86760
86761 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86762
86763         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86764
86765 2003-10-07  Karl Berry  <karl@gnu.org>
86766
86767         * config/config.{guess,sub}: update from config.
86768
86769 2003-10-06  Jim Meyering  <jim@meyering.net>
86770             Bruno Haible  <bruno@clisp.org>
86771
86772         This lets translators provide better translations for the
86773         "Written by ..." part of --version output.
86774         * lib/version-etc.h: Include stdarg.h.
86775         (version_etc_copyright): Declare as readonly.
86776         (version_etc): Make this function variadic with a NULL-terminated list
86777         of author name strings.
86778         (version_etc_va): New declaration.
86779         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86780         (version_etc_copyright): Declare as readonly.
86781         (version_etc_va): New function. Provide a different translatable string
86782         for each possible number of authors < 10. Abbreviate when there are 10
86783         authors or more.
86784         (version_etc): Make this function variadic. Call version_etc_va.
86785         Suggestion from Gary V. Vaughan.
86786
86787         * lib/long-options.h (parse_long_options): Change prototype: the
86788         authors string is moved to the end and becomes variadic.
86789         * lib/long-options.c: Include stdarg.h.
86790         (parse_long_options): Make this function variadic, too.
86791         Call version_etc_va, not version_etc.
86792
86793 2003-10-06  Bruno Haible  <bruno@clisp.org>
86794
86795         * modules/version-etc-2: Remove file.
86796         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86797
86798 2003-10-06  Bruno Haible  <bruno@clisp.org>
86799
86800         * modules/fatal-signal: New file.
86801         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86802
86803 2003-10-06  Bruno Haible  <bruno@clisp.org>
86804
86805         * m4/fatal-signal.m4: New file.
86806         * m4/signalblocking.m4: New file, from GNU gettext.
86807
86808 2003-10-06  Bruno Haible  <bruno@clisp.org>
86809
86810         * lib/version-etc-2.h: Remove file.
86811         * lib/version-etc-2.c: Remove file.
86812
86813 2003-10-06  Bruno Haible  <bruno@clisp.org>
86814
86815         * lib/fatal-signal.h: New file, from GNU gettext.
86816         * lib/fatal-signal.c: New file, from GNU gettext.
86817
86818 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86819
86820         * README: Rework advice for preventing empty .o files.
86821         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86822         not <sys/types.h>.
86823
86824 2003-10-04  Karl Berry  <karl@gnu.org>
86825
86826         * lib/argp*: update from libc.
86827
86828 2003-10-04  Karl Berry  <karl@gnu.org>
86829
86830         * config/config.{guess,sub}: update from config.
86831
86832 2003-10-02  Bruno Haible  <bruno@clisp.org>
86833
86834         * modules/lchown (Include): Add lchown.h.
86835         * modules/time_r (Include): Use "..." syntax.
86836         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86837
86838 2003-10-01  Simon Josefsson  <jas@extundo.com>
86839
86840         * MODULES.html.sh (func_all_modules): Move gethostname from section
86841         'based on' to section 'lacking' POSIX:2001.
86842
86843 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86844
86845         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86846         to output mode on the same stream.
86847
86848 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86849
86850         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86851         Fix arg typo in previous patch.
86852
86853 2003-09-28  Jim Meyering  <jim@meyering.net>
86854
86855         * lib/error.c: Correct cpp indentation.
86856
86857 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86858
86859         * modules/free: New file.
86860
86861 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86862
86863         * m4/free.m4: New file.
86864
86865 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86866
86867         * lib/minmax.h (MIN, MAX)
86868         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86869         Omit the special code that used __typeof__, since we worry that
86870         it could be more trouble than it's worth.  See:
86871         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86872         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86873
86874         * lib/free.c: New file.
86875
86876 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86877
86878         Trivial fixes to Makefile.am parts of module listings.
86879         * modules/strstr: Append strstr.h to lib_SOURCES.
86880         * modules/strcase: Likewise, for strcase.h.
86881
86882 2003-09-27  Karl Berry  <karl@gnu.org>
86883
86884         * config/mkinstalldirs: update from automake.
86885
86886 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86889         (error_tail): Do not loop, reallocating temporary buffer, since
86890         the output cannot contain more wide characters than the input
86891         contains bytes, the size must be big enough already.  This avoids
86892         one potential size overflow calculation.  Check for size overflow
86893         when calculating temporary buffer size.  Free temporary buffer
86894         when done, if it was allocated with malloc; this plugs a memory
86895         leak.  Remove casts from void * to pointers, that are no longer
86896         needed now that we're assuming C89 or better.
86897
86898         Merge error changes from glibc.
86899
86900         * lib/error.c, error.h: Update copyright notice header to match glibc.
86901         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86902         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86903         Disable cancellation while printing error.
86904         * lib/error.h: Prepend __ to parameter names.
86905
86906 2003-09-26  Jim Meyering  <jim@meyering.net>
86907
86908         * lib/error.c (error_tail): Move some declarations
86909         into inner scope where the local variables are used.
86910
86911 2003-09-26  Bruno Haible  <bruno@clisp.org>
86912
86913         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86914         stpncpy().
86915         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86916
86917 2003-09-26  Bruno Haible  <bruno@clisp.org>
86918
86919         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86920         (stpncpy): Define as alias for gnu_stpncpy.
86921         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86922
86923 2003-09-25  Simon Josefsson  <jas@extundo.com>
86924
86925         * lib/xgetdomainname.h: New file.
86926         * lib/xgetdomainname.c: New file.
86927
86928 2003-09-25  Simon Josefsson  <jas@extundo.com>
86929             Bruno Haible  <bruno@clisp.org>
86930
86931         * modules/getdomainname: New file.
86932         * modules/xgetdomainname: New file.
86933         * MODULES.html.sh (func_all_modules): Add getdomainname,
86934         xgetdomainname.
86935
86936 2003-09-25  Simon Josefsson  <jas@extundo.com>
86937             Bruno Haible  <bruno@clisp.org>
86938
86939         * m4/getdomainname.m4: New file.
86940
86941 2003-09-25  Simon Josefsson  <jas@extundo.com>
86942             Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/getdomainname.h: New file.
86945         * lib/getdomainname.c: New file.
86946
86947 2003-09-25  Karl Berry  <karl@gnu.org>
86948
86949         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86950
86951 2003-09-25  Karl Berry  <karl@gnu.org>
86952
86953         * config/install-sh: update from automake.
86954
86955 2003-09-25  Bruno Haible  <bruno@clisp.org>
86956
86957         * modules/version-etc-2: New file, from modules/version-etc with
86958         modifications.
86959         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86960
86961 2003-09-25  Bruno Haible  <bruno@clisp.org>
86962
86963         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86964         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86965
86966 2003-09-24  Simon Josefsson  <jas@extundo.com>
86967
86968         * modules/xgethostname: Add xgethostname.h.
86969
86970 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86971
86972         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86973         the buffer associated with the argument.  Bug reported by
86974         Simon Josefsson.
86975
86976 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86977
86978         * README: Document assumptions that 'int' is at least 32 bits
86979         wide, that integer arithmetic is 2's complement without overflow,
86980         that there are no holes in integer values, that adding sizes of
86981         two nonoverlapping objects can't overflow, and that all-bits-zero
86982         yields scalar zero.  Fix spelling and capitalization typos.
86983
86984 2003-09-19  Karl Berry  <karl@gnu.org>
86985
86986         * lib/argp.h: update from libc.
86987
86988 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86989
86990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86991         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86992         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86993
86994 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86995
86996         * gnulib-tool: Use "test -h", not "test -L", for portability
86997         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86998         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86999         (sed_extract_prog): Issue s commands one-by-one, rather than
87000         using \| in one s command.
87001
87002 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87003
87004         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87005         input error, instead of returning NULL the next time we are called
87006         (and therefore losing track of errno).
87007
87008 2003-09-16  Bruno Haible  <bruno@clisp.org>
87009
87010         * gnulib-tool (func_create_testdir): Warn about duplicated
87011         dependencies.
87012
87013 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87014
87015         * modules/argmatch, modules/fatal, modules/obstack,
87016         modules/xalloc, modules/xgethostname: Sort dependencies by
87017         importance, not alphabetically.
87018
87019 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87020
87021         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87022         fails, so that the caller gets the proper errno.
87023
87024         * lib/readutmp.c (read_utmp): Likewise.
87025         Check for fstat error.  Close stream and free storage
87026         when failing.
87027
87028 2003-09-14  Karl Berry  <karl@gnu.org>
87029
87030         * config/srclist.txt (strdup.c): disable for c89 changes.
87031
87032 2003-09-14  Jim Meyering  <jim@meyering.net>
87033
87034         * lib/getloadavg.c: Correct cpp indentation.
87035         * lib/strdup.c: Likewise.
87036         * lib/vasnprintf.c: Likewise.
87037
87038 2003-09-14  Bruno Haible  <bruno@clisp.org>
87039
87040         * modules/fwriteerror: New file.
87041         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87042
87043 2003-09-14  Bruno Haible  <bruno@clisp.org>
87044
87045         * lib/fwriteerror.h: New file.
87046         * lib/fwriteerror.c: New file.
87047
87048 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87049
87050         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87051         modules/xgethostname, modules/xalloc: Depend on exit.
87052
87053 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87054
87055         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87056
87057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87058         and AC_MINIX, too, so that their extensions are available.
87059
87060         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87061         This macro has been superseded by gl_BACKUPFILE.
87062
87063         More patches to assume C89 or better.
87064
87065         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87066
87067         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87068         unconditionally.
87069         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87070         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87071         Include <string.h>, <stdlib.h> unconditionally.
87072         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87073         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87074         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87075         headers or for string.h.
87076         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87077         or strtoul.
87078
87079         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87080         headers.
87081         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87082         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87083         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87084         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87086         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87087         memcpy, memset.
87088         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87089         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87090         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87091         strtol.
87092         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87093         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87095         strtoul.
87096
87097 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87098
87099         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87100         * lib/obstack.c [!defined _LIBC]: Likewise.
87101         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87102         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87103         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87104
87105         More changes to assume C89 or better.
87106
87107         * lib/error.c (error_tail): Assume vprintf.
87108
87109         * lib/argmatch.c (getenv): Remove decl.
87110         * lib/progreloc.c (get_full_program_name): Define via prototype.
87111         * lib/setenv.c (clearenv): Likewise.
87112         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87113         needed.
87114         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87115         (malloc, memcpy): Remove decls.
87116         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87117         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87118         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87119         (memcpy): Remove macro.
87120         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87121         (__P): Remove.  All uses removed.
87122         (PTR): Remove.  All uses changed to void *.
87123         (CHAR_BIT, NULL): Remove.
87124         (spaces, zeros, memset_space, memset_zero)
87125         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87126         Remove.
87127         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87128         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87129         Define with prototype.
87130         Remove now-unnecessary prototype decl.
87131         (extra_args_spec): Assume ANSI C.  All uses changed.
87132         (extra_args_spec_iso): Remove.
87133         (my_strftime, emacs_strftimeu): Define via prototype.
87134         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87135         unconditionally.
87136         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87137         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87138         (strtoul, strtol): Remove decls.
87139         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87140         LONG_MAX): Remove.
87141         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87142         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87143         (LOCALE_PARAM_PROTO): New macro.
87144         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87145         (INTERNAL (strtol), strtol): Define with a prototype.
87146         (PARAMS): Remove.  All uses removed.
87147         * lib/tempname.c: Include <string.h> unconditionally.
87148         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87149         * lib/xgethostname.c (main): Define with a prototype.
87150         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87151         Include <stdlib.h> unconditionally.
87152         (calloc, malloc, realloc, free): Remove decls.
87153         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87154         Include <stdlib.h> unconditionally.  Sort include file names.
87155         (strtod): Remove.
87156         (xstrtod): Define with a prototype.
87157         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87158         (strtol, strtoul): Remove decls.
87159
87160 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87161
87162         More patches to assume C89 or better.
87163         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87164         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87165         string.h, memchr, STDC_HEADERS.
87166
87167 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87168
87169         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87170         Include <stdlib.h>, <string.h> unconditionally.
87171         Remove now-unnecessary cast to char *.
87172         * lib/strnlen.c: Include <string.h> unconditionally.
87173         * lib/yesno.c (yesno): Define with a prototype.
87174
87175 2003-09-11  Bruno Haible  <bruno@clisp.org>
87176
87177         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87178
87179 2003-09-10  Jim Meyering  <jim@meyering.net>
87180
87181         * lib/error.c: Correct indentation of cpp directives.
87182
87183 2003-09-10  Bruno Haible  <bruno@clisp.org>
87184
87185         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87186         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87187         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87188         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87189         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87190         <stdlib.h> and <string.h> checks.
87191         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87192         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87193
87194 2003-09-10  Bruno Haible  <bruno@clisp.org>
87195
87196         * lib/strcspn.c: Include <string.h> unconditionally.
87197         * lib/strpbrk.c: Include <string.h> unconditionally.
87198         * lib/strstr.c: Include <string.h> unconditionally.
87199         * lib/unicodeio.c: Include <string.h> unconditionally.
87200         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87201         * lib/unsetenv.c: Likewise.
87202         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87203         * lib/yesno.c: Include <stdlib.h> unconditionally.
87204         (rpmatch): Add prototype.
87205
87206 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87207
87208         More patches to assume C89 or better.
87209         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87210         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87211         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87212         or for string.h.
87213         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87214         stdlib.h.
87215         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87216         C headers.
87217         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87218         string.h.
87219         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87220         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87221         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87222         or for string.h.
87223         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87224         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87225         C headers.
87226         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87227         memcpy.
87228         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87229         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87230         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87231         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87232         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87233         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87234         string.h, free.
87235         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87236         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87237         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87238         C headers, or for string.h.
87239         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87240         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87241         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87242         headers, memory.h, stdlib.h, string.h, strings.h.
87243         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87244         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87245         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87246         strchr.
87247         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87248         headers, memory.h, string.h.
87249         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87250         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87251         free.
87252         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87253         headers.
87254         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87255         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87256         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87257         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87258         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87259
87260 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87261
87262         More K&R removal.
87263
87264         * lib/acosl.c (main): Use a prototype.
87265         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87266         tanl.c: Likewise.
87267
87268         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87269
87270         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87271         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87272         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87273         with a prototype.
87274         * lib/getopt.c (const): Remove macro.
87275         Include <string.h> unconditionally.
87276         (my_index): Remove; all uses changed to strchr.
87277         (strlen): Remove decl.
87278         (exchange): Remove forward decl; no longer needed.
87279         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87280         Define with prototype.
87281         * lib/getopt1.c (const): Remove macro.
87282         (getopt_long, getopt_long_only, main): Define with prototype.
87283
87284         * lib/getugroups.c: Include <string.h> unconditionally.
87285
87286         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87287         (getusershell, setusershell, endusershell, readname, main):
87288         Define with prototypes.
87289
87290         * lib/group-member.c: Include group-member.h first.
87291         Include <stdlib.h> unconditionally.
87292
87293         * lib/hard-locale.c: Include hard-locale.h first.
87294         Include <stdlib.h>, <string.h> unconditionally.
87295
87296         * lib/hash.c (free, malloc): Remove decls.
87297         Include <stdlib.h> unconditionally.
87298
87299         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87300         (getenv): Do not declare.
87301
87302         * lib/idcache.c: Include <string.h> unconditionally.
87303
87304         * lib/long-options.c: Include long-options.h first, to test interface.
87305         Include <stdlib.h> unconditionally.
87306
87307         * lib/makepath.c: Include makepath.h first, to test interface.
87308         Include <stdlib.h> and <string.h> unconditionally.
87309
87310         * lib/linebuffer.c: Include <stdlib.h>.
87311         (free): Remove decl.
87312
87313         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87314         stddef.h. rpl_malloc returns void *, not char *.
87315         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87316         prototype.
87317
87318         * lib/md5.h: Include <limits.h> unconditionally.
87319         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87320         (__P): Remove; all uses removed.
87321         * lib/md5.c: Include "md5.h" first.
87322         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87323         md5_buffer, md5_process_bytes, md5_process_block):
87324         Define with prototypes.
87325         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87326         * lib/sha.c: Include "sha.h" first.
87327         Include <stdlib.h>, <string.h> unconditionally.
87328
87329         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87330         * lib/memcmp.c (__ptr_t): Likewise.
87331         * lib/memrchr.c (__ptr_t): Likewise.
87332         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87333         Include <string.h> unconditionally.
87334         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87335         * lib/memchr.c: Include <stdlib.h> unconditionally.
87336         * lib/memchr.c (LONG_MAX): Remove.
87337         * lib/memrchr.c (LONG_MAX): Likewise.
87338         * lib/memchr.c (__memchr): Define via a prototype.
87339         * lib/memrchr.c (__memrchr): Likewise.
87340         * lib/memcmp.c (__P): Remove, and remove all uses.
87341         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87342         Remove forward decls; no longer needed.
87343         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87344         Use types required by C89 in prototype.
87345
87346         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87347         * lib/savedir.c: Likewise.
87348         * lib/mkdir.c (free): Remove decl.
87349         * lib/rmdir.c (rmdir): Define with a prototype.
87350         * lib/savedir.c: Include savedir.h first, to test interface.
87351
87352         * lib/mktime.c (STDC_HEADERS): Remove.
87353         Include <stdlib.h>, <string.h> unconditionally.
87354
87355         * lib/modechange.c: Include <stdlib.h> unconditionally.
87356         (malloc): Remove decl.
87357
87358         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87359         (free): Remove decl.
87360
87361         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87362         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87363         (This type really should be intptr_t, but that's a C99ism.)
87364         (_obstack_memcpy): Remove: all uses changed to memcpy.
87365         Include <string.h> unconditionally.
87366         (struct obstack): Assume __STDC__ for types of members
87367         chunkfun, freefun, extra_arg.
87368         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87369         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87370         obstack_begin, obstack_specify_allocation,
87371         obstack_specify_allocation_with_arg, obstack_chunkfun,
87372         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87373         Remove unprototyped decls and the macros that use them.
87374         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87375         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87376         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87377         (defined __STDC__ && __STDC__)]:
87378         Remove nonprototyped code.
87379         Include <stdlib.h> unconditionally.
87380         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87381         _obstack_allocated_p, _obstack_free, obstack_free,
87382         _obstack_memory_used, print_and_abort):
87383         Define using prototypes.
87384         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87385         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87386         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87387         obstack_next_free, obstack_object_size, obstack_room) [0]:
87388         Remove unused, unprototyped code.
87389
87390         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87391
87392         * lib/physmem.c (physmem_total, physmem_available, main): Define
87393         with prototypes.
87394
87395         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87396         (main): Define with a prototype.
87397
87398         * lib/posixver.c (getenv): Remove decl.
87399
87400         * lib/putenv.c (malloc): Returns void *, not char *.
87401         Include <string.h> unconditionally.
87402         (strchr, memcpy, NULL): Do not define.
87403
87404         * lib/readtokens.c: Include readtokens.h first, to test interface.
87405         Include <stdlib.h>, <string.h> unconditionally.
87406         (init_tokenbuffer): Define with a prototype.
87407
87408         * lib/regex.c (PARAMS): Remove.  All uses removed.
87409         All uses of _RE_ARGS removed, too.
87410         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87411         unconditionally.
87412         (bzero): Assume memset exists.
87413         (memcmp, memcpy, NULL): Remove.
87414         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87415         char, or assignments to local vars of type signed char.
87416         (init_syntax_once, PREFIX(extract_number_and_incr),
87417         PREFIX(print_partial_compiled_pattern),
87418         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87419         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87420         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87421         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87422         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87423         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87424         wcs_compile_range, byte_compile_range, truncate_wchar,
87425         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87426         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87427         count_mbs_length, wcs_re_match_2_internal,
87428         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87429         PREFIX(alt_match_null_string_p),
87430         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87431         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87432         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87433         now-unnecessary declaration, if any.
87434         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87435         regcomp, regexec):
87436         Remove now-unnecessary casts among pointer types.
87437         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87438
87439         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87440         (free): Remove decl.
87441
87442         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87443
87444         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87445         (free): Remove decl.
87446
87447         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87448         * lib/xgetcwd.c: Likewise.
87449
87450         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87451         (free): Remove decl.
87452
87453         * lib/strchrnul.c (strchrnul): Define with a prototype.
87454         Fix bug: c_in was not converted to char before searching.
87455
87456         The following changes are not K&R related:
87457
87458         * lib/group-member.h: Include <sys/types.h>, so that this file is
87459         self-contained.
87460         * lib/makepath.h: Likewise.
87461
87462         * lib/getusershell.c (readname, default_index, line_size, readname):
87463         Use size_t, not int, for sizes.
87464         (readname): If the size overflows, report an error instead of
87465         looping forever.
87466
87467 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87468
87469         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87470         libc.
87471
87472 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87473
87474         * README: New section: portability guidelines.
87475
87476 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87477
87478         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87479         C89 spec.
87480
87481 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87482
87483         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87484
87485 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87486
87487         Assume C89 or better; remove K&R cruft.
87488         A few of these changes were first proposed by Derek Robert Price
87489         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87490
87491         * lib/addext.c: Include <string.h> unconditionally.
87492         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87493         Don't declare getenv or malloc.
87494
87495         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87496         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87497         (NULL): Remove.
87498         (find_stack_direction, alloca): Use prototypes.
87499
87500         * lib/atexit.c (atexit): Define using a prototype.
87501
87502         * lib/basename.c, dirname.c, stripslash.c:
87503         Include <string.h> unconditionally.
87504
87505         * lib/bcopy.c: Include <stddef.h>.
87506         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87507
87508         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87509
87510         * lib/error.h (error, error_at_line, error_print_progname)
87511         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87512         * lib/error.c: Include error.h first, to check interface.
87513         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87514         (VA_START): Remove; all uses changeed to va_start.
87515         (exit, strerror): Remove decls.
87516         (error_print_progname): Prototype uncondionally.
87517         Don't include <errno.h>; no longer needed.
87518         (private_strerror): Remove.
87519         (error_tail): Always define.
87520         (error, error_at_line): Assume C89 or better; always use prototypes.
87521         * lib/fatal.c: Include "fatal.h" first, to test interface.
87522         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87523         (VA_START): Remove; all uses changed to va_start.
87524         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87525         this case.
87526         (exit): Remove decl.
87527         (fatal): Prototype unconditionally.  Assume va_start works.
87528         Abort at end, to pacify gcc.
87529
87530         * lib/euidaccess.c (main): Define with a prototype.
87531
87532         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87533
87534         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87535
87536         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87537         prototypes.
87538         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87539         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87540         (getenv): Remove decl.
87541         (fnmatch): Define using a prototype.
87542         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87543         (FCT): Define using a prototype.
87544
87545         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87546
87547         * lib/gethostname.c: Include <stddef.h>.
87548         (gethostname): Define with prototype.  Length is size_t, not int.
87549
87550 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87551
87552         Assume C89 or better; remove K&R cruft.
87553         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87554         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87555         string.h, getenv, malloc.
87556         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87557         headers.
87558         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87559         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87560         do not check for strerror.
87561         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87562         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87563         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87564         do not check for doprnt or vprintf.
87565         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87566         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87567
87568 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87569
87570         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87571         getversion.c should have been removed then, but was accidentally
87572         preserved.
87573
87574         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87575         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87576
87577 2003-09-08  Karl Berry  <karl@gnu.org>
87578
87579         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87580                 config, forget about prep.
87581
87582         * config/depcomp, missing: update from automake.
87583
87584 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87585
87586         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87587         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87588
87589 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87590
87591         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87592         copy_tm_result.  Bug reported by Simon Josefsson in
87593         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87594
87595 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87596
87597         * m4/time_r.m4: New file.
87598         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87599         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87600         is. Check for timegm declaration.
87601         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87602         Do not check for gmtime_r.
87603         Replace mktime if __mktime_internal does not exist and if mktime
87604         hasn't been replaced already.
87605
87606 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87607
87608         * lib/time_r.c, lib/time_r.h: New files.
87609
87610         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87611         __localtime_r.
87612         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87613         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87614
87615         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87616         __gmtime_r.
87617         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87618         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87619         Include <time_r.h>.
87620
87621         * lib/timegm.c: Switch to glibc implementation, with the following
87622         changes:
87623         [defined HAVE_CONFIG_H]: Include <config.h>.
87624         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87625         (__mktime_internal) [!defined _LIBC]: New decl.
87626         (__gmtime_r) [!defined _LIBC]: New macro and function.
87627         (timegm): Use a prototype, since gnulib assumes C89.
87628         Do not bother declaring tmp to be const, as it's not really usefu.
87629         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87630         (timegm): Declare only if HAVE_DECL_TIMEGM.
87631
87632 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87633
87634         * MODULES.html.sh (func_all_modules): Add time_r.
87635         * modules/time_r: New file.
87636         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87637         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87638
87639 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87640
87641         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87642         Bug reported by Lute Kamstra in
87643         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87644
87645         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87646         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87647         course with correspondingly smaller numbers for tomorrow and
87648         yesterday.  From Tadayoshi Funaba.  Originally installed into
87649         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87650         coreutils merge?).
87651
87652 2003-08-31  Simon Josefsson  <jas@extundo.com>
87653
87654         * modules/timegm: New file.
87655         * MODULES.html.sh (func_all_modules): Add timegm.
87656
87657 2003-08-31  Simon Josefsson  <jas@extundo.com>
87658
87659         * m4/timegm.m4: New file.
87660
87661 2003-08-31  Simon Josefsson  <jas@extundo.com>
87662
87663         * lib/timegm.h: New file.
87664         * lib/timegm.c: New file.  Based on
87665         wget-1.8.2/src/http.c:mktime_from_utc.
87666
87667 2003-08-31  Karl Berry  <karl@gnu.org>
87668
87669         * lib/argp.h: update from libc.
87670
87671 2003-08-28  Bruno Haible  <bruno@clisp.org>
87672
87673         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87674         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87675         followed by '#define fnmatch fnmatch_posix' gives an error.
87676
87677 2003-08-28  Bruno Haible  <bruno@clisp.org>
87678
87679         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87680         warning on QNX, which defines O_BINARY to 000000.
87681
87682 2003-08-27  Jim Meyering  <jim@meyering.net>
87683
87684         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87685         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87686         would fail after 32.  Reported by Danny Levinson.  Details here:
87687         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87688
87689 2003-08-24  Bruno Haible  <bruno@clisp.org>
87690
87691         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87692         MSVC7 <stdio.h> is included later.
87693
87694 2003-08-22  Simon Josefsson  <jas@extundo.com>
87695
87696         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87697
87698 2003-08-20  Karl Berry  <karl@gnu.org>
87699
87700         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87701
87702 2003-08-20  Bruno Haible  <bruno@clisp.org>
87703
87704         * modules/progname: New file.
87705         * MODULES.html.sh (func_all_modules): Add progname.
87706
87707 2003-08-20  Bruno Haible  <bruno@clisp.org>
87708
87709         * lib/progname.h: New file, from GNU gettext.
87710         * lib/progname.c: New file, from GNU gettext.
87711         * lib/progreloc.c: New file, from GNU gettext.
87712
87713 2003-08-19  Jim Meyering  <jim@meyering.net>
87714
87715         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87716         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87717
87718 2003-08-19  Bruno Haible  <bruno@clisp.org>
87719
87720         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87721         more.
87722
87723 2003-08-19  Bruno Haible  <bruno@clisp.org>
87724
87725         * lib/xstrdup.c: Assume <string.h> exists.
87726
87727 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87728
87729         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87730         in makefile rules.
87731
87732 2003-08-18  Jim Meyering  <jim@meyering.net>
87733
87734         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87735         * m4/lib-ld.m4: Likewise.
87736
87737 2003-08-18  Jim Meyering  <jim@meyering.net>
87738
87739         * lib/setenv.h: Indent nested cpp directive.
87740         * lib/vasnprintf.c: Remove trailing blanks.
87741
87742 2003-08-17  Simon Josefsson  <jas@extundo.com>
87743
87744         * modules/xstrndup: New file.
87745         * MODULES.html.sh (func_all_modules): Add xstrndup.
87746
87747 2003-08-17  Simon Josefsson  <jas@extundo.com>
87748
87749         * modules/argp: Fix autoconf macro name. Add more dependencies.
87750
87751 2003-08-17  Simon Josefsson  <jas@extundo.com>
87752
87753         * m4/xstrndup.m4: New file.
87754
87755 2003-08-17  Simon Josefsson  <jas@extundo.com>
87756
87757         * m4/argp.m4: New file.
87758
87759 2003-08-17  Simon Josefsson  <jas@extundo.com>
87760             Bruno Haible  <bruno@clisp.org>
87761
87762         * lib/xstrndup.h: New file.
87763         * lib/xstrndup.c: New file.
87764
87765 2003-08-17  Bruno Haible  <bruno@clisp.org>
87766
87767         * modules/strndup (Files, Include): Add lib/strndup.h.
87768
87769 2003-08-17  Bruno Haible  <bruno@clisp.org>
87770
87771         * modules/euidaccess (Files): Add lib/euidaccess.h.
87772
87773 2003-08-17  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/strndup.h: New file.
87776
87777 2003-08-17  Bruno Haible  <bruno@clisp.org>
87778
87779         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87780         like AC_GNU_SOURCE.
87781         * modules/extensions (configure.ac): Comment out the invocation of
87782         gl_USE_SYSTEM_EXTENSIONS.
87783
87784 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87785
87786         Merges from coreutils, etc.
87787         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87788         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87789         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87790         fixing a typo.
87791         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87792         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87793
87794 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87795
87796         Document merge from coreutils.
87797         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87798         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87799         * modules/utime: Add m4/utimes-null.m4.
87800
87801 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87802
87803         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87804         space, undoing this 2003-08-12 change:
87805         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87806
87807 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87808
87809         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87810         strtoul.c from libc, undoing this 2003-08-12 change:
87811         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87812
87813 2003-08-16  Jim Meyering  <jim@meyering.net>
87814
87815         Merges from coreutils.
87816         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87817         prefix.  Adjust cache variables similarly.  Create 500 rather than
87818         just 300 files, to exercise bug on Darwin6.5, too.
87819         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87820         $missing_dir.
87821         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87822         AM_SYS_POSIX_TERMIOS.
87823         Reported by mkc@mathdogs.com.
87824         Also change use of $am_cv_sys_posix_termios
87825         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87826         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87827         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87828         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87829         in /proc/mounts until it finds one with matching device number.  This
87830         is unnecessary when the FILE argument *is* a mount point.  No stat call
87831         is necessary in that case.  So, disable the statvfs-testing code on
87832         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87833         as RedHat bug# 84846.
87834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87835         to 1MB, so as not to render systems with no stack size limit (e.g.,
87836         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87837         Include <unistd.h>.  On some systems,
87838         it is required for the definition of _SC_PAGESIZE.
87839
87840 2003-08-16  Jim Meyering  <jim@meyering.net>
87841
87842         Merge from coreutils.
87843         * lib/xstrtoimax.c: #else #if -> #elif.
87844         * lib/xstrtoumax.c: Likewise.
87845
87846 2003-08-16  Jim Meyering  <jim@meyering.net>
87847
87848         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87849         * m4/utimes.m4: Removed.
87850         * m4/utimes-null.m4: Renamed from utimes.m4.
87851
87852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87853         to 1MB, so as not to render systems with no stack size limit (e.g.,
87854         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87855         Include <unistd.h>.  On some systems,
87856         it is required for the definition of _SC_PAGESIZE.
87857
87858 2003-08-16  Jim Meyering  <jim@meyering.net>
87859         and Paul Eggert  <eggert@cs.ucla.edu>
87860
87861         Merges from coreutils, etc.
87862
87863         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87864         using the latest version from cvs.  This avoids problems with #line
87865         directives using a vendor (Sun) compiler.
87866         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87867         Don't set GETGROUPS_LIB here; now it's
87868         done via getgroups.m4's wrapper function.
87869         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87870         rather than just in sh-util/configure.in, so that the
87871         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87872         same.
87873         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87874         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87875         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87876         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87877         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87878         Remove code that is now done by the newly-required macros.
87879         Append $(EXEEXT) to DF_PROG.
87880         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87881         Do not invoke or require the following here,
87882         since prereq.m4 or some gnulib .m4 now does this for us:
87883         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87884         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87885         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87886         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87887         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87888         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87889         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87890         AC_FUNC_OBSTACK.
87891         Do not replace the following functions, as this is now the job
87892         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87893         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87894         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87895         atexit getpass, strdup, getpagesize.
87896         Replace 'raise'.
87897         Do not check for the following functions, as this is now the job
87898         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87899         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87900         setregid.
87901         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87902         Check for sys/sysctl.h.
87903         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87904         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87905         of checking for ssize_t ourselves.
87906
87907         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87908         Require every macro that gnulib/modules/* suggests for us.
87909         (jm_PREREQ_ADDEXT): New macro.
87910         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87911         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87912
87913         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87914         (gl_PHYSMEM): Use it.
87915         Also check for `table' function.
87916         Check for new headers and functions.
87917         Add check for sys/sysmp.h.
87918         With suggestions from Kaveh Ghazi.
87919         Ignore headers that are present but cannot be compiled.  This
87920         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87921         C 5.4.
87922
87923 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87924
87925         Document merge from coreutils.
87926         * modules/userspec: Depend on posixver.
87927         * modules/strftime: Depend on tzset.
87928
87929 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87930
87931         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87932         rather than tab, after '#' in shell-script copyright notices.
87933         Suggested by Bruno Haible.
87934
87935 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87936
87937         * config/srclist-update: Use three spaces, rather than tab, after '#'
87938         in shell-script copyright notices.  Suggested by Bruno Haible.
87939         Remove unnecessary parenthesization in regular expression.
87940
87941 2003-08-15  Jim Meyering  <jim@meyering.net>
87942
87943         Merge from coreutils.
87944         * lib/xgethostname.c: Include <stdlib.h>.
87945         (xghostname): Don't exit for anything other than memory-related
87946         failure; just return NULL.
87947         * lib/userspec.c: Include "posixver.h".
87948         (parse_user_spec): Accept `.' as a separator only
87949         in pre-POSIX-200112 mode.
87950         * lib/strtoimax.c: Use #elif rather than #else #if.
87951         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87952         Remove function, now that we can rely on a working tzset function.
87953         [!_LIBC]: Ensure that the required autoconf test has been run.
87954         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87955         Use underlying_strftime for %r.
87956         * lib/sha.c: Merge in some clean-up and optimization changes from
87957         glibc.
87958         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87959         Ensure that it is a multiple of 64.
87960         Rearrange loop exit tests so as to avoid performing an
87961         additional fread after encountering an error or EOF.
87962         * lib/realloc.c: Update copyright date.
87963
87964 2003-08-15  Jim Meyering  <jim@meyering.net>
87965         and Paul Eggert  <eggert@twinsun.com>
87966
87967         Merge from coreutils.
87968         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87969         member but strut utmpx does not.  Needed for AIX 4.3.3.
87970         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87971
87972 2003-08-15  Jim Meyering  <jim@meyering.net>
87973         and Paul Eggert  <eggert@cs.ucla.edu>
87974
87975         Merges from coreutils, etc.
87976         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87977         Require gl_FUNC_TZSET_CLOBBER.
87978         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87979         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87980         members.
87981
87982 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87983
87984         Help the merge from coreutils.
87985         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87986         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87987         * m4/tzset.m4: Use it too.
87988
87989 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87990
87991         * modules/tzset: New file.
87992
87993 2003-08-14  Jim Meyering  <jim@meyering.net>
87994
87995         Merges from coreutils.
87996         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87997         variable names, rather than @FNMATCH_H@.
87998         * modules/alloca: Likewise for $(ALLOCA_H).
87999
88000         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88001         the three copies of the literal target, `fnmatch.h'.
88002         * modules/alloca (alloca.h): Likewise.
88003
88004 2003-08-14  Jim Meyering  <jim@meyering.net>
88005
88006         Merge from coreutils.
88007         * m4/tzset.m4: New file.
88008         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88009         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88010         otherwise, AIX 5.1 systems would end up using the latter.
88011         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88012         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88013         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88014         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88015
88016 2003-08-14  Jim Meyering  <jim@meyering.net>
88017
88018         Merge from coreutils.
88019         * lib/obstack.h: Whitespace changes.
88020         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88021         and xcalloc return values.
88022         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88023         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88024         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88025         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88026         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88027         error from mntctl.
88028         Use mntctl's return value to drive the entry-processing loop, since
88029         we can't rely on the value of the vmt_length member in the last
88030         entry.  On some systems doing so could result in exhausting
88031         virtual memory.  Based in part on a patch from Mike Jetzer.
88032
88033 2003-08-14  Jim Meyering  <jim@meyering.net>
88034         and Paul Eggert  <eggert@twinsun.com>
88035
88036         Merges from coreutils, plus other fixes.
88037         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88038         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88039         for credits and details.  Thanks to Kaveh Ghazi for helping
88040         to keep these files in sync.
88041         (ARRAY_SIZE): Define it.
88042         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88043         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88044         (memcasecmp): Don't assume size_t fits in unsigned int.
88045         Remove casts and duplicate code.
88046         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88047         (memcpy): Remove definition.
88048         Merge in some clean-up and optimization changes from glibc.
88049         [BLOCKSIZE]: Move definition to top of file.
88050         Ensure that it is a multiple of 64.
88051         Rearrange loop exit tests so as to avoid performing an
88052         additional fread after encountering an error or EOF.
88053         * lib/md5.h (md5_uintptr): Define.
88054         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88055         return to the initial working directory.  Preserve errno
88056         for caller.
88057         * lib/idcache.c: Include "xalloc.h".
88058         (xmalloc, xrealloc): Remove decls.
88059         (getuser): Remove casts no longer required in C89.
88060         * lib/human.c: Include stdio.h, for sprintf.
88061         * lib/group-member.c: Include "xalloc.h".
88062         (xmalloc, xrealloc): Remove decls.
88063         (get_group_info): Remove casts no longer required in C89.
88064         * lib/getusershell.c (readname): Remove casts no longer required in
88065         C89.
88066         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88067         * lib/getline.c: Whitespace fix, from coreutils.
88068
88069 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88070
88071         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88072         Check for isascii.
88073
88074         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88075         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88076         Undo previous (whitespace-only) change.
88077
88078 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88079
88080         * lib/exclude.c: Include <ctype.h>
88081         (IN_CTYPE_DOMAIN): New macro.
88082         (is_space): New fn.
88083         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88084         and empty lines.
88085
88086         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88087         Undo previous (whitespace-only) change.
88088
88089 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88090
88091         * config/srclist-update: Change update back to the old behavior,
88092         leaving whitespace alone.  Use one 'sed' command rather than a
88093         pipeline.
88094         (fixlicense): Now a variable, not a function.
88095         (remove_trailing_blanks): Remove.
88096         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88097         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88098         Undo previous (whitespace-only) change.
88099
88100 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88101
88102         Merge from coreutils.
88103         * modules/euidaccess: Add lib_SOURCES, include for new
88104         file euidaccess.h
88105
88106 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88107
88108         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88109         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88110         Normalize leading white space and remove trailing white space.
88111
88112         Merge from coreutils
88113         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88114
88115         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88116         0.12.1.  These files are now being upgraded automatically by
88117         ../config/srclist-update.
88118
88119 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88120
88121         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88122         Normalize leading white space and remove trailing white space.
88123         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88124         notice, as per ../config/srclist-update.
88125
88126         Merge from coreutils.
88127         * lib/euidaccess.h: New file.
88128         * lib/euidaccess.c: Include it.
88129         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88130         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88131         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88132
88133 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88134
88135         * config/srclist-update: Add copyright notice.
88136         (remove_id_lines, remove_trailing_blanks): New constants.
88137         (fixfile): Use them to normalize spacing a bit in copied files.
88138         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88139         Normalize leading white space and remove trailing white space.
88140
88141         * config/texinfo.tex: Sync with texinfo.
88142
88143         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88144         strtoul.c from libc, to merge coreutils whitespace changes.
88145
88146         * config/srclist.txt: Get the following m4 files from gettext:
88147         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88148         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88149         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88150         wint_t.m4.
88151
88152 2003-08-12  Karl Berry  <karl@gnu.org>
88153
88154         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88155         been made.
88156
88157 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88158
88159         * modules/gnu-source, m4/gnu-source.m4:
88160         Remove; we're assuming Autoconf 2.54 or later now.
88161         Suggested by Bruno Haible.
88162         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88163
88164 2003-08-11  Bruno Haible  <bruno@clisp.org>
88165
88166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88167
88168 2003-08-11  Bruno Haible  <bruno@clisp.org>
88169
88170         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88171         (vasnprintf): Use it instead of wcslen.
88172
88173 2003-08-11  Bruno Haible  <bruno@clisp.org>
88174
88175         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88176         value to ensure that _Bool promotes to int. Use #define for _Bool when
88177         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88178
88179 2003-08-10  Karl Berry  <karl@gnu.org>
88180
88181         * lib/regex.h: update from libc (whitespace fix).
88182
88183 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88184
88185         Merge some files from coreutils.  These changes were
88186         originally made by Jim Meyering.
88187         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88188         many older Unixes require this.
88189         * lib/alloca.c (alloca): Remove cast to argument of free;
88190         no longer needed in C89.
88191         * lib/alloca_.h, regex.h: Fix white space to match
88192         what GNU indent does.
88193
88194 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88195
88196         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88197         apparently Emacs's Unicode mode got confused before my 2003-08-05
88198         checkin.
88199
88200 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88201
88202         * m4/extensions.m4: New file.
88203         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88204         Require gl_USE_SYSTEM_EXTENSIONS.
88205         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88206         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88207
88208 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88209
88210         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88211         * modules/extensions, modules/gnu-source: New files.
88212         * modules/timespec, modules/unlocked-io: Depend on extensions.
88213
88214 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88215
88216         * modules/restrict: New file.
88217         * MODULES.html.sh (func_all_modules): Add restrict.
88218         * modules/regex: Depend on restrict.
88219
88220 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88221
88222         * m4/restrict.m4: New file.
88223         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88224
88225 2003-08-07  Bruno Haible  <bruno@clisp.org>
88226
88227         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88228         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88229
88230 2003-08-07  Bruno Haible  <bruno@clisp.org>
88231
88232         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88233         makes the module 'getndelim2' compatible with the module 'getline'.
88234
88235 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88236
88237         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88238         byte with "\201" to avoid glitches when editing that source file
88239         with multi-gnome-terminal.
88240
88241 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88242
88243         * lib/bumpalloc.h: Remove.
88244
88245 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88246
88247         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88248         * modules/bumpalloc: Remove.
88249
88250 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88251
88252         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88253         GNU coding style.
88254
88255         Merge from coreutils.
88256         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88257         1. From glibc.
88258         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88259         from Karl Berry, implemented by Jim Meyering.
88260         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88261         from Dmitry V. Levin.
88262         Remove anachronistic cast of xrealloc.
88263         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88264         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88265         type. Otherwise, it wouldn't compile with at least /bin/cc on
88266         ymp-cray-unicos9.0.2.X.
88267         Combine two mostly-identical uses of alloca into one.
88268         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88269
88270 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88271
88272         [From Emacs.]
88273
88274         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88275         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88276         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88277         obsolete NLIST_NAME_UNION.
88278         [__GNU__]: Undef BSD and FSCALE.
88279         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88280
88281 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88282
88283         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88284         an enum type, so that it's guaranteed to promote to int.  See:
88285         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88286
88287 2003-08-03  Karl Berry  <karl@gnu.org>
88288
88289         * config/depcomp: update from automake.
88290
88291 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88292
88293         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88294         (strerror): Don't assume that a printable int fits in 14 bytes.
88295
88296 2003-07-31  Bruno Haible  <bruno@clisp.org>
88297
88298         * modules/getpass-gnu: New file.
88299         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88300
88301 2003-07-31  Bruno Haible  <bruno@clisp.org>
88302
88303         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88304
88305 2003-07-24  Karl Berry  <karl@gnu.org>
88306
88307         * config/missing: update from automake.
88308
88309 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88310             Bruno Haible  <bruno@clisp.org>
88311
88312         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88313         * lib/getline.c (getline, getdelim): Likewise.
88314         Remove _GNU_SOURCE define; now it's defined in config.h through
88315         m4/getline.m4.
88316
88317 2003-07-23  Karl Berry  <karl@gnu.org>
88318
88319         * config/config.sub: update from prep.
88320
88321 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88322
88323         * modules/xalloc (Depends-on): Add exitfail.
88324         * modules/xmemcoll: Likewise.
88325
88326 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88327
88328         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88329         over-parenthesization in macros.
88330
88331         Sync with coreutils.
88332
88333         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88334         required by C99.
88335
88336         Use `exit_failure' for xalloc and xmemcoll instead of their own
88337         private exit-failure variables.
88338         * lib/xalloc.h (xalloc_exit_failure): Remove.
88339         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88340         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88341         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88342         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88343         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88344
88345 2003-07-20  Jim Meyering  <jim@meyering.net>
88346
88347         * modules/closeout (Depends-on): Add exitfail.
88348         Suggestion from Bruno Haible.
88349
88350 2003-07-19  Karl Berry  <karl@gnu.org>
88351
88352         * config/config.sub: update from prep.
88353
88354 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88355
88356         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88357         Remove.
88358         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88359         to test that it can stand by itself.  Include "exitfail.h".
88360         Clients should set exit_failure instead.
88361         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88362
88363 2003-07-18  Bruno Haible  <bruno@clisp.org>
88364
88365         * modules/getndelim2: New file.
88366         * modules/getline: Share files with module getndelim2.
88367         * modules/getnline: Depend on getndelim2 instead of sharing files with
88368         it. Add getnline.c to lib_SOURCES.
88369         * MODULES.html.sh (func_all_modules): Add getndelim2.
88370
88371 2003-07-18  Bruno Haible  <bruno@clisp.org>
88372
88373         * m4/getndelim2.m4: New file.
88374         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88375         invoke gl_PREREQ_GETNDELIM2.
88376         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88377         gl_PREREQ_GETNDELIM2.
88378         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88379         gl_GETNDELIM2.
88380
88381 2003-07-18  Bruno Haible  <bruno@clisp.org>
88382
88383         * lib/getndelim2.h: New file.
88384         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88385         getndelim2.h.
88386         (getndelim2): Make non-static. Change return type to ssize_t.
88387         * lib/getline.h: Change argument names.
88388         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88389         * lib/getnline.c: Include getndelim2.h.
88390
88391 2003-07-18  Andreas Schwab  <schwab@suse.de>
88392
88393         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88394
88395 2003-07-17  Karl Berry  <karl@gnu.org>
88396
88397         * config/config.sub: update from prep.
88398
88399 2003-07-17  Bruno Haible  <bruno@clisp.org>
88400
88401         * modules/getnline: New file.
88402         * modules/getline: Add lib/getndelim2.c to source file list.
88403         * MODULES.html.sh (func_all_modules): Add getnline.
88404
88405 2003-07-17  Bruno Haible  <bruno@clisp.org>
88406
88407         * m4/getnline.m4: New file.
88408
88409 2003-07-17  Bruno Haible  <bruno@clisp.org>
88410
88411         * m4/Makefile.am.in: Remove file.
88412         * m4/Makefile.am: Remove file.
88413         * m4/Makefile.in: Remove file.
88414
88415 2003-07-17  Bruno Haible  <bruno@clisp.org>
88416
88417         * lib/getnline.h: New file.
88418         * lib/getnline.c: New file.
88419         * lib/getndelim2.c: New file, extracted from getline.c.
88420         (getndelim2): Renamed from getdelim2, with added nmax argument.
88421         * lib/getline.c: Include getndelim2.c.
88422         (getdelim2): Moved out to getndelim2.c.
88423         (getline, getdelim): Update.
88424
88425 2003-07-17  Bruno Haible  <bruno@clisp.org>
88426
88427         * lib/Makefile.am: Remove file.
88428         * lib/Makefile.in: Remove file.
88429
88430 2003-07-17  Bruno Haible  <bruno@clisp.org>
88431
88432         * configure.in: Remove file.
88433         * Makefile.in: Remove file.
88434
88435 2003-07-17  Bruno Haible  <bruno@clisp.org>
88436
88437         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88438
88439 2003-07-16  Karl Berry  <karl@gnu.org>
88440
88441         * config/srclist-update: was running fixlicense twice, which caused
88442                 texinfo.tex to be nullified for some reason.  Simplify,
88443                 $gplsrc is no longer needed as far as I can see?
88444
88445 2003-07-16  Jim Meyering  <jim@meyering.net>
88446
88447         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88448
88449 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88450
88451         * config/srclist.txt: Get the following files from gettext-runtime/intl
88452         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88453         ref-del.sin.  From Bruno Haible.
88454         * config/srclist-update (fixfile): Change grep pattern again, since the
88455         previous fix didn't work (there was another trailing $).  Use
88456         '[$]' to escape the $s.
88457
88458 2003-07-15  Karl Berry  <karl@gnu.org>
88459
88460         * lib/vasnprintf.c: update from gettext.
88461
88462 2003-07-15  Karl Berry  <karl@gnu.org>
88463
88464         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88465         gets expanded when surrounded by '$'.
88466
88467 2003-07-15  Jim Meyering  <jim@meyering.net>
88468
88469         * modules/save-cwd: Don't depend on error.  From Derek Price.
88470
88471 2003-07-15  Jim Meyering  <jim@meyering.net>
88472
88473         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88474
88475 2003-07-14  Simon Josefsson  <jas@extundo.com>
88476
88477         * modules/mempcpy: New file.
88478         * MODULES.html.sh (func_all_modules): Add mempcpy.
88479
88480 2003-07-14  Simon Josefsson  <jas@extundo.com>
88481
88482         * m4/mempcpy.m4: New file.
88483
88484 2003-07-14  Simon Josefsson  <jas@extundo.com>
88485
88486         * lib/mempcpy.h: New file.
88487         * lib/mempcpy.c: New file.
88488
88489 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88490
88491         * modules/getdate, modules/posixtm: Depend on mktime.
88492
88493 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88494
88495         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88496         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88497         unicodeio.c, unicodeio.h, unlocked-io.h:
88498         Switch from LGPL to GPL.
88499
88500 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88501
88502         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88503         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88504         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88505         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88506         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88507         updated automatically by ../config/srclist-update.  This changes
88508         their license from LPGL to GPL.
88509
88510 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88511
88512         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88513         assumed to refer to the root of the most recent stable gettext version.
88514         * config/srclistvars.sh: Add defaults for eggert.
88515         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88516         Match "This program" as well as "The program".  This is needed
88517         for gettext.
88518
88519 2003-07-14  Jim Meyering  <jim@meyering.net>
88520
88521         Don't emit diagnostics.  Let callers do that.
88522         * lib/save-cwd.c: Don't include "error.h".
88523         (save_cwd): Don't call error.  Ensure that errno is valid
88524         when returning nonzero.
88525
88526         * lib/save-cwd.h (restore_cwd): Update prototype.
88527         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88528         Simplify.  Don't call error upon failure.  Let callers do that.
88529         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88530         when auditing is enabled.  But don't bother updating the #if.
88531
88532 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88533
88534         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88535         it breaks C++ compilation.
88536         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88537
88538 2003-07-10  Simon Josefsson  <jas@extundo.com>
88539
88540         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88541
88542 2003-07-10  Jim Meyering  <jim@meyering.net>
88543
88544         * m4/clock_time.m4: Remove trailing blank.
88545         * m4/intmax_t.m4: Likewise.
88546
88547 2003-07-10  Jim Meyering  <jim@meyering.net>
88548
88549         * lib/vasnprintf.c: Remove trailing blanks.
88550         Make cpp indentation consistent.
88551
88552 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88553
88554         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88555         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88556         Switch from LGPL to GPL.
88557
88558 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88559
88560         * config/srclist.txt: Sort sublists.  Add
88561         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88562         that differ from gnulib for one reason or another; we'd like this list
88563         to be smaller but for now let's document what we have.
88564
88565 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88566
88567         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88568         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88569         and sweeter "eval x=$x".
88570         * config/srclist.txt: Get lib/argp* from glibc.
88571
88572 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88573
88574         * lib/mktime.c: Fix some boundary cases and remove need for floating
88575         point.
88576
88577         Issue a compile-time diagnostic if time_t is floating point, or if
88578         two's complement arithmetic is not in effect, or if arithmetic
88579         right shift does not propagate the sign.  These assumptions were
88580         all in the original code but they weren't checked.
88581
88582         (TIME_T_MIDPOINT, verify): New macros.
88583         (__isleap): Remove; it has integer overflow problems.
88584         (leapyear): New function, without those problems.
88585         (ydhms_tm_diff): Remove; splitting into two parts.
88586         (ydhms_diff): New function, containing the arithmetic part of
88587         the old ydhms_tm_diff function.  Issue a compile-time
88588         diagnostic if we are not using C99 integer division.
88589         Avoid casts when possible.
88590         (guess_time_tm): New function, containing the checking part of
88591         the old ydhms_tm_diff function.  Return the new value, rather than
88592         the difference between it and the old.  Accept a new argument T
88593         so that *T specifies the old value.  Check for overflow in the result.
88594
88595         (__mktime_internal): Use a time_t offset, not a long int offset.
88596         This undoes the 2003-06-04 change, which is no longer needed now
88597         that we have better overflow checking.
88598         (localtime_offset): Likewise.
88599
88600         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88601         and long are 64-bit but int is only 32-bit.
88602         (ydhms_diff): Use long int to store year1 and yday1.
88603         Issue a compile-time diagnostic if long int is not wide enough.
88604
88605         (__mktime_internal): Use long int to store adjusted year and yday.
88606         Use plain C rather than preprocessor commands, if that doesn't
88607         affect efficiency.
88608         Check for overflow (and try to repair) after each probe
88609         rather than checking only at the very end.  This avoids some bugs
88610         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88611         does not equal GMT offset at maximum time).
88612         Use integer to check for overflow rather than floating point; this
88613         is more portable to non-IEEE hosts, and is a tad faster.
88614         When we detect that we are oscillating between two values,
88615         don't check whether tm_isdst has the requested value, since
88616         we already know the answer.  When tm_isdst has the wrong value,
88617         use a different heuristic to find the right one, based on the
88618         extreme values actually observed in practice in tz2003a,
88619         rather than the (overly optimistic) "previous 3 calendar quarters".
88620
88621         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88622         "T const" to accommodate glibc style.
88623         (check_result): Use less-confusing report format.  "long" -> "long int.
88624         (main): Likewise.
88625         Don't loop if the iteration overflows time_t.
88626         Allow a negative step in the iteration.
88627
88628 2003-07-06  Karl Berry  <karl@gnu.org>
88629
88630         * config/depcomp: update from automake.
88631         * config/config.sub: update from prep.
88632
88633 2003-07-03  Karl Berry  <karl@gnu.org>
88634
88635         * config/config.guess: update from prep.
88636
88637 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88638
88639         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88640         xreadlink.c now includes it unconditionally.
88641
88642 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88643
88644         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88645         having it depend on HAVE_SYS_TYPES_H.
88646
88647 2003-07-01  Bruno Haible  <bruno@clisp.org>
88648
88649         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88650         <sys/types.h> should be sufficient.
88651         Reported by Paul Eggert.
88652
88653 2003-06-26  Karl Berry  <karl@gnu.org>
88654
88655         * config/depcomp: update from automake.
88656
88657 2003-06-26  Bruno Haible  <bruno@clisp.org>
88658
88659         * modules/human: Depend on module stdbool.
88660
88661 2003-06-25  Bruno Haible  <bruno@clisp.org>
88662
88663         * modules/readlink: New file.
88664         * modules/xreadlink: Depend on it.
88665         * MODULES.html.sh (func_all_modules): Add readlink.
88666
88667 2003-06-25  Bruno Haible  <bruno@clisp.org>
88668
88669         * m4/readlink.m4: New file.
88670
88671 2003-06-25  Bruno Haible  <bruno@clisp.org>
88672
88673         * lib/readlink.c: New file.
88674
88675 2003-06-22  Karl Berry  <karl@gnu.org>
88676
88677         * config/srclist.txt: update mkinstalldirs from automake.
88678         * config/mkinstalldirs: update.
88679
88680 2003-06-22  Bruno Haible  <bruno@clisp.org>
88681
88682         Portability to mingw32.
88683         * m4/ssize_t.m4: New file, from GNU gettext.
88684         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88685         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88686
88687 2003-06-22  Bruno Haible  <bruno@clisp.org>
88688
88689         * modules/safe-read: Add m4/ssize_t.m4.
88690         * modules/xreadlink: Add m4/ssize_t.m4.
88691
88692 2003-06-20  Bruno Haible  <bruno@clisp.org>
88693
88694         Assume C89, so PARAMS isn't needed.
88695         * lib/unicodeio.h (PARAMS): Remove.
88696         * lib/unicodeio.c: Don't use PARAMS.
88697
88698 2003-06-18  Karl Berry  <karl@gnu.org>
88699
88700         * config/config.{guess,sub}: update from prep.
88701
88702 2003-06-18  Jim Meyering  <jim@meyering.net>
88703
88704         Merge changes from coreutils.
88705         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88706         Remove explicit declarations of xmalloc and realloc.
88707         Include xalloc.h.
88708         (read_utmp): Remove anachronistic cast of xmalloc.
88709
88710 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88711
88712         Assume C89, so PARAMS isn't needed.
88713         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88714         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88715         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88716         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88717         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88718         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88719         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88720         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88721         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88722         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88723         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88724         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88725         no longer needed. Anyway, config.h should always be included before any
88726         other file.
88727
88728 2003-06-11  Simon Josefsson  <jas@extundo.com>
88729
88730         * modules/sysexits: New file.
88731         * MODULES.html.sh (func_all_modules): Add sysexits.
88732
88733 2003-06-11  Simon Josefsson  <jas@extundo.com>
88734
88735         * lib/sysexit_.h: New file.
88736
88737 2003-06-11  Derek Price  <derek@ximbiot.com>
88738
88739         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88740         necessary.
88741
88742 2003-06-11  Bruno Haible  <bruno@clisp.org>
88743
88744         * m4/sysexits.m4: New file.
88745
88746 2003-06-10  Simon Josefsson  <jas@extundo.com>
88747
88748         * lib/argp.h: New file, from glibc.
88749         * lib/argp-ba.c: New file, from glibc.
88750         * lib/argp-eexst.c: New file, from glibc.
88751         * lib/argp-fmtstream.c: New file, from glibc.
88752         * lib/argp-fmtstream.h: New file, from glibc.
88753         * lib/argp-fs-xinl.c: New file, from glibc.
88754         * lib/argp-help.c: New file, from glibc.
88755         * lib/argp-namefrob.h: New file, from glibc.
88756         * lib/argp-parse.c: New file, from glibc.
88757         * lib/argp-pv.c: New file, from glibc.
88758         * lib/argp-pvh.c: New file, from glibc.
88759         * lib/argp-xinl.c: New file, from glibc.
88760
88761 2003-06-10  Simon Josefsson  <jas@extundo.com>
88762
88763         * modules/strchrnul: New file.
88764
88765 2003-06-10  Simon Josefsson  <jas@extundo.com>
88766
88767         * modules/argp: New file.
88768
88769 2003-06-10  Simon Josefsson  <jas@extundo.com>
88770
88771         * m4/strchrnul.m4: New file.
88772
88773 2003-06-10  Simon Josefsson  <jas@extundo.com>
88774
88775         * lib/strchrnul.h: New file.
88776         * lib/strchrnul.c: New file.
88777
88778 2003-06-10  Bruno Haible  <bruno@clisp.org>
88779
88780         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88781
88782 2003-06-07  Karl Berry  <karl@gnu.org>
88783
88784         * config/config.{guess,sub}: update from prep.
88785
88786 2003-06-07  Jim Meyering  <jim@meyering.net>
88787
88788         * modules/strtod: Use $(...) notation, not @...@ for
88789         AC_REPLACE'd variables.
88790         * modules/localcharset: Likewise.
88791
88792 2003-06-07  Jim Meyering  <jim@meyering.net>
88793
88794         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88795         in place of my name in the copyright comment.
88796         Remove definition and uses of __P.
88797
88798         From coreutils.
88799         * lib/stat.c: Don't declare xmalloc explicitly.
88800         Instead, include "xalloc.h".
88801         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88802         xrealloc, and xcalloc return values.
88803         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88804         Improve comment.
88805         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88806
88807 2003-06-07  Bruno Haible  <bruno@clisp.org>
88808
88809         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88810         avoid AC_CONFIG_LINKS.
88811         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88812         fnmatch.h, to avoid AC_CONFIG_LINKS.
88813         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88814
88815 2003-06-07  Bruno Haible  <bruno@clisp.org>
88816
88817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88818         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88819         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88820         directory.
88821         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88822         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88823         directory.
88824
88825 2003-06-06  Jim Meyering  <jim@meyering.net>
88826
88827         Merge from coreutils.
88828         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88829         Consolidate declarations and initializations of *_base* locals.
88830
88831         Merge from coreutils.
88832         This avoids a core dump on systems without GNU putenv,
88833         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88834         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88835         (unsetenv): New static function, from GNU libc.
88836         (rpl_putenv): Use it.
88837
88838         * lib/modechange.c: Remove trailing blanks.
88839
88840         Merge from coreutils.
88841         * lib/fsusage.c: Remove declaration of statfs.
88842         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88843
88844         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88845
88846 2003-06-06  Jim Meyering  <jim@meyering.net>
88847
88848         * lib/stdbool_.h: Renamed from stdbool.h.in.
88849
88850 2003-06-06  Jim Meyering  <jim@meyering.net>
88851             Bruno Haible  <bruno@clisp.org>
88852
88853         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88854         Adjust Makefile.am snippet not to redirect directly to target.
88855         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88856
88857 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88858
88859         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88860         mismatch, look in future quarters as well as past.  This fixes a
88861         bug when processing fall-backwards gaps immediately after a long
88862         period of daylight-saving time.
88863
88864         * lib/mktime.c: Assume freestanding C89 or better.
88865         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88866         (__P): Remove; not used.
88867         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88868         (mktime, not_equal_tm, print_tm, check_result,
88869         main): Use prototypes.  Use const * where appropriate.
88870         (main): Fix typo in testing code that uncovered by above changes.
88871         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88872
88873 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88874
88875         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88876         locale.h, localeconv.  This merges changes from coreutils.
88877
88878         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88879         It can be removed after the next Autoconf is released.
88880         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88881         needed.
88882
88883 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88884
88885         * lib/mktime.c: Fix Debian bug 177940
88886         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88887         (localtime_offset): Now long int, not time_t, because we want it
88888         to be guaranteed to be signed.  All uses changed.
88889         (__mktime_internal): If overflow would occur when adding offset,
88890         don't add it.
88891
88892         Merge 'human' changes from coreutils.  Rewrite to support
88893         locale-specific notations like thousands separators.
88894         * lib/human.c: Simplify authorship notice.
88895         Include human.h immediately after config.h.
88896         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88897         <limits.h>: Do not include, since human.h does.
88898         (SIZE_MAX, UINTMAX_MAX): New macros.
88899         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88900         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88901         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88902         (power_letter): Renamed from suffixes.
88903         (generate_suffix_backwards): Remove.
88904         (adjust_value): Now takes int style (because of human.h changes)
88905         and long double value (for greater precision on some platforms).
88906         (group_number): New function.
88907         (human_readable): Use it.  Use integer options, not enum.
88908         Put the options before the sizes in the arg list.
88909         Support all the new options.
88910         The old human_readable function has been removed;
88911         use inttostr.h instead.
88912         (human_readable, default_block_size, humblock):
88913         Use uintmax_t, not int, for block sizes.
88914         (human_readable_inexact, block_size_types): Remove.
88915         (block_size_opts): New constant.
88916         (human_options): Renamed from human_block_size, with new signature
88917         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88918         * lib/human.h: Add copyright and authorship notice.
88919         Include <limits.h> and <stdbool.h> unconditionally.
88920         (PARAMS): Remove.  All uses removed.
88921         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88922         (enum human_inexact_style): Remove tag; now a nameless enum.
88923         (human_floor, human_ceiling, human_round_to_even): Now have
88924         values 2, 0, 1 rather than -1, 1, 0.
88925         (human_group_digits, human_suppress_point_zero, human_autoscale,
88926         human_base_1024, human_SI, human_B): New constants.
88927         (human_readable_inexact, human_block_size): Remove.
88928         (human_readable): Size args are now uintmax_t, not int.
88929         (human_options): New decl.
88930
88931         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88932         unnecessary now that we assume C89 or better.  This change
88933         imported from coreutils.
88934
88935         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88936         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88937         in the 2003-05-30 sync from glibc.
88938
88939         .h files should stand alone, but we shouldn't include <sys/types.h>
88940         if we can get away with just <stddef.h>.
88941
88942         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88943         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88944         rather than <sys/types.h>, as we merely need size_t.
88945         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88946         to get size_t.
88947         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88948         Include <stdio.h>, to get FILE.
88949         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88950         memcasecmp.h has included <stddef.h> and all we need is size_t.
88951         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88952         our interface, instead of including <sys/types.h>
88953
88954 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88955
88956         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88957         now, as glibc mktime is buggy on non-glibc systems.
88958
88959 2003-06-03  Karl Berry  <karl@gnu.org>
88960
88961         * config/config.sub: update from prep.
88962
88963 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88964
88965         [from coreutils]
88966         Fix some minor time-related bugs with POSIX time arguments.
88967         Some valid time stamps were being rejected (notably -1, and
88968         time stamps before 1900 on 64-bit hosts).  And some invalid
88969         time stamps were being accepted, e.g. September 31.
88970
88971         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88972         that we can return (time_t) -1 successfully.
88973         * lib/posixtm.c: Likewise.
88974         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88975         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88976         (t): Remove static var.
88977         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88978         of static var.  All uses changed.
88979         (year): Do not reject years before 1900; they can occur with
88980         64-bit time_t.
88981         (posix_time_parse): Do not check for out-of-range components;
88982         that is now the caller's responsibility, since our checks were
88983         only approximations.
88984         (posixtime): Use mktime to check for out-of-range components,
88985         since it knows them exactly.
88986         If mktime returns (time_t) -1, check whether an error actually occurred
88987         by invoking localtime on -1.
88988         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88989         posixtime failures better.
88990         Improve the test data (in comments only).
88991
88992 2003-06-02  Karl Berry  <karl@gnu.org>
88993
88994         * config/mkinstalldirs (version): new variable.
88995         (--version): new option.
88996         (usage): improve message.
88997
88998 2003-05-30  Karl Berry  <karl@gnu.org>
88999
89000         * lib/mktime.c: update from libc.
89001
89002 2003-05-30  Bruno Haible  <bruno@clisp.org>
89003
89004         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89005         * config/config.rpath: Upgrade to gettext-0.12.1.
89006
89007 2003-05-30  Bruno Haible  <bruno@clisp.org>
89008
89009         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89010         * m4/nls.m4: New file, from gettext-0.12.1.
89011         * m4/po.m4: New file, from gettext-0.12.1.
89012         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89013
89014 2003-05-30  Bruno Haible  <bruno@clisp.org>
89015
89016         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89017         * lib/localcharset.h: Likewise.
89018         * lib/localcharset.c: Likewise.
89019
89020 2003-05-29  Karl Berry  <karl@gnu.org>
89021
89022         * config/config.rpath: update from gettext.
89023
89024 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89025
89026         Assume the headers required for C89 freestanding compilers.
89027         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89028         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89029         * m4/human.m4 (gl_HUMAN): Likewise.
89030         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89031         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89032         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89033         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89035         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89036
89037 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89038
89039         Assume the headers required for C89 freestanding compilers.
89040         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89041         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89042         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89043         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89044         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89045         define, since <limits.h> is guaranteed to do that.
89046         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89047         * lib/exclude.c: Include <stdbool.h> unconditionally.
89048         * lib/tempname.c: Include <stddef.h> unconditionally.
89049         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89050         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89051         <stddef.h> does that.
89052         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89053         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89054         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89055         needed.
89056         * lib/xstrtol.c: Likewise.
89057         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89058         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89059
89060         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89061         warnings on some platforms.
89062
89063         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89064         arbitrarily.
89065
89066 2003-05-26  Jim Meyering  <jim@meyering.net>
89067
89068         Merge in a change from coreutils:
89069         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89070         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89071         that condition, rather than `-1' which is slightly misleading.
89072         Change the name of the cache variable to have the gl_ prefix.
89073         Prompted by a patch from Richard Dawe for DJGPP.
89074
89075 2003-05-24  Karl Berry  <karl@gnu.org>
89076
89077         * config/config.guess: update from prep.
89078
89079 2003-05-22  Karl Berry  <karl@gnu.org>
89080
89081         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89082
89083 2003-05-20  Karl Berry  <karl@gnu.org>
89084
89085         * config/config.guess: update from prep.
89086
89087 2003-05-18  Karl Berry  <karl@gnu.org>
89088
89089         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89090         might actually be set by the user.
89091
89092         * config/depcomp, install-sh, mdate-sh: update from automake.
89093
89094 2003-05-17  Bruno Haible  <bruno@clisp.org>
89095
89096         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89097         invalid expansion for AC_EGREP_CPP.
89098         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89099         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89100         Suggested by Akim Demaille <akim@epita.fr> in
89101         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89102
89103 2003-05-12  Jim Meyering  <jim@meyering.net>
89104
89105         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89106         the space-padded-by-default conversion specifiers, %e, %k, %l.
89107
89108 2003-05-12  Bruno Haible  <bruno@clisp.org>
89109
89110         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89111         the string is longer than 4 KB.
89112
89113 2003-05-11  Karl Berry  <karl@gnu.org>
89114
89115         * config/config.{guess,sub}: update from prep.
89116
89117 2003-05-09  Bruno Haible  <bruno@clisp.org>
89118
89119         * modules/error: Add m4/strerror_r.m4 to file list.
89120
89121 2003-05-03  Bruno Haible  <bruno@clisp.org>
89122
89123         Upgrade to Unicode-4.0.
89124         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89125         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89126         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89127         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89128         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89129         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89130         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89131         Change width of U+E0100..U+E01EF from 1 to 0.
89132
89133 2003-04-25  Jim Meyering  <jim@meyering.net>
89134
89135         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89136         of type size_t, not int.
89137
89138 2003-04-25  Bruno Haible  <bruno@clisp.org>
89139
89140         * lib/copy-file.c: Include <stddef.h>, for size_t.
89141
89142 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89143
89144         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89145         code which expansion is under static control.  Patch imported from
89146         Akim Demaille's patch to Bison; see
89147         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89148
89149 2003-04-14  Bruno Haible  <bruno@clisp.org>
89150
89151         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89152
89153 2003-04-11  Jim Meyering  <jim@meyering.net>
89154
89155         Merge changes from Coreutils.
89156
89157         2003-03-22  Jim Meyering  <jim@meyering.net>
89158
89159         * lib/strftime.c (widen): Cast alloca return value to proper type.
89160
89161         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89162
89163         From GNU libc.
89164         * lib/strftime.c (my_strftime): Handle very large width
89165         specifications for numeric values correctly.  Improve checks for
89166         overflow.
89167
89168         2003-01-19  Jim Meyering  <jim@meyering.net>
89169
89170         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89171         definitions.
89172         (nl_get_alt_digit) [! defined my_strftime]: Define.
89173         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89174         _nl_get_alt_digit and _nl_get_walt_digit.
89175
89176         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89177         libc. These changes have no effect outside of _LIBC.
89178
89179 2003-04-10  Bruno Haible  <bruno@clisp.org>
89180
89181         * modules/findprog: New file.
89182         * MODULES.html.sh (func_all_modules): Add it.
89183
89184 2003-04-10  Bruno Haible  <bruno@clisp.org>
89185
89186         * m4/findprog.m4: New file.
89187         * m4/eaccess.m4: New file.
89188
89189 2003-04-10  Bruno Haible  <bruno@clisp.org>
89190
89191         * lib/findprog.h: New file, from GNU gettext.
89192         * lib/findprog.c: New file, from GNU gettext.
89193
89194 2003-04-05  Jim Meyering  <jim@meyering.net>
89195
89196         Merge changes from Coreutils.
89197
89198         * lib/exclude.h (PARAMS): Remove definition and uses.
89199         * lib/exclude.c: Remove uses of `PARAMS'.
89200
89201         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89202         Add test-cases for DOS filenames. Declare program_name.
89203         (main): Set up program_name.  Patch by Rich Dawe.
89204
89205         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89206         error from mntctl.
89207         Use mntctl's return value to drive the entry-processing loop, since
89208         we can't rely on the value of the vmt_length member in the last
89209         entry.  On some systems doing so could result in exhausting
89210         virtual memory.  Based in part on a patch from Mike Jetzer.
89211
89212 2003-04-04  Bruno Haible  <bruno@clisp.org>
89213
89214         * modules/linebreak: New file.
89215         * MODULES.html.sh (func_all_modules): Add it.
89216
89217 2003-04-04  Bruno Haible  <bruno@clisp.org>
89218
89219         * m4/linebreak.m4: New file.
89220
89221 2003-04-04  Bruno Haible  <bruno@clisp.org>
89222
89223         * lib/linebreak.h: New file, from GNU gettext.
89224         * lib/linebreak.c: New file, from GNU gettext with slight
89225         modifications.
89226         * lib/lbrkprop.h: New file, from GNU gettext.
89227
89228 2003-04-03  Bruno Haible  <bruno@clisp.org>
89229
89230         * modules/utf8-ucs4: New file.
89231         * modules/utf16-ucs4: New file.
89232         * modules/ucs4-utf8: New file.
89233         * modules/ucs4-utf16: New file.
89234         * MODULES.html.sh (func_all_modules): Add them.
89235
89236 2003-04-03  Bruno Haible  <bruno@clisp.org>
89237
89238         * m4/utf-ucs4.m4: New file.
89239         * m4/ucs4-utf.m4: New file.
89240
89241 2003-04-03  Bruno Haible  <bruno@clisp.org>
89242
89243         * lib/utf8-ucs4.h: New file, from GNU gettext.
89244         * lib/utf16-ucs4.h: New file, from GNU gettext.
89245         * lib/ucs4-utf8.h: New file, from GNU gettext.
89246         * lib/ucs4-utf16.h: New file, from GNU gettext.
89247
89248 2003-04-02  Bruno Haible  <bruno@clisp.org>
89249
89250         * modules/binary-io: New file.
89251         * MODULES.html.sh (func_all_modules): Add it.
89252
89253 2003-04-02  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/binary-io.h: New file, from GNU gettext.
89256
89257 2003-04-01  Bruno Haible  <bruno@clisp.org>
89258
89259         * modules/pathname: New file.
89260         * MODULES.html.sh (func_all_modules): Add it.
89261
89262 2003-04-01  Bruno Haible  <bruno@clisp.org>
89263
89264         * lib/pathname.h: New file, from GNU gettext.
89265         * lib/concatpath.c: New file, from GNU gettext.
89266
89267 2003-03-30  Bruno Haible  <bruno@clisp.org>
89268
89269         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89270
89271 2003-03-30  Bruno Haible  <bruno@clisp.org>
89272
89273         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89274         function chown() doesn't exist.
89275
89276 2003-03-28  Bruno Haible  <bruno@clisp.org>
89277
89278         * modules/copy-file: New file.
89279         * MODULES.html.sh (func_all_modules): Add it.
89280
89281 2003-03-28  Bruno Haible  <bruno@clisp.org>
89282
89283         * m4/copy-file.m4: New file.
89284
89285 2003-03-28  Bruno Haible  <bruno@clisp.org>
89286
89287         * lib/copy-file.h: New file, from GNU gettext.
89288         * lib/copy-file.c: New file, from GNU gettext.
89289
89290 2003-03-18  Jim Meyering  <jim@meyering.net>
89291
89292         * lib/quote.c (quote_n): Fix typo in comment.
89293
89294 2003-03-18  Bruno Haible  <bruno@clisp.org>
89295
89296         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89297         checking.
89298         * m4/onceonly_2_57.m4: Likewise.
89299
89300 2003-03-17  Bruno Haible  <bruno@clisp.org>
89301
89302         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89303         (m4_quote): Remove macro.
89304         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89305
89306 2003-03-14  Jim Meyering  <jim@meyering.net>
89307
89308         Merge changes from Coreutils.
89309         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89310         to be const, in order to avoid warnings.
89311         (obstack_room): Likewise.
89312         (obstack_empty_p): Likewise.
89313
89314 2003-03-14  Bruno Haible  <bruno@clisp.org>
89315
89316         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89317         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89318
89319 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89320
89321         Merge changes from Bison.
89322         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89323         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89324         when compiling Bison 1.875's `bitset bset = obstack_alloc
89325         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89326         * lib/hash.c: Include <stdbool.h> unconditionally.
89327
89328 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89329
89330         * m4/onceonly.m4 (m4_quote): New macro.
89331         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89332         Quote AC_FOREACH variable-expansions properly.
89333
89334 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89335
89336         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89337
89338 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89339
89340         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89341         Reported by Bruce Becker; see:
89342         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89343
89344 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89345             Bruno Haible  <bruno@clisp.org>
89346
89347         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89348         Reported by John Hughes, see
89349         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89350
89351 2003-02-20  Bruno Haible  <bruno@clisp.org>
89352
89353         * MODULES.html.sh (func_all_modules): Add poll.
89354
89355 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89356
89357         * modules/poll: New file.
89358
89359 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89360
89361         * lib/poll_.h: New file.
89362         * lib/poll.c: New file.
89363
89364 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89365
89366         * m4/poll.m4: New file.
89367
89368 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89369
89370         * modules/mathl: New file.
89371
89372 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89373
89374         * lib/mathl.h: New file.
89375         * lib/acosl.c: New file.
89376         * lib/asinl.c: New file.
89377         * lib/atanl.c: New file.
89378         * lib/ceill.c: New file.
89379         * lib/cosl.c: New file.
89380         * lib/expl.c: New file.
89381         * lib/floorl.c: New file.
89382         * lib/frexpl.c: New file.
89383         * lib/ldexpl.c: New file.
89384         * lib/logl.c: New file.
89385         * lib/sincosl.c: New file.
89386         * lib/sinl.c: New file.
89387         * lib/sqrtl.c: New file.
89388         * lib/tanl.c: New file.
89389         * lib/trigl.c: New file.
89390         * lib/trigl.h: New file.
89391
89392 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89393
89394         * m4/mathl.m4: New file.
89395
89396 2003-02-18  Bruno Haible  <bruno@clisp.org>
89397
89398         * MODULES.html.sh (func_all_modules): Add mathl.
89399
89400 2003-02-17  Bruno Haible  <bruno@clisp.org>
89401
89402         * modules/mkdtemp: New module.
89403         * MODULES.html.sh (func_all_modules): Add it.
89404
89405 2003-02-17  Bruno Haible  <bruno@clisp.org>
89406
89407         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89408
89409 2003-02-17  Bruno Haible  <bruno@clisp.org>
89410
89411         * lib/mkdtemp.h: New file, from GNU gettext.
89412         * lib/mkdtemp.c: New file, from GNU gettext.
89413
89414 2003-02-02  Jim Meyering  <jim@meyering.net>
89415
89416         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89417         e.g. glibc-2.2.93.
89418
89419 2003-01-31  Bruno Haible  <bruno@clisp.org>
89420
89421         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89422         'rpl_rename'.
89423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89424         'rpl_strnlen'.
89425         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89426         'rpl_strtod'.
89427         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89428         'rpl_utime'.
89429
89430 2003-01-31  Bruno Haible  <bruno@clisp.org>
89431
89432         * lib/rename.c: #undef rename before defining rpl_rename.
89433         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89434
89435 2003-01-30  Bruno Haible  <bruno@clisp.org>
89436
89437         * modules/vasnprintf, modules/vasprintf: New modules.
89438         * MODULES.html.sh (func_all_modules): Add them.
89439
89440 2003-01-30  Bruno Haible  <bruno@clisp.org>
89441
89442         * m4/signed.m4: New file, from GNU gettext.
89443         * m4/longdouble.m4: New file, from GNU gettext.
89444         * m4/wchar_t.m4: New file, from GNU gettext.
89445         * m4/wint_t.m4: New file, from GNU gettext.
89446         * m4/vasnprintf.m4: New file.
89447         * m4/vasprintf.m4: New file.
89448
89449 2003-01-30  Bruno Haible  <bruno@clisp.org>
89450
89451         * lib/printf-args.h: New file, from GNU gettext.
89452         * lib/printf-args.c: New file, from GNU gettext.
89453         * lib/printf-parse.h: New file, from GNU gettext.
89454         * lib/printf-parse.c: New file, from GNU gettext.
89455         * lib/vasnprintf.h: New file, from GNU gettext.
89456         * lib/vasnprintf.c: New file, from GNU gettext.
89457         * lib/asnprintf.c: New file, from GNU gettext.
89458         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89459         * lib/vasprintf.c: New file, from GNU gettext.
89460         * lib/asprintf.c: New file, from GNU gettext.
89461
89462 2003-01-29  Bruno Haible  <bruno@clisp.org>
89463
89464         * modules/stpncpy: New module.
89465         * MODULES.html.sh (func_all_modules): Add it.
89466
89467 2003-01-29  Bruno Haible  <bruno@clisp.org>
89468
89469         * m4/stpncpy.m4: New file.
89470
89471 2003-01-29  Bruno Haible  <bruno@clisp.org>
89472
89473         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89474         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89475
89476 2003-01-28  Bruno Haible  <bruno@clisp.org>
89477
89478         * modules/c-ctype: New module.
89479         * MODULES.html.sh (func_all_modules): Add it.
89480
89481 2003-01-28  Bruno Haible  <bruno@clisp.org>
89482
89483         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89484         Paul Eggert.
89485         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89486         Paul Eggert.
89487
89488 2003-01-27  Bruno Haible  <bruno@clisp.org>
89489
89490         * modules/xsetenv: New module.
89491         * MODULES.html.sh (func_all_modules): Add it.
89492
89493 2003-01-27  Bruno Haible  <bruno@clisp.org>
89494
89495         * lib/xsetenv.h: New file, from GNU gettext.
89496         * lib/xsetenv.c: New file, from GNU gettext.
89497
89498 2003-01-23  Jim Meyering  <jim@meyering.net>
89499
89500         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89501         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89502
89503 2003-01-23  Bruno Haible  <bruno@clisp.org>
89504
89505         * modules/minmax: New module.
89506         * MODULES.html.sh (func_all_modules): Add it.
89507
89508 2003-01-23  Bruno Haible  <bruno@clisp.org>
89509
89510         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89511         Eggert.
89512
89513 2003-01-22  Bruno Haible  <bruno@clisp.org>
89514
89515         * modules/exit: New module.
89516         * MODULES.html.sh (func_all_modules): Add it.
89517
89518 2003-01-22  Bruno Haible  <bruno@clisp.org>
89519
89520         * lib/exit.h: New file, from GNU gettext.
89521
89522 2003-01-19  Bruno Haible  <bruno@clisp.org>
89523
89524         * gnulib-tool: Recognize option --extract-maintainer.
89525         (func_get_maintainer): New function.
89526         * modules/*: Add Maintainer entry.
89527
89528 2003-01-16  Jim Meyering  <jim@meyering.net>
89529
89530         * m4/regex.m4: The `regex' struct is both input and output.
89531         Initialize it before each use.  Patch by Tim Waugh.
89532
89533 2003-01-16  Bruno Haible  <bruno@clisp.org>
89534
89535         * MODULES.html.sh: Add a table of contents. Add the module name as
89536         leftmost column. Add hyperlinks.
89537
89538 2003-01-15  Bruno Haible  <bruno@clisp.org>
89539
89540         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89541
89542 2003-01-15  Bruno Haible  <bruno@clisp.org>
89543
89544         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89545         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89546         suffix.
89547
89548 2003-01-15  Bruno Haible  <bruno@clisp.org>
89549
89550         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89551
89552 2003-01-15  Bruno Haible  <bruno@clisp.org>
89553
89554         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89555         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89556
89557 2003-01-14  Jim Meyering  <jim@meyering.net>
89558
89559         * lib/same.c (same_name): Tweak a comment.
89560
89561 2003-01-14  Bruno Haible  <bruno@clisp.org>
89562
89563         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89564         when a string comparison is sufficient.
89565
89566 2003-01-14  Bruno Haible  <bruno@clisp.org>
89567
89568         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89569         'unsigned int'.
89570
89571 2003-01-14  Bruno Haible  <bruno@clisp.org>
89572
89573         * lib/hash-pjw.c: Add comment about low quality of this function.
89574
89575 2003-01-13  Bruno Haible  <bruno@clisp.org>
89576
89577         * modules/stpcpy: Distribute lib/stpcpy.h.
89578         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89579
89580 2003-01-13  Bruno Haible  <bruno@clisp.org>
89581
89582         * modules/*: Add a description.
89583         * modules/strpbrk: Fix Makefile.am snippet.
89584         * modules/strtoimax: Fix dependencies.
89585         * modules/strtoumax: Likewise.
89586
89587 2003-01-13  Bruno Haible  <bruno@clisp.org>
89588
89589         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89590         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89591         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89592
89593 2003-01-13  Bruno Haible  <bruno@clisp.org>
89594
89595         * gnulib-tool (func_create_testdir): Store config/* files in the main
89596         directory.
89597         * config.rpath: Move to ...
89598         * config/config.rpath: ... here.
89599         * modules/gettext: Contains config/config.rpath, not config.rpath.
89600         * modules/iconv: Likewise.
89601
89602 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89603
89604         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89605         to avoid collisions with libcurses and libreadline.
89606
89607         * m4/getstr.m4: Remove.
89608         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89609
89610 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89611
89612         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89613         to avoid collisions with libcurses and libreadline.
89614
89615         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89616         * lib/getstr.h, getstr.c: Remove.
89617         * lib/getline.c: Include "getline.h", to check interface.
89618         Move body of old getstr.c here: this defines MIN_CHUNK and
89619         declares getdelim2, which is renamed from getstr.
89620         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89621
89622         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89623         All uses changed.
89624         * lib/linebuffer.h: Likewise.
89625         (readline): Remove backward-compatibility macro.
89626
89627 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89628
89629         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89630         to avoid collisions with libcurses and libreadline.
89631         * getstr: Remove.
89632         * MODULES.html.sh: Remove getstr.
89633         * modules/getline: Depend on unlocked-io, not getstr.
89634
89635 2003-01-12  Jim Meyering  <jim@meyering.net>
89636
89637         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89638
89639 2003-01-10  Bruno Haible  <bruno@clisp.org>
89640
89641         * modules/alloca: Change Makefile.am requirements. Simplify Include
89642         requirements. Add lib/alloca_.h to file list.
89643
89644 2003-01-10  Bruno Haible  <bruno@clisp.org>
89645
89646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89647
89648 2003-01-10  Bruno Haible  <bruno@clisp.org>
89649
89650         * lib/alloca_.h: New file.
89651         * lib/getdate.y: Unconditionally include alloca.h.
89652         * lib/makepath.c: Likewise.
89653         * lib/setenv.c: Likewise.
89654         * lib/userspec.c: Likewise.
89655
89656 2003-01-09  Karl Berry  <karl@gnu.org>
89657
89658         * MODULES.html.sh: include `dirname $0` in PATH, to find
89659         gnulib-tool.
89660
89661 2003-01-09  Bruno Haible  <bruno@clisp.org>
89662
89663         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89664         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89665
89666 2003-01-09  Bruno Haible  <bruno@clisp.org>
89667
89668         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89669
89670 2003-01-09  Bruno Haible  <bruno@clisp.org>
89671
89672         * lib/stdbool.h.in: New file.
89673
89674 2003-01-09  Bruno Haible  <bruno@clisp.org>
89675
89676         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89677         * MODULES.html.sh: Likewise.
89678
89679 2003-01-08  Jim Meyering  <jim@meyering.net>
89680
89681         * lib/full-write.c: Undefine and define-away `const' after inclusion
89682         of errno.h, not before.  Suggestion from Bruno Haible.
89683
89684 2003-01-08  Bruno Haible  <bruno@clisp.org>
89685
89686         * modules/full-read: Depend on full-write.
89687
89688 2003-01-08  Bruno Haible  <bruno@clisp.org>
89689
89690         * lib/safe-read.c: Include specification header first, to ensure its
89691         selfcontainedness.
89692         * lib/full-write.c: Likewise.
89693
89694 2003-01-07  Jim Meyering  <jim@meyering.net>
89695
89696         * lib/full-write.c: Rework so that it may serve to define full_read,
89697         too.
89698         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89699
89700 2003-01-07  Bruno Haible  <bruno@clisp.org>
89701
89702         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89703         <inttypes.h>.
89704         * lib/xstrtol.h: Likewise.
89705         * lib/xstrtoimax.c: Likewise.
89706         * lib/xstrtoumax.c: Likewise.
89707         * lib/human.h: Likewise.
89708
89709         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89710         on systems that have <inttypes.h> but not <stdint.h>.
89711
89712 2003-01-07  Bruno Haible  <bruno@clisp.org>
89713
89714         * MODULES.html.sh: Add copyright notice.
89715         (missed_files): Omit CVS directory entries.
89716         (func_module): Make it work with sed-3.02.
89717         * MODULES.txt: Remove file.
89718
89719 2003-01-06  Jim Meyering  <jim@meyering.net>
89720
89721         * lib/version-etc.c: Update year in translatable copyright string.
89722
89723 2003-01-03  Karl Berry  <karl@gnu.org>
89724
89725         * config/config.{guess,sub}: update from prep.
89726
89727 2003-01-02  Karl Berry  <karl@gnu.org>
89728
89729         * doc/COPYING.DOC: belatedly updated to 1.2.
89730
89731 2003-01-01  Karl Berry  <karl@gnu.org>
89732
89733         * gnulib-tool (func_verify_module): report module name $module in
89734         error message, not $1.
89735         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89736         be created, only if it doesn't exist.
89737         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89738
89739 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89740
89741         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89742
89743 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89744
89745         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89746         memcmp if strcoll doesn't work.
89747
89748 2002-12-31  Bruno Haible  <bruno@clisp.org>
89749
89750         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89751         nonempty.
89752
89753 2002-12-31  Bruno Haible  <bruno@clisp.org>
89754
89755         * lib/memcoll.c (STRCOLL): New macro.
89756         (memcoll): Use it.
89757
89758 2002-12-31  Bruno Haible  <bruno@clisp.org>
89759
89760         * lib/localcharset.h: New file.
89761         * lib/localcharset.c: Include it.
89762         * lib/unicodeio.c: Likewise.
89763
89764 2002-12-31  Bruno Haible  <bruno@clisp.org>
89765
89766         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89767         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89768
89769 2002-12-31  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/getline.h: Include <stddef.h>, for size_t.
89772
89773         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89774         * lib/unicodeio.c: Don't include <stddef.h>.
89775
89776 2002-12-31  Bruno Haible  <bruno@clisp.org>
89777
89778         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89779         HAVE_TM_ZONE.
89780
89781 2002-12-24  Karl Berry  <karl@gnu.org>
89782
89783         * config/config.guess: update from prep.
89784
89785 2002-12-24  Bruno Haible  <bruno@clisp.org>
89786
89787         General infrasructure.
89788         * m4/README: Rewritten.
89789         * m4/onceonly.m4: New file.
89790         * m4/onceonly_2_57.m4: New file.
89791
89792         Module atexit.
89793         * m4/atexit.m4: New file.
89794
89795         Module strtod.
89796         * m4/strtod.m4: New file.
89797
89798         Module strtol.
89799         * m4/strtol.m4: New file.
89800
89801         Module strtoul.
89802         * m4/strtoul.m4: New file.
89803
89804         Module memchr.
89805         * m4/memchr.m4: New file.
89806
89807         Module memcmp.
89808         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89809         (jm_FUNC_MEMCMP): Invoke it.
89810
89811         Module memcpy.
89812         * m4/memcpy.m4: New file.
89813
89814         Module memmove.
89815         * m4/memmove.m4: New file.
89816
89817         Module memset.
89818         * m4/memset.m4: New file.
89819
89820         Module strcspn.
89821         * m4/strcspn.m4: New file.
89822
89823         Module strpbrk.
89824         * m4/strpbrk.m4: New file.
89825
89826         Module strstr.
89827         * m4/strstr.m4: New file.
89828
89829         Module strerror.
89830         * m4/strerror.m4: New file.
89831
89832         Module mktime.
89833         * m4/mktime.m4: Renamed from jm-mktime.m4.
89834         (gl_PREREQ_MKTIME): New macro.
89835         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89836
89837         Module malloc.
89838         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89839         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89840         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89841
89842         Module realloc.
89843         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89844         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89845         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89846
89847         Module strftime.
89848         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89849         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89850         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89851         gl_TM_GMTOFF.
89852         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89853
89854         Module xalloc.
89855         * m4/xalloc.m4: New file.
89856
89857         Module alloca.
89858         * m4/alloca.m4: New file.
89859
89860         Module putenv.
89861         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89862         (jm_FUNC_PUTENV): Invoke it.
89863
89864         Module setenv.
89865         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89866         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89867         when invoked twice.
89868         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89869         gt_FUNC_SETENV.
89870
89871         Module memrchr.
89872         * m4/memrchr.m4: New file.
89873
89874         Module stpcpy.
89875         * m4/stpcpy.m4: New file.
89876
89877         Module strcase.
89878         * m4/strcase.m4: New file.
89879
89880         Module strdup.
89881         * m4/strdup.m4: New file.
89882
89883         Module strnlen.
89884         * m4/strnlen.m4: New file.
89885
89886         Module strndup.
89887         * m4/strndup.m4: New file.
89888
89889         Module xstrtod.
89890         * m4/xstrtod.m4: New file.
89891
89892         Module xstrtol.
89893         * m4/xstrtol.m4: New file.
89894
89895         Module getdate.
89896         * m4/getdate.m4: New file.
89897
89898         Module unlocked-io.
89899         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89900         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89901         * m4/jm-glibc-io.m4n: Remove file.
89902
89903         Module long-options.
89904         * m4/long-options.m4: New file.
89905
89906         Module md5.
89907         * m4/md5.m4: New file.
89908
89909         Module sha.
89910         * m4/sha.m4: New file.
89911
89912         Module getstr.
89913         * m4/getstr.m4: New file.
89914
89915         Module getline.
89916         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89917         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89918         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89919         simply getline. Infoke gl_PREREQ_GETLINE.
89920
89921         Module obstack.
89922         * m4/obstack.m4: New file.
89923
89924         Module hash.
89925         * m4/hash.m4: New file.
89926
89927         Module readtokens.
89928         * m4/readtokens.m4: New file.
89929
89930         Module strverscmp.
89931         * m4/strverscmp.m4: New file.
89932
89933         Module stdbool.
89934         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89935         OSF/1.
89936
89937         Module strtoll.
89938         * m4/strtoll.m4: New file.
89939
89940         Module strtoull.
89941         * m4/strtoull.m4: New file.
89942
89943         Module strtoimax.
89944         * m4/strtoimax.m4: New file.
89945
89946         Module strtoumax.
89947         * m4/strtoumax.m4: New file.
89948
89949         Module xstrtoimax.
89950         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89951         jm_AC_PREREQ_XSTRTOIMAX.
89952         Moved the strtol prerequisites to strtol.m4.
89953         Moved the strtoll prerequisites to strtoll.m4.
89954         Moved the strtoimax prerequisites to strtoimax.m4.
89955
89956         Module xstrtoumax.
89957         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89958         jm_AC_PREREQ_XSTRTOUMAX.
89959         Moved the strtoul prerequisites to strtoul.m4.
89960         Moved the strtoull prerequisites to strtoull.m4.
89961         Moved the strtoumax prerequisites to strtoumax.m4.
89962
89963         Module chown.
89964         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89965         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89966
89967         Module dup2.
89968         * m4/dup2.m4: New file.
89969
89970         Module ftruncate.
89971         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89972         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89973
89974         Module getgroups.
89975         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89976         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89977
89978         Module gettimeofday.
89979         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89980         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89981         gl_PREREQ_GETTIMEOFDAY.
89982
89983         Module mkdir.
89984         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89985         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89986
89987         Module mkstemp.
89988         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89989         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89990         jm_AC_TYPE_UINTMAX_T.
89991         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89992
89993         Module stat.
89994         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89995         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89996
89997         Module lstat.
89998         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89999         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90000
90001         Module timespec.
90002         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90003         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90004         * m4/st_mtim.m4: Indentation.
90005
90006         Module nanosleep.
90007         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90008         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90009         gl_PREREQ_NANOSLEEP.
90010
90011         Module regex.
90012         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90013         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90014         (gl_REGEX): New macro.
90015
90016         Module rename.
90017         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90018         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90019
90020         Module rmdir.
90021         * m4/rmdir.m4: New file.
90022
90023         Module utime.
90024         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90025         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90026         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90027
90028         Module dirname.
90029         * m4/dirname.m4: New file.
90030
90031         Module getopt.
90032         * m4/getopt.m4: New file.
90033
90034         Module unistd-safer.
90035         * m4/unistd-safer.m4: New file.
90036
90037         Module fnmatch.
90038         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90039         declaration.
90040         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90041         (gl_FUNC_FNMATCH_POSIX): New macro.
90042         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90043         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90044         simply fnmatch.
90045
90046         Module exclude.
90047         * m4/exclude.m4: New file.
90048
90049         Module human.
90050         * m4/human.m4: New file.
90051
90052         Module acl.
90053         * m4/acl.m4: Nop.
90054
90055         Module backupfile.
90056         * m4/backupfile.m4: New file.
90057         * m4/d-ino.m4: Indentation.
90058
90059         Module fsusage.
90060         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90061         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90062         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90063
90064         Module dirfd.
90065         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90066         requirements.
90067
90068         Module euidaccess.
90069         * m4/euidaccess.m4: New file.
90070
90071         Module file-type.
90072         * m4/file-type.m4: New file.
90073
90074         Module fileblocks.
90075         * m4/fileblocks.m4: New file.
90076
90077         Module filemode.
90078         * m4/filemode.m4: New file.
90079
90080         Module isdir.
90081         * m4/isdir.m4: New file.
90082
90083         Module lchown.
90084         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90085         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90086
90087         Module makepath.
90088         * m4/makepath.m4: New file.
90089
90090         Module modechange.
90091         * m4/modechange.m4: New file.
90092
90093         Module mountlist.
90094         * m4/mountlist.m4: New file.
90095         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90096         Indentation.
90097
90098         Module path-concat.
90099         * m4/path-concat.m4: New file.
90100
90101         Module pathmax.
90102         * m4/pathmax.m4: New file.
90103
90104         Module same.
90105         * m4/same.m4: New file.
90106
90107         Module save-cwd.
90108         * m4/save-cwd.m4: New file.
90109
90110         Module savedir.
90111         * m4/savedir.m4: New file.
90112
90113         Module xgetcwd.
90114         * m4/xgetcwd.m4: New file.
90115         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90116
90117         Module xreadlink.
90118         * m4/xreadlink.m4: New file.
90119
90120         Module safe-read.
90121         * m4/safe-read.m4: New file.
90122
90123         Module safe-write.
90124         * m4/safe-write.m4: New file.
90125
90126         Module closeout.
90127         * m4/closeout.m4: New file.
90128
90129         Module stdio-safer.
90130         * m4/stdio-safer.m4: New file.
90131
90132         Module getpass.
90133         * m4/getpass.m4: New file.
90134
90135         Module getugroups.
90136         * m4/getugroups.m4: New file.
90137
90138         Module group-member.
90139         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90140         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90141
90142         Module idcache.
90143         * m4/idcache.m4: New file.
90144
90145         Module userspec.
90146         * m4/userspec.m4: New file.
90147
90148         Module gettime.
90149         * m4/clock_time.m4: New file.
90150         * m4/gettime.m4: New file.
90151
90152         Module settime.
90153         * m4/settime.m4: New file.
90154
90155         Module posixtm.
90156         * m4/posixtm.m4: New file.
90157
90158         Module gethostname.
90159         * m4/gethostname.m4: New file.
90160
90161         Module canon-host.
90162         * m4/canon-host.m4: New file.
90163
90164         Module gettext.
90165         * m4/codeset.m4: New file, from gettext-0.11.5.
90166         * m4/gettext.m4: New file, from gettext-0.11.5.
90167         * m4/glibc21.m4: New file, from gettext-0.11.5.
90168         * m4/iconv.m4: New file, from gettext-0.11.5.
90169         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90170         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90171         * m4/inttypes.m4: New file, from gettext-0.11.5.
90172         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90173         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90174         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90175         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90176         * m4/lib-link.m4: New file, from gettext-0.11.5.
90177         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90178         * m4/progtest.m4: New file, from gettext-0.11.5.
90179         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90180         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90181         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90182
90183         Module localcharset.
90184         * m4/localcharset.m4: New file.
90185
90186         Module hard-locale.
90187         * m4/hard-locale.m4: New file.
90188
90189         Module mbswidth.
90190         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90191         onceonly macros.
90192         * m4/mbrtowc.m4: Add comment.
90193
90194         Module memcasecmp.
90195         * m4/memcasecmp.m4: New file.
90196
90197         Module memcoll.
90198         * m4/memcoll.m4: New file.
90199
90200         Module unicodeio.
90201         * m4/unicodeio.m4: New file.
90202
90203         Module rpmatch.
90204         * m4/rpmatch.m4: New file.
90205
90206         Module yesno.
90207         * m4/yesno.m4: New file.
90208
90209         Module exitfail.
90210         * m4/exitfail.m4: New file.
90211
90212         Module c-stack.
90213         * m4/c-stack.m4 (gl_C_STACK): New macro.
90214         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90215
90216         Module error.
90217         * m4/error.m4 (gl_ERROR): New macro.
90218         (jm_PREREQ_ERROR): Use onceonly macros.
90219
90220         Module fatal.
90221         * m4/fatal.m4: New file.
90222
90223         Module getloadavg.
90224         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90225         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90226
90227         Module getpagesize.
90228         * m4/getpagesize.m4: New file.
90229
90230         Module getusershell.
90231         * m4/getusershell.m4: New file.
90232
90233         Module physmem.
90234         * m4/physmem.m4: New file.
90235
90236         Module posixver.
90237         * m4/posixver.m4: New file.
90238
90239         Module quotearg.
90240         * m4/quotearg.m4: New file.
90241
90242         Module quote.
90243         * m4/quote.m4: New file.
90244
90245         Module readutmp.
90246         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90247
90248         Module sig2str.
90249         * m4/sig2str.m4: New file.
90250
90251         Other.
90252         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90253         ulonglong.m4.
90254         * m4/intmax_t.m4: New file.
90255         * m4/d-type.m4: Indentation.
90256         * m4/jm-macros.m4: Update.
90257         * m4/prereq.m4 (jm_PREREQ): Update.
90258         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90259         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90260         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90261         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90262         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90263         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90264         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90265         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90266         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90267         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90268         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90269         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90270         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90271         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90272         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90273         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90274         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90275         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90276         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90277
90278 2002-12-24  Bruno Haible  <bruno@clisp.org>
90279
90280         * MODULES.txt: Update according to m4/ changes.
90281
90282         Module gettext.
90283         * config.rpath: New file, from gettext-0.11.5.
90284
90285         * modules/*: New module descriptions.
90286         * gnulib-tool: New file.
90287         * MODULES.html.sh: New file.
90288
90289 2002-12-21  Karl Berry  <karl@gnu.org>
90290
90291         * doc/fdl.texi: update to version 1.2.
90292
90293 2002-12-19  Karl Berry  <karl@gnu.org>
90294
90295         * config/config.guess: update from prep.
90296
90297 2002-12-18  Bruno Haible  <bruno@clisp.org>
90298
90299         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90300         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90301
90302 2002-12-17  Bruno Haible  <bruno@clisp.org>
90303
90304         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90305         stdlib.h, string.h.
90306
90307 2002-12-17  Bruno Haible  <bruno@clisp.org>
90308
90309         * lib/canon-host.c (strdup): Remove unused declaration.
90310
90311         * lib/fsusage.c: Include full_read.h.
90312         (get_fs_usage): Use full_read instead of safe_read.
90313
90314         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90315
90316 2002-12-12  Karl Berry  <karl@gnu.org>
90317
90318         * config/config.guess: update from prep.
90319
90320 2002-12-11  Bruno Haible  <bruno@clisp.org>
90321
90322         * m4/setenv.m4: New file, from gettext-0.11.5.
90323
90324 2002-12-11  Bruno Haible  <bruno@clisp.org>
90325
90326         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90327         not unsetenv().
90328         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90329         modifications:
90330
90331         2002-12-11  Bruno Haible  <bruno@clisp.org>
90332
90333                 * setenv.c (alloca): Fall back to malloc.
90334                 (freea): New macro.
90335                 (setenv): Use freea() to free memory allocated with alloca().
90336
90337         2002-11-13  Bruno Haible  <bruno@clisp.org>
90338
90339                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90340                 function declarations.
90341                 * unsetenv.c (unsetenv): Likewise.
90342
90343         2002-03-04  Bruno Haible  <bruno@clisp.org>
90344
90345                 Portability to AIX 4.3.3.
90346                 * unsetenv.c: New file, extracted from setenv.c.
90347                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90348
90349         2001-12-20  Bruno Haible  <bruno@clisp.org>
90350
90351                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90352                 use malloc instead. For SunOS 4.
90353
90354         2001-12-11  Bruno Haible  <bruno@clisp.org>
90355
90356                 * setenv.c: Declare alloca.
90357                 (compar_fn_t): New typedef.
90358                 (KNOWN_VALUE, STORE_VALUE): Use it.
90359
90360         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90361         setenv.h.
90362
90363 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90364
90365         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90366         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90367         Choose values that are less likely to collide with system fnmatch
90368         options.
90369         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90370         defined (e.g., a pure POSIX system).
90371         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90372         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90373
90374 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90375
90376         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90377         a pain in practice to deal with generated m4 files.  This change
90378         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90379
90380         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90381         and jm-glibc-io.m4, as they are no longer a special case.
90382         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90383         kludge and the auto-generation stuff.  Check only whether the
90384         functions are declared, not whether they exist, since older hosts
90385         that don't declare the functions can't use the optimization anyway.
90386
90387 2002-12-06  Jim Meyering  <jim@meyering.net>
90388
90389         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90390
90391         Merge in changes from libc's misc/error.c, in preparation
90392         for the merge of gnulib's changes back into libc.
90393
90394         * lib/error.c (_): Define only if not already defined.
90395         Move definition to follow all #include directives.
90396         Include unlocked-io.h only if !_LIBC.
90397         [_LIBC]: Include <libio/libioP.h>.
90398         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90399         (fflush): Tweak definition to use INTUSE.
90400         (putc): Define.
90401
90402 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90403
90404         * lib/alloca.c [defined emacs]: Include "lisp.h".
90405         (xalloc_die) [defined emacs]: New macro.
90406         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90407         [! defined emacs]: Include <xalloc.h>.
90408         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90409         (pointer): Typedef to POINTER_TYPE *.
90410         (malloc): Remove decl; we now always use xmalloc.
90411         (alloca): Use old-style definition, since Emacs needs this.
90412         Check for arithmetic overflow when computing combined size.
90413
90414 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90415
90416         Do not generate unlocked-io.h automatically, since it's easier to
90417         maintain it by hand.
90418
90419         * lib/unlocked-io.h: New file, from GNU diffutils,
90420         but with proper copyright notice and attribution.
90421         * lib/gen-uio: Remove.
90422         * lib/Makefile.am: Add copyright notice.
90423         (libfetish_a_SOURCES): Add unlocked-io.h.
90424         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90425         (DISTCLEANFILES, io_functions): Remove macros.
90426         (EXTRA_DIST): Remove gen_uio.
90427         (unlocked-io.h): Remove rule.
90428
90429 2002-12-04  Jim Meyering  <jim@meyering.net>
90430
90431         Reflect the fact that stat.c and lstat.c are no longer generated.
90432         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90433         (DISTCLEANFILES): Likewise.
90434         (EXTRA_DIST): Likewise.
90435         (all_local): Don't depend on stat.c or lstat.c.
90436         (stat.c, lstat.c): Remove rules.
90437         (EXTRA_DIST): Remove xstat.in.
90438
90439         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90440         * lib/stat.c: New file.  Contents mostly from xstat.in.
90441         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90442         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90443
90444         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90445         too.
90446         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90447
90448 2002-12-03  Jim Meyering  <jim@meyering.net>
90449
90450         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90451         but not semantics, to minimize the differences between these two files.
90452         (safe_read): Change comment to mention SAFE_READ_ERROR.
90453
90454         * lib/safe-read.c (IS_EINTR): Define.
90455         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90456
90457 2002-12-02  Jim Meyering  <jim@meyering.net>
90458
90459         * lib/safe-read.c (EINTR): Define.
90460         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90461         (INT_MAX): Provide fallback.
90462         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90463
90464         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90465
90466 2002-12-02  Bruno Haible  <bruno@clisp.org>
90467
90468         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90469         Define, taken from safe-read.c.
90470         (INT_MAX): Provide fallback.
90471         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90472         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90473
90474         * lib/safe-read.c (EINTR): Remove definition.
90475         (safe_read): Don't use EINTR if it is absent.
90476
90477 2002-12-01  Jim Meyering  <jim@meyering.net>
90478
90479         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90480         zero.
90481         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90482
90483 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90484
90485         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90486         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90487         with `if (! (value < limit)) abort ();', for readability.
90488
90489 2002-11-26  Karl Berry  <karl@gnu.org>
90490
90491         * lib/strdup.c: copy from libc again, with jim's ok.
90492         * lib/.cppi-disable: re-add strdup.c
90493
90494 2002-11-25  Karl Berry  <karl@gnu.org>
90495
90496         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90497         instead of "strtol.c".
90498
90499 2002-11-25  Karl Berry  <karl@gnu.org>
90500
90501         * config/install-sh: update from automake for variable quoting, $0 in
90502         error msgs, etc.
90503
90504         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90505         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90506         entry.
90507
90508 2002-11-25  Jim Meyering  <jim@meyering.net>
90509
90510         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90511
90512 2002-11-24  Karl Berry  <karl@gnu.org>
90513
90514         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90515         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90516
90517 2002-11-24  Jim Meyering  <jim@meyering.net>
90518
90519         Update from coreutils:
90520
90521         * lib/mktime.c: Merge in changes from libc.
90522
90523         Avoid a link-time failure on some Linux systems.
90524         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90525         (otherwise).
90526         (__mon_yday): Declare with the STATIC attribute.
90527         (__mktime_internal): Likewise.
90528         Based on a report from Greg Schafer.
90529
90530 2002-11-23  Jim Meyering  <jim@meyering.net>
90531
90532         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90533         Use `unsigned', not `int', as type of index.
90534
90535         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90536
90537         * lib/fsusage.c: Remove unneeded parentheses around operands of
90538         `defined'.
90539
90540 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90541
90542         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90543         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90544         so that we can be included first.
90545         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90546         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90547         No need to include stddef.h or sys/types.h any more.
90548         Surround local include files with "", not "<>".
90549         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90550         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90551         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90552         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90553         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90554         (ISPRINT): Remove; no longer needed now that we assume C89.
90555
90556         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90557         Preserve errno.
90558
90559         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90560         quotearg_char): Use SIZE_MAX rather than
90561         (size_t) -1 when we are talking about "infinity".
90562
90563         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90564
90565 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90566
90567         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90568         hint that one should use `if (! x) abort ();' rather than `assert
90569         (x);', and anyway it's one less thing to worry about configuring.
90570         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90571         hash_rehash, hash_insert): Use abort rather than assert.
90572
90573 2002-11-22  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/safe-read.h: Assume C89. Add comments.
90576         (safe_read): Change return type to size_t.
90577         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90578         byte counts > SSIZE_MAX correctly.
90579         * lib/safe-write.h: New file.
90580         * lib/safe-write.c: New file.
90581         * lib/full-read.h: New file.
90582         * lib/full-read.c: New file.
90583         * lib/full-write.h: Assume C89. Add comments.
90584         * lib/full-write.c: Include safe-write.h.
90585         (full_write): Rewritten to use safe_write.
90586         Suggested by Jim Meyering and Paul Eggert.
90587
90588 2002-11-21  Jim Meyering  <jim@meyering.net>
90589
90590         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90591
90592         Merge in changes from the coreutils.
90593
90594         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90595         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90596         <stdint.h>.
90597         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90598         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90599         int.  Work more efficiently if X is the same width as uintmax_t.
90600         Do not compare X to -1, to avoid bogus compiler warning.
90601         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90602         Don't assume that f_frsize and f_bsize are the same type.
90603
90604         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90605         warning on FreeBSD.
90606
90607         * lib/makepath.c (make_path): Restore umask *before* creating the final
90608         component.
90609         (make_path): Minor reformatting.
90610
90611         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90612         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90613         HAVE_MALLOC/HAVE_REALLOC.
90614
90615         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90616         dummy ones.  At least on GNU/Linux systems, `auto' means something
90617         else.
90618         From Michael Stone.
90619
90620 2002-11-21  Bruno Haible  <bruno@clisp.org>
90621
90622         Remove case insensitive option matching.
90623         * lib/argmatch.h (argcasematch): Remove declaration.
90624         (ARGCASEMATCH): Remove macro.
90625         (__xargmatch_internal): Remove case_sensitive argument.
90626         (XARGMATCH): Update.
90627         (XARGCASEMATCH): Remove macro.
90628         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90629         case_sensitive argument.
90630         (argcasematch): Remove function.
90631         (__xargmatch_internal): Remove case_sensitive argument.
90632         (main): Use XARGMATCH instead of XARGCASEMATCH.
90633
90634         * lib/xmalloc.c: Change compile-time error message. Add comment about
90635         required autoconf version.
90636
90637 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90638
90639         Merge argmatch cleanups from Bison.  Assume C89.
90640
90641         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90642         Include stdlib.h, for EXIT_FAILURE.
90643         Always include <string.h>, since we assume C89.
90644         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90645         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90646         Include <stddef.h> instead, since it's all we need for size_t.
90647         (PARAMS): Remove.  All uses removed.
90648         (ARRAY_CARDINALITY): Do not bother to #undef.
90649         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90650         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90651         Remove unnecessary parentheses.
90652         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90653         Insert necessary parentheses.
90654         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90655         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90656
90657 2002-11-19  Bruno Haible  <bruno@clisp.org>
90658
90659         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90660         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90661
90662         * lib/mbswidth.h (PARAMS): Remove macro.
90663         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90664         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90665
90666         * lib/gcd.h (PARAMS): Remove macro.
90667         (gcd): Use ANSI C function declarations.
90668         * lib/gcd.c (gcd): Likewise.
90669
90670 2002-11-15  Bruno Haible  <bruno@clisp.org>
90671
90672         * lib/strcspn.c: Include <stddef.h>.
90673         (strcspn): Use ANSI C function declaration. Change return type to
90674         size_t. Use NULL.
90675         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90676         (strpbrk): Use NULL.
90677         * lib/strpbrk.h (PARAMS): Remove macro.
90678         (strpbrk): Use ANSI C function declaration.
90679         * lib/strstr.c: Don't include <sys/types.h>.
90680         * lib/strstr.h (PARAMS): Remove macro.
90681         (strstr): Use ANSI C function declarations.
90682
90683 2002-11-14  Karl Berry  <karl@gnu.org>
90684
90685         * config/mkinstalldirs: `do' on separate line, instead of
90686         `for var; do'.
90687
90688 2002-11-06  Bruno Haible  <bruno@clisp.org>
90689
90690         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90691         * lib/gcd.c (gcd): Likewise.
90692
90693 2002-11-05  Bruno Haible  <bruno@clisp.org>
90694
90695         * lib/gcd.h: New file, from gettext-0.11.5.
90696         * lib/gcd.c: New file, from gettext-0.11.5.
90697
90698 2002-11-05  Bruno Haible  <bruno@clisp.org>
90699
90700         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90701         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90702         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90703         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90704
90705         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90706         <libintl.h>.
90707         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90708         <libintl.h>.
90709
90710         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90711         * lib/human.c: Include gettext.h instead of <libintl.h>.
90712         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90713         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90714         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90715         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90716         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90717         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90718         (textdomain): Remove definition.
90719         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90720
90721         * lib/long-options.c: Remove include of <libintl.h> and definition of
90722         _.
90723         * lib/same.c: Remove include of <libintl.h> and definition of _.
90724
90725 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90726
90727         * lib/config.charset: A few additions for Solaris.
90728
90729 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90730
90731         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90732         * lib/localcharset.c (locale_charset): Declare as extern "C".
90733
90734 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90735
90736         * lib/config.charset: msdos in uk_UA uses CP1125.
90737
90738 2002-11-04  Bruno Haible  <bruno@clisp.org>
90739
90740         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90741         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90742         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90743         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90744         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90745
90746 2002-11-04  Bruno Haible  <bruno@clisp.org>
90747
90748         * lib/localcharset.c (locale_charset): Don't return an empty string.
90749
90750 2002-11-04  Bruno Haible  <bruno@clisp.org>
90751
90752         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90753         aliases.
90754
90755 2002-11-04  Bruno Haible  <bruno@clisp.org>
90756
90757         * lib/config.charset: Update for newest glibc. Add canonical names
90758         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90759
90760 2002-11-04  Bruno Haible  <bruno@clisp.org>
90761
90762         * lib/config.charset: Add support for NetBSD.
90763
90764 2002-11-04  Bruno Haible  <bruno@clisp.org>
90765
90766         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90767
90768 2002-11-01  Bruno Haible  <bruno@clisp.org>
90769
90770         * configure.in: Add AC_CONFIG_AUX_DIR call.
90771         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90772         test/Makefile.
90773         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90774
90775 2002-09-28  Karl Berry  <karl@gnu.org>
90776
90777         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90778         installed automake until the next release, since changes have been
90779         made.
90780
90781 2002-09-25  Karl Berry  <karl@gnu.org>
90782
90783         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90784         * lib/getopt*: copy from libc/posix.
90785         * lib/gettext.h: copy from gettext.
90786         * lib/.cppi-disable: add strdup.c, gettext.h.
90787
90788 2002-09-25  Karl Berry  <karl@gnu.org>
90789
90790         * config/srclist.txt: enable gettext.h check.
90791         * config/config.{guess,sub}: update from prep.
90792         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90793                 from automake 1.6.3.
90794         See srclist*.
90795
90796 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90797
90798         * regex.c (PATFETCH): Remove the translating fetch.
90799         (PATFETCH_RAW): Rename to PATFETCH.
90800         (set_image_of_range): New fun.
90801         (SET_RANGE_TABLE_WORK_AREA): Use it.
90802         (regex_compile): Don't translate the pattern chars so eagerly.
90803         Only do it when inserting an `exactn' bytecode or when handling
90804         a char-range.
90805         (mutually_exclusive_p): Avoid empty statement.
90806
90807 2002-07-06  Jim Meyering  <meyering@lucent.com>
90808
90809         * m4/README: Don't mention Makefile.am.in.
90810         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90811
90812 2002-07-01  Jim Meyering  <meyering@lucent.com>
90813
90814         * lib/c-stack.c: Include sys/time.h.
90815         From Volker Borchert.
90816
90817 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90818
90819         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90820
90821 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90822
90823         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90824         New macro.  Use it uniformly instead of
90825         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90826         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90827         reported by Vin Shelton.
90828
90829 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90830
90831         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90832         Do not assume SA_SIGINFO behavior.
90833         Bug reported by Jim Meyering on NetBSD 1.5.2.
90834
90835 2002-06-22  Jim Meyering  <meyering@lucent.com>
90836
90837         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90839
90840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90841         now that configure.ac uses AC_GNU_SOURCE.
90842         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90843         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90844
90845         Update to latest tools.  Suggestions from Paul Eggert.
90846         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90847         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90848         * m4/fnmatch.m4: Likewise.
90849         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90850         to AC_HEADER_STDBOOL
90851
90852 2002-06-22  Jim Meyering  <meyering@lucent.com>
90853
90854         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90855         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90856
90857 2002-06-22  Jim Meyering  <meyering@lucent.com>
90858
90859         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90860
90861         * lib/exitfail.c, exitfail.h: Likewise.
90862         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90863
90864         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90865         of fnmatch.h.
90866         (EXTRA_DIST): Add fnmatch_loop.c.
90867         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90868
90869         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90870         * lib/fnmatch.c: Update from diffutils-2.8.2.
90871         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90872         * lib/fnmatch.h: Remove file.
90873
90874 2002-06-21  Jim Meyering  <meyering@lucent.com>
90875
90876         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90877         * m4/mbrtowc.m4: Likewise.
90878
90879         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90880         * m4/mbswidth.m4: Reflect name change:
90881         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90882         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90883
90884         * m4/lib-link.m4: Update from gettext-0.11.2.
90885         * m4/gettext.m4: Likewise.
90886
90887         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90888         From Alfred M. Szmidt.
90889
90890 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90891
90892         * lib/file-type.h: Report an error if neither S_ISREG nor
90893         S_IFREG is defined, instead of using a test specific to glibc
90894         2.2.  This should be safe, since POSIX requires S_ISREG and
90895         Unix Version 7 had S_IFREG.  We don't need to check for
90896         <sys/types.h> since we don't use any symbols that it defines.
90897
90898 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90899
90900         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90901         $@-t, so that each temporary file name is unique and valid in the first
90902         8 characters, for operation under DOS.
90903
90904 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90905
90906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90907
90908 2002-06-15  Jim Meyering  <meyering@lucent.com>
90909
90910         Work even with DJGPP 2.03, which lacks support for symlinks.
90911         From Richard Dawe.
90912         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90913         is defined.
90914         * lib/lchown.c (S_ISLNK): Likewise.
90915
90916 2002-06-15  Jim Meyering  <meyering@lucent.com>
90917
90918         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90919         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90920         have been included before this file.
90921
90922 2002-06-14  Jim Meyering  <meyering@lucent.com>
90923
90924         * lib/file-type.h: Use the version from diffutils-2.8.2.
90925         * lib/file-type.c: Likewise.
90926
90927 2002-06-07  Jim Meyering  <meyering@lucent.com>
90928
90929         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90930         They're needed at least for NetBSD 1.5.2.
90931         ($statxfs_includes): Include those same headers.
90932         ($statxfs_includes): Include sys/vfs.h if available.
90933         ($statxfs_includes): Likewise for sys/statvfs.h.
90934         Check for the following members in both structs statfs and statvfs:
90935         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90936
90937 2002-06-01  Jim Meyering  <meyering@lucent.com>
90938
90939         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90940         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90941
90942 2002-05-28  Jim Meyering  <meyering@lucent.com>
90943
90944         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90945         Reported by Volker Borchert.
90946
90947 2002-05-27  Jim Meyering  <meyering@lucent.com>
90948
90949         Fix a problem seen only on nonconforming systems whereby ls.c's
90950         use of localtime, and then of gettimeofday would cause trouble:
90951         the localtime call used to initialize rpl_gettimeofday's save
90952         mechanism would clobber ls's current local time information so
90953         that in any long listing the first file would always be listed
90954         with date 1970-01-01.  Analysis by Volker Borchert.
90955
90956         * lib/gettimeofday.c (localtime): Undefine.
90957         (rpl_localtime): New function.
90958
90959 2002-05-27  Jim Meyering  <meyering@lucent.com>
90960
90961         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90962         localtime.
90963
90964         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90965         use the replacement function; it wouldn't resolve at link time.
90966         Reported by Volker Borchert.
90967
90968 2002-05-22  Jim Meyering  <meyering@lucent.com>
90969
90970         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90971         file-type.h.
90972         * lib/file-type.h: New file.
90973         * lib/file-type.c (file_type): New file/function.  Extracted from
90974         diffutils.
90975
90976 2002-04-30  Jim Meyering  <meyering@lucent.com>
90977
90978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90979
90980 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90981
90982         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90983
90984 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90985
90986         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90987         Do not check for alloca.h (no longer used) or stdbool.h (was never
90988         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90989
90990 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90991
90992         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90993
90994 2002-04-29  Jim Meyering  <meyering@lucent.com>
90995
90996         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90997         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90998         Use AC_FUNC_STRNLEN here instead.
90999
91000         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91001         With autoconf-2.53a, it's part of AC_PROG_CC.
91002
91003 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91004
91005         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91007
91008 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91009
91010         * lib/sig2str.h, lib/sig2str.c: New files.
91011         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91012
91013 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91014
91015         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91016         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91017         of 127, since 64 is the largest conceivable number for ancient
91018         nonstandard hosts.
91019         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91020
91021 2002-04-28  Jim Meyering  <meyering@lucent.com>
91022
91023         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91024
91025 2002-04-24  Jim Meyering  <meyering@lucent.com>
91026
91027         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91028         (jm_PREREQ): Use it.
91029
91030         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91031         mach/mach.h fcntl.h.
91032         Check for this function: setlocale.
91033
91034 2002-04-24  Jim Meyering  <meyering@lucent.com>
91035
91036         * lib/gettext.h: New file, from Gettext.
91037         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91038         (libfetish_a_SOURCES): Add gettext.h.
91039
91040 2002-04-16  Jim Meyering  <meyering@lucent.com>
91041
91042         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91043         ut_pid, ut_id, ut_exit.
91044
91045 2002-04-16  Jim Meyering  <meyering@lucent.com>
91046
91047         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91048         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91049         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91050
91051 2002-04-12  Jim Meyering  <meyering@lucent.com>
91052
91053         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91054         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91055         existence of the getmntinfo function.  Needed for Darwin 5.3.
91056
91057         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91058         This is necessary at least on Darwin 5.3.
91059
91060         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91061         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91062         strnlen.o in the library, and that makes some versions of ranlib
91063         object.
91064
91065 2002-04-12  Jim Meyering  <meyering@lucent.com>
91066
91067         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91068
91069 2002-04-09  Jim Meyering  <meyering@lucent.com>
91070
91071         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91072         to be more precise.  Rather than saying we're checking whether the
91073         function `works', say what we're testing.
91074         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91075         Reported by Bruno Haible.
91076
91077 2002-03-10  Jim Meyering  <meyering@lucent.com>
91078
91079         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91080         Suggestion from Santiago Vila.
91081
91082 2002-03-08  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/rename.c: Mention that this wrapper is needed also on
91085         mips-dec-ultrix4.4 systems.
91086
91087 2002-03-02  Jim Meyering  <meyering@lucent.com>
91088
91089         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91090         not HAVE_CLOCK_SETTIME.
91091
91092 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91093
91094         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91095         Check for clock_settime.
91096
91097 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91098
91099         * lib/nanosleep.h: Rename to....
91100         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91101
91102         * lib/gettime.c: New file.
91103         * lib/settime.c: New file.
91104         * lib/stime.c: Remove.
91105
91106         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91107         timespec.h.  Remove nanosleep.h.
91108
91109 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91110
91111         * m4/acl.m4: New file.
91112         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91113         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91114
91115 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91116
91117         * lib/acl.c, lib/acl.h: New files.
91118         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91119
91120 2002-02-24  Jim Meyering  <meyering@lucent.com>
91121
91122         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91123         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91124         cause trouble.  Reported by Nelson Beebe.
91125
91126 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91127
91128         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91129         compilers that don't know that xalloc_die never returns.
91130
91131 2002-02-20  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/getdate.c: Regenerate using bison-1.33.
91134
91135 2002-02-17  Jim Meyering  <meyering@lucent.com>
91136
91137         * config/config.guess (main): Don't use `head -1'; it's no longer
91138         portable. Use `sed 1q' instead.
91139
91140 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91141
91142         * m4/codeset.m4: Upgrade to gettext-0.11.
91143         * m4/gettext.m4: Upgrade to gettext-0.11.
91144         * m4/glibc21.m4: Upgrade to gettext-0.11.
91145         * m4/iconv.m4: Upgrade to gettext-0.11.
91146         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91147         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91148         * m4/lib-ld.m4: New file, from gettext-0.11.
91149         * m4/lib-link.m4: New file, from gettext-0.11.
91150         * m4/lib-prefix.m4: New file, from gettext-0.11.
91151         * m4/progtest.m4: Upgrade to gettext-0.11.
91152
91153 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91154
91155         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91156         (jm_PREREQ): Use it.
91157
91158 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91159
91160         * lib/posixver.c, lib/posixver.h: New files.
91161         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91162
91163 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91164             Bruno Haible  <bruno@clisp.org>
91165
91166         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91167         (fwrite_success_callback): New declaration.
91168         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91169         print_unicode_char. Call failure callback instead of error.
91170         (fwrite_success_callback): New function.
91171         (exit_failure_callback): New function.
91172         (fallback_failure_callback): New function.
91173         (print_unicode_char): Call unicode_to_mb.
91174
91175 2002-01-26  Jim Meyering  <meyering@lucent.com>
91176
91177         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91178         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91179
91180 2002-01-26  Jim Meyering  <meyering@lucent.com>
91181
91182         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91183
91184 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91185
91186         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91187
91188 2002-01-22  Jim Meyering  <meyering@lucent.com>
91189
91190         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91191         Otherwise, some versions of automake would omit the rule that makes
91192         Makefile from Makefile.in.
91193
91194 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91195
91196         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91197         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91198         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91199         (memcoll): Set errno to zero if there is no error.
91200
91201         * lib/quotearg.c (quotearg_buffer_restyled):
91202         Fix bug with quoting buffers containing NUL when backslashing escapes.
91203         This bug was exposed by the other changes in this patch.
91204         (quotearg_n_options): New arg ARGSIZE.
91205         All callers changed.
91206         (quoting_options_from_style): New function.
91207         (quotearg_n_style): Use it.
91208         (quotearg_n_style_mem): New function.
91209
91210         * lib/quotearg.h (quotearg_n_style_mem): New function.
91211
91212 2002-01-19  Jim Meyering  <meyering@lucent.com>
91213
91214         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91215         Remove useless quotes: DF_PROG="df".
91216         * m4/strnlen.m4: New file.
91217
91218 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91219
91220         * lib/backupfile.c (ISDIGIT): Comment fix.
91221         * lib/getdate.y (ISDIGIT): Likewise.
91222         * lib/posixtm.c (ISDIGIT, year): Likewise.
91223         * lib/strverscmp.c (ISDIGIT): Likewise.
91224         * lib/userspec.c (ISDIGIT): Likewise.
91225
91226 2002-01-16  Jim Meyering  <meyering@lucent.com>
91227
91228         * lib/getdate.y: Add three semicolons, each just before a closing
91229         brace. Bison (as of version 1.31) no longer papers over that mistake.
91230
91231 2002-01-05  Jim Meyering  <meyering@lucent.com>
91232
91233         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91234
91235 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91236
91237         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91238         not silently exit merely because the output buffer happens to
91239         have nothing pending.
91240
91241 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91242
91243         See the big note in ../ChangeLog.
91244         * lib/human.c (suffixes): Prefer K to k for 1024.
91245         (generate_suffix_backwards): New function.
91246         (human_readable_inexact): Use it.
91247         * lib/xstrtol.c (__xstrtol): If there is no number but there
91248         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91249         Accept 'K' as well as 'k'.
91250
91251 2001-12-15  Jim Meyering  <meyering@lucent.com>
91252
91253         * lib/regex.h (__restrict_arr): Update from libc.
91254
91255         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91256         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91257         (STREQ): Define.
91258
91259 2001-12-14  Jim Meyering  <meyering@lucent.com>
91260
91261         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91262         Suggestion from Bruno Haible.
91263
91264 2001-12-10  Jim Meyering  <meyering@lucent.com>
91265
91266         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91267         xrealloc, Instead, include "xalloc.h".
91268         (initbuffer): Don't cast xmalloc return value to char*.
91269         (readline): Reword comment.
91270         Don't cast xrealloc return value to char*
91271         Return NULL, not 0.
91272
91273 2001-12-09  Jim Meyering  <meyering@lucent.com>
91274
91275         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91276         about `signed and unsigned type in conditional expression'.
91277         * lib/posixtm.c (posix_time_parse): Likewise.
91278
91279         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91280
91281         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91282         to avoid a pedantic warning.
91283
91284         * lib/getstr.c: Don't include assert.h.
91285         (getstr): Remove warning-evoking assertions.
91286         Return -1 if offset parameter is out of bounds.
91287         Change the type of a local from int to size_t.
91288
91289         * lib/strftime.c (my_strftime_localtime_r): Include this function
91290         definition in the `#if ! HAVE_TM_GMTOFF' block.
91291
91292         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91293         Include xalloc.h instead.
91294
91295 2001-12-02  Jim Meyering  <meyering@lucent.com>
91296
91297         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91298         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91299         included.
91300
91301         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91302         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91303
91304 2001-11-30  Akim Demaille  <akim@epita.fr>
91305
91306         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91307         before being defined.
91308
91309 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91310
91311         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91312         First arg is int, not unsigned.
91313         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91314         (SIZE_MAX, UINT_MAX): New macros.
91315         (quotearg_n_options): Abort if N is negative.
91316         Avoid overflow check on hosts where size_t is 64 bits and int
91317         is 32 bits, as overflow is impossible there.
91318         Fix off-by-one typo that caused unnecessary reallocation.
91319
91320 2001-11-27  Jim Meyering  <meyering@lucent.com>
91321
91322         * lib/tempname.c: Merge with version from libc.
91323         * lib/regex.c: Likewise.
91324
91325         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91326         systems for which STDC_HEADERS is 0, it was not included, resulting in
91327         a warning about an integer-to-pointer conversion problem with getenv.
91328         Reported by Volker Borchert.
91329
91330 2001-11-26  Jim Meyering  <meyering@lucent.com>
91331
91332         * lib/gtod.h: Remove file.
91333         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91334         * lib/gettimeofday.c: Don't include gtod.h.
91335         (GTOD_init): Remove function.
91336         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91337         Suggestion from Volker Borchert.
91338
91339 2001-11-23  Jim Meyering  <meyering@lucent.com>
91340
91341         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91342         it.
91343         * lib/hash.c (struct hash_table): Define it here instead.
91344
91345 2001-11-22  Jim Meyering  <meyering@lucent.com>
91346
91347         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91348
91349 2001-11-20  Jim Meyering  <meyering@lucent.com>
91350
91351         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91352         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91353
91354 2001-11-19  Jim Meyering  <meyering@lucent.com>
91355
91356         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91357         directory.  Use "conftestXXXXXX" as the template.
91358         Suggestion from Paul Eggert.
91359
91360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91361         immediately, so the test doesn't mistakenly hit the max-open-files
91362         limit.
91363
91364 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91365
91366         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91367         (TEMPORARIES): New macro.
91368         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91369         removes an artificial limitation (e.g. HP-UX 10.20, where
91370         TMP_MAX is 17576).
91371
91372 2001-11-18  Jim Meyering  <meyering@lucent.com>
91373
91374         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91375
91376 2001-11-18  Jim Meyering  <meyering@lucent.com>
91377
91378         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91379         on SunOS 4.
91380
91381         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91382         files will be created before anything else.
91383
91384 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91385
91386         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91387         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91388
91389 2001-11-17  Jim Meyering  <meyering@lucent.com>
91390
91391         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91392         Prompted by a report from Bob Proulx.
91393
91394         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91395         Instead, require UTILS_FUNC_MKSTEMP.
91396
91397 2001-11-17  Jim Meyering  <meyering@lucent.com>
91398
91399         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91400         Now, that's done as part of AC_FUNC_STRTOD.
91401
91402 2001-11-17  Jim Meyering  <meyering@lucent.com>
91403
91404         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91405         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91406         rather than group writable.  Patch by Juan F. Codagnone.
91407
91408         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91409         xrealloc, Instead, include "xalloc.h".
91410
91411         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91412         Remove explicit declarations of xmalloc, xrealloc,
91413         and xstrdup.  Instead, include "xalloc.h".
91414
91415         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91416         unlocked-io.h.
91417         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91418         Likewise.
91419         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91420
91421         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91422         Reported by Padraig Brady.
91423
91424         * lib/mkstemp.c: #undef mkstemp.
91425         Include config.h.
91426         (rpl_mkstemp): Rename from mkstemp.
91427         Protoize.
91428
91429 2001-11-16  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91432         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91433         determine the amount of total physical memory, use pstat_getstatic.
91434         HPUX-11 doesn't define _SC_PHYS_PAGES.
91435         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91436         If sysconf couldn't be used to determine the amount of available
91437         physical memory, use both pstat_getstatic and pstat_getdynamic.
91438         Based on a patch from Bob Proulx.
91439
91440 2001-11-10  Jim Meyering  <meyering@lucent.com>
91441
91442         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91443         (jm_PREREQ): Use it.
91444
91445 2001-11-09  Jim Meyering  <meyering@lucent.com>
91446
91447         * m4/jm-macros.m4: Require autoconf-2.52f.
91448         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91449         Use these AC_-prefixed names, not the AM_-prefixed ones.
91450
91451         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91452
91453 2001-11-05  Jim Meyering  <meyering@lucent.com>
91454
91455         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91456
91457 2001-11-04  Jim Meyering  <meyering@lucent.com>
91458
91459         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91460         $DEFS.
91461
91462 2001-11-03  Jim Meyering  <meyering@lucent.com>
91463
91464         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91465         of AC_DEFUN.
91466
91467         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91468         know the name of the variable in the macro definition.
91469
91470 2001-11-03  Jim Meyering  <meyering@lucent.com>
91471
91472         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91473         in argmatch_to_argument call.
91474
91475         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91476         argument.
91477
91478         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91479         e.g., a fault due to an attempt to free a NULL pointer.
91480
91481 2001-11-01  Jim Meyering  <meyering@lucent.com>
91482
91483         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91484         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91485
91486 2001-11-01  Jim Meyering  <meyering@lucent.com>
91487
91488         * lib/dirfd.c, lib/dirfd.h: New files.
91489         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91490
91491         * lib/hash.c (hash_print) [TESTING]: Clean up.
91492
91493 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91494
91495         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91496         to avoid a warning if -Wall.
91497
91498 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91499
91500         * README: New file
91501         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91502         (per RMS's instructions, this is now the canonical source)
91503         * lgpl/, gpl/: New directories.
91504
91505 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91506
91507         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91508
91509 2001-10-21  Jim Meyering  <meyering@lucent.com>
91510
91511         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91512         this code would end up calling gettext even in packages built
91513         with --disable-nls.
91514         * lib/getopt.c (_): Likewise.
91515         * lib/regex.c (_): Likewise.
91516
91517 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91518
91519         * m4/error.m4 (jm_PREREQ_ERROR):
91520         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91521         AC_FUNC_STRERROR_R does that.
91522         Check for strerror declaration.
91523
91524         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91525         are supposed to have them these days.
91526         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91527         Merge changes from latest Autoconf CVS.
91528         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91529         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91530         POSIX decided to standardize on the int flavor of strerror_r.
91531
91532 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91533
91534         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91535         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91536         Use strerror_r that is only a macro, even if it is not a function.
91537         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91538         (private_strerror): Use prototypes, not old-style function definition.
91539         (print_errno_message): New function.
91540         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91541         char*-flavored one.
91542         (error_tail, error, error_at_line): Use it.
91543
91544 2001-10-11  Jim Meyering  <meyering@lucent.com>
91545
91546         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91547         and quote_n (1, ... to avoid clobbering a buffer.
91548
91549 2001-10-05  Jim Meyering  <meyering@lucent.com>
91550
91551         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91552         hash-pjw.h.
91553         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91554         * lib/hash-pjw.h: New file.
91555
91556 2001-09-30  Jim Meyering  <meyering@lucent.com>
91557
91558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91559         `struct fsstat' has the `f_fstypename' member.
91560         Use that to define FS_TYPE, which is now used to make
91561         the getfsstat link test tighter.
91562
91563 2001-09-30  Jim Meyering  <meyering@lucent.com>
91564
91565         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91566         Include <sys/ucred.h>, for Apple Darwin.
91567         Include sys/mount.h and sys/fs_types.h only if available.
91568         (FS_TYPE): Define.
91569         (read_filesystem_list): Use FS_TYPE.
91570
91571 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91572
91573         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91574         a boolean context.
91575
91576 2001-09-29  Jim Meyering  <meyering@lucent.com>
91577
91578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91579         [one-argument getmntent function]): Include stdio.h before mntent.h.
91580         SunOS 4.1.x needs it for the declaration of `FILE'.
91581         Patch by Volker Borchert.
91582
91583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91584         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91585         sys/fs_types.h, and make the link-test for getfsstat guard #include
91586         directives with appropriate #if HAVE_*_H tests so that we can
91587         detect getfsstat on Apple Darwin1.3.7 systems.
91588         Reported by Nelson Beebe.
91589         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91590
91591 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91592
91593         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91594         #defines strtoimax.  Also treat the other strto* functions
91595         like strtoimax.
91596
91597         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91598         Check for strtoul and strtoumax,
91599         as those declarations are made even in the signed case.
91600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91601         Likewise, for strtol and strtoimax.
91602
91603 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91604
91605         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91606         #defines strtoimax.  Also treat the other strto* functions
91607         like strtoimax.
91608
91609         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91610         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91611         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91612
91613 2001-09-26  Jim Meyering  <meyering@lucent.com>
91614
91615         Most macros in unlocked-io.h had the wrong number of arguments.
91616         * lib/gen-uio: New script.
91617         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91618         * lib/unlocked-io.hin: Remove file.
91619         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91620         rather than trying to embed it here.
91621         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91622         Reported by Padraig Brady.
91623
91624 2001-09-25  Volker Borchert  <bt@teknon.de>
91625
91626         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91627         `result'.
91628
91629 2001-09-24  Jim Meyering  <meyering@lucent.com>
91630
91631         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91632
91633 2001-09-23  Jim Meyering  <meyering@lucent.com>
91634
91635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91636         instead of the mere test for existence of mntent.h.  The latter
91637         would get a false-positive on AIX 3.4 systems.
91638         In the outer getmntent if-block, don't die if neither of the getmntent
91639         tests succeeds.  Instead, just fall through and continue with the
91640         remaining tests.
91641
91642 2001-09-23  Jim Meyering  <meyering@lucent.com>
91643
91644         * lib/mountlist.c: Remove useless parentheses in #if directives.
91645         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91646         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91647
91648 2001-09-22  Jim Meyering  <meyering@lucent.com>
91649
91650         * m4/gettext.m4: New file.  From gettext.
91651         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91652         * m4/progtest.m4: Likewise
91653         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91654         * m4/glibc21.m4: Likewise.
91655
91656         * m4/libintl.m4: Remove.  No longer used.
91657
91658 2001-09-22  Jim Meyering  <meyering@lucent.com>
91659
91660         * lib/localcharset.c: Update from latest gettext.
91661         * lib/config.charset: Likewise.
91662
91663 2001-09-20  Jim Meyering  <meyering@lucent.com>
91664
91665         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91666         strtoimax.
91667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91668         strtoumax.
91669
91670 2001-09-20  Jim Meyering  <meyering@lucent.com>
91671
91672         * lib/xstrtol.c (strtoimax): Guard declaration with
91673         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91674         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91675         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91676         (strtoumax): Likewise, for completeness (it wasn't necessary).
91677
91678 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91679
91680         * lib/strtoimax.c (HAVE_LONG_LONG):
91681         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91682         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91683         to work around bug in IBM C compiler.
91684
91685 2001-09-17  Jim Meyering  <meyering@lucent.com>
91686
91687         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91688         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91689         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91690         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91691         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91692         whenever the right hand side need not be expanded by the shell.
91693
91694 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91695
91696         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91697         library.  It's not correct, as some older glibcs are buggy.
91698         fnmatch wasn't fixed until glibc 2.2.
91699
91700         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91701         special shell magic here.
91702
91703 2001-09-16  Jim Meyering  <meyering@lucent.com>
91704
91705         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91706         * m4/jm-macros.m4: Require it.
91707
91708 2001-09-16  Jim Meyering  <meyering@lucent.com>
91709
91710         * lib/mkdir.c: New file.
91711
91712 2001-09-15  Jim Meyering  <meyering@lucent.com>
91713
91714         * m4/jm-macros.m4: Check for help2man.
91715
91716 2001-09-11  Jim Meyering  <meyering@lucent.com>
91717
91718         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91719         The body, by Paul Eggert, was moved here from configure.in.
91720         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91721
91722 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91723
91724         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91725         (jm_PREREQ): Use it.
91726
91727 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91730         Use ssize_t, not int, to store result of readlink.
91731         Check for ssize_t overflow as well as size_t overflow,
91732         as POSIX says the result of readlink is implementation-defined
91733         when ssize_t overflows.
91734         Remove unnecessary cast to char*.
91735         Use free+malloc instead of realloc, as the storage doesn't need
91736         to be preserved and it's clearer and can be more efficient that way.
91737         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91738         * lib/xreadlink.h (xreadlink): Update prototype.
91739
91740 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91741
91742         * lib/xgetcwd.c: Revert some of the previous change; intead,
91743         fix the HAVE_GETCWD_NULL code to behave more like the
91744         !HAVE_GETCWD_NULL code used to.
91745
91746         Include "xalloc.h".
91747         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91748         invoke xalloc_die.
91749
91750 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91751
91752         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91753         sys/param.h, as pathmax.h includes them.
91754
91755 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91756
91757         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91758         (jm_PREREQ_XGETCWD): New macro.
91759
91760         * m4/getcwd.m4: New file.
91761
91762 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91763
91764         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91765         like the HAVE_GETCWD_NULL code.
91766         Include pathmax.h if not HAVE_GETCWD.
91767         Do not include xalloc.h.
91768         (INITIAL_BUFFER_SIZE): New symbol.
91769         Do not use xmalloc / xrealloc, since the caller is responsible for
91770         handling errors.  Preserve errno around `free' during failure.
91771         Do not overrun buffer when using getwd.
91772
91773 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91774
91775         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91776         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91777         getcwd (NULL, 0).
91778
91779 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91780
91781         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91782         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91783         spotted by Jim Meyering.
91784
91785 2001-09-03  Jim Meyering  <meyering@lucent.com>
91786
91787         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91788         failure.
91789
91790 2001-09-02  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/error.c: Update from GNU libc.
91793
91794 2001-09-01  Jim Meyering  <meyering@lucent.com>
91795
91796         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91797         Used by df.
91798
91799 2001-09-01  Jim Meyering  <meyering@lucent.com>
91800
91801         * lib/xreadlink.c: New file.
91802         * lib/xreadlink.h: New file.
91803         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91804         xreadlink.h.
91805
91806         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91807         doesn't conflict with sparc Solaris 7's definition in
91808         /usr/include/sys/int_types.h.
91809
91810         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91811         files.
91812         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91813         and strncasecmp as r-values.  Unixware didn't have declarations.
91814
91815 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91816
91817         * lib/xstrtol.h: Add copyright notice.
91818         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91819         LONGINT_INVALID_SUFFIX_CHAR.
91820
91821 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91822
91823         * lib/xstrtol.c (strtoimax): New decl.
91824
91825 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91826
91827         * lib/xgetcwd.c: Don't include pathmax.h.
91828         Include stdlib.h and unistd.h if available.
91829         Include xalloc.h.
91830         (xmalloc, xstrdup, free): Remove decls.
91831         (xgetcwd): Don't assume sizes fit in unsigned.
91832         Check for overflow when computing sizes.
91833         Simplify reallocation code.
91834
91835 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91836
91837         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91838         a directory's st_size can have an arbitrary value, so the old
91839         usage could waste an arbitrary amount of memory.  All uses
91840         changed.
91841         * lib/savedir.h: Update prototype.
91842
91843 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91844
91845         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91846
91847         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91848         old strtoimax.c.
91849
91850         Also, make the following further changes to make this file's
91851         configuration more similar to that of strtol.c:
91852         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91853         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91854         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91855         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91856         changed to signed values.
91857
91858         And make the following changes as well:
91859         Fix copyright notice, as 1999 was missing.
91860         (verify): New macro.
91861         (strtoimax): Check sizes at compile-time, not run-time.
91862         Prefer strtol to strtoll if both work.
91863         (main): Remove; it was not that useful and was a pain to maintain.
91864
91865         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91866
91867 2001-08-31  Jim Meyering  <meyering@lucent.com>
91868
91869         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91870         Use an initial, malloc'd, buffer of length 128 rather than
91871         a statically allocated one of length 1024.
91872
91873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91874
91875         Simplify code, partly by assuming autoconf 2.52 semantics.
91876
91877         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91878
91879         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91880         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91881         All uses removed.
91882         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91883         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91884         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91885         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91886         jm_AC_HEADER_INTTYPES_H.
91887         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91888
91889         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91890
91891         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91892         Quote first arg of AC_DEFUN.
91893         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91894         since they are needed to parse the include file even if we need
91895         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91897         but with opposite signedness.
91898
91899 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91900
91901         Merge 'exclude' changes from tar 1.13.22.
91902         This fixes one or two unlikely storage allocation overflow bugs,
91903         but doesn't change user-visible behavior otherwise.
91904
91905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91906
91907         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91908         (jm_PREREQ_EXCLUDE): New macro.
91909
91910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91911
91912         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91913         tm to be declared.
91914
91915 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91916
91917         * lib/hash.c: Remove '2001' from copyright notice.
91918
91919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91920
91921         * lib/full-write.h: New file.
91922         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91923         * lib/full-write.c: Correct credits, as cccp.c no longer
91924         exists and anyway it was so heavily changed from the old cccp
91925         code as to be unrecognizable.  Include full-write.h.
91926         (full_write): Return size_t, with short writes meaning failure.
91927         All callers changed.  This fixes a bug with large buffers
91928         on 64-bit hosts.
91929         * lib/utime.c: Include full-write.h.
91930
91931 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91932
91933         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91934         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91935         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91936         Include if available.
91937         (<xalloc.h>): Include
91938         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91939         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91940         collide with FNM macros.
91941         (struct patopts): New struct.
91942         (struct exclude): Use it, as exclude patterns now come with options.
91943         (new_exclude): Support above changes.
91944         (new_exclude, add_exclude_file):
91945         Initial size must now be a power of two to simplify overflow checking.
91946         (free_exclude, fnmatch_no_wildcards): New function.
91947         (excluded_filename): No longer requires options arg, as the options
91948         are determined by add_exclude.  Now returns bool, not int.
91949         (excluded_filename, add_exclude):
91950         Add support for the fancy new exclusion options.
91951         (add_exclude, add_exclude_file): Now takes int options arg.
91952         Check for arithmetic overflow when computing sizes.
91953         (add_exclude_file): xrealloc might modify errno, so don't
91954         realloc until after errno might be used.
91955
91956         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91957         New macros.
91958         (free_exclude): New decl.
91959         (add_exclude, add_exclude_file): Now takes int options arg.
91960         (excluded_filename): No longer requires options arg, as the options
91961         are determined by add_exclude.  Now returns bool, not int.
91962
91963 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91964
91965         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91966
91967 2001-08-27  Jim Meyering  <meyering@lucent.com>
91968
91969         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91970
91971         * lib/version-etc.c (N_): Remove definition.
91972         Revert most of last change.
91973         Instead, simply don't mark the `Copyright...' string for translation.
91974         Based on advice from Paul Eggert.
91975
91976         * lib/strtoxmax.c: Tweak comment.
91977
91978 2001-08-26  Jim Meyering  <meyering@lucent.com>
91979
91980         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91981
91982         * m4/xstrtoimax.m4: New file.
91983         * m4/xstrtoumax.m4: Add comments explaining why we
91984         AC_REPLACE_FUNCS(strtol).
91985
91986 2001-08-26  Jim Meyering  <meyering@lucent.com>
91987
91988         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91989         of copyright with `%s' so translators don't get an untranslated
91990         message in 2002.
91991         (COPYRIGHT_YEAR): Define.
91992         (version_etc): Use fprintf rather than fputs.
91993         Suggestion from Ulrich Drepper.
91994
91995         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91996
91997         * lib/strtoll.c: New file, from GNU libc.
91998         * lib/xstrtoimax.c: New file.
91999
92000         * lib/xstrtol.h: Add xstrtoimax.
92001         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92002         * lib/strtoimax.c: New file.  Likewise, but first define
92003         STRTOUXMAX_SIGNED.
92004
92005         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92006         ...
92007         * lib/strtoxmax.c: ... then renamed to this.
92008
92009 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92010
92011         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92012         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92013         (jm_AC_TYPE_INTMAX_T): New macro.
92014         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92015
92016         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92017
92018         * m4/longlong.m4: Renamed from ulonglong.m4.
92019         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92020         * m4/uintmax_t.m4: Removed.
92021
92022 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92023
92024         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92025         Port to Solaris 8, where 'sed' requires a space after the 'r'
92026         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92027         Redirect output to $tmp just once.
92028
92029 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92030
92031         * lib/addext.c (<errno.h>): Include.
92032         (errno): Declare if not defined.
92033         (addext): Work correctly when pathconf returns -1 and leaves
92034         errno alone because there is no limit.  Also, work even if
92035         pathconf returns a value greater than SIZE_MAX.
92036
92037 2001-08-12  Jim Meyering  <meyering@lucent.com>
92038
92039         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92040         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92041         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92042         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92043         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92044         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92045         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92046         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92047         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92048         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92049         utime.m4, utimes.m4, xstrtoumax.m4:
92050         Quote the first argument in each use of AC_DEFUN.
92051
92052 2001-08-12  Jim Meyering  <meyering@lucent.com>
92053
92054         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92055         Simply `return getcwd (NULL, 0);'.
92056         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92057         Use 1300 as initial value for length, not PATH_MAX.
92058
92059         * lib/pathmax.h: Clean up cpp syntax.
92060
92061 2001-08-12  Jim Meyering  <meyering@lucent.com>
92062
92063         * lib/gettimeofday.c: New file.
92064         * lib/gtod.h: New file.
92065         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92066
92067 2001-08-05  Jim Meyering  <meyering@lucent.com>
92068
92069         * m4/jm-macros.m4: Require autoconf-2.52.
92070
92071 2001-08-04  Jim Meyering  <meyering@lucent.com>
92072
92073         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92074         stmt, to get in sync with glibc.
92075
92076 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92077
92078         The following changes are from gettext 0.10.39 as maintained by
92079         Bruno Haible.
92080
92081         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92082         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92083         with inverted sense.  All uses changed.
92084
92085         * lib/mbswidth.c: Don't include <limits.h>.
92086         Include <stdlib.h> and <string.h> unconditionally.
92087         (iswcntrl, mbsinit, ISCNTRL): New macros.
92088         (mbsnwidth): Use K&R style function declarations.
92089         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92090         can optimize it when MB_CUR_MAX == 1.
92091         The width of control characters is zero, not 1.
92092
92093 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92094
92095         The following changes are from gettext 0.10.39 as maintained by
92096         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92097
92098         * m4/codeset.m4: Upgrade to serial AM1.
92099         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92100         all uses changed.  Quote first arg of AC_DEFUN.
92101         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92102
92103         * m4/iconv.m4: Upgrade to serial AM2.
92104         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92105         Add --with-libconv-prefix.
92106         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92107         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92108         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92109         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92110         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92111
92112         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92113         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92114         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92115         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92116         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92117         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92118         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92119         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92120         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92121
92122         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92123         string.h any more.
92124
92125         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92126         not the default value.
92127
92128         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92129         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92130         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92131         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92132         Also check for iswcntrl, used for wcwidth fallback.
92133         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92134         to Autoconf 2.13.
92135
92136 2001-08-03  Jim Meyering  <meyering@lucent.com>
92137
92138         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92139         as it was in the original.  Reported by Paul Eggert.
92140
92141 2001-07-16  Jim Meyering  <meyering@lucent.com>
92142
92143         * m4/gettimeofday.m4: New file.
92144         Prompted by a report from Bernhard Baehr.
92145
92146 2001-07-15  Jim Meyering  <meyering@lucent.com>
92147
92148         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92149         stuff. Now it's in ../Makefile.cfg.
92150
92151 2001-07-15  Jim Meyering  <meyering@lucent.com>
92152
92153         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92154         (BUILT_SOURCES): Add unlocked-io.h.
92155         (io_functions): Define.
92156         (unlocked-io.h): New rule.
92157         (DISTCLEANFILES): Add unlocked-io.h.
92158         (all-local): Depend on unlocked-io.h, to ensure it is created.
92159
92160         * lib/unlocked-io.hin: New file
92161
92162         * lib/regex.c: Update from glibc.
92163
92164 2001-07-05  Jim Meyering  <meyering@lucent.com>
92165
92166         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92167         recommendation.
92168         (libfetish_a_SOURCES): Put all .h files here instead.
92169         Remove a thus-exposed (better checks in automake) duplicate and
92170         two unnecessary .h files.
92171
92172 2001-07-04  Jim Meyering  <meyering@lucent.com>
92173
92174         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92175         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92176         distcheck failure.
92177
92178 2001-07-02  Jim Meyering  <meyering@lucent.com>
92179
92180         The following changes were prompted by suggestions from Bruno Haible.
92181
92182         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92183         is now generated.
92184         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92185         definition of EXTRA_DIST.
92186         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92187         ensure that the generated file is created/updated whenever the list
92188         of $(unlocked_functions) is changed.
92189         (jm-glibc-io.m4): New rule.
92190         (unlocked-io.h): New rule -- currently unused.
92191
92192 2001-06-24  Jim Meyering  <meyering@lucent.com>
92193
92194         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92195         unmatched right bracket, rather than kludging it with an extra,
92196         falsely-matching quote in a comment.  Patch by Akim Demaille.
92197
92198 2001-06-11  Jim Meyering  <meyering@lucent.com>
92199
92200         * lib/regex.c: Update from GNU libc.
92201
92202 2001-05-27  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92205         Check for ut_type in struct utmp.
92206
92207 2001-05-27  Jim Meyering  <meyering@lucent.com>
92208
92209         * lib/readutmp.h (UT_TYPE): Define.
92210
92211 2001-05-24  Jim Meyering  <meyering@lucent.com>
92212
92213         * lib/argmatch.c: Include "quote.h".
92214         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92215         quote function.  Reported by Göran Uddeborg.
92216
92217 2001-05-22  Jim Meyering  <meyering@lucent.com>
92218
92219         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92220         now that we use the package-supplied version unconditionally.
92221         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92222
92223 2001-05-21  Jim Meyering  <meyering@lucent.com>
92224
92225         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92226         shell syntax errors.
92227
92228 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92229
92230         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92231
92232 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92233
92234         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92235         Don't bother to check library strftime, since
92236         we'll be using our own my_strftime function anyway.
92237         Define my_strftime instead of strftime.
92238
92239 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92240
92241         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92242         which is not yet declared.
92243
92244 2001-05-15  Jim Meyering  <meyering@lucent.com>
92245
92246         * m4/regex.m4: Use proper quoting so brackets appear in the test
92247         program.
92248         Reported by, and with help from, Bruno Haible.
92249
92250 2001-05-13  Jim Meyering  <meyering@lucent.com>
92251
92252         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92253         undefined.
92254
92255 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92256
92257         dirname code cleanup.  base_name now behaves more compatibly
92258         with POSIX basename when given file names that have trailing
92259         slashes, and similarly for dir_name.  Add new primitives
92260         base_len and dir_len.  Put the directory-name-related decls
92261         into dirname.h.
92262
92263         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92264         * lib/backupfile.c (base_name): Likewise.
92265         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92266         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92267         * lib/makepath.c (strip_trailing_slashes): Likewise.
92268         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92269         ISSLASH): Likewise.
92270         * lib/rename.c (strip_trailing_slashes): Likewise.
92271         * lib/same.c (base_name): Likewise.
92272         * lib/stripslash.c (ISSLASH): Likewise.
92273
92274         * lib/addext.c: Include <dirname.h> after size_t is defined.
92275         * lib/backupfile.c: Likewise.
92276
92277         * lib/addext.c (addext): Use base_len to trim redundant
92278         trailing slashes instead of doing it ourselves.
92279         But do not trim the last slash if it is not redundant.
92280
92281         * lib/backupfile.c (find_backup_file_name,
92282         max_backup_version): Use base_len instead of rolling it ourselves.
92283         Handle the case of "" and (on DOS) "C:" correctly.
92284
92285         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92286         needed. Include <string.h>, <dirname.h>.
92287         (base_name): Allow file names ending in slashes, other than names
92288         that are all slashes.  In this case, return the basename followed
92289         by the slashes.  This is more general, and can be used in places
92290         where the original base_name purposely had an assertion failure.
92291         (base_len): New function.
92292
92293         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92294         Do not include <assert.h>; no longer needed.
92295         Include xalloc.h.
92296         (memrchr): Remove decl.
92297         (dir_name_r): Remove.
92298         (dir_len): Renamed from dirlen.  All callers changed.
92299         Rewrite in terms of base_name, for simplicity and consistency.
92300         (dir_name): Never return NULL.  All callers changed.
92301         Do not include <stdlib.h> in test program; no longer needed.
92302         return 0; is fine for test program.
92303
92304         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92305         New macros.
92306         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92307
92308         * lib/path-concat.c (path_concat): Use base_len to compute
92309         base length, not strlen; this means we cannot rely on memcpy
92310         to null-terminate.
92311
92312         * lib/same.c (STREQ): Remove.
92313         (same_name): Handle the case where the basename ends in trailing '/'.
92314
92315         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92316         a slash was stripped.  Do not strip the last slash after a
92317         file system prefix.
92318
92319 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92320
92321         * lib/Makefile.am (libfetish_a_SOURCES):
92322         Add strftime.c, since we now compile it on all hosts.
92323
92324         * lib/strftime.c (my_strftime):
92325         Define to nstrftime if emacs, but only if my_strftime is not defined.
92326         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92327         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92328         Add one more extra argument: a nanoseconds value.
92329         All uses changed.
92330         (ns): New macro.
92331         (my_strftime function): Add %N format.
92332         (emacs_strftimeu): Renamed from emacs_strftime,
92333         with extra ut argument.
92334
92335 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92336
92337         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92338
92339 2001-04-21  Jim Meyering  <meyering@lucent.com>
92340
92341         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92342         doesn't interfere.
92343
92344 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92345
92346         * m4/ftruncate.m4: Check for chsize.
92347         Link with ftruncate.o unconditionally if ftruncate is missing.
92348         This was required when cross-compiling to i586-mingw32msvc.
92349
92350 2001-04-08  Jim Meyering  <meyering@lucent.com>
92351
92352         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92353         recomputed; that's necessary when the offset spans a DST transition.
92354         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92355
92356 2001-04-02  Jim Meyering  <meyering@lucent.com>
92357
92358         * lib/regex.h, regex.c: Update from GNU libc.
92359
92360 2001-03-24  Jim Meyering  <meyering@lucent.com>
92361
92362         * m4/jm-macros.m4: Require autoconf-2.49d.
92363
92364 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92365
92366         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92367
92368 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92371
92372 2001-03-17  Jim Meyering  <meyering@lucent.com>
92373
92374         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92375         now that the version in autoconf is equivalent.
92376         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92377
92378         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92379         Suggestion from Akim Demaille.
92380
92381         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92382         (jm_PREREQ_TEMPNAME): New function.
92383
92384 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92385
92386         * lib/tempname.c (uint64_t): Define to uintmax_t if
92387         not defined, and if UINT64_MAX is not defined.
92388         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92389         Reported by John David Anglin.
92390
92391 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92392
92393         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92394         resolve alias if codeset is empty.
92395         * lib/config.charset (BeOS): Use wildcard syntax.
92396
92397 2001-03-13  Jim Meyering  <meyering@lucent.com>
92398
92399         * lib/path-concat.c (path_concat)
92400         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92401         concatenating e.g., `C:' and `foo'.
92402         From Bruno Haible.
92403
92404 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92405
92406         * lib/localcharset.c (locale_charset): Don't use
92407         setlocale(LC_CTYPE,NULL). Don't return NULL.
92408         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92409
92410 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92411
92412         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92413         support for DOS/DJGPP.
92414
92415 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92416
92417         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92418         lacks mkstemp.  Compile our own tempname.c if we compile our own
92419         mkstemp.c, as mkstemp relies on tempname.
92420
92421 2001-03-01  Jim Meyering  <meyering@lucent.com>
92422
92423         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92424         AH_VERBATIM really does output its argument verbatim.
92425
92426 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92427
92428         * lib/Makefile.am (libfetish_a_SOURCES):
92429         Add dup-safer.c, fopen-safer.c.
92430         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92431
92432         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92433         * lib/unistd-safer.h: New files.
92434
92435 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92436
92437         The mkstemp replacement is taken from glibc 2.2.2, with some
92438         portability fixes for use outside glibc, as follows:
92439
92440         * lib/tempname.c (struct_stat64): New macro.
92441         (direxists, __gen_tempname): Use it.
92442         This avoids a portability problem with Solaris 8.
92443
92444         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92445         (<stddef.h>, <stdint.h>, <string.h>):
92446         Include only if STDC_HEADERS || _LIBC.
92447         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92448         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92449         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92450         (__set_errno): Define this macro if <errno.h> doesn't.
92451         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92452         Define these macros if <stdio.h> doesn't.
92453         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92454         Define these macros if <sys/stat.h>
92455         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92456         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92457         __xstat64): Define if not _LIBC.
92458         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92459         (__gen_tempname): Invoke gettimeofday only if
92460         HAVE_GETTIMEOFDAY || _LIBC;
92461         otherwise, fall back on plain "time".
92462         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92463
92464         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92465
92466         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92467
92468 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92469
92470         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92471
92472 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92473
92474         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92475         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92476         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92477         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92478
92479 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92480
92481         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92482         Remove workaround macros for hosts that have mbrtowc but not
92483         mbstate_t, as we now insist on proper declarations for both
92484         before using mbrtowc.
92485
92486 2001-02-17  Jim Meyering  <meyering@lucent.com>
92487
92488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92489         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92490         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92491         UnixWare 7.1.1.
92492
92493         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92494         rather than AC_CACHE_VAL.
92495
92496 2001-02-17  Jim Meyering  <meyering@lucent.com>
92497
92498         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92499         around included file name.
92500
92501         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92502
92503         * lib/strftime.c: Update from GNU libc (the only changes were to
92504         comments).
92505
92506 2001-02-17  Jim Meyering  <meyering@lucent.com>
92507
92508         * lib/regex.c: Update from libc.
92509
92510 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92511
92512         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92513         clash.
92514
92515 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92516
92517         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92518         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92519         Reported by Mark Hounschell via Paul Eggert.
92520
92521 2001-02-07  Jim Meyering  <meyering@lucent.com>
92522
92523         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92524
92525 2001-02-05  Jim Meyering  <meyering@lucent.com>
92526
92527         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92528         it includes the patch required for `large file' support with at least
92529         HP-UX's 10.20 /bin/cc.
92530
92531 2001-02-03  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92534         AS_IF, now that it works once again (mysteriously).
92535         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92536
92537 2001-01-30  Jim Meyering  <meyering@lucent.com>
92538
92539         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92540         * m4/chown.m4: Rename conftestchown to conftest.chown.
92541         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92542         s/conftestdir2/conftest.d2/.
92543         * m4/utimes.m4: s/conftestdata/conftest.data/
92544         Inspired by Pavel Roskin's change in autoconf.
92545
92546 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92547
92548         * lib/config.charset: Update for FreeBSD 4.2.
92549
92550 2001-01-27  Jim Meyering  <meyering@lucent.com>
92551
92552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92553         a use of AS_IF.
92554         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92555
92556 2001-01-26  Jim Meyering  <meyering@lucent.com>
92557
92558         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92559         quotearg.c includes it.
92560
92561 2001-01-26  Jim Meyering  <meyering@lucent.com>
92562
92563         * lib/quotearg.c: Include stddef.h.
92564         * lib/quote.c: Include stddef.h.
92565         Reported by Axel Kittenberger.
92566
92567         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92568         line in double quotes so that it evokes a better diagnostic.
92569         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92570         Reported by Axel Kittenberger.
92571
92572 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92573
92574         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92575         as if it was a `charset'.
92576
92577 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92578
92579         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92580         has const.
92581
92582 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92583
92584         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92585         to avoid a warning.  Add back 'const' to inptr.
92586
92587 2001-01-20  Jim Meyering  <meyering@lucent.com>
92588
92589         Be sure that headers are checked before used in code compiled
92590         for the type checks.
92591         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92592         In place of that, invoke jm_CHECK_ALL_TYPES.
92593         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92594         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92595         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92596         The check for ssize_t was mistakenly run before the test for unistd.h.
92597
92598         The configure-time check for stdbool.h was missing.
92599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92600         (jm_PREREQ_HASH): New function.
92601
92602 2001-01-17  Jim Meyering  <meyering@lucent.com>
92603
92604         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92605         for autoconf-2.49c.
92606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92607
92608 2001-01-16  Jim Meyering  <meyering@lucent.com>
92609
92610         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92611         From Bruno Haible.
92612
92613 2001-01-14  Jim Meyering  <meyering@lucent.com>
92614
92615         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92616         foo and bar.  Create conftestdir/ in the script, not in the C code.
92617         Remove directories in the script, not in the C code.
92618         Remove conftestdir{,2} before trying to create the directory.
92619         Make the entire configure script fail if the mkdir fails.
92620
92621 2001-01-14  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/rename.c: New file.  From Volker Borchert.
92624         Include stdlib.h, string.h or strings.h, and xalloc.h.
92625         Use strip_trailing_slashes rather than open-coding it.
92626
92627 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92628
92629         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92630
92631 2001-01-03  Jim Meyering  <meyering@lucent.com>
92632
92633         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92634         of local `inptr' to avoid warning with some system declarations of
92635         iconv.
92636
92637 2001-01-02  Volker Borchert  <bt@teknon.de>
92638
92639         * m4/rename.m4: New file.
92640         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92641
92642 2001-01-01  Jim Meyering  <meyering@lucent.com>
92643
92644         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92645         even on systems with utmpx.h.  It's necessary for the declaration of
92646         utmp's ut_user member.  Reported by Andreas Jaeger.
92647
92648         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92649         available. They are required for the declarations of getgrgid and
92650         getpwuid resp.
92651         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92652         Reported by Andreas Jaeger.
92653
92654 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92655
92656         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92657         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92658         so `make install' also works in VPATH builds.
92659
92660 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92661
92662         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92663         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92664         can be used in subdirectories.
92665
92666 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92667
92668         * lib/modechange.c: Do not assume that mode_t uses the
92669         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92670         the other-execute bit of FOO even if S_IXOTH != 1.
92671
92672         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92673         WOTH, XOTH, ALLM): New macros.
92674         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92675          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92676         Use them.
92677         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92678         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92679         (mode_compile):
92680         No need to use uintmax_t; unsigned long is long enough.
92681         Don't bother to get suffix since we don't use it.
92682
92683 2000-12-26  Jim Meyering  <meyering@lucent.com>
92684
92685         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92686         better with autoheader.
92687
92688 2000-12-24  Jim Meyering  <meyering@lucent.com>
92689
92690         * lib/hash.c (is_prime): Return explicit boolean values.
92691         (hash_get_first): Return NULL to appease Irix5.6's 89.
92692         Reported by Nelson Beebe.
92693
92694 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92695
92696         * lib/localcharset.c (locale_charset): Add support for Win32.
92697
92698 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92699
92700         * lib/physmem.h, lib/physmem.c: New files.
92701
92702         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92703         (noinst_HEADERS): Add physmem.h.
92704
92705         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92706         't' for compatibility with Solaris 8 sort.
92707
92708 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92709
92710         * lib/config.charset: Add support for BeOS.
92711
92712 2000-12-17  Jim Meyering  <meyering@lucent.com>
92713
92714         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92715         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92716
92717 2000-12-16  Jim Meyering  <meyering@lucent.com>
92718
92719         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92720         N and M) would have treated it like `chown N:N FILE'.
92721
92722         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92723
92724 2000-12-16  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92727         SHELLS_FILE to a file name that's useful on djgpp systems.
92728         Include stdlib.h.
92729         (ADDITIONAL_DEFAULT_SHELLS): Define.
92730         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92731         Based mostly on a patch from Prashant TR.
92732
92733 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92734
92735         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92736         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92737         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92738
92739 2000-12-08  Andreas Schwab  <schwab@suse.de>
92740
92741         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92742         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92743
92744 2000-12-07  Jim Meyering  <meyering@lucent.com>
92745
92746         * lib/stripslash.c (ISSLASH): Define.
92747         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92748         `/'.
92749         From Prashant TR.
92750
92751         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92752         (dir_name_r): Declare this function as static.
92753         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92754         manifest itself on a name containing a mix of slashes and
92755         backslashes.
92756         Make this function work with names starting with a DOS-style
92757         drive letter and colon prefix.
92758         (dir_name): Append `.' if necessary.
92759         Based mostly on patches from Prashant TR and Eli Zaretskii.
92760
92761         * lib/dirname.h (dir_name_r): Remove prototype.
92762
92763 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92764
92765         * m4/off_t-format.m4: Remove this file.
92766         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92767
92768 2000-12-06  Jim Meyering  <meyering@lucent.com>
92769
92770         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92771         replacement strtoull, we may well need the replacement strtoul, too.
92772         Check for declarations of strtoul and strtoull.
92773         Check for strtol.  Mainly as a cue to cause automake to include
92774         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92775         Check for limits.h -- strtol.c needs it.
92776
92777 2000-12-05  Jim Meyering  <meyering@lucent.com>
92778
92779         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92780
92781 2000-12-04  Jim Meyering  <meyering@lucent.com>
92782
92783         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92784         Also include memory.h, stdlib.h, unistd.h if appropriate.
92785         Reported by Andreas Jaeger (conflicting declaration of malloc).
92786
92787 2000-12-02  Jim Meyering  <meyering@lucent.com>
92788
92789         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92790         * m4/jm-macros.m4 (jm_MACROS): require it.
92791
92792 2000-12-02  Jim Meyering  <meyering@lucent.com>
92793
92794         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92795
92796 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92797
92798         * lib/memrchr.c: Include <config.h> before any system include file.
92799
92800 2000-11-30  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92803
92804 2000-11-30  Jim Meyering  <meyering@lucent.com>
92805
92806         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92807
92808 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92809
92810         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92811
92812 2000-11-26  Jim Meyering  <meyering@lucent.com>
92813
92814         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92815
92816 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92817
92818         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92819         size of (size_t) -1; it's not portable.
92820
92821 2000-11-17  Jim Meyering  <meyering@lucent.com>
92822
92823         * lib/strstr.c: Update from GNU libc.
92824
92825 2000-11-17  Akim Demaille  <akim@epita.fr>
92826
92827         * lib/obstack.h: Formatting changes.
92828         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92829         prevent type checking.
92830         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92831         cast the value to (void *): assigning a `foo *' to a `void *'
92832         variable is valid.
92833         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92834
92835 2000-11-16  Jim Meyering  <meyering@lucent.com>
92836
92837         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92838
92839 2000-11-11  Jim Meyering  <meyering@lucent.com>
92840
92841         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92842
92843 2000-11-10  Jim Meyering  <meyering@lucent.com>
92844
92845         * lib/obstack.h: Update from GNU libc.
92846         * lib/obstack.c: Likewise.
92847
92848 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92849
92850         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92851
92852 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92853
92854         * lib/getusershell.c (setusershell): Use rewind rather than
92855         fseek/fseeko, to avoid configuration hassles with fseeko.
92856         Don't bother opening SHELLS_FILE if shellstream is NULL;
92857         it's not necessary.
92858
92859 2000-11-05  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/makepath.h (make_dir): Declare.
92862         * lib/makepath.c (make_dir): Remove `static' attribute.
92863         Tweak a comment.
92864
92865 2000-11-04  Jim Meyering  <meyering@lucent.com>
92866
92867         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92868
92869 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92870
92871         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92872         last one in a bucket, advance to the next bucket.
92873
92874 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92875
92876         * lib/fnmatch.c: Do not comment out all the code if we are using
92877         the GNU C library, because in some cases we are replacing buggy
92878         code in the GNU C library itself.
92879
92880 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92881
92882         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92883         (regex_compile): Catch bogus \(\1\).
92884
92885 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92886
92887         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92888         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92889         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92890
92891 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92892
92893         * lib/error.h, getline.h, modechange.h:
92894         Remove "2000" from Copyright line, as the file hasn't been
92895         changed this year other than in the copyright notice.
92896
92897         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92898         was changed this year.
92899
92900 2000-10-29  Jim Meyering  <meyering@lucent.com>
92901
92902         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92903         renaming.
92904         * m4/ls-mntd-fs.m4: Likewise
92905
92906 2000-10-29  Jim Meyering  <meyering@lucent.com>
92907
92908         * lib/xstat.in: Fix grammar in comment.
92909
92910 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92911
92912         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92913         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92914         doesn't define __restrict_arr.
92915
92916 2000-10-28  Jim Meyering  <meyering@lucent.com>
92917
92918         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92919         (jm_PREREQ_MEMCHR): New function.
92920
92921 2000-10-28  Jim Meyering  <meyering@lucent.com>
92922
92923         * lib/memchr.c: Update from libc.
92924         Adjust for portability:
92925         [HAVE_STDLIB_H]: Include stdlib.h.
92926         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92927         Undef __memchr, too.
92928         [!weak_alias]: Define __memchr to memchr.
92929
92930         * lib/regex.c: Update from libc.
92931         * lib/regex.h: Likewise.
92932         * lib/getopt1.c: Likewise.
92933         * lib/memcmp.c: Likewise.
92934
92935         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92936         Avoid using fseek, when possible -- it's broken by design.
92937         Patch by Ulrich Drepper.
92938
92939 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92940
92941         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92942         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92943         Giving in to popular pressure to shut up the compiler with casts.
92944
92945 2000-10-26  Jim Meyering  <meyering@lucent.com>
92946
92947         * lib/strftime.c: Update from libc.
92948
92949 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92950
92951         * regex.c: More `unsigned char' -> `re_char' changes.
92952         Also change several `int' into `re_wchar_t'.
92953         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92954         (PUSH_FAILURE_POINTER): Don't cast any more.
92955         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92956         We want GCC to complain, since this piece of code makes
92957         re_match non-reentrant, which *should* be fixed.
92958         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92959         (EXTEND_BUFFER): Use RETALLOC.
92960         (SET_LIST_BIT): Don't cast.
92961         (re_wchar_t): New type.
92962         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92963         that those two functions will always properly return.
92964         (IMMEDIATE_QUIT_CHECK): Cast to void.
92965         (analyse_first): Use recursion rather than an explicit stack.
92966         (re_compile_fastmap): Can't fail anymore.
92967         (re_search_2): Don't check re_compile_fastmap for failure.
92968         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92969         Now also sets the new value (passed in a new argument).
92970         (re_match_2_internal): Use it.
92971         Also, use a new var `reg' of type size_t when looping through regs
92972         rather than reuse the inappropriate `mcnt'.
92973
92974 2000-10-25  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/obstack.c: Update from libc.
92977
92978 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92979
92980         * regex.c (regex_compile): Change the way of handling a range from
92981         a char less than 256 to a char not less than 256.
92982
92983 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92984
92985         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92986         NT-Emacs only.
92987         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92988         so that re_search functions only quit when callers expect them to.
92989
92990 2000-10-23  Jim Meyering  <meyering@lucent.com>
92991
92992         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92993         wrong.  That set_locale call must not have any side effects.
92994         From Paul Eggert.
92995
92996 2000-10-22  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92999         [CYCLIC]: Remove now-unused definition.
93000
93001         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93002         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93003         Suggestion from Ulrich Drepper.
93004
93005 2000-10-21  Jim Meyering  <meyering@lucent.com>
93006
93007         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93008         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93010
93011 2000-10-21  Jim Meyering  <meyering@lucent.com>
93012
93013         * lib/dirname.c (memrchr): Declare if necessary.
93014         (dir_name): Remove the restriction that there be no
93015         trailing slashes.  Now, this code skips past them, effectively
93016         ignoring them.
93017         [TEST_DIRNAME] (main): New unit tests.
93018
93019         * lib/memrchr.c: New file from GNU libc.
93020         Undef __memrchr, too.
93021         [!weak_alias]: Define __memrchr to memrchr.
93022         Guard weak_alias use with `#ifdef weak_alias'.
93023
93024 2000-10-21  Jim Meyering  <meyering@lucent.com>
93025
93026         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93027         (dir_name): Use dir_name_r.
93028         * lib/dirname.h (dir_name_r): Declare it.
93029
93030 2000-10-17  Jim Meyering  <meyering@lucent.com>
93031
93032         * lib/quote.h (PARAMS): Define and use.
93033         Reported by Akim Demaille.
93034
93035         * lib/getopt.c: Update from libc.
93036
93037 2000-10-16  Jim Meyering  <meyering@lucent.com>
93038
93039         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93040         setlocale.
93041         From Jan Fedak.
93042
93043 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93044
93045         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93046
93047 2000-09-25  Jim Meyering  <meyering@lucent.com>
93048
93049         * lib/md5.h (rol): Define (from GnuPG).
93050
93051         * lib/sha.c: Give credit (GnuPG) where due.
93052         (M): Use rol rather than open-coding it.
93053         Add a FIXME comment.
93054
93055 2000-09-21  Jim Meyering  <meyering@lucent.com>
93056
93057         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93058         Reported by Michael Stone.
93059
93060 2000-09-20  Jim Meyering  <meyering@lucent.com>
93061
93062         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93063         (noinst_HEADERS): Add sha.h.
93064         Based on code from Scott G. Miller and from GnuPG.
93065
93066 2000-09-18  Jim Meyering  <meyering@lucent.com>
93067
93068         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93069         LIBS. Otherwise, everyone ends up linking with -lelf for some
93070         configurations.
93071         Reported by Mike Stone.
93072
93073 2000-09-15  Jim Meyering  <meyering@lucent.com>
93074
93075         * lib/regex.c: Update from libc.
93076
93077 2000-09-10  Jim Meyering  <meyering@lucent.com>
93078
93079         * lib/getopt.c (_getopt_internal): Update from glibc.
93080
93081 2000-09-09  Jim Meyering  <meyering@lucent.com>
93082
93083         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93084         think it should be used as a general replacement for isascii.
93085         * lib/fnmatch.c: Likewise.
93086         * lib/mbswidth.c: Likewise
93087         * lib/regex.c: Likewise.
93088
93089         Don't use atoi.
93090         * lib/userspec.c: Include sys/param.h and limits.h.
93091         Include xstrtol.h.
93092         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93093         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93094         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93095         UID, GID.  Check range.
93096
93097 2000-09-06  Jim Meyering  <meyering@lucent.com>
93098
93099         * lib/getopt.c (_getopt_internal): Update from glibc.
93100
93101 2000-08-30  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/strftime.c: Merge in changes from GNU libc.
93104
93105 2000-08-26  Jim Meyering  <meyering@lucent.com>
93106
93107         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93108         * m4/fpending.m4: New file.
93109
93110 2000-08-26  Jim Meyering  <meyering@lucent.com>
93111
93112         * lib/closeout.c: Include "__fpending.h".
93113         (close_stdout_status): Return right away if there's nothing to flush.
93114
93115         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93116         * lib/__fpending.c: New file.
93117         * lib/__fpending.h: New file.
93118
93119 2000-08-20  Jim Meyering  <meyering@lucent.com>
93120
93121         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93122         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93123         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93124
93125 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93126
93127         Improve fileutils installation on systems where running
93128         programs (like install) can't be unlinked.
93129         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93130         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93131
93132 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93133
93134         Standardize on "memory exhausted" instead of "Memory exhausted"
93135         or "virtual memory exhausted".
93136         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93137         "virtual memory exhausted".
93138         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93139         our own message.
93140         * lib/userspec.c (parse_user_spec): Likewise.
93141         * lib/bumpalloc.h: comment fix
93142         * lib/same.c, userspec.c: Include xalloc.h.
93143
93144         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93145         not char *const and pointing to a constant array.
93146         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93147         (xrealloc): Comment fix.
93148
93149         * lib/userspec.c (parse_user_spec):
93150         Don't translate a message until just before returning,
93151         to avoid unnecessary translation.
93152
93153 2000-08-07  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93156         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93157         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93158         getgroups.c, gethostname.c, getopt.h, group-member.c,
93159         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93160         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93161         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93162         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93163         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93164         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93165         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93166         yesno.c: Back out Copyright date changes for each file with no change
93167         this year.  This eases coordination with other programs using the same
93168         source code modules.  From Paul Eggert.
93169
93170 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93171
93172         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93173         not char, for compatibility with glibc 2.1.3 strftime.c.
93174
93175 2000-08-03  Greg McGary  <greg@mcgary.org>
93176
93177         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93178         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93179         (EXTEND_BUFFER): Use them.
93180
93181 2000-08-01  Jim Meyering  <meyering@lucent.com>
93182
93183         * lib/dirname.c (ISSLASH): Define.
93184         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93185         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93186         both `\' and `/' may be use as path separators.
93187         Based on a patch from Prashant TR.
93188
93189 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93190
93191         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93192         slot vector a constant, since it might get modified.
93193
93194 2000-07-31  Jim Meyering  <meyering@lucent.com>
93195
93196         * lib/xmalloc.c: Use `virtual memory exhausted', not
93197         `Memory exhausted'.
93198         * lib/obstack.c (print_and_abort): Likewise.
93199
93200 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93201
93202         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93203         buffer, so that the caller can always quote one small
93204         component of a "memory exhausted" message in slot 0.
93205         From a suggestion by Jim Meyering.
93206
93207 2000-07-30  Jim Meyering  <meyering@lucent.com>
93208
93209         * lib/makepath.c (make_path): Quote the other instance, too.
93210
93211         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93212         (STATIC_BUF_SIZE): Define.
93213         (quotearg_n_options): Use only statically allocated storage when
93214         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93215         than STATIC_BUF_SIZE.
93216
93217 2000-07-29  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93220         * lib/dirname.c (dir_name): Likewise.
93221
93222         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93223         `/'.
93224
93225         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93226         (dir_name): Assert that there are no trailing slashes.
93227
93228 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93229
93230         * lib/mbswidth.h (mbswidth): Add a flags argument.
93231         (mbswidth): New declaration.
93232         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93233         * lib/mbswidth.c (mbswidth): Add a flags argument.
93234         (mbsnwidth): New function.
93235
93236 2000-07-24  Jim Meyering  <meyering@lucent.com>
93237
93238         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93239
93240 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93241
93242         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93243
93244 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93245
93246         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93247         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93248         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93249         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93250         invoke multibyte primitives.
93251
93252 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93253
93254         * lib/quotearg.c:
93255         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93256         so that mbstate_t is always defined.
93257
93258         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93259         be 1 in at least one GCC installation, and this configuration
93260         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93261         performance on hosts that have mbrtowc but have only unibyte
93262         locales, but I assume these hosts are rare.
93263
93264 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93265
93266         * lib/mbswidth.c (_XOPEN_SOURCE):
93267         Don't define; this causes problems on Solaris 7.
93268         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93269
93270 2000-07-23  Jim Meyering  <meyering@lucent.com>
93271
93272         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93273         too: getgrgid, getpwuid, getuid.
93274
93275 2000-07-23  Jim Meyering  <meyering@lucent.com>
93276
93277         * lib/basename.c (base_name): Add an assertion.
93278
93279 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93280
93281         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93282         shadow its mbsinit function.
93283
93284 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93285
93286         * lib/mbswidth.h: New file.
93287         * lib/mbswidth.c: New file.
93288         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93289         (noinst_HEADERS): Add mbswidth.h.
93290
93291 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93292
93293         * lib/config.charset: Add support for FreeBSD. Improve support for
93294         HP-UX and IRIX 6.
93295
93296 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93297
93298         * m4/mbswidth.m4: New file.
93299         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93300
93301 2000-07-15  Jim Meyering  <meyering@lucent.com>
93302
93303         * lib/makepath.c: Include quote.h.
93304         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93305         corresponding argument in a `quote (...)' call.
93306         Give better diagnostics.
93307
93308         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93309         (noinst_HEADERS): Add quote.h.
93310
93311         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93312         from tar's src/misc.c.
93313         * lib/quote.h: New file.  Prototypes for same.
93314
93315 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93316
93317         From a suggestion by Bruno Haible.
93318         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93319         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93320         to decide whether to define the BeOS workaround macro;
93321         this adjusts to the change to AC_MBSTATE_T.
93322
93323 2000-07-14  Jim Meyering  <meyering@lucent.com>
93324
93325         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93326         jm_AC_TYPE_UINTMAX_T.
93327
93328 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93329
93330         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93331
93332         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93333         quotearg_buffer_restyled): Add support for
93334         clocale_quoting_style.  Undo previous change to
93335         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93336         and "{RIGHT QUOTATION MARK}" msgids.
93337
93338 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93339
93340         From a suggestion by Bruno Haible.
93341         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93342         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93343         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93344         and mbstate_t, to a single-part test that simply defines mbstate_t.
93345         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93346         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93347
93348 2000-07-10  Jim Meyering  <meyering@lucent.com>
93349
93350         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93351
93352         * m4/gnu-source.m4: Output to confdefs.h directly.
93353         Suggestion from Akim Demaille.
93354
93355 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93356
93357         The old behavior of quoting `like this' doesn't look good with
93358         newer, ISO-style fonts.  See:
93359         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93360
93361         Instead, quote "like this" by default.  Let the translator
93362         tailor the locale-specific quoting behavior by providing
93363         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93364
93365         * lib/quotearg.c (N_): New macro.
93366         (gettext_default): New function.
93367         (quotearg_buffer_restyled): Use
93368         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93369         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93370
93371 2000-07-09  Jim Meyering  <meyering@lucent.com>
93372
93373         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93374         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93375
93376         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93377         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93378
93379 2000-07-09  Jim Meyering  <meyering@lucent.com>
93380
93381         * lib/Most files: Update copyright dates to include 2000.
93382
93383 2000-07-08  Jim Meyering  <meyering@lucent.com>
93384
93385         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93386         if not defined.
93387         (xgethostname): Remove now-unnecessary #ifdef.
93388         Move declaration of `err' into loop where it's used.
93389
93390 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93391         and Bruno Haible  <haible@clisp.cons.org>
93392
93393         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93394         only if the test for an object-type mbstate_t fails.  This
93395         prevents us from mistakenly reporting that mbstate_t is a
93396         system object type after we "#define mbstate_t int" to work
93397         around its lack.
93398
93399 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93400         and Bruno Haible  <haible@clisp.cons.org>
93401
93402         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93403
93404 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93405
93406         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93407         to strerror_r.
93408         Include <ctype.h> for use of isalpha.
93409
93410 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93411
93412         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93413         by allocating a larger buffer. Test the gethostname return value for
93414         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93415         returns an error and ENAMETOOLONG isn't defined.
93416
93417 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93418
93419         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93420         dimension.
93421
93422 2000-07-04  Jim Meyering  <meyering@lucent.com>
93423
93424         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93425         of the deprecated AC_CHECKING.
93426
93427 2000-07-04  Jim Meyering  <meyering@lucent.com>
93428
93429         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93430         Reported by Bruno Haible.
93431
93432 2000-07-04  Jim Meyering  <meyering@lucent.com>
93433
93434         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93435         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93436         lacks mbrtowc.
93437
93438 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93439
93440         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93441         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93442
93443 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93444         and Bruno Haible  <haible@clisp.cons.org>
93445
93446         * lib/quotearg.c (mbrtowc):
93447         Assign to *pwc, and return 1 only if result is nonzero.
93448         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93449
93450 2000-07-03  Jim Meyering  <meyering@lucent.com>
93451
93452         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93453
93454 2000-07-03  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93457         This is necessary to get a definition of e.g., UTMP_FILE on
93458         HP-UX 10.20.
93459         From Bob Proulx.
93460
93461 2000-07-02  Jim Meyering  <meyering@lucent.com>
93462
93463         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93464
93465         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93466         AC_LIBOBJ(function_name).
93467         * m4/chown.m4: Likewise.
93468         * m4/fnmatch.m4: Likewise.
93469         * m4/ftruncate.m4: Likewise.
93470         * m4/getgroups.m4: Likewise.
93471         * m4/getline.m4: Likewise.
93472         * m4/group-member.m4: Likewise.
93473         * m4/jm-macros.m4: Likewise.
93474         * m4/lstat.m4: Likewise.
93475         * m4/malloc.m4: Likewise.
93476         * m4/memcmp.m4: Likewise.
93477         * m4/nanosleep.m4: Likewise.
93478         * m4/putenv.m4: Likewise.
93479         * m4/realloc.m4: Likewise.
93480         * m4/regex.m4: Likewise.
93481         * m4/stat.m4: Likewise.
93482         * m4/strftime.m4: Likewise.
93483
93484 2000-07-02  Jim Meyering  <meyering@lucent.com>
93485
93486         * lib/quotearg.c (mbstate_t): Don't define here.
93487
93488 2000-07-02  Jim Meyering  <meyering@lucent.com>
93489
93490         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93491
93492 2000-07-01  Jim Meyering  <meyering@lucent.com>
93493
93494         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93495
93496 2000-07-01  Jim Meyering  <meyering@lucent.com>
93497
93498         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93499         problem.
93500
93501 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93502
93503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93504         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93505
93506 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93507
93508         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93509         per change in ../m4/ls-mntd-fs.m4.
93510         (read_filesystem_list): Ignore symbolic links.
93511
93512 2000-06-29  Jim Meyering  <meyering@lucent.com>
93513
93514         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93515         for declaration of strcmp.
93516
93517         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93518
93519         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93520         Avoid warning by casting result to `char *' to remove `const'.
93521
93522 2000-06-28  Jim Meyering  <meyering@lucent.com>
93523
93524         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93525         included by quotearg.c, for which we perform this test.  From
93526         Bruno Haible.
93527
93528 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93529
93530         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93531         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93532         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93533
93534 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93535
93536         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93537
93538 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93539
93540         savedir now sets errno on failure and invokes xmalloc to get memory.
93541         Fix a couple of other minor bugs while we're at it.
93542
93543         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93544         (NAMLEN): Remove macro.
93545         (malloc, realloc): Remove decls.
93546         (stpcpy): Likewise.
93547         ("xalloc.h"): Include.
93548         (NAME_SIZE_DEFAULT): New macro.
93549         (savedir): Use xmalloc / xrealloc to allocate memory.
93550         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93551         Skip "" directory entries.
93552         Use strlen to calculate directory entry length, since the old method
93553         is rarely used these days and isn't worth supporting.
93554         Don't use a pointer after freeing it.
93555         Check for integer overflow when calculating allocation size.
93556         Use memcpy to copy entries, instead of stpcpy.
93557         Set errno properly when returning NULL.
93558         Check for readdir error.
93559
93560 2000-06-26  Jim Meyering  <meyering@lucent.com>
93561
93562         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93563
93564 2000-06-25  Jim Meyering  <meyering@lucent.com>
93565
93566         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93567         Linux header bug when _XOPEN_SOURCE is defined to 500.
93568
93569 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93570
93571         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93572         deficiency.
93573
93574 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93575
93576         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93577         Include xalloc.h.
93578         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93579
93580 2000-06-24  Jim Meyering  <meyering@lucent.com>
93581
93582         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93583         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93584         for which strerror does return char*, but which lacks a conveniently
93585         accessible declaration of the function.  If the compile-test says
93586         strerror_r doesn't work, then resort to a `run'-test that works on
93587         BeOS and segfaults on DEC Unix.
93588
93589 2000-06-24  Jim Meyering  <meyering@lucent.com>
93590
93591         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93592
93593 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93594
93595         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93597
93598 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93599
93600         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93601         (mbrtowc, mbstate_t): Define substitutes if
93602         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93603         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93604         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93605
93606 2000-06-23  Jim Meyering  <meyering@lucent.com>
93607
93608         * m4/afs.m4: Add missing AC_MSG_RESULT.
93609         Reported by Bruno Haible.
93610
93611         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93612         Suggestion from Bruno Haible.
93613
93614 2000-06-23  Jim Meyering  <meyering@lucent.com>
93615
93616         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93617
93618 2000-06-21  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93621
93622 2000-06-21  Jim Meyering  <meyering@lucent.com>
93623
93624         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93625         (noinst_HEADERS): Add getstr.h.
93626
93627         * lib/getline.c (getstr): Move into a separate file.
93628         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93629         the following changes: new parameter, delim2; both delim[12]
93630         parameters have type `int', not `char'.  The latter would lose
93631         with 8-bit delimiters.
93632         * lib/getstr.h: New file.
93633
93634 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93635
93636         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93637         than 1024, return a memory chunk of least possible size, instead
93638         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93639         Use free/xmalloc instead of xrealloc to avoid copying for very long
93640         paths.
93641
93642 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93643
93644         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93645         the empty string.
93646
93647 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93648
93649         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93650         address, not strdup.  Include <stdlib.h> and don't declare free().
93651
93652 2000-06-19  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93655
93656 2000-06-18  Jim Meyering  <meyering@lucent.com>
93657
93658         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93659
93660         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93661         `checking whether...' message to be consistent with that of the
93662         lstat test.
93663
93664 2000-06-18  Jim Meyering  <meyering@lucent.com>
93665
93666         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93667         Besides, these days every porting target provides a mkdir function.
93668
93669         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93670         needed. (this snippet comes from src/system.h).
93671
93672 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93673
93674         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93675
93676 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93677
93678         * lib/human.c (adjust_value): New function.
93679         (human_readable_inexact): Apply rounding style even when
93680         printing approximate values.
93681
93682 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93683
93684         * lib/human.c (human_readable_inexact): Allow an input block
93685         size that is not a multiple of the output block size, and vice versa.
93686         Reported by Piergiorgio Sartor.
93687
93688 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93689
93690         * lib/getdate.y (get_date): Apply relative times after time
93691         zone indicator, not before.  Reported by Todd A. Jacobs.
93692
93693 2000-06-13  Jim Meyering  <meyering@lucent.com>
93694
93695         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93696
93697         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93698
93699 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93700
93701         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93702
93703 2000-06-12  Jim Meyering  <meyering@lucent.com>
93704
93705         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93706         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93707         optional argument.
93708         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93709         the optional argument, `lib'.
93710
93711 2000-06-08  Jim Meyering  <meyering@lucent.com>
93712
93713         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93714
93715 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93716
93717         Rewrite largefile configuration so that we don't need to run
93718         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93719         AC_CANONICAL_HOST in configure.in -- jmm]
93720
93721         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93722         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93723         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93724         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93725         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93726         All uses changed.
93727         Instead of inspecting the output of getconf, try to compile the
93728         test program without and with the macro definition.
93729         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93730         for getconf.  Instead, check for the needed flags by compiling
93731         test programs.
93732
93733 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93734
93735         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93736
93737 2000-06-04  Jim Meyering  <meyering@lucent.com>
93738
93739         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93740         SunOS 4.1.4 for which gid_t is an unsigned type.
93741
93742 2000-06-03  Jim Meyering  <meyering@lucent.com>
93743
93744         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93745         now that autoconf requires that.
93746
93747         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93748         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93749         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93750
93751 2000-06-03  Jim Meyering  <meyering@lucent.com>
93752
93753         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93754
93755 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93756
93757         * m4/glibc21.m4: New file.
93758         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93759
93760 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93761
93762         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93763         newer, don't install charset.alias.
93764         * lib/config.charset: Change the Linux/glibc rules so they become empty
93765         on glibc-2.1 or newer.
93766
93767 2000-06-02  Jim Meyering  <meyering@lucent.com>
93768
93769         * lib/mountlist.c: Back out last change.  Instead, do this...
93770         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93771         me_dummy member using the same `ignore'-testing code.
93772         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93773         fs_type strings.
93774         From Mark D. Roth.
93775
93776 2000-05-29  Jim Meyering  <meyering@lucent.com>
93777
93778         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93779         mounts with the `ignore' attribute.  Based on a patch from
93780         Mark D. Roth.
93781
93782 2000-05-28  Jim Meyering  <meyering@lucent.com>
93783
93784         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93785         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93786         * m4/stat.m4: Likewise.
93787         * m4/lstat.m4: Likewise.
93788         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93789
93790         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93791         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93792
93793 2000-05-26  Jim Meyering  <meyering@lucent.com>
93794
93795         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93796
93797 2000-05-24  Jim Meyering  <meyering@lucent.com>
93798
93799         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93800         autoconf requires that.
93801         * m4/lib-check.m4: Likewise.
93802         * m4/jm-macros.m4: Likewise.
93803         * m4/strftime.m4: Likewise.
93804
93805         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93806         AC_CHECK_DECLS, now that autoconf requires that.
93807
93808 2000-05-22  Jim Meyering  <meyering@lucent.com>
93809
93810         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93811         * m4/lstat.m4: Likewise.
93812
93813 2000-05-22  Jim Meyering  <meyering@lucent.com>
93814
93815         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93816
93817 2000-05-20  Jim Meyering  <meyering@lucent.com>
93818
93819         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93820         (jm_PREREQ): Use it.
93821
93822 2000-05-18  Jim Meyering  <meyering@lucent.com>
93823
93824         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93825         back, too, since it may have been modified by allocate_entry.
93826         (hash_delete): Rewrite to use neither the assignment operator
93827         nor the comma operator in an if-expression.
93828
93829 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93830
93831         * lib/closeout.c:
93832         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93833         Remove; no longer needed.
93834         "quotearg.h": Add include.
93835         (file_name): Do not bother to explicitly initialize to NULL; it's less
93836         efficient on some hosts.
93837         (close_stdout_status): Remove test as to whether stdout was already
93838         closed; it breaks for the case "echo x | sort >&-".
93839         Quote file name colons.
93840         Do not assume that _("write error") lacks format strings.
93841
93842 2000-05-15  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/version-etc.c (version_etc_copyright): Update the copyright
93845         string used in all --version output.
93846
93847 2000-05-14  Jim Meyering  <meyering@lucent.com>
93848
93849         * lib/closeout.c (close_stdout_set_file_name): New function.
93850         (close_stdout_status): Use new file-scoped global.
93851         Return right away if fstat says the stdout file descriptor is invalid.
93852         * lib/closeout.h (close_stdout_set_file_name): Declare.
93853
93854 2000-05-10  Jim Meyering  <meyering@lucent.com>
93855
93856         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93857         (close_stdout_set_status): New function.
93858         * lib/closeout.h (close_stdout_set_status): Declare.
93859
93860 2000-05-09  Jim Meyering  <meyering@lucent.com>
93861
93862         * m4/gettext.m4: Rename this...
93863         * m4/libintl.m4: ...to this.
93864
93865 2000-05-08  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/long-options.c: Don't include closeout.h.
93868         (parse_long_options): Don't call close_stdout for --version.
93869
93870 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93871
93872         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93873         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93874         2.1.3 bug.  This avoids a clash when files like regex.c define
93875         _GNU_SOURCE.
93876
93877 2000-05-06  Jim Meyering  <meyering@lucent.com>
93878
93879         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93880         (AC_REPLACE_FUNCS): Add strnlen.
93881
93882         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93883         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93884
93885         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93886         AC_SEARCH_LIBS call for nanosleep.
93887         (LIB_NANOSLEEP): Set and AC_SUBST.
93888
93889 2000-05-06  Jim Meyering  <meyering@lucent.com>
93890
93891         * lib/strnlen.c: Undefine __strnlen and strnlen.
93892         [!weak_alias]: Define __strnlen to strnlen.
93893
93894         * lib/atexit.c: New file, from libiberty.
93895
93896 2000-05-06  Jim Meyering  <meyering@lucent.com>
93897
93898         * lib/closeout.c (close_stdout_status): Also check for errors on the
93899         stderr stream.
93900
93901 2000-05-05  Jim Meyering  <meyering@lucent.com>
93902
93903         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93904         AC_SEARCH_LIBS call for clock_gettime.
93905         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93906
93907         * m4/search-libs.m4: Update from autoconf.
93908
93909         su doesn't work on Solaris 2.6.
93910         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93911         <shadow.h>.  Reported by Dragos Harabor.
93912
93913 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93914
93915         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93916         memcpy instead of xmalloc, xrealloc, path_concat.
93917         (locale_charset): Treat empty environment variables as absent.
93918         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93919
93920 2000-05-04  Jim Meyering  <meyering@lucent.com>
93921
93922         * lib/getopt.c: Update from glibc.
93923         * lib/obstack.c: Likewise.
93924         * lib/obstack.h: Likewise.
93925         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93926         file
93927
93928         * lib/regex.h: Likewise.
93929         * lib/strndup.c: Likewise.
93930         * lib/strnlen.c: New file, from glibc.
93931
93932 2000-05-03  Jim Meyering  <meyering@lucent.com>
93933
93934         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93935
93936 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93937
93938         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93939         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93940         compile-time test, rather than inspecting host and OS, to
93941         decide whether to define _LARGEFILE_SOURCE.
93942
93943 2000-05-01  Jim Meyering  <meyering@lucent.com>
93944
93945         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93946
93947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93948         Based on a patch from Bruno Haible.
93949
93950 2000-05-01  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93953
93954 2000-04-29  Jim Meyering  <meyering@lucent.com>
93955
93956         * lib/path-concat.c: Declare strdup only if it's not defined.
93957         * lib/canon-host.c: Likewise.
93958
93959 2000-04-28  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93962         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93963         is included first, then limits.h is included by locale.h by libintl.h.
93964         From John David Anglin.
93965
93966 2000-04-25  Jim Meyering  <meyering@lucent.com>
93967
93968         * lib/makepath.c (S_IRWXUGO): Define.
93969         (make_path): Always perform explicit chmod if MODE specifies any
93970         of the `special' permission bits.  Prompted by a bug report against
93971         install from Mate Wierdl and Joost van Baal.
93972
93973 2000-04-18  Jim Meyering  <meyering@lucent.com>
93974
93975         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93976         (jm_PREREQ): Use it.
93977
93978 2000-04-18  Jim Meyering  <meyering@lucent.com>
93979
93980         * lib/README: New file.
93981
93982         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93983         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93984
93985 2000-04-17  Jim Meyering  <meyering@lucent.com>
93986
93987         Get it right :-)
93988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93989         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93990         Suggestion from Akim Demaille.
93991
93992 2000-04-17  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93995         the definition of it to rpl_strftime also defined-away the system's
93996         declaration.
93997
93998 2000-04-15  Jim Meyering  <meyering@lucent.com>
93999
94000         Use `C' to denote so-called `contiguous' files, the same way
94001         that tar does.
94002         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94003         (ftypelet): Use S_ISCTG.
94004         From Michael Deutschmann.
94005
94006 2000-04-14  Jim Meyering  <meyering@lucent.com>
94007
94008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94009         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94010         clobbered.
94011
94012 2000-04-14  Jim Meyering  <meyering@lucent.com>
94013
94014         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94015
94016 2000-04-13  Jim Meyering  <meyering@lucent.com>
94017
94018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94019         AH_VERBATIM to insert required #ifndef into config.h.in.
94020         Suggestion from Akim Demaille.
94021
94022 2000-04-12  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94025         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94026         Christian Krackowizer.
94027
94028         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94029         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94030         (AC_SYS_LARGEFILE): Require.
94031         (AM_C_PROTOTYPES): Require.
94032
94033 2000-04-08  Jim Meyering  <meyering@lucent.com>
94034
94035         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94036         names don't conflict.  Reported by Eli Zaretskii.
94037
94038 2000-04-07  Jim Meyering  <meyering@lucent.com>
94039
94040         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94041         sys/types.h, to work around system header problems on AIX 3.2.5.
94042         From Bruno Haible.
94043
94044 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94045
94046         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94047         bug.  Deal with the different error behavior of Irix iconv.
94048
94049 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94050
94051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94052         IRIX if the installer said otherwise.
94053
94054 2000-04-05  Jim Meyering  <meyering@lucent.com>
94055
94056         Portability tweaks required for ultrix4.3.
94057         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94058         (jm_CHECK_DECLS): Add getutent to the list of functions.
94059         (_jm_DECL_HEADERS): Add utmpx.h.
94060         From John David Anglin.
94061
94062         * m4/strftime.m4: Back out the 2000-04-02 change.
94063         Instead of that change, simply undefine putenv in the test program.
94064
94065 2000-04-05  Jim Meyering  <meyering@lucent.com>
94066
94067         Portability tweaks required for ultrix4.3.
94068         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94069         getutent.
94070         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94071         * lib/canon-host.c: Declare strdup.
94072         * lib/path-concat.c: Likewise.
94073         From John David Anglin.
94074
94075 2000-04-04  Jim Meyering  <meyering@lucent.com>
94076
94077         Be more DOS 8.3-friendly.
94078         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94079         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94080         * lib/Makefile.am: Reflect renaming.
94081         Reported by Eli Zaretskii.
94082
94083         Use a temporary file name that won't clash with `charset.alias'
94084         in the DOS 8.3 name space.
94085         * lib/Makefile.am (charset_tmp): Define.
94086         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94087         (uninstall-local): Likewise.
94088         Reported by Eli Zaretskii.
94089
94090 2000-04-03  Jim Meyering  <meyering@lucent.com>
94091
94092         * m4/gettext.m4: Fix typo in comment.
94093
94094         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94095         textutils/configure.in).  Suggestion from Paul Eggert.
94096         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94097
94098 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94099
94100         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94101         variable in the shell rather than using putenv, which isn't
94102         portable.  This avoids the configure-time inter-test dependency
94103         on the potentially-renamed putenv function.
94104
94105 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94106
94107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94108         before checking struct stat.st_blksize, so that
94109         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94110
94111 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94112
94113         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94114         since strftime.c uses HAVE_STRFTIME to decide whether to use
94115         the underlying strftime.
94116
94117 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94118
94119         * lib/time/strftime.c (my_strftime): Make sure we call the system
94120         strftime, not ourselves, when invoking the underlying strftime.
94121
94122 2000-03-24  Jim Meyering  <meyering@lucent.com>
94123
94124         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94125         (charset_alias): Define.
94126         (install-exec-local): Factor out common code.
94127         (uninstall-local): Split lines longer than 80.
94128         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94129         (SUFFIXES): Define.
94130         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94131         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94132
94133 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94134
94135         * lib/config.charset: Output a line containing "Packages using this
94136         file".
94137         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94138         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94139         ref-del.sed): New rules.
94140
94141 2000-03-17  Jim Meyering  <meyering@lucent.com>
94142
94143         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94144         Otherwise, include <strings.h>
94145
94146 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94147
94148         * lib/unicodeio.c (utf8_wctomb): New function.
94149         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94150         format instead of in UCS-4 with platform dependent endianness.
94151
94152 2000-03-10  Jim Meyering  <meyering@lucent.com>
94153
94154         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94155         From Marco Franzen.
94156
94157 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94158
94159         * lib/savedir.c (savedir): Work even if directory size is
94160         negative; this can happen with some screwy NFS configurations.
94161
94162 2000-03-06  Jim Meyering  <meyering@lucent.com>
94163
94164         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94165         if it's NULL (because we ran out of memory).  From Bruno Haible.
94166
94167 2000-03-05  Jim Meyering  <meyering@lucent.com>
94168
94169         * lib/localcharset.c ("path-concat.h"): Include.
94170         (get_charset_aliases): Use path_concat instead of ANSI string
94171         concatenation.
94172
94173         * lib/unicodeio.h (PARAMS): Define.
94174         Use it to guard prototype.
94175
94176 2000-03-04  Jim Meyering  <meyering@lucent.com>
94177
94178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94179         for lib/localcharset.c.
94180
94181 2000-03-04  Jim Meyering  <meyering@lucent.com>
94182
94183         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94184         installing into it.
94185         (uninstall-local): Uncomment this rule so `make distcheck' works
94186         once again.
94187
94188         * lib/unicodeio.c (<errno.h>): Include it.
94189         (errno): Declare if not defined.
94190
94191         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94192
94193         * lib/config.charset: New version, incorporating remarks from a linux
94194         i18n mailing list.  From Bruno Haible.
94195
94196 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94197
94198         * m4/codeset.m4: New file.
94199         * m4/iconv.m4: New file.
94200         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94201
94202 2000-03-03  Jim Meyering  <meyering@lucent.com>
94203
94204         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94205
94206 2000-03-02  Jim Meyering  <meyering@lucent.com>
94207
94208         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94209         the messages come out on separate lines.
94210
94211         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94212         rather than jm_CHECK_DECLARATIONS.
94213         * m4/decl.m4: Remove now-unused file.
94214
94215         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94216         geteuid.
94217
94218 2000-03-02  Jim Meyering  <meyering@lucent.com>
94219
94220         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94221
94222 2000-03-01  Jim Meyering  <meyering@lucent.com>
94223
94224         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94225         * lib/unicodeio.c: Likewise.
94226
94227 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94228
94229         * lib/config.charset: New file.
94230         * lib/localcharset.c: New file.
94231         * lib/unicodeio.h, lib/unicodeio.c: New files.
94232         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94233         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94234         (noinst_HEADERS): Add unicodeio.h.
94235         (all-local, install-exec-local, charset.alias): New targets.
94236
94237 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94238
94239         * lib/quotearg.c (ALERT_CHAR): New macro.
94240         (quotearg_buffer_restyled): Use it.
94241
94242 2000-02-27  Jim Meyering  <meyering@lucent.com>
94243
94244         * m4/check-decl.m4: Add getenv to the list.
94245
94246 2000-02-27  Jim Meyering  <meyering@lucent.com>
94247
94248         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94249         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94250
94251         * lib/backupfile.c: Guard inclusion of stdlib.h with
94252         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94253         Declare malloc if needed.
94254
94255         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94256         `#ifndef HAVE_DECL..'
94257         now that autoconf always defines the HAVE_DECL_ symbols.
94258         * lib/human.c: Likewise.
94259         * lib/same.c: Likewise.
94260         * lib/strtoumax.c: Likewise.
94261
94262         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94263         declaration check was not run.
94264         * lib/hash.c: Likewise.
94265         * lib/human.c: Likewise.
94266         * lib/same.c: Likewise.
94267         * lib/strtoumax.c: Likewise.
94268
94269         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94270         `.', then first look up the entire `.'-containing string as a login
94271         name.
94272
94273 2000-02-23  Jim Meyering  <meyering@lucent.com>
94274
94275         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94276         in place of my hack.
94277
94278 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94279
94280         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94281         (textint): New typedef.
94282         (parser_control): Member year changed from int to textint.
94283         All uses changed.
94284         (YYSTYPE): Removed; replaced by %union with int and textint members.
94285         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94286         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94287         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94288         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94289         (date, number, to_year): Use width of number in digits, not its value,
94290         to determine whether it's a 2-digit year, or a 2-digit time.
94291         (yylex): Store number of digits of numeric tokens.
94292         Reported by John Kendall.
94293
94294         (parser_control): Changed from struct parser_control to typedef (for
94295         consistency).  All uses changed.
94296
94297         (tID): Removed; not used.
94298         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94299
94300 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94301
94302         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94303         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94304
94305 2000-02-12  Jim Meyering  <meyering@lucent.com>
94306
94307         * lib/userspec.c (ISDIGIT): Define it.
94308         (isdigit): Remove definition.
94309         (is_number): Use ISDIGIT, not isdigit.
94310         <libintl.h>: Include.
94311         (_ and N_): Define.
94312         (parse_user_spec): Mark translatable strings.
94313
94314 2000-02-10  Jim Meyering  <meyering@lucent.com>
94315
94316         With these changes, nanosleep.[ch] are finally enough like the other
94317         lib/* replacement files to compile on a few more losing systems.
94318
94319         * lib/nanosleep.h: Don't include config.h.
94320         Remove prototype from declaration of nanosleep.
94321         (PARAMS): Remove now-unneeded definition.
94322         * lib/nanosleep.c: #undef nanosleep.
94323         (rpl_nanosleep): Rename from nanosleep.
94324
94325 2000-02-10  Jim Meyering  <meyering@lucent.com>
94326
94327         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94328         gnu_nanosleep to rpl_nanosleep.
94329
94330 2000-02-09  Jim Meyering  <meyering@lucent.com>
94331
94332         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94333         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94334
94335 2000-02-08  Akim Demaille  <akim@epita.fr>
94336
94337         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94338         `[' and `]' and remove uses of `changequote'.
94339         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94340         (AC_SYS_LARGEFILE): Likewise.
94341         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94342         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94343         of changequote.
94344         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94345         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94346         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94347         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94348
94349 2000-02-05  Jim Meyering  <meyering@lucent.com>
94350
94351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94352         Remove explicit use of AC_HEADER_TIME.  It is required by
94353         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94354         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94355         in autoconf whereby the expansion of the latter ended up preceding
94356         the expansion of its prerequisite, AC_HEADER_TIME.
94357         Reported by Volker Borchert.
94358
94359 2000-02-03  Jim Meyering  <meyering@lucent.com>
94360
94361         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94362
94363 2000-02-03  Jim Meyering  <meyering@lucent.com>
94364
94365         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94366         rather than with `#if HAVE_UTMPNAME'.
94367
94368 2000-02-02  Jim Meyering  <meyering@lucent.com>
94369
94370         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94371         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94372         Reported by Eli Zaretskii.
94373
94374 2000-02-01  Jim Meyering  <meyering@lucent.com>
94375
94376         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94377
94378 2000-01-31  Jim Meyering  <meyering@lucent.com>
94379
94380         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94381         functions.  Add the time.h and sys/time.h headers along with the
94382         AC_REQUIRE'ment of AC_HEADER_TIME.
94383
94384 2000-01-31  Jim Meyering  <meyering@lucent.com>
94385
94386         * lib/nanosleep.h (nanosleep): Guard declaration with
94387         `#if ! HAVE_DECL_NANOSLEEP'.
94388         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94389         the declaration in that vendor's sys/timers.h.
94390         Reported by Christian Krackowizer.
94391
94392         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94393         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94394         (ISPRINT): Likewise.
94395         Reported by Tom Tromey.
94396
94397 2000-01-30  Jim Meyering  <meyering@lucent.com>
94398
94399         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94400
94401         * m4/prereq.m4 (utmp_includes): Define.
94402         Check for ut_user and ut_name members in both struct utmpx
94403         and struct utmp.
94404
94405 2000-01-30  Jim Meyering  <meyering@lucent.com>
94406
94407         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94408         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94409         header files where only utmpx.ut_user is declared.
94410
94411         * lib/readutmp.h (UT_USER): Define.
94412
94413 2000-01-29  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/lib-check.m4: New file containing library-related checks from
94416         fileutils and sh-utils (textutils had none).
94417
94418 2000-01-28  Jim Meyering  <meyering@lucent.com>
94419
94420         * m4/perl.m4: Change format of warning message to look more like that
94421         from the missing script.  Suggestion from François Pinard.
94422
94423 2000-01-25  Jim Meyering  <meyering@lucent.com>
94424
94425         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94426         well as time.h in the compile check.
94427         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94428         Fix typo in cross-compiling case: s/yes/no/.
94429
94430 2000-01-23  Jim Meyering  <meyering@lucent.com>
94431
94432         * m4/jm-macros.m4: Move df-related tests here from
94433         fileutils/configure.in
94434
94435         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94436         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94437
94438         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94439         s/space/ac_fsusage_space/.
94440         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94441
94442         * m4/ftruncate.m4: New file (derived from part of
94443         fileutils/configure.in).
94444         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94445         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94446
94447         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94448         AC_SUBST these here, rather than just in sh-util/configure.in, so
94449         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94450         all the same.
94451         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94452         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94453         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94454         (AC_SUBST(POW_LIBM)): Likewise.
94455         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94456
94457 2000-01-23  Jim Meyering  <meyering@lucent.com>
94458
94459         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94460         obstack.c.
94461
94462 2000-01-22  Jim Meyering  <meyering@lucent.com>
94463
94464         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94465
94466         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94467
94468         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94469         configure.in
94470         (AC_CHECK_HEADERS): Likewise for sh-utils.
94471         (AC_CHECK_HEADERS): Likewise for textutils.
94472         Merge the three lists of headers.
94473
94474         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94475         from fileutils' configure.in.
94476
94477         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94478         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94479         check-decl.m4.
94480
94481         * m4/check-decl.m4: Use #if rather than #ifdef.
94482         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94483         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94484         (_jm_DECL_HEADERS): Define new function.
94485         (jm_CHECK_DECLARATIONS): Require it.
94486
94487 2000-01-22  Jim Meyering  <meyering@lucent.com>
94488
94489         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94490         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94491         Required for some AIX systems.  Reported by Christian Krackowizer.
94492         [TESTING] (main): New function.
94493
94494         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94495         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94496         letters.
94497
94498         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94499         iswprint.
94500
94501         * lib/strverscmp.c (ISDIGIT): Define.
94502         (strverscmp): Use ISDIGIT, not isdigit.
94503
94504 2000-01-19  Jim Meyering  <meyering@lucent.com>
94505
94506         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94507         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94508         defines `struct timespec' in <sys/time.h>
94509
94510         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94511         Thanks to Akim for explaining.
94512
94513 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94514
94515         * lib/nanosleep.c (nanosleep):
94516         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94517         POSIX.1 doesn't require SA_INTERRUPT and some systems
94518         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94519         it's been part of POSIX.1 since day 1 (in 1988).
94520
94521 2000-01-17  Jim Meyering  <meyering@lucent.com>
94522
94523         * lib/interlock: Remove unused file.  Reported by François Pinard.
94524
94525 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94526
94527         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94528         alert, backslash, formfeed, and vertical tab unnecessarily in
94529         shell quoting style.
94530
94531 2000-01-16  Jim Meyering  <meyering@lucent.com>
94532
94533         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94534         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94535         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94536         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94537
94538 2000-01-16  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94541         because the latter didn't work.
94542
94543 2000-01-15  Jim Meyering  <meyering@lucent.com>
94544
94545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94546         (AC_REPLACE_FUNCS): Add memcpy and memset.
94547         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94548         Add strpbrk.
94549         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94550
94551 2000-01-12  Jim Meyering  <meyering@lucent.com>
94552
94553         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94554         (jm_PREREQ): Use it.
94555         (jm_PREREQ_READUTMP): New macro.
94556         (jm_PREREQ): Use it.
94557
94558 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94559
94560         Quote multibyte characters correctly.
94561         * m4/c-bs-a.m4: New file.
94562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94563         (jm_PREREQ): Use it.
94564
94565 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94566
94567         * m4/uintmax_t.m4: Port to autoconf 2.13.
94568
94569 2000-01-08  Jim Meyering  <meyering@ascend.com>
94570
94571         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94572         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94573
94574 2000-01-04  Jim Meyering  <meyering@ascend.com>
94575
94576         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94577         jm_STRUCT_DIRENT_D_TYPE.
94578         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94579         jm_STRUCT_DIRENT_D_INO.
94580         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94581         jm_STRUCT_UTIMBUF.
94582         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94583         renamings.
94584         * m4/utime.m4: Likewise.
94585
94586         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94587         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94588
94589 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94590
94591         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94592         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94593
94594 2000-01-02  Jim Meyering  <meyering@ascend.com>
94595
94596         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94597         remember if this is necessary.
94598
94599 1999-12-26  Jim Meyering  <meyering@ascend.com>
94600
94601         * m4/jm-macros.m4: Use it here.
94602         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94603
94604 1999-12-23  Jim Meyering  <meyering@ascend.com>
94605
94606         * m4/jm-macros.m4: Check for clock_gettime (moved from
94607         fileutils/configure.in)
94608         Check for gettimeofday.
94609
94610 1999-12-20  Jim Meyering  <meyering@ascend.com>
94611
94612         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94613         autoconf-2.14a-1999-12-20.
94614
94615 1999-12-19  Jim Meyering  <meyering@ascend.com>
94616
94617         * m4/lstat-slash.m4: New file.
94618         * m4/jm-macros.m4: Use the new macro:
94619         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94620
94621 1999-12-07  Jim Meyering  <meyering@ascend.com>
94622
94623         * m4/perl.m4: Require that File::Compare be available, too.
94624         Too many systems seem to lack it.
94625
94626         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94627         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94628
94629 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94630
94631         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94632         problem with the QNX 4.25 shell, which doesn't propagate exit
94633         status of failed commands inside shell assignments.
94634
94635 1999-11-17  Jim Meyering  <meyering@ascend.com>
94636
94637         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94638
94639 1999-11-07  Jim Meyering  <meyering@ascend.com>
94640
94641         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94642
94643 1999-11-06  Jim Meyering  <meyering@ascend.com>
94644
94645         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94646         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94647
94648 1999-11-05  Jim Meyering  <meyering@ascend.com>
94649
94650         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94651         configure.in of textutils, fileutils, and sh-utils into this one
94652         (shared between those packages) file.
94653         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94654         AC_STRUCT_ST_BLKSIZE.
94655
94656 1999-11-03  Jim Meyering  <meyering@ascend.com>
94657
94658         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94659         of AC_CHECK_TYPE checks includes unistd.h.
94660         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94661         Suggestion from Akim Demaille.
94662
94663 1999-10-30  Jim Meyering  <meyering@ascend.com>
94664
94665         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94666         m4-quoted string.
94667         * m4/ls-mntd-fs.m4: Likewise.
94668         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94669         * m4/jm-winsz1.m4: Likewise.
94670
94671         * m4/const.m4: Remove file, since the fix made it into the experimental
94672         version of autoconf.
94673         * m4/mktime.m4: Likewise.
94674
94675         * m4/check-type.m4: Remove file, now that the latest version of
94676         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94677
94678         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94679         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94680         AC_CHECK_TYPE.
94681
94682 1999-10-04  Jim Meyering  <meyering@ascend.com>
94683
94684         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94685
94686 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94687
94688         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94689         2.95.1 bug with HP-UX 10.20.
94690
94691 1999-09-17  Jim Meyering  <meyering@ascend.com>
94692
94693         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94694         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94695         due to missing strdup (against sh-utils-2.0).
94696
94697 1999-08-29  Jim Meyering  <meyering@ascend.com>
94698
94699         * m4/jm-macros.m4: Require jm_BISON.
94700         * m4/bison.m4: New file.
94701
94702 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94703
94704         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94705         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94706
94707 1999-08-05  Jim Meyering  <meyering@ascend.com>
94708
94709         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94710         to avoid conflicts with `conftest' on 8+3 filesystems.
94711         Suggestion from Eli Zaretskii.
94712
94713 1999-08-04  Jim Meyering  <meyering@ascend.com>
94714
94715         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94716         fileutils and sh-utils (textutils's getline test was inadequate).
94717         (AM_FUNC_GETLINE): Run this test.
94718         (AC_CHECK_FUNCS): Check for getdelim.
94719         Reported by Bob Proulx.
94720
94721 1999-08-02  Jim Meyering  <meyering@ascend.com>
94722
94723         * m4/jm-macros.m4: Add a comment.
94724
94725 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94726
94727         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94728         <inttypes.h> defines strtoumax as a macro (and not as a
94729         function).
94730
94731 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94732
94733         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94734         that we can shift, multiply and divide unsigned long long
94735         values; Ultrix cc can't do it.
94736
94737 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94738
94739         * m4/mktime.m4: New file, which is a preview of what should appear
94740         in the next public autoconf release.
94741
94742 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94743
94744         * m4/lfs.m4: Remove this file.
94745         * m4/largefile.m4: New file.  It contains the old contents of
94746         lfs.m4, except that all names with prefix AC_LFS have been
94747         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94748         compatible with future autoconf versions.  Also, some minor m4
94749         quoting problems have been fixed.
94750
94751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94752
94753         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94754         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94755         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94756         and simplify the shell code.
94757
94758 1999-08-01  Jim Meyering  <meyering@ascend.com>
94759
94760         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94761         m4.
94762
94763 1999-07-20  Jim Meyering  <meyering@ascend.com>
94764
94765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94766
94767 1999-07-15  Jim Meyering  <meyering@ascend.com>
94768
94769         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94770
94771 1999-05-22  Jim Meyering  <meyering@ascend.com>
94772
94773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94774
94775 1999-05-20  Jim Meyering  <meyering@ascend.com>
94776
94777         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94778         Add a colon after each `then' in case $4 is empty.
94779
94780 1999-05-16  Jim Meyering  <meyering@ascend.com>
94781
94782         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94783
94784 1999-05-10  Jim Meyering  <meyering@ascend.com>
94785
94786         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94787
94788         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94789         AC_FUNC_MKTIME.
94790
94791 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94792
94793         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94794
94795 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94796
94797         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94798         not CPPFLAGS, so that linking works correctly in IRIX.
94799
94800 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94801
94802         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94803
94804 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94805
94806         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94807         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94809         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94810         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94811
94812         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94813
94814 1999-04-20  Jim Meyering  <meyering@ascend.com>
94815
94816         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94817         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94818         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94819
94820 1999-04-18  Jim Meyering  <meyering@ascend.com>
94821
94822         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94823         * m4/jm-macros.m4: Use it.
94824
94825 1999-04-06  Jim Meyering  <meyering@ascend.com>
94826
94827         * m4/strftime.m4: Remove test for %f.
94828
94829 1999-03-29  Jim Meyering  <meyering@ascend.com>
94830
94831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94832         superset of the AC_TYPE_* checks in the textutils, fileutils,
94833         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94834         AC_TYPE_PID_T.
94835
94836 1999-03-28  Jim Meyering  <meyering@ascend.com>
94837
94838         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94839         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94840         replaced e.g., in the *.sh files of the sh-utils.
94841
94842 1999-03-20  Jim Meyering  <meyering@ascend.com>
94843
94844         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94845         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94846         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94847
94848 1999-03-19  Jim Meyering  <meyering@ascend.com>
94849
94850         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94851
94852 1999-03-12  Jim Meyering  <meyering@ascend.com>
94853
94854         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94855
94856 1999-03-07  Jim Meyering  <meyering@ascend.com>
94857
94858         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94859         declared.
94860
94861 1999-02-17  Jim Meyering  <meyering@ascend.com>
94862
94863         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94864         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94865
94866 1999-02-07  Jim Meyering  <meyering@ascend.com>
94867
94868         * m4/group-member.m4: New file -- extracted from sh-utils'
94869         configure.in.
94870
94871         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94872         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94873
94874 1999-02-06  Jim Meyering  <meyering@ascend.com>
94875
94876         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94877         * m4/fnmatch.m4: Likewise.
94878         * m4/getgroups.m4: Likewise.
94879         * m4/lstat.m4: Likewise.
94880         * m4/malloc.m4: Likewise.
94881         * m4/putenv.m4: Likewise.
94882         * m4/realloc.m4: Likewise.
94883         * m4/regex.m4: Likewise.
94884         * m4/stat.m4: Likewise.
94885         * m4/strftime.m4: Likewise.
94886         Suggestion from Alain Magloire.
94887
94888         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94889         * m4/fnmatch.m4: Likewise.
94890         * m4/getgroups.m4: Likewise.
94891         * m4/getline.m4: Likewise.
94892         * m4/lstat.m4: Likewise.
94893         * m4/malloc.m4: Likewise.
94894         * m4/memcmp.m4: Likewise.
94895         * m4/putenv.m4: Likewise.
94896         * m4/realloc.m4: Likewise.
94897         * m4/regex.m4: Likewise.
94898         * m4/stat.m4: Likewise.
94899         * m4/strftime.m4: Likewise.
94900         Suggestion from Alain Magloire.
94901
94902         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94903         an argument.
94904
94905         * m4/regex.m4: Add a run-time Test for proper operation of
94906         re_compile_pattern.
94907
94908 1999-01-31  Jim Meyering  <meyering@ascend.com>
94909
94910         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94911
94912 1999-01-30  Jim Meyering  <meyering@ascend.com>
94913
94914         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94915
94916         * m4/jm-mktime.m4: Make this a wrapper around the official
94917         AM_FUNC_MKTIME rather than my private copy, now that the official one
94918         is up to date.
94919         * m4/mktime.m4: Remove file.
94920
94921         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94922         * m4/uptime.m4: Likewise.
94923         * m4/uintmax_t.m4: Likewise.
94924
94925 1999-01-28  Jim Meyering  <meyering@ascend.com>
94926
94927         * m4/jm-macros.m4: Use jm_AFS.
94928         * m4/afs.m4: New file (from fileutils' configure.in).
94929
94930         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94931         * m4/chown.m4: Likewise.
94932         * m4/d-ino.m4: Likewise.
94933         * m4/d-type.m4: Likewise.
94934         * m4/fnmatch.m4: Likewise.
94935         * m4/getgroups.m4: Likewise.
94936         * m4/gettext.m4: Likewise.
94937         * m4/jm-mktime.m4: Likewise.
94938         * m4/jm-winsz2.m4: Likewise.
94939         * m4/lcmessage.m4: Likewise.
94940         * m4/ls-mntd-fs.m4: Likewise.
94941         * m4/malloc.m4: Likewise.
94942         * m4/memcmp.m4: Likewise.
94943         * m4/putenv.m4: Likewise.
94944         * m4/realloc.m4: Likewise.
94945         * m4/st_mtim.m4: Likewise.
94946         * m4/strftime.m4: Likewise.
94947
94948 1999-01-16  Jim Meyering  <meyering@ascend.com>
94949
94950         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94951         (ARGMATCH_DIE_DECL): Define.
94952
94953 1999-01-12  Jim Meyering  <meyering@ascend.com>
94954
94955         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94956         Reported by Lars Hecking.
94957
94958 1999-01-10  Jim Meyering  <meyering@ascend.com>
94959
94960         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94961         gross kludge.
94962         * m4/inttypes_h.m4: Likewise.
94963         * m4/lstat.m4: Likewise.
94964         * m4/malloc.m4: Likewise.
94965         * m4/readdir.m4: Likewise.
94966         * m4/realloc.m4: Likewise.
94967         * m4/st_dm_mode.m4: Likewise.
94968         * m4/stat.m4: Likewise.
94969         * m4/utimbuf.m4: Likewise.
94970         * m4/utimes.m4: Likewise.
94971
94972         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94973         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94974         comments in config.h.in are meaningful.
94975
94976         * m4/jm-macros.m4: Require autoconf-2.13 here.
94977
94978         * m4/regex.m4: By default, don't use the included regex.c on systems
94979         with glibc 2.  Suggestion from Uli Drepper.
94980
94981 1999-01-02  Jim Meyering  <meyering@ascend.com>
94982
94983         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94984
94985 1998-12-18  Jim Meyering  <meyering@ascend.com>
94986
94987         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94988         Based on a suggestion from Lars Hecking.
94989
94990 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94991
94992         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94993
94994 1998-11-16  Jim Meyering  <meyering@ascend.com>
94995
94996         * m4/lfs.m4: Double-quote the `uname...` expression.
94997
94998 1998-11-14  Jim Meyering  <meyering@ascend.com>
94999
95000         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95001         * m4/stat.m4: Likewise.
95002
95003 1998-11-03  Jim Meyering  <meyering@ascend.com>
95004
95005         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95006         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95007
95008 1998-10-18  Jim Meyering  <meyering@ascend.com>
95009
95010         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95011
95012 1998-10-17  Jim Meyering  <meyering@ascend.com>
95013
95014         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95015         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95016         calls for those previously hard-coded headers.  Instead, take a new
95017         parameter.
95018         (jm_CHECK_DECLARATIONS): Reflect interface change.
95019         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95020         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95021
95022         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95023
95024 1998-10-14  Jim Meyering  <meyering@ascend.com>
95025
95026         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95027         instead of "TZ=America/Vancouver".  From Paul Eggert.
95028
95029 1998-10-11  Jim Meyering  <meyering@ascend.com>
95030
95031         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95032         This adds a test for a recently added compatibility fix for mktime.c.
95033         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95034
95035 1998-09-27  Jim Meyering  <meyering@ascend.com>
95036
95037         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95038
95039         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95040         ../configure.in, including a change from Gordon Matzigkeit to allow
95041         cross-compiling for the Hurd.
95042
95043         * m4/glibc.m4: New file/macro to test for the GNU C Library
95044         versions 1 and 2.  From Gordon Matzigkeit.
95045         Indent.
95046
95047 1998-09-21  Jim Meyering  <meyering@ascend.com>
95048
95049         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95050
95051 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95052
95053         Port nanosecond-resolution times to UnixWare 2.1.2 and
95054         pedantic Solaris 2.6.
95055
95056         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95057         AC_STRUCT_ST_MTIM.
95058         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95059         Generate name of ns member, instead of just 1 or undef.
95060         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95061
95062 1998-08-15  Jim Meyering  <meyering@ascend.com>
95063
95064         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95065         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95066         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95067         instead of jm_TYPE_SSIZE_T.
95068
95069 1998-08-12  Jim Meyering  <meyering@ascend.com>
95070
95071         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95072
95073 1998-08-02  Jim Meyering  <meyering@ascend.com>
95074
95075         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95076         in acconfig.h manually.
95077
95078 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95079
95080         * m4/st_mtim.m4: New file.
95081
95082 1998-07-28  Jim Meyering  <meyering@ascend.com>
95083
95084         * m4/utimes.m4: Undef stat.
95085
95086 1998-07-25  Jim Meyering  <meyering@ascend.com>
95087
95088         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95089         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95090
95091 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95092
95093         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95094         uid and gid actually remain unchanged.
95095
95096 1998-07-07  Jim Meyering  <meyering@ascend.com>
95097
95098         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95099
95100 1998-07-04  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95103         to prove that this macro can be used in packages without regex.c.
95104
95105 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95106
95107         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95108         is to be used.
95109
95110 1998-07-03  Jim Meyering  <meyering@ascend.com>
95111
95112         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95113
95114         * m4/gettext.m4: New file -- from gettext-0.10.35.
95115         * m4/lcmessage.m4: Likewise.
95116         * m4/progtest.m4: Likewise.
95117
95118         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95119         * m4/jm-macros.m4: Require the new macro.
95120
95121 1998-06-29  Jim Meyering  <meyering@ascend.com>
95122
95123         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95124         for the definition of NGROUPS (used in a system header included
95125         by sys/mount.h).
95126
95127 1998-06-28  Jim Meyering  <meyering@ascend.com>
95128
95129         * m4/ls-mntd-fs.m4: New file.
95130         * m4/fstypename.m4: New file.
95131
95132         * m4/jm-macros.m4: Require the new macro.
95133         * m4/jm-glibc-io.m4: New file.
95134
95135 1998-05-19  Jim Meyering  <meyering@ascend.com>
95136
95137         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95138         * m4/lchown.m4: New file.
95139
95140         * m4/Makefile.am.in: New file.
95141         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95142
95143 1998-05-14  Jim Meyering  <meyering@ascend.com>
95144
95145         * m4/Makefile.am (EXTRA_DIST): Add them.
95146         * m4/jm-macros.m4: New file.
95147         * m4/utimbuf.m4: New file.
95148
95149 1998-05-12  Jim Meyering  <meyering@ascend.com>
95150
95151         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95152
95153 1998-05-11  Jim Meyering  <meyering@ascend.com>
95154
95155         * m4/isc-posix.m4: New file.
95156
95157 1998-05-10  Jim Meyering  <meyering@ascend.com>
95158
95159         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95160
95161 1998-05-09  Jim Meyering  <meyering@ascend.com>
95162
95163         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95164         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95165         with automake.
95166
95167         * m4/ssize_t.m4: New file.
95168         * m4/mktime.m4: Remove file -- the new automake has this now.
95169
95170 1998-04-26  Jim Meyering  <meyering@ascend.com>
95171
95172         * m4/assert.m4: New file.
95173         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95174
95175 1998-04-05  Jim Meyering  <meyering@ascend.com>
95176
95177         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95178         (jm_PREREQ): Use it here.
95179
95180 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95181
95182         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95183         in acconfig.h.
95184
95185 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95186
95187         * m4/prereq.m4: New file.
95188         * m4/error.m4: New file.
95189         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95190
95191 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95192
95193         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95194         cache-check for the same variable -- that defeated the purpose of
95195         the test; the test program was never run.  This was a problem only
95196         on systems with losing getline functions -- HP-UX 10.20 is one.
95197         Reported by Bjorn Helgaas.
95198
95199 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95200
95201         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95202
95203 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95204
95205         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95206
95207         * m4/const.m4: New file.  Use an initializer in this declaration
95208         typedef int charset[2]; const charset x;
95209         Reported by Bob Glickstein.
95210
95211 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95212
95213         * m4/chown.m4: Fix reversed types on -1 args to chown.
95214         From Kaveh Ghazi.
95215
95216 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95217
95218         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95219         Add lseek and memchr.
95220
95221         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95222         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95223         have a 20-character limit on names.
95224
95225 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95226
95227         * m4/inttypes_h.m4: New file.
95228         * m4/uintmax_t.m4: New file.
95229         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95230
95231
95232         -----
95233
95234         Local Variables:
95235         coding: utf-8
95236         End:
95237
95238         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95239
95240         Copying and distribution of this file, with or without
95241         modification, are permitted provided the copyright notice
95242         and this notice are preserved.